]> git.sur5r.net Git - i3/i3/blob - include/table.h
Implement moving containers, implement moving windows to the top if top-most, change...
[i3/i3] / include / table.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * (c) 2009 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11 #include <stdbool.h>
12
13 #include <xcb/xcb.h>
14
15 #include "data.h"
16
17 #ifndef _TABLE_H
18 #define _TABLE_H
19
20 #define CUR_TABLE (c_ws->table)
21 #define CUR_CELL (CUR_TABLE[current_col][current_row])
22
23 extern Workspace *c_ws;
24 extern Workspace workspaces[10];
25 extern int current_col;
26 extern int current_row;
27
28 void init_table();
29 void expand_table_rows(Workspace *workspace);
30 void expand_table_rows_at_head(Workspace *workspace);
31 void expand_table_cols(Workspace *workspace);
32 void expand_table_cols_at_head(Workspace *workspace);
33 bool cell_exists(int col, int row);
34 void cleanup_table(xcb_connection_t *conn, Workspace *workspace);
35 void fix_colrowspan(xcb_connection_t *conn, Workspace *workspace);
36 void dump_table(xcb_connection_t *conn, Workspace *workspace);
37
38 #endif