i3
con.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * con.c: Functions which deal with containers directly (creating containers,
8  * searching containers, getting specific properties from containers,
9  * …).
10  *
11  */
12 #ifndef _CON_H
13 #define _CON_H
14 
21 Con *con_new(Con *parent, i3Window *window);
22 
28 void con_focus(Con *con);
29 
34 bool con_is_leaf(Con *con);
35 
41 bool con_accepts_window(Con *con);
42 
48 Con *con_get_output(Con *con);
49 
55 
62 
67 Con *con_get_fullscreen_con(Con *con, int fullscreen_mode);
68 
73 bool con_is_floating(Con *con);
74 
81 
86 bool con_inside_focused(Con *con);
87 
93 Con *con_by_window_id(xcb_window_t window);
94 
100 Con *con_by_frame_id(xcb_window_t frame);
101 
107 Con *con_for_window(Con *con, i3Window *window, Match **store_match);
108 
113 int con_num_children(Con *con);
114 
125 void con_attach(Con *con, Con *parent, bool ignore_focus);
126 
131 void con_detach(Con *con);
132 
139 void con_fix_percent(Con *con);
140 
146 void con_toggle_fullscreen(Con *con, int fullscreen_mode);
147 
165 void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool dont_warp);
166 
173 int con_orientation(Con *con);
174 
181 Con *con_next_focused(Con *con);
182 
188 Con *con_get_next(Con *con, char way, orientation_t orientation);
189 
197 
207 
208 /*
209  * Returns the leftmost, rightmost, etc. container in sub-tree. For example, if
210  * direction is D_LEFT, then we return the rightmost container and if direction
211  * is D_RIGHT, we return the leftmost container. This is because if we are
212  * moving D_LEFT, and thus want the rightmost container.
213  */
214 Con *con_descend_direction(Con *con, direction_t direction);
215 
223 
234 int con_border_style(Con *con);
235 
241 void con_set_border_style(Con *con, int border_style);
242 
249 void con_set_layout(Con *con, int layout);
250 
257 
258 #endif