wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
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
28
typedef
struct
_wlmaker_cursor_t
wlmaker_cursor_t
;
29
30
#include "
server.h
"
// IWYU pragma: keep
31
32
struct
wlr_input_device;
33
struct
wlr_output_layout;
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
// __cplusplus
38
40
struct
_wlmaker_cursor_t
{
42
wlmaker_server_t
*
server_ptr
;
43
45
struct
wlr_cursor *
wlr_cursor_ptr
;
47
struct
wlr_xcursor_manager *
wlr_xcursor_manager_ptr
;
48
50
wlmtk_pointer_t
*
pointer_ptr
;
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
64
struct
wl_listener
seat_request_set_cursor_listener
;
65
75
struct
wl_signal
position_updated
;
76
};
77
86
wlmaker_cursor_t
*
wlmaker_cursor_create
(
87
wlmaker_server_t
*server_ptr,
88
struct
wlr_output_layout *wlr_output_layout_ptr);
89
95
void
wlmaker_cursor_destroy
(
wlmaker_cursor_t
*cursor_ptr);
96
103
void
wlmaker_cursor_attach_input_device
(
104
wlmaker_cursor_t
*cursor_ptr,
105
struct
wlr_input_device *wlr_input_device_ptr);
106
114
void
wlmaker_cursor_get_position
(
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 ====================================================== */
wlmaker_cursor_get_position
void wlmaker_cursor_get_position(const wlmaker_cursor_t *cursor_ptr, double *x_ptr, double *y_ptr)
Definition
cursor.c:193
wlmaker_cursor_t
struct _wlmaker_cursor_t wlmaker_cursor_t
Definition
cursor.h:28
wlmaker_cursor_destroy
void wlmaker_cursor_destroy(wlmaker_cursor_t *cursor_ptr)
Definition
cursor.c:152
wlmaker_cursor_attach_input_device
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_create
wlmaker_cursor_t * wlmaker_cursor_create(wlmaker_server_t *server_ptr, struct wlr_output_layout *wlr_output_layout_ptr)
Definition
cursor.c:64
wlmtk_pointer_t
struct _wlmtk_pointer_t wlmtk_pointer_t
Definition
input.h:36
server.h
wlmaker_server_t
struct _wlmaker_server_t wlmaker_server_t
Definition
server.h:36
_wlmaker_cursor_t
Definition
cursor.h:40
_wlmaker_cursor_t::motion_absolute_listener
struct wl_listener motion_absolute_listener
Definition
cursor.h:55
_wlmaker_cursor_t::position_updated
struct wl_signal position_updated
Definition
cursor.h:75
_wlmaker_cursor_t::button_listener
struct wl_listener button_listener
Definition
cursor.h:57
_wlmaker_cursor_t::axis_listener
struct wl_listener axis_listener
Definition
cursor.h:59
_wlmaker_cursor_t::frame_listener
struct wl_listener frame_listener
Definition
cursor.h:61
_wlmaker_cursor_t::wlr_cursor_ptr
struct wlr_cursor * wlr_cursor_ptr
Definition
cursor.h:45
_wlmaker_cursor_t::server_ptr
wlmaker_server_t * server_ptr
Definition
cursor.h:42
_wlmaker_cursor_t::seat_request_set_cursor_listener
struct wl_listener seat_request_set_cursor_listener
Definition
cursor.h:64
_wlmaker_cursor_t::motion_listener
struct wl_listener motion_listener
Definition
cursor.h:53
_wlmaker_cursor_t::wlr_xcursor_manager_ptr
struct wlr_xcursor_manager * wlr_xcursor_manager_ptr
Definition
cursor.h:47
_wlmaker_cursor_t::pointer_ptr
wlmtk_pointer_t * pointer_ptr
Definition
cursor.h:50
toolkit.h
Generated by
1.17.0