wlmaker
Loading...
Searching...
No Matches
root.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_ROOT_H__
22#define __WLMTK_ROOT_H__
23
26
27#include <libbase/libbase.h>
28#include <stdbool.h>
29#include <stdint.h>
30#include <wayland-server-core.h>
31#define WLR_USE_UNSTABLE
32#include <wlr/types/wlr_pointer.h>
33#undef WLR_USE_UNSTABLE
34
35#include "element.h"
36#include "input.h"
37
38struct wlr_output_layout;
39
40#ifdef __cplusplus
41extern "C" {
42#endif // __cplusplus
43
45typedef struct {
47 struct wl_signal unclaimed_button_event;
49
59 wlmtk_element_t *element_ptr,
60 struct wlr_output_layout *wlr_output_layout_ptr);
61
67void wlmtk_root_destroy(wlmtk_root_t *root_ptr);
68
77
86
99 wlmtk_root_t *root_ptr,
100 double x,
101 double y,
102 uint32_t time_msec,
103 wlmtk_pointer_t *pointer_ptr);
104
124 wlmtk_root_t *root_ptr,
125 const struct wlr_pointer_button_event *event_ptr,
126 uint32_t modifiers);
127
137 wlmtk_root_t *root_ptr,
138 struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr);
139
141extern const bs_test_set_t wlmtk_root_test_set;
142
143#ifdef __cplusplus
144} // extern "C"
145#endif // __cplusplus
146
147#endif /* __WLMTK_ROOT_H__ */
148/* == End of root.h ======================================================== */
bool wlmtk_root_pointer_button(wlmtk_root_t *root_ptr, const struct wlr_pointer_button_event *event_ptr, uint32_t modifiers)
Definition root.c:147
wlmtk_root_events_t * wlmtk_root_events(wlmtk_root_t *root_ptr)
Definition root.c:120
bool wlmtk_root_pointer_motion(wlmtk_root_t *root_ptr, double x, double y, uint32_t time_msec, wlmtk_pointer_t *pointer_ptr)
Definition root.c:132
void wlmtk_root_destroy(wlmtk_root_t *root_ptr)
Definition root.c:110
bool wlmtk_root_pointer_axis(wlmtk_root_t *root_ptr, struct wlr_pointer_axis_event *wlr_pointer_axis_event_ptr)
Definition root.c:192
wlmtk_element_t * wlmtk_root_element(wlmtk_root_t *root_ptr)
Definition root.c:126
wlmtk_root_t * wlmtk_root_create(wlmtk_element_t *element_ptr, struct wlr_output_layout *wlr_output_layout_ptr)
Definition root.c:84
const bs_test_set_t wlmtk_root_test_set
Definition root.c:259
Definition element.h:188
Definition input.c:34
Definition root.c:46
Definition root.h:45