2009-02-14 02:33:31 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=8:expandtab
|
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
|
|
|
*
|
|
|
|
* (c) 2009 Michael Stapelberg and contributors
|
|
|
|
*
|
|
|
|
* See file LICENSE for license information.
|
|
|
|
*
|
|
|
|
*/
|
2009-02-08 04:04:35 +01:00
|
|
|
#include <stdbool.h>
|
2009-02-15 01:58:09 +01:00
|
|
|
|
2009-02-28 01:12:05 +01:00
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
2009-02-08 04:04:35 +01:00
|
|
|
#include "data.h"
|
|
|
|
|
|
|
|
#ifndef _TABLE_H
|
|
|
|
#define _TABLE_H
|
|
|
|
|
2009-02-13 05:16:47 +01:00
|
|
|
#define CUR_TABLE (c_ws->table)
|
|
|
|
#define CUR_CELL (CUR_TABLE[current_col][current_row])
|
2009-02-08 04:04:35 +01:00
|
|
|
|
2009-02-13 05:16:47 +01:00
|
|
|
extern Workspace *c_ws;
|
|
|
|
extern Workspace workspaces[10];
|
2009-02-13 19:04:45 +01:00
|
|
|
extern int current_col;
|
|
|
|
extern int current_row;
|
2009-02-08 04:04:35 +01:00
|
|
|
|
|
|
|
void init_table();
|
2009-02-13 05:16:47 +01:00
|
|
|
void expand_table_rows(Workspace *workspace);
|
|
|
|
void expand_table_cols(Workspace *workspace);
|
2009-02-08 04:04:35 +01:00
|
|
|
bool cell_exists(int col, int row);
|
2009-02-28 01:12:05 +01:00
|
|
|
void cleanup_table(xcb_connection_t *conn, Workspace *workspace);
|
2009-03-05 17:17:37 +01:00
|
|
|
void fix_colrowspan(xcb_connection_t *conn, Workspace *workspace);
|
|
|
|
void dump_table(xcb_connection_t *conn, Workspace *workspace);
|
|
|
|
|
2009-02-08 04:04:35 +01:00
|
|
|
|
|
|
|
#endif
|