i3
workspace.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  * workspace.c: Modifying workspaces, accessing them, moving containers to
8  * workspaces.
9  *
10  */
11 #ifndef I3_WORKSPACE_H
12 #define I3_WORKSPACE_H
13 
14 #include "data.h"
15 #include "tree.h"
16 #include "randr.h"
17 
27 Con *workspace_get(const char *num, bool *created);
28 
29 /*
30  * Returns a pointer to a new workspace in the given output. The workspace
31  * is created attached to the tree hierarchy through the given content
32  * container.
33  *
34  */
35 Con *create_workspace_on_output(Output *output, Con *content);
36 
37 #if 0
38 
45 void workspace_set_name(Workspace *ws, const char *name);
46 #endif
47 
54 bool workspace_is_visible(Con *ws);
55 
60 void workspace_show(Con *ws);
61 
66 void workspace_show_by_name(const char *num);
67 
72 Con* workspace_next(void);
73 
78 Con* workspace_prev(void);
79 
85 
91 
96 void workspace_back_and_forth(void);
97 
103 
104 
105 #if 0
106 
115 void workspace_assign_to(Workspace *ws, Output *screen, bool hide_it);
116 
124 void workspace_initialize(Workspace *ws, Output *screen, bool recheck);
125 
131 Workspace *get_first_workspace_for_output(Output *screen);
132 
141 void workspace_unmap_clients(xcb_connection_t *conn, Workspace *u_ws);
142 
147 void workspace_map_clients(xcb_connection_t *conn, Workspace *ws);
148 #endif
149 
156 
163 void ws_force_orientation(Con *ws, orientation_t orientation);
164 
176 
184 #endif