12 #ifndef __SCREENSAVER_H 13 #define __SCREENSAVER_H 22 #define XCB_SCREENSAVER_MAJOR_VERSION 1 23 #define XCB_SCREENSAVER_MINOR_VERSION 1 27 typedef enum xcb_screensaver_kind_t {
28 XCB_SCREENSAVER_KIND_BLANKED = 0,
29 XCB_SCREENSAVER_KIND_INTERNAL = 1,
30 XCB_SCREENSAVER_KIND_EXTERNAL = 2
31 } xcb_screensaver_kind_t;
33 typedef enum xcb_screensaver_event_t {
34 XCB_SCREENSAVER_EVENT_NOTIFY_MASK = 1,
35 XCB_SCREENSAVER_EVENT_CYCLE_MASK = 2
36 } xcb_screensaver_event_t;
38 typedef enum xcb_screensaver_state_t {
39 XCB_SCREENSAVER_STATE_OFF = 0,
40 XCB_SCREENSAVER_STATE_ON = 1,
41 XCB_SCREENSAVER_STATE_CYCLE = 2,
42 XCB_SCREENSAVER_STATE_DISABLED = 3
43 } xcb_screensaver_state_t;
49 unsigned int sequence;
53 #define XCB_SCREENSAVER_QUERY_VERSION 0 62 uint8_t client_major_version;
63 uint8_t client_minor_version;
71 uint8_t response_type;
75 uint16_t server_major_version;
76 uint16_t server_minor_version;
84 unsigned int sequence;
88 #define XCB_SCREENSAVER_QUERY_INFO 1 97 xcb_drawable_t drawable;
104 uint8_t response_type;
108 xcb_window_t saver_window;
109 uint32_t ms_until_server;
110 uint32_t ms_since_user_input;
117 #define XCB_SCREENSAVER_SELECT_INPUT 2 123 uint8_t major_opcode;
124 uint8_t minor_opcode;
126 xcb_drawable_t drawable;
134 xcb_pixmap_t background_pixmap;
135 uint32_t background_pixel;
136 xcb_pixmap_t border_pixmap;
137 uint32_t border_pixel;
138 uint32_t bit_gravity;
139 uint32_t win_gravity;
140 uint32_t backing_store;
141 uint32_t backing_planes;
142 uint32_t backing_pixel;
143 xcb_bool32_t override_redirect;
144 xcb_bool32_t save_under;
146 uint32_t do_not_propogate_mask;
147 xcb_colormap_t colormap;
152 #define XCB_SCREENSAVER_SET_ATTRIBUTES 3 158 uint8_t major_opcode;
159 uint8_t minor_opcode;
161 xcb_drawable_t drawable;
166 uint16_t border_width;
169 xcb_visualid_t visual;
174 #define XCB_SCREENSAVER_UNSET_ATTRIBUTES 4 180 uint8_t major_opcode;
181 uint8_t minor_opcode;
183 xcb_drawable_t drawable;
187 #define XCB_SCREENSAVER_SUSPEND 5 193 uint8_t major_opcode;
194 uint8_t minor_opcode;
201 #define XCB_SCREENSAVER_NOTIFY 0 207 uint8_t response_type;
210 xcb_timestamp_t time;
228 uint8_t client_major_version,
229 uint8_t client_minor_version);
244 uint8_t client_major_version,
245 uint8_t client_minor_version);
276 xcb_drawable_t drawable);
291 xcb_drawable_t drawable);
325 xcb_drawable_t drawable,
326 uint32_t event_mask);
338 xcb_drawable_t drawable,
339 uint32_t event_mask);
342 xcb_screensaver_set_attributes_value_list_serialize (
void **_buffer,
347 xcb_screensaver_set_attributes_value_list_unpack (
const void *_buffer,
352 xcb_screensaver_set_attributes_value_list_sizeof (
const void *_buffer,
353 uint32_t value_mask);
356 xcb_screensaver_set_attributes_sizeof (
const void *_buffer);
371 xcb_drawable_t drawable,
376 uint16_t border_width,
379 xcb_visualid_t visual,
381 const void *value_list);
393 xcb_drawable_t drawable,
398 uint16_t border_width,
401 xcb_visualid_t visual,
403 const void *value_list);
418 xcb_drawable_t drawable,
423 uint16_t border_width,
426 xcb_visualid_t visual,
440 xcb_drawable_t drawable,
445 uint16_t border_width,
448 xcb_visualid_t visual,
468 xcb_drawable_t drawable);
480 xcb_drawable_t drawable);
struct xcb_screensaver_set_attributes_request_t xcb_screensaver_set_attributes_request_t
xcb_screensaver_set_attributes_request_t
struct xcb_screensaver_unset_attributes_request_t xcb_screensaver_unset_attributes_request_t
xcb_screensaver_unset_attributes_request_t
Generic error.
Definition: xcb.h:170
xcb_void_cookie_t xcb_screensaver_set_attributes_aux_checked(xcb_connection_t *c, xcb_drawable_t drawable, int16_t x, int16_t y, uint16_t width, uint16_t height, uint16_t border_width, uint8_t _class, uint8_t depth, xcb_visualid_t visual, uint32_t value_mask, const xcb_screensaver_set_attributes_value_list_t *value_list)
Definition: screensaver.c:639
xcb_void_cookie_t xcb_screensaver_unset_attributes(xcb_connection_t *c, xcb_drawable_t drawable)
Definition: screensaver.c:773
xcb_screensaver_query_info_reply_t * xcb_screensaver_query_info_reply(xcb_connection_t *c, xcb_screensaver_query_info_cookie_t cookie, xcb_generic_error_t **e)
Definition: screensaver.c:140
struct xcb_screensaver_query_info_request_t xcb_screensaver_query_info_request_t
xcb_screensaver_query_info_request_t
struct xcb_screensaver_suspend_request_t xcb_screensaver_suspend_request_t
xcb_screensaver_suspend_request_t
struct xcb_screensaver_select_input_request_t xcb_screensaver_select_input_request_t
xcb_screensaver_select_input_request_t
struct xcb_screensaver_query_version_reply_t xcb_screensaver_query_version_reply_t
xcb_screensaver_query_version_reply_t
xcb_screensaver_query_version_reply_t
Definition: screensaver.h:70
xcb_void_cookie_t xcb_screensaver_set_attributes(xcb_connection_t *c, xcb_drawable_t drawable, int16_t x, int16_t y, uint16_t width, uint16_t height, uint16_t border_width, uint8_t _class, uint8_t depth, xcb_visualid_t visual, uint32_t value_mask, const void *value_list)
Definition: screensaver.c:590
xcb_void_cookie_t xcb_screensaver_set_attributes_checked(xcb_connection_t *c, xcb_drawable_t drawable, int16_t x, int16_t y, uint16_t width, uint16_t height, uint16_t border_width, uint8_t _class, uint8_t depth, xcb_visualid_t visual, uint32_t value_mask, const void *value_list)
Definition: screensaver.c:541
xcb_screensaver_query_version_reply_t * xcb_screensaver_query_version_reply(xcb_connection_t *c, xcb_screensaver_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: screensaver.c:80
struct xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version_cookie_t
xcb_screensaver_query_version_cookie_t
struct xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info_cookie_t
xcb_screensaver_query_info_cookie_t
struct xcb_screensaver_set_attributes_value_list_t xcb_screensaver_set_attributes_value_list_t
xcb_screensaver_set_attributes_value_list_t
xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info(xcb_connection_t *c, xcb_drawable_t drawable)
Definition: screensaver.c:88
xcb_screensaver_notify_event_t
Definition: screensaver.h:206
xcb_void_cookie_t xcb_screensaver_suspend_checked(xcb_connection_t *c, uint8_t suspend)
Definition: screensaver.c:799
xcb_screensaver_query_version_cookie_t
Definition: screensaver.h:48
xcb_screensaver_unset_attributes_request_t
Definition: screensaver.h:179
xcb_void_cookie_t xcb_screensaver_suspend(xcb_connection_t *c, uint8_t suspend)
Definition: screensaver.c:826
xcb_void_cookie_t xcb_screensaver_select_input_checked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t event_mask)
Definition: screensaver.c:148
xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version_unchecked(xcb_connection_t *c, uint8_t client_major_version, uint8_t client_minor_version)
Definition: screensaver.c:51
xcb_screensaver_query_info_request_t
Definition: screensaver.h:93
xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version(xcb_connection_t *c, uint8_t client_major_version, uint8_t client_minor_version)
Definition: screensaver.c:22
xcb_screensaver_suspend_request_t
Definition: screensaver.h:192
xcb_screensaver_set_attributes_value_list_t
Definition: screensaver.h:133
xcb_void_cookie_t xcb_screensaver_unset_attributes_checked(xcb_connection_t *c, xcb_drawable_t drawable)
Definition: screensaver.c:747
xcb_void_cookie_t xcb_screensaver_select_input(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t event_mask)
Definition: screensaver.c:176
xcb_void_cookie_t xcb_screensaver_set_attributes_aux(xcb_connection_t *c, xcb_drawable_t drawable, int16_t x, int16_t y, uint16_t width, uint16_t height, uint16_t border_width, uint8_t _class, uint8_t depth, xcb_visualid_t visual, uint32_t value_mask, const xcb_screensaver_set_attributes_value_list_t *value_list)
Definition: screensaver.c:690
xcb_screensaver_query_info_cookie_t
Definition: screensaver.h:83
xcb_screensaver_set_attributes_request_t
Definition: screensaver.h:157
xcb_screensaver_query_version_request_t
Definition: screensaver.h:58
xcb_screensaver_query_info_reply_t
Definition: screensaver.h:103
xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info_unchecked(xcb_connection_t *c, xcb_drawable_t drawable)
Definition: screensaver.c:114
Generic cookie.
Definition: xcb.h:187
struct xcb_screensaver_notify_event_t xcb_screensaver_notify_event_t
xcb_screensaver_notify_event_t
struct xcb_screensaver_query_info_reply_t xcb_screensaver_query_info_reply_t
xcb_screensaver_query_info_reply_t
struct xcb_screensaver_query_version_request_t xcb_screensaver_query_version_request_t
xcb_screensaver_query_version_request_t