]> git.sur5r.net Git - i3/i3/blob - include/tree.h
Add parameter to reparent windows instead of killing them when closing a container
[i3/i3] / include / tree.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  */
4
5 #ifndef _TREE_H
6 #define _TREE_H
7
8 extern Con *croot;
9 /* TODO: i am not sure yet how much access to the focused container should
10  * be permitted to source files */
11 extern Con *focused;
12 TAILQ_HEAD(all_cons_head, Con);
13 extern struct all_cons_head all_cons;
14
15 void tree_init();
16 Con *tree_open_con(Con *con);
17 void tree_split(Con *con, orientation_t orientation);
18 void level_up();
19 void level_down();
20 void tree_render();
21 void tree_close_con();
22 void tree_next(char way, orientation_t orientation);
23 void tree_move(char way, orientation_t orientation);
24 void tree_close(Con *con, bool kill_window);
25 bool tree_restore();
26
27 #endif