wlmaker
Loading...
Searching...
No Matches
workspace.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_WORKSPACE_H__
21#define __WLMTK_WORKSPACE_H__
22
25
26#include "container.h"
27#include "panel.h"
28#include "root.h"
29#include "tile.h"
30#include "window.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif // __cplusplus
35
37struct wlr_pointer_button_event;
39struct wlr_box;
40
47typedef enum {
48 WLMTK_WORKSPACE_LAYER_BACKGROUND = 0,
49 WLMTK_WORKSPACE_LAYER_BOTTOM = 1,
50 WLMTK_WORKSPACE_LAYER_TOP = 3,
51 WLMTK_WORKSPACE_LAYER_OVERLAY = 4,
53
65 const char *name_ptr,
66 const wlmtk_tile_style_t *tile_style_ptr,
67 wlmtk_env_t *env_ptr);
68
75
83 wlmtk_workspace_t *workspace_ptr,
84 int index);
85
94 wlmtk_workspace_t *workspace_ptr,
95 const char **name_ptr_ptr,
96 int *index_ptr);
97
105 const struct wlr_box *extents_ptr);
106
115 wlmtk_workspace_t *workspace_ptr);
116
125 wlmtk_workspace_t *workspace_ptr);
126
137void wlmtk_workspace_enable(wlmtk_workspace_t *workspace_ptr, bool enabled);
138
146 wlmtk_window_t *window_ptr);
147
155 wlmtk_window_t *window_ptr);
156
166 wlmtk_workspace_t *workspace_ptr,
168
169
180 wlmtk_workspace_t *workspace_ptr);
181
192 wlmtk_workspace_t *workspace_ptr,
193 wlmtk_window_t *window_ptr,
194 bool fullscreen);
195
203 wlmtk_workspace_t *workspace_ptr,
204 wlmtk_window_t *window_ptr);
205
214 wlmtk_workspace_t *workspace_ptr,
215 wlmtk_window_t *window_ptr,
216 uint32_t edges);
217
220 wlmtk_workspace_t *workspace_ptr,
221 wlmtk_window_t *window_ptr);
222
225 wlmtk_workspace_t *workspace_ptr);
226
236 wlmtk_workspace_t *workspace_ptr);
237
247 wlmtk_workspace_t *workspace_ptr);
248
251 wlmtk_workspace_t *workspace_ptr,
252 wlmtk_window_t *window_ptr);
253
256
259
269 wlmtk_workspace_t *workspace_ptr,
270 wlmtk_root_t *root_ptr);
271
273bs_dllist_node_t *wlmtk_dlnode_from_workspace(
274 wlmtk_workspace_t *workspace_ptr);
275
278 bs_dllist_node_t *dlnode_ptr);
279
290 int width,
291 int height,
292 wlmtk_env_t *env_ptr);
293
295extern const bs_test_case_t wlmtk_workspace_test_cases[];
296
297#ifdef __cplusplus
298} // extern "C"
299#endif // __cplusplus
300
301#endif /* __WLMTK_WORKSPACE_H__ */
302/* == End of workspace.h =================================================== */
Definition element.h:172
Definition env.c:32
Definition layer.c:34
Definition root.c:32
Definition window.c:68
Definition workspace.c:35
Definition tile.h:35
void wlmtk_workspace_raise_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:681
const bs_test_case_t wlmtk_workspace_test_cases[]
Definition workspace.c:999
wlmtk_workspace_t * wlmtk_workspace_create(const char *name_ptr, const wlmtk_tile_style_t *tile_style_ptr, wlmtk_env_t *env_ptr)
Definition workspace.c:181
void wlmtk_workspace_enable(wlmtk_workspace_t *workspace_ptr, bool enabled)
Definition workspace.c:417
wlmtk_workspace_layer_t
Definition workspace.h:47
wlmtk_window_t * wlmtk_workspace_get_activated_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:634
wlmtk_workspace_t * wlmtk_workspace_create_for_test(int width, int height, wlmtk_env_t *env_ptr)
Definition workspace.c:730
void wlmtk_workspace_begin_window_move(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:591
wlmtk_layer_t * wlmtk_workspace_get_layer(wlmtk_workspace_t *workspace_ptr, wlmtk_workspace_layer_t layer)
Definition workspace.c:509
wlmtk_root_t * wlmtk_workspace_get_root(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:701
void wlmtk_workspace_set_details(wlmtk_workspace_t *workspace_ptr, int index)
Definition workspace.c:348
void wlmtk_workspace_activate_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:610
bs_dllist_t * wlmtk_workspace_get_windows_dllist(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:536
void wlmtk_workspace_begin_window_resize(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, uint32_t edges)
Definition workspace.c:599
void wlmtk_workspace_map_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:432
wlmtk_workspace_t * wlmtk_workspace_from_dlnode(bs_dllist_node_t *dlnode_ptr)
Definition workspace.c:722
bs_dllist_node_t * wlmtk_dlnode_from_workspace(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:715
void wlmtk_workspace_get_details(wlmtk_workspace_t *workspace_ptr, const char **name_ptr_ptr, int *index_ptr)
Definition workspace.c:356
void wlmtk_workspace_set_extents(wlmtk_workspace_t *workspace_ptr, const struct wlr_box *extents_ptr)
Definition workspace.c:367
wlmtk_element_t * wlmtk_workspace_element(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:695
void wlmtk_workspace_unmap_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:455
void wlmtk_workspace_set_root(wlmtk_workspace_t *workspace_ptr, wlmtk_root_t *root_ptr)
Definition workspace.c:707
void wlmtk_workspace_destroy(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:289
struct wlr_box wlmtk_workspace_get_fullscreen_extents(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:405
void wlmtk_workspace_activate_previous_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:641
void wlmtk_workspace_window_to_fullscreen(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, bool fullscreen)
Definition workspace.c:543
struct wlr_box wlmtk_workspace_get_maximize_extents(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:390
void wlmtk_workspace_activate_next_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:661