wlmaker
Loading...
Searching...
No Matches
cursor.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __CURSOR_H__
21#define __CURSOR_H__
22
25
26#include "server.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif // __cplusplus
31
36
38 struct wlr_cursor *wlr_cursor_ptr;
40 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr;
41
43 struct wl_listener motion_listener;
45 struct wl_listener motion_absolute_listener;
47 struct wl_listener button_listener;
49 struct wl_listener axis_listener;
51 struct wl_listener frame_listener;
52
55
65 struct wl_signal position_updated;
66};
67
76
83
91 wlmaker_cursor_t *cursor_ptr,
92 struct wlr_input_device *wlr_input_device_ptr);
93
102 const wlmaker_cursor_t *cursor_ptr,
103 double *x_ptr,
104 double *y_ptr);
105
106#ifdef __cplusplus
107} // extern "C"
108#endif // __cplusplus
109
110#endif /* __CURSOR_H__ */
111/* == End of cursor.h ====================================================== */
void wlmaker_cursor_get_position(const wlmaker_cursor_t *cursor_ptr, double *x_ptr, double *y_ptr)
Definition cursor.c:167
wlmaker_cursor_t * wlmaker_cursor_create(wlmaker_server_t *server_ptr)
Definition cursor.c:61
void wlmaker_cursor_destroy(wlmaker_cursor_t *cursor_ptr)
Definition cursor.c:141
void wlmaker_cursor_attach_input_device(wlmaker_cursor_t *cursor_ptr, struct wlr_input_device *wlr_input_device_ptr)
Definition cursor.c:157
Definition cursor.h:33
struct wl_listener motion_absolute_listener
Definition cursor.h:45
struct wl_signal position_updated
Definition cursor.h:65
struct wl_listener button_listener
Definition cursor.h:47
struct wl_listener axis_listener
Definition cursor.h:49
struct wl_listener frame_listener
Definition cursor.h:51
struct wlr_cursor * wlr_cursor_ptr
Definition cursor.h:38
wlmaker_server_t * server_ptr
Definition cursor.h:35
struct wl_listener seat_request_set_cursor_listener
Definition cursor.h:54
struct wl_listener motion_listener
Definition cursor.h:43
struct wlr_xcursor_manager * wlr_xcursor_manager_ptr
Definition cursor.h:40
Definition server.h:89