summaryrefslogtreecommitdiff
path: root/lib/libxcb/src/xproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libxcb/src/xproto.h')
-rw-r--r--lib/libxcb/src/xproto.h122
1 files changed, 84 insertions, 38 deletions
diff --git a/lib/libxcb/src/xproto.h b/lib/libxcb/src/xproto.h
index 27a3c3f45..f8c0716bd 100644
--- a/lib/libxcb/src/xproto.h
+++ b/lib/libxcb/src/xproto.h
@@ -316,6 +316,41 @@ typedef struct xcb_depth_iterator_t {
int index; /**< */
} xcb_depth_iterator_t;
+typedef enum xcb_event_mask_t {
+ XCB_EVENT_MASK_NO_EVENT = 0,
+ XCB_EVENT_MASK_KEY_PRESS = 1,
+ XCB_EVENT_MASK_KEY_RELEASE = 2,
+ XCB_EVENT_MASK_BUTTON_PRESS = 4,
+ XCB_EVENT_MASK_BUTTON_RELEASE = 8,
+ XCB_EVENT_MASK_ENTER_WINDOW = 16,
+ XCB_EVENT_MASK_LEAVE_WINDOW = 32,
+ XCB_EVENT_MASK_POINTER_MOTION = 64,
+ XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
+ XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
+ XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
+ XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
+ XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
+ XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
+ XCB_EVENT_MASK_BUTTON_MOTION = 8192,
+ XCB_EVENT_MASK_KEYMAP_STATE = 16384,
+ XCB_EVENT_MASK_EXPOSURE = 32768,
+ XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
+ XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
+ XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
+ XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
+ XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
+ XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
+ XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
+ XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
+ XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
+} xcb_event_mask_t;
+
+typedef enum xcb_backing_store_t {
+ XCB_BACKING_STORE_NOT_USEFUL = 0,
+ XCB_BACKING_STORE_WHEN_MAPPED = 1,
+ XCB_BACKING_STORE_ALWAYS = 2
+} xcb_backing_store_t;
+
/**
* @brief xcb_screen_t
**/
@@ -455,9 +490,30 @@ typedef enum xcb_mod_mask_t {
XCB_MOD_MASK_2 = 16,
XCB_MOD_MASK_3 = 32,
XCB_MOD_MASK_4 = 64,
- XCB_MOD_MASK_5 = 128
+ XCB_MOD_MASK_5 = 128,
+ XCB_MOD_MASK_ANY = 32768
} xcb_mod_mask_t;
+typedef enum xcb_key_but_mask_t {
+ XCB_KEY_BUT_MASK_SHIFT = 1,
+ XCB_KEY_BUT_MASK_LOCK = 2,
+ XCB_KEY_BUT_MASK_CONTROL = 4,
+ XCB_KEY_BUT_MASK_MOD_1 = 8,
+ XCB_KEY_BUT_MASK_MOD_2 = 16,
+ XCB_KEY_BUT_MASK_MOD_3 = 32,
+ XCB_KEY_BUT_MASK_MOD_4 = 64,
+ XCB_KEY_BUT_MASK_MOD_5 = 128,
+ XCB_KEY_BUT_MASK_BUTTON_1 = 256,
+ XCB_KEY_BUT_MASK_BUTTON_2 = 512,
+ XCB_KEY_BUT_MASK_BUTTON_3 = 1024,
+ XCB_KEY_BUT_MASK_BUTTON_4 = 2048,
+ XCB_KEY_BUT_MASK_BUTTON_5 = 4096
+} xcb_key_but_mask_t;
+
+typedef enum xcb_window_enum_t {
+ XCB_WINDOW_NONE = 0
+} xcb_window_enum_t;
+
/** Opcode for xcb_key_press. */
#define XCB_KEY_PRESS 2
@@ -943,6 +999,14 @@ typedef struct xcb_selection_clear_event_t {
xcb_atom_t selection; /**< */
} xcb_selection_clear_event_t;
+typedef enum xcb_time_t {
+ XCB_TIME_CURRENT_TIME = 0
+} xcb_time_t;
+
+typedef enum xcb_atom_enum_t {
+ XCB_ATOM_NONE = 0
+} xcb_atom_enum_t;
+
/** Opcode for xcb_selection_request. */
#define XCB_SELECTION_REQUEST 30
@@ -983,6 +1047,10 @@ typedef enum xcb_colormap_state_t {
XCB_COLORMAP_STATE_INSTALLED = 1
} xcb_colormap_state_t;
+typedef enum xcb_colormap_enum_t {
+ XCB_COLORMAP_NONE = 0
+} xcb_colormap_enum_t;
+
/** Opcode for xcb_colormap_notify. */
#define XCB_COLORMAP_NOTIFY 32
@@ -1206,41 +1274,6 @@ typedef enum xcb_gravity_t {
XCB_GRAVITY_STATIC = 10
} xcb_gravity_t;
-typedef enum xcb_backing_store_t {
- XCB_BACKING_STORE_NOT_USEFUL = 0,
- XCB_BACKING_STORE_WHEN_MAPPED = 1,
- XCB_BACKING_STORE_ALWAYS = 2
-} xcb_backing_store_t;
-
-typedef enum xcb_event_mask_t {
- XCB_EVENT_MASK_NO_EVENT = 0,
- XCB_EVENT_MASK_KEY_PRESS = 1,
- XCB_EVENT_MASK_KEY_RELEASE = 2,
- XCB_EVENT_MASK_BUTTON_PRESS = 4,
- XCB_EVENT_MASK_BUTTON_RELEASE = 8,
- XCB_EVENT_MASK_ENTER_WINDOW = 16,
- XCB_EVENT_MASK_LEAVE_WINDOW = 32,
- XCB_EVENT_MASK_POINTER_MOTION = 64,
- XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
- XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
- XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
- XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
- XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
- XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
- XCB_EVENT_MASK_BUTTON_MOTION = 8192,
- XCB_EVENT_MASK_KEYMAP_STATE = 16384,
- XCB_EVENT_MASK_EXPOSURE = 32768,
- XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
- XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
- XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
- XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
- XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
- XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
- XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
- XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
- XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
-} xcb_event_mask_t;
-
/** Opcode for xcb_create_window. */
#define XCB_CREATE_WINDOW 1
@@ -1834,6 +1867,10 @@ typedef enum xcb_grab_status_t {
XCB_GRAB_STATUS_FROZEN = 4
} xcb_grab_status_t;
+typedef enum xcb_cursor_enum_t {
+ XCB_CURSOR_NONE = 0
+} xcb_cursor_enum_t;
+
/**
* @brief xcb_grab_pointer_cookie_t
**/
@@ -2225,7 +2262,8 @@ typedef struct xcb_warp_pointer_request_t {
typedef enum xcb_input_focus_t {
XCB_INPUT_FOCUS_NONE = 0,
XCB_INPUT_FOCUS_POINTER_ROOT = 1,
- XCB_INPUT_FOCUS_PARENT = 2
+ XCB_INPUT_FOCUS_PARENT = 2,
+ XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
} xcb_input_focus_t;
/** Opcode for xcb_set_input_focus. */
@@ -2682,7 +2720,7 @@ typedef enum xcb_cap_style_t {
} xcb_cap_style_t;
typedef enum xcb_join_style_t {
- XCB_JOIN_STYLE_MITRE = 0,
+ XCB_JOIN_STYLE_MITER = 0,
XCB_JOIN_STYLE_ROUND = 1,
XCB_JOIN_STYLE_BEVEL = 2
} xcb_join_style_t;
@@ -3553,6 +3591,10 @@ typedef struct xcb_lookup_color_reply_t {
uint16_t visual_blue; /**< */
} xcb_lookup_color_reply_t;
+typedef enum xcb_pixmap_enum_t {
+ XCB_PIXMAP_NONE = 0
+} xcb_pixmap_enum_t;
+
/** Opcode for xcb_create_cursor. */
#define XCB_CREATE_CURSOR 93
@@ -3576,6 +3618,10 @@ typedef struct xcb_create_cursor_request_t {
uint16_t y; /**< */
} xcb_create_cursor_request_t;
+typedef enum xcb_font_enum_t {
+ XCB_FONT_NONE = 0
+} xcb_font_enum_t;
+
/** Opcode for xcb_create_glyph_cursor. */
#define XCB_CREATE_GLYPH_CURSOR 94