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 "window.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
34struct wlr_pointer_button_event;
36struct wlr_box;
37
51 wlmtk_env_t *env_ptr,
52 struct wlr_scene_tree *wlr_scene_tree_ptr);
53
60
71 wlmtk_workspace_t *workspace_ptr,
72 struct wl_signal *mapped_event_ptr,
73 struct wl_signal *unmapped_event_ptr);
74
82 const struct wlr_box *extents_ptr);
83
92 wlmtk_workspace_t *workspace_ptr);
93
102 wlmtk_workspace_t *workspace_ptr);
103
111 wlmtk_window_t *window_ptr);
112
120 wlmtk_window_t *window_ptr);
121
132 wlmtk_workspace_t *workspace_ptr);
133
144 wlmtk_workspace_t *workspace_ptr,
145 wlmtk_window_t *window_ptr,
146 bool fullscreen);
147
162 wlmtk_workspace_t *workspace_ptr,
163 double x,
164 double y,
165 uint32_t time_msec);
166
185 wlmtk_workspace_t *workspace_ptr,
186 const struct wlr_pointer_button_event *event_ptr);
187
197 wlmtk_workspace_t *workspace_ptr,
198 struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr);
199
207 wlmtk_workspace_t *workspace_ptr,
208 wlmtk_window_t *window_ptr);
209
218 wlmtk_workspace_t *workspace_ptr,
219 wlmtk_window_t *window_ptr,
220 uint32_t edges);
221
224 wlmtk_workspace_t *workspace_ptr,
225 wlmtk_window_t *window_ptr);
226
229 wlmtk_workspace_t *workspace_ptr);
230
240 wlmtk_workspace_t *workspace_ptr);
241
251 wlmtk_workspace_t *workspace_ptr);
252
255 wlmtk_workspace_t *workspace_ptr,
256 wlmtk_window_t *window_ptr);
257
259typedef struct {
265 struct wl_signal window_mapped_event;
267 struct wl_signal window_unmapped_event;
268
270 struct wl_listener window_mapped_listener;
272 struct wl_listener window_unmapped_listener;
278
283
285extern const bs_test_case_t wlmtk_workspace_test_cases[];
286
287#ifdef __cplusplus
288} // extern "C"
289#endif // __cplusplus
290
291#endif /* __WLMTK_WORKSPACE_H__ */
292/* == End of workspace.h =================================================== */
Definition container.h:55
Definition env.c:32
Definition window.c:68
Definition workspace.c:34
Definition workspace.h:259
bool window_unmapped_listener_invoked
Definition workspace.h:276
wlmtk_container_t * fake_parent_ptr
Definition workspace.h:263
bool window_mapped_listener_invoked
Definition workspace.h:274
wlmtk_workspace_t * workspace_ptr
Definition workspace.h:261
void wlmtk_workspace_raise_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:532
const bs_test_case_t wlmtk_workspace_test_cases[]
Definition workspace.c:888
wlmtk_workspace_t * wlmtk_workspace_create(wlmtk_env_t *env_ptr, struct wlr_scene_tree *wlr_scene_tree_ptr)
Definition workspace.c:159
wlmtk_window_t * wlmtk_workspace_get_activated_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:485
void wlmtk_workspace_begin_window_move(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:447
void wlmtk_workspace_activate_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:466
void wlmtk_fake_workspace_destroy(wlmtk_fake_workspace_t *fake_workspace_ptr)
Definition workspace.c:596
bs_dllist_t * wlmtk_workspace_get_windows_dllist(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:338
void wlmtk_workspace_begin_window_resize(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, uint32_t edges)
Definition workspace.c:455
bool wlmtk_workspace_button(wlmtk_workspace_t *workspace_ptr, const struct wlr_pointer_button_event *event_ptr)
Definition workspace.c:406
wlmtk_fake_workspace_t * wlmtk_fake_workspace_create(int width, int height)
Definition workspace.c:555
void wlmtk_workspace_map_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:269
bool wlmtk_workspace_motion(wlmtk_workspace_t *workspace_ptr, double x, double y, uint32_t time_msec)
Definition workspace.c:393
void wlmtk_workspace_set_extents(wlmtk_workspace_t *workspace_ptr, const struct wlr_box *extents_ptr)
Definition workspace.c:234
void wlmtk_workspace_unmap_window(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr)
Definition workspace.c:290
void wlmtk_workspace_set_signals(wlmtk_workspace_t *workspace_ptr, struct wl_signal *mapped_event_ptr, struct wl_signal *unmapped_event_ptr)
Definition workspace.c:203
void wlmtk_workspace_destroy(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:213
struct wlr_box wlmtk_workspace_get_fullscreen_extents(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:257
void wlmtk_workspace_activate_previous_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:492
void wlmtk_workspace_window_to_fullscreen(wlmtk_workspace_t *workspace_ptr, wlmtk_window_t *window_ptr, bool fullscreen)
Definition workspace.c:345
struct wlr_box wlmtk_workspace_get_maximize_extents(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:244
void wlmtk_workspace_activate_next_window(wlmtk_workspace_t *workspace_ptr)
Definition workspace.c:512
bool wlmtk_workspace_axis(wlmtk_workspace_t *workspace_ptr, struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr)
Definition workspace.c:437