wlmaker
Loading...
Searching...
No Matches
cursor.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __CURSOR_H__
21#define __CURSOR_H__
22
23#include <wayland-server-core.h>
24
25#include "toolkit/toolkit.h"
26
29
30#include "server.h" // IWYU pragma: keep
31
32struct wlr_input_device;
33struct wlr_output_layout;
34
35#ifdef __cplusplus
36extern "C" {
37#endif // __cplusplus
38
43
45 struct wlr_cursor *wlr_cursor_ptr;
47 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr;
48
51
53 struct wl_listener motion_listener;
55 struct wl_listener motion_absolute_listener;
57 struct wl_listener button_listener;
59 struct wl_listener axis_listener;
61 struct wl_listener frame_listener;
62
65
75 struct wl_signal position_updated;
76};
77
87 wlmaker_server_t *server_ptr,
88 struct wlr_output_layout *wlr_output_layout_ptr);
89
96
104 wlmaker_cursor_t *cursor_ptr,
105 struct wlr_input_device *wlr_input_device_ptr);
106
115 const wlmaker_cursor_t *cursor_ptr,
116 double *x_ptr,
117 double *y_ptr);
118
119#ifdef __cplusplus
120} // extern "C"
121#endif // __cplusplus
122
123#endif /* __CURSOR_H__ */
124/* == End of cursor.h ====================================================== */
void wlmaker_cursor_get_position(const wlmaker_cursor_t *cursor_ptr, double *x_ptr, double *y_ptr)
Definition cursor.c:193
void wlmaker_cursor_destroy(wlmaker_cursor_t *cursor_ptr)
Definition cursor.c:152
void wlmaker_cursor_attach_input_device(wlmaker_cursor_t *cursor_ptr, struct wlr_input_device *wlr_input_device_ptr)
Definition cursor.c:183
wlmaker_cursor_t * wlmaker_cursor_create(wlmaker_server_t *server_ptr, struct wlr_output_layout *wlr_output_layout_ptr)
Definition cursor.c:64
Definition cursor.h:40
struct wl_listener motion_absolute_listener
Definition cursor.h:55
struct wl_signal position_updated
Definition cursor.h:75
struct wl_listener button_listener
Definition cursor.h:57
struct wl_listener axis_listener
Definition cursor.h:59
struct wl_listener frame_listener
Definition cursor.h:61
struct wlr_cursor * wlr_cursor_ptr
Definition cursor.h:45
wlmaker_server_t * server_ptr
Definition cursor.h:42
struct wl_listener seat_request_set_cursor_listener
Definition cursor.h:64
struct wl_listener motion_listener
Definition cursor.h:53
struct wlr_xcursor_manager * wlr_xcursor_manager_ptr
Definition cursor.h:47
wlmtk_pointer_t * pointer_ptr
Definition cursor.h:50
Definition server.h:84
Definition input.c:32