wlmaker
Loading...
Searching...
No Matches
root.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_ROOT_H__
21#define __WLMTK_ROOT_H__
22
25
26#include "lock.h"
27
28#include "surface.h"
29
31struct wlr_scene;
32
33#ifdef __cplusplus
34extern "C" {
35#endif // __cplusplus
36
38typedef struct {
43 struct wl_signal workspace_changed;
44
46 struct wl_signal unlock_event;
48 struct wl_signal window_mapped;
50 struct wl_signal window_unmapped;
52
62 struct wlr_scene *wlr_scene_ptr,
63 wlmtk_env_t *env_ptr);
64
70void wlmtk_root_destroy(wlmtk_root_t *root_ptr);
71
80
88 wlmtk_root_t *root_ptr,
89 const struct wlr_box *extents_ptr);
90
102 wlmtk_root_t *root_ptr,
103 double x,
104 double y,
105 uint32_t time_msec);
106
125 wlmtk_root_t *root_ptr,
126 const struct wlr_pointer_button_event *event_ptr);
127
137 wlmtk_root_t *root_ptr,
138 struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr);
139
147 wlmtk_root_t *root_ptr,
148 wlmtk_workspace_t *workspace_ptr);
149
157 wlmtk_root_t *root_ptr,
158 wlmtk_workspace_t *workspace_ptr);
159
166
173
180
193bool wlmtk_root_lock(
194 wlmtk_root_t *root_ptr,
195 wlmtk_lock_t *lock_ptr);
196
209 wlmtk_root_t *root_ptr,
210 wlmtk_lock_t *lock_ptr);
211
225 wlmtk_root_t *root_ptr,
226 wlmtk_lock_t *lock_ptr);
227
238 wlmtk_root_t *root_ptr,
239 wlmtk_surface_t *surface_ptr);
240
243
245extern const bs_test_case_t wlmtk_root_test_cases[];
246
247#ifdef __cplusplus
248} // extern "C"
249#endif // __cplusplus
250
251#endif /* __WLMTK_ROOT_H__ */
252/* == End of root.h ======================================================== */
void wlmtk_root_set_extents(wlmtk_root_t *root_ptr, const struct wlr_box *extents_ptr)
Definition root.c:163
wlmtk_root_events_t * wlmtk_root_events(wlmtk_root_t *root_ptr)
Definition root.c:157
void wlmtk_root_switch_to_next_workspace(wlmtk_root_t *root_ptr)
Definition root.c:313
void wlmtk_root_remove_workspace(wlmtk_root_t *root_ptr, wlmtk_workspace_t *workspace_ptr)
Definition root.c:278
void wlmtk_root_destroy(wlmtk_root_t *root_ptr)
Definition root.c:135
bool wlmtk_root_pointer_button(wlmtk_root_t *root_ptr, const struct wlr_pointer_button_event *event_ptr)
Definition root.c:194
void wlmtk_root_set_lock_surface(wlmtk_root_t *root_ptr, wlmtk_surface_t *surface_ptr)
Definition root.c:413
bool wlmtk_root_pointer_motion(wlmtk_root_t *root_ptr, double x, double y, uint32_t time_msec)
Definition root.c:180
bool wlmtk_root_unlock(wlmtk_root_t *root_ptr, wlmtk_lock_t *lock_ptr)
Definition root.c:374
bool wlmtk_root_pointer_axis(wlmtk_root_t *root_ptr, struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr)
Definition root.c:236
wlmtk_element_t * wlmtk_root_element(wlmtk_root_t *root_ptr)
Definition root.c:421
wlmtk_workspace_t * wlmtk_root_get_current_workspace(wlmtk_root_t *root_ptr)
Definition root.c:307
void wlmtk_root_add_workspace(wlmtk_root_t *root_ptr, wlmtk_workspace_t *workspace_ptr)
Definition root.c:246
void wlmtk_root_lock_unreference(wlmtk_root_t *root_ptr, wlmtk_lock_t *lock_ptr)
Definition root.c:400
bool wlmtk_root_lock(wlmtk_root_t *root_ptr, wlmtk_lock_t *lock_ptr)
Definition root.c:346
const bs_test_case_t wlmtk_root_test_cases[]
Definition root.c:655
wlmtk_root_t * wlmtk_root_create(struct wlr_scene *wlr_scene_ptr, wlmtk_env_t *env_ptr)
Definition root.c:98
void wlmtk_root_switch_to_previous_workspace(wlmtk_root_t *root_ptr)
Definition root.c:330
Definition element.h:172
Definition env.c:32
Definition lock.c:39
Definition root.c:32
Definition surface.h:46
Definition workspace.c:35
Definition root.h:38