1#ifndef PATCHWORK_EVENT_H
2#define PATCHWORK_EVENT_H 1
15#if defined(__cplusplus)
82#define EVENT_SCREEN_INFO 0
83#define EVENT_SURFACE_NEW 1
87#define EVENT_CURSOR_ENTER 5
88#define EVENT_CURSOR_LEAVE 6
91#define GEVENT_ATTACH 128
92#define GEVENT_DETACH 129
93#define GEVENT_REPORT 130
95#define GEVENT_MOUSE 132
97#define DWM_MAX_EVENT 256
99#define LEVENT_INIT 256
100#define LEVENT_DEINIT 257
101#define LEVENT_REDRAW 258
102#define LEVENT_ACTION 259
103#define LEVENT_QUIT 260
104#define LEVENT_FORCE_ACTION 261
106#define LEVENT_INTERNAL_WAKE 512
108#define UEVENT_START 1024
109#define UEVENT_END 65535
263#define EVENT_MAX_DATA 128
295static_assert(
sizeof(
event_t) == 144,
"invalid event_t size");
300#if defined(__cplusplus)
uint64_t element_id_t
Element identifier type.
event_mouse_t event_cursor_leave_t
Cursor Leave event.
event_report_t gevent_report_t
Global Report event.
report_flags_t
Report flags.
#define EVENT_MAX_DATA
Maximum size of event data.
uint64_t event_bitmask_t[4]
Event bitmask type.
action_type_t
Action type.
uint16_t event_type_t
Event type.
event_mouse_t gevent_mouse_t
Global Mouse event.
event_mouse_t event_cursor_enter_t
Cursor Enter event.
event_kbd_t gevent_kbd_t
Global Keyboard event.
keycode_t
Keyboard keycode type.
kbd_mods_t
Keyboard modifiers type.
kbd_event_type_t
Keyboard event type.
mouse_buttons_t
Mouse buttons enum.
key_t shmemKey
Key that can be claim()ed to access the surface's shared memory.
levent_force_action_t lForceAction
event_surface_new_t surfaceNew
event_cursor_leave_t cursorLeave
gevent_detach_t globalDetach
event_cursor_enter_t cursorEnter
gevent_report_t globalReport
gevent_attach_t globalAttach
gevent_mouse_t globalMouse
event_screen_info_t screenInfo
Library Force Action event.
bool shouldPropagate
Whether the redraw event should be propagated to child elements.