4 * i3 - an improved dynamic tiling window manager
6 * (c) 2009 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
20 #define CUR_TABLE (c_ws->table)
21 #define CUR_CELL (CUR_TABLE[current_col][current_row])
23 extern Workspace *c_ws;
24 extern TAILQ_HEAD(workspaces_head, Workspace) *workspaces;
25 //extern int num_workspaces;
26 extern int current_col;
27 extern int current_row;
29 /** Initialize table */
32 /** Add one row to the table */
33 void expand_table_rows(Workspace *workspace);
35 /** Adds one row at the head of the table */
36 void expand_table_rows_at_head(Workspace *workspace);
38 /** Add one column to the table */
39 void expand_table_cols(Workspace *workspace);
42 * Inserts one column at the table’s head
45 void expand_table_cols_at_head(Workspace *workspace);
48 * Performs simple bounds checking for the given column/row
51 bool cell_exists(Workspace *ws, int col, int row);
54 * Shrinks the table by "compacting" it, that is, removing completely empty
58 void cleanup_table(xcb_connection_t *conn, Workspace *workspace);
61 * Fixes col/rowspan (makes sure there are no overlapping windows)
64 void fix_colrowspan(xcb_connection_t *conn, Workspace *workspace);
67 * Prints the table’s contents in human-readable form for debugging
70 void dump_table(xcb_connection_t *conn, Workspace *workspace);