PatchworkOS  c9fea19
A non-POSIX operating system.
Loading...
Searching...
No Matches
event.h File Reference
#include "element_id.h"
#include "point.h"
#include "rect.h"
#include "surface.h"
#include <assert.h>
#include <stdint.h>
#include <sys/io.h>
#include <sys/kbd.h>
#include <sys/mouse.h>
Include dependency graph for event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  event_screen_info_t
 Screen Info event. More...
 
struct  event_surface_new_t
 Surface New event. More...
 
struct  event_kbd_t
 Keyboard event. More...
 
struct  event_mouse_t
 Mouse event. More...
 
struct  event_report_t
 Report event. More...
 
struct  event_global_attach_t
 Global Attach event. More...
 
struct  event_global_detach_t
 Global Detach event. More...
 
struct  event_lib_redraw_t
 Library Redraw event. More...
 
struct  event_lib_action_t
 Library Action event. More...
 
struct  event_lib_force_action_t
 Library Force Action event. More...
 
struct  event_t
 Event structure. More...
 

Macros

#define EVENT_SCREEN_INFO   0
 
#define EVENT_SURFACE_NEW   1
 
#define EVENT_KBD   2
 
#define EVENT_MOUSE   3
 
#define EVENT_TIMER   4
 
#define EVENT_CURSOR_ENTER   5
 
#define EVENT_CURSOR_LEAVE   6
 
#define EVENT_REPORT   7
 
#define EVENT_GLOBAL_ATTACH   128
 
#define EVENT_GLOBAL_DETACH   129
 
#define EVENT_GLOBAL_REPORT   130
 
#define EVENT_GLOBAL_KBD   131
 
#define EVENT_GLOBAL_MOUSE   132
 
#define DWM_MAX_EVENT   256
 
#define EVENT_LIB_INIT   256
 
#define EVENT_LIB_DEINIT   257
 
#define EVENT_LIB_REDRAW   258
 
#define EVENT_LIB_ACTION   259
 
#define EVENT_LIB_QUIT   260
 
#define EVENT_LIB_FORCE_ACTION   261
 
#define EVENT_LIB_INTERNAL_WAKE   512
 
#define EVENT_USER_START   1024
 
#define EVENT_USER_END   65535
 
#define EVENT_MAX_DATA   128
 Maximum size of event data.
 

Typedefs

typedef uint16_t event_type_t
 Event type.
 
typedef uint64_t event_bitmask_t[4]
 Event bitmask type.
 
typedef event_mouse_t event_cursor_enter_t
 Cursor Enter event.
 
typedef event_mouse_t event_cursor_leave_t
 Cursor Leave event.
 
typedef event_report_t event_global_report_t
 Global Report event.
 
typedef event_kbd_t event_global_kbd_t
 Global Keyboard event.
 
typedef event_mouse_t event_global_mouse_t
 Global Mouse event.
 

Enumerations

enum  report_flags_t {
  REPORT_NONE = 0 , REPORT_RECT = 1 << 0 , REPORT_IS_VISIBLE = 1 << 1 , REPORT_IS_FOCUSED = 1 << 2 ,
  REPORT_NAME = 1 << 3
}
 Report flags. More...
 
enum  action_type_t { ACTION_NONE = 0 , ACTION_RELEASE , ACTION_PRESS , ACTION_CANCEL }
 Action type. More...