wlmaker
Loading...
Searching...
No Matches
workspace.h
Go to the documentation of this file.
1/* ========================================================================= */
23#ifndef __WORKSPACE_H__
24#define __WORKSPACE_H__
25
30
42 WLMAKER_WORKSPACE_LAYER_BACKGROUND = 0,
43 WLMAKER_WORKSPACE_LAYER_BOTTOM = 1,
44 WLMAKER_WORKSPACE_LAYER_SHELL = 2,
45 WLMAKER_WORKSPACE_LAYER_TOP = 3,
46 WLMAKER_WORKSPACE_LAYER_OVERLAY = 4,
47};
48
49#include "iconified.h"
50#include "layer_surface.h"
51#include "server.h"
52#include "tile_container.h"
53#include "toolkit/toolkit.h"
54
55#ifdef __cplusplus
56extern "C" {
57#endif // __cplusplus
58
60#define WLMAKER_WORKSPACE_LAYER_NUM (WLMAKER_WORKSPACE_LAYER_OVERLAY + 1)
61
74 uint32_t color,
75 int index,
76 const char *name_ptr);
77
84
95 bool enabled);
96
105 wlmaker_view_t *view_ptr,
107
119 wlmaker_view_t *view_ptr);
120
128 __UNUSED__ wlmaker_workspace_t *workspace_ptr,
129 wlmaker_view_t *view_ptr);
130
138 __UNUSED__ wlmaker_workspace_t *workspace_ptr,
139 wlmaker_view_t *view_ptr);
140
148 wlmaker_view_t *view_ptr);
149
158 wlmaker_workspace_t *workspace_ptr);
159
169 wlmaker_workspace_t *workspace_ptr);
170
180 wlmaker_workspace_t *workspace_ptr);
181
189const bs_dllist_t *wlmaker_workspace_get_views_dllist(
190 wlmaker_workspace_t *workspace_ptr);
191
201 wlmaker_workspace_t *workspace_ptr,
202 const struct wlr_box *extents_ptr);
203
212
220 wlmaker_workspace_t *workspace_ptr,
221 wlmaker_view_t *view_ptr);
222
230 wlmaker_workspace_t *workspace_ptr,
231 wlmaker_iconified_t *iconified_ptr);
232
241 wlmaker_workspace_t *workspace_ptr,
242 wlmaker_view_t *view_ptr);
243
252 wlmaker_workspace_t *workspace_ptr,
253 wlmaker_view_t *view_ptr);
254
271 wlmaker_workspace_t *workspace_ptr,
273 wlmaker_layer_surface_t *layer_surface_ptr);
274
285 wlmaker_workspace_t *workspace_ptr,
287 wlmaker_layer_surface_t *layer_surface_ptr);
288
297 wlmaker_workspace_t *workspace_ptr,
298 int *index_ptr,
299 const char **name_ptr_ptr);
300
309 wlmaker_workspace_t *workspace_ptr,
310 struct wlr_output *wlr_output_ptr,
311 struct wlr_box *maximize_area_ptr);
312
321 wlmaker_workspace_t *workspace_ptr,
322 struct wlr_output *wlr_output_ptr,
323 struct wlr_box *fullscreen_area_ptr);
324
333 bs_dllist_node_t *dlnode_ptr);
334
342bs_dllist_node_t *wlmaker_dlnode_from_workspace(
343 wlmaker_workspace_t *workspace_ptr);
344
347 wlmaker_workspace_t *workspace_ptr);
348
351
353extern const bs_test_case_t wlmaker_workspace_test_cases[];
354
355#ifdef __cplusplus
356} // extern "C"
357#endif // __cplusplus
358
359#endif /* __WORKSPACE_H__ */
360/* == End of workspace.h =================================================== */
Definition iconified.c:34
Definition layer_surface.c:31
Definition server.h:60
Definition tile_container.c:30
Definition view.h:161
Definition workspace.c:53
int index
Definition workspace.c:93
bool enabled
Definition workspace.c:90
wlmaker_server_t * server_ptr
Definition workspace.c:55
char * name_ptr
Definition workspace.c:95
Definition workspace.c:34
void wlmaker_workspace_raise_view(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:335
void wlmaker_workspace_set_extents(wlmaker_workspace_t *workspace_ptr, const struct wlr_box *extents_ptr)
Definition workspace.c:444
const bs_test_case_t wlmaker_workspace_test_cases[]
Definition workspace.c:742
_wlmaker_workspace_layer_t
Definition workspace.h:41
void wlmaker_workspace_set_enabled(wlmaker_workspace_t *workspace_ptr, bool enabled)
Definition workspace.c:249
wlmtk_workspace_t * wlmaker_workspace_wlmtk(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:683
wlmaker_workspace_t * wlmaker_workspace_from_dlnode(bs_dllist_node_t *dlnode_ptr)
Definition workspace.c:662
void wlmaker_workspace_get_maximize_area(wlmaker_workspace_t *workspace_ptr, struct wlr_output *wlr_output_ptr, struct wlr_box *maximize_area_ptr)
Definition workspace.c:633
const bs_dllist_t * wlmaker_workspace_get_views_dllist(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:437
void wlmaker_workspace_get_fullscreen_area(wlmaker_workspace_t *workspace_ptr, struct wlr_output *wlr_output_ptr, struct wlr_box *fullscreen_area_ptr)
Definition workspace.c:650
void wlmaker_workspace_activate_view(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:352
void wlmaker_workspace_destroy(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:198
wlmaker_workspace_t * wlmaker_workspace_create(wlmaker_server_t *server_ptr, uint32_t color, int index, const char *name_ptr)
Definition workspace.c:109
void wlmaker_workspace_remove_view(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:291
wlmaker_view_t * wlmaker_workspace_get_activated_view(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:384
void wlmaker_workspace_view_set_as_iconified(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:546
bs_dllist_node_t * wlmaker_dlnode_from_workspace(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:669
void wlmaker_workspace_promote_view_to_fullscreen(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:506
void wlmaker_workspace_layer_surface_remove(wlmaker_workspace_t *workspace_ptr, wlmaker_workspace_layer_t layer, wlmaker_layer_surface_t *layer_surface_ptr)
Definition workspace.c:610
void wlmaker_workspace_layer_surface_add(wlmaker_workspace_t *workspace_ptr, wlmaker_workspace_layer_t layer, wlmaker_layer_surface_t *layer_surface_ptr)
Definition workspace.c:597
void wlmaker_workspace_add_view(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr, wlmaker_workspace_layer_t layer)
Definition workspace.c:266
wlmaker_tile_container_t * wlmaker_workspace_get_tile_container(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:676
void wlmaker_workspace_get_details(wlmaker_workspace_t *workspace_ptr, int *index_ptr, const char **name_ptr_ptr)
Definition workspace.c:623
void wlmaker_workspace_activate_next_view(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:391
void wlmaker_workspace_arrange_views(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:453
void wlmaker_workspace_activate_previous_view(wlmaker_workspace_t *workspace_ptr)
Definition workspace.c:414
void wlmaker_workspace_demote_view_from_fullscreen(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:528
void wlmaker_workspace_lower_view(wlmaker_workspace_t *workspace_ptr, wlmaker_view_t *view_ptr)
Definition workspace.c:343
enum _wlmaker_workspace_layer_t wlmaker_workspace_layer_t
Definition workspace.h:29
void wlmaker_workspace_iconified_set_as_view(wlmaker_workspace_t *workspace_ptr, wlmaker_iconified_t *iconified_ptr)
Definition workspace.c:575