wlmaker
Loading...
Searching...
No Matches
input.h
Go to the documentation of this file.
1/* ========================================================================= */
20#ifndef __WLMTK_INPUT_H__
21#define __WLMTK_INPUT_H__
22
23#include <stdint.h>
24
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
71
73typedef struct {
75 double x;
77 double y;
79 uint32_t time_msec;
83
93 struct wlr_cursor *wlr_cursor_ptr,
94 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr);
95
101void wlmtk_pointer_destroy(wlmtk_pointer_t *pointer_ptr);
102
107 wlmtk_pointer_t *pointer_ptr,
109
110#ifdef __cplusplus
111} // extern "C"
112#endif // __cplusplus
113
114#endif /* __WLMTK_INPUT_H__ */
115/* == End of input.h ======================================================= */
void wlmtk_pointer_set_cursor(wlmtk_pointer_t *pointer_ptr, wlmtk_pointer_cursor_t cursor)
Definition input.c:72
wlmtk_pointer_t * wlmtk_pointer_create(struct wlr_cursor *wlr_cursor_ptr, struct wlr_xcursor_manager *wlr_xcursor_manager_ptr)
Definition input.c:53
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:66
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
Definition input.c:32
Definition input.h:73
double y
Definition input.h:77
wlmtk_pointer_t * pointer_ptr
Definition input.h:81
uint32_t time_msec
Definition input.h:79
double x
Definition input.h:75