wlmaker
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1/* ========================================================================= */
21#ifndef __WLMTK_INPUT_H__
22#define __WLMTK_INPUT_H__
23
24#include <stdint.h>
25
26struct wlr_cursor;
27struct wlr_xcursor_manager;
28
29#ifdef __cplusplus
30extern "C" {
31#endif // __cplusplus
32
35
38
40typedef enum {
41 WLMTK_BUTTON_DOWN,
42 WLMTK_BUTTON_UP,
43 WLMTK_BUTTON_CLICK,
44 WLMTK_BUTTON_DOUBLE_CLICK,
46
61
73
75typedef struct {
77 double x;
79 double y;
81 uint32_t time_msec;
85
95 struct wlr_cursor *wlr_cursor_ptr,
96 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr);
97
103void wlmtk_pointer_destroy(wlmtk_pointer_t *pointer_ptr);
104
112 wlmtk_pointer_t *pointer_ptr,
113 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr);
114
119 wlmtk_pointer_t *pointer_ptr,
121
122#ifdef __cplusplus
123} // extern "C"
124#endif // __cplusplus
125
126#endif /* __WLMTK_INPUT_H__ */
127/* == End of input.h ======================================================= */
void wlmtk_pointer_set_cursor(wlmtk_pointer_t *pointer_ptr, wlmtk_pointer_cursor_t cursor)
Definition input.c:77
wlmtk_pointer_t * wlmtk_pointer_create(struct wlr_cursor *wlr_cursor_ptr, struct wlr_xcursor_manager *wlr_xcursor_manager_ptr)
Definition input.c:57
void wlmtk_pointer_set_xcursor_manager(wlmtk_pointer_t *pointer_ptr, struct wlr_xcursor_manager *wlr_xcursor_manager_ptr)
Definition input.c:95
wlmtk_pointer_cursor_t
Definition input.h:48
@ WLMTK_POINTER_CURSOR_RESIZE_SE
Definition input.h:54
@ WLMTK_POINTER_CURSOR_MAX
Definition input.h:59
@ WLMTK_POINTER_CURSOR_DEFAULT
Definition input.h:50
@ WLMTK_POINTER_CURSOR_RESIZE_S
Definition input.h:52
@ WLMTK_POINTER_CURSOR_RESIZE_SW
Definition input.h:56
void wlmtk_pointer_destroy(wlmtk_pointer_t *pointer_ptr)
Definition input.c:71
wlmtk_button_event_type_t
Definition input.h:40
Definition input.h:63
uint32_t time_msec
Definition input.h:69
uint32_t button
Definition input.h:65
wlmtk_button_event_type_t type
Definition input.h:67
uint32_t keyboard_modifiers
Definition input.h:71
Definition input.c:34
Definition input.h:75
double y
Definition input.h:79
wlmtk_pointer_t * pointer_ptr
Definition input.h:83
uint32_t time_msec
Definition input.h:81
double x
Definition input.h:77