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
30
31#include "server.h" // IWYU pragma: keep
32
33struct wlr_input_device;
34struct wlr_output_layout;
35
36#ifdef __cplusplus
37extern "C" {
38#endif // __cplusplus
39
44
46 struct wlr_cursor *wlr_cursor_ptr;
48 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr;
49
52
54 struct wl_listener motion_listener;
56 struct wl_listener motion_absolute_listener;
58 struct wl_listener button_listener;
60 struct wl_listener axis_listener;
62 struct wl_listener frame_listener;
63
66
76 struct wl_signal position_updated;
77};
78
88 wlmaker_server_t *server_ptr,
89 struct wlr_output_layout *wlr_output_layout_ptr);
90
97
105 wlmaker_cursor_t *cursor_ptr,
106 struct wlr_input_device *wlr_input_device_ptr);
107
116 const wlmaker_cursor_t *cursor_ptr,
117 double *x_ptr,
118 double *y_ptr);
119
120#ifdef __cplusplus
121} // extern "C"
122#endif // __cplusplus
123
124#endif /* __CURSOR_H__ */
125/* == End of cursor.h ====================================================== */
void wlmaker_cursor_get_position(const wlmaker_cursor_t *cursor_ptr, double *x_ptr, double *y_ptr)
Definition cursor.c:182
void wlmaker_cursor_destroy(wlmaker_cursor_t *cursor_ptr)
Definition cursor.c:151
void wlmaker_cursor_attach_input_device(wlmaker_cursor_t *cursor_ptr, struct wlr_input_device *wlr_input_device_ptr)
Definition cursor.c:172
wlmaker_cursor_t * wlmaker_cursor_create(wlmaker_server_t *server_ptr, struct wlr_output_layout *wlr_output_layout_ptr)
Definition cursor.c:63
Definition cursor.h:41
struct wl_listener motion_absolute_listener
Definition cursor.h:56
struct wl_signal position_updated
Definition cursor.h:76
struct wl_listener button_listener
Definition cursor.h:58
struct wl_listener axis_listener
Definition cursor.h:60
struct wl_listener frame_listener
Definition cursor.h:62
struct wlr_cursor * wlr_cursor_ptr
Definition cursor.h:46
wlmaker_server_t * server_ptr
Definition cursor.h:43
struct wl_listener seat_request_set_cursor_listener
Definition cursor.h:65
struct wl_listener motion_listener
Definition cursor.h:54
struct wlr_xcursor_manager * wlr_xcursor_manager_ptr
Definition cursor.h:48
wlmtk_pointer_t * pointer_ptr
Definition cursor.h:51
Definition server.h:84
Definition input.c:32