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
25struct wlr_cursor;
26struct wlr_xcursor_manager;
27
28#ifdef __cplusplus
29extern "C" {
30#endif // __cplusplus
31
34
37
39typedef enum {
40 WLMTK_BUTTON_DOWN,
41 WLMTK_BUTTON_UP,
42 WLMTK_BUTTON_CLICK,
43 WLMTK_BUTTON_DOUBLE_CLICK,
45
60
72
74typedef struct {
76 double x;
78 double y;
80 uint32_t time_msec;
84
94 struct wlr_cursor *wlr_cursor_ptr,
95 struct wlr_xcursor_manager *wlr_xcursor_manager_ptr);
96
102void wlmtk_pointer_destroy(wlmtk_pointer_t *pointer_ptr);
103
108 wlmtk_pointer_t *pointer_ptr,
110
111#ifdef __cplusplus
112} // extern "C"
113#endif // __cplusplus
114
115#endif /* __WLMTK_INPUT_H__ */
116/* == 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:47
@ WLMTK_POINTER_CURSOR_RESIZE_SE
Definition input.h:53
@ WLMTK_POINTER_CURSOR_MAX
Definition input.h:58
@ WLMTK_POINTER_CURSOR_DEFAULT
Definition input.h:49
@ WLMTK_POINTER_CURSOR_RESIZE_S
Definition input.h:51
@ WLMTK_POINTER_CURSOR_RESIZE_SW
Definition input.h:55
void wlmtk_pointer_destroy(wlmtk_pointer_t *pointer_ptr)
Definition input.c:66
wlmtk_button_event_type_t
Definition input.h:39
Definition input.h:62
uint32_t time_msec
Definition input.h:68
uint32_t button
Definition input.h:64
wlmtk_button_event_type_t type
Definition input.h:66
uint32_t keyboard_modifiers
Definition input.h:70
Definition input.c:32
Definition input.h:74
double y
Definition input.h:78
wlmtk_pointer_t * pointer_ptr
Definition input.h:82
uint32_t time_msec
Definition input.h:80
double x
Definition input.h:76