File indexing completed on 2025-01-18 10:14:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __SCREENSAVER_H
0013 #define __SCREENSAVER_H
0014
0015 #include "xcb.h"
0016 #include "xproto.h"
0017
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021
0022 #define XCB_SCREENSAVER_MAJOR_VERSION 1
0023 #define XCB_SCREENSAVER_MINOR_VERSION 1
0024
0025 extern xcb_extension_t xcb_screensaver_id;
0026
0027 typedef enum xcb_screensaver_kind_t {
0028 XCB_SCREENSAVER_KIND_BLANKED = 0,
0029 XCB_SCREENSAVER_KIND_INTERNAL = 1,
0030 XCB_SCREENSAVER_KIND_EXTERNAL = 2
0031 } xcb_screensaver_kind_t;
0032
0033 typedef enum xcb_screensaver_event_t {
0034 XCB_SCREENSAVER_EVENT_NOTIFY_MASK = 1,
0035 XCB_SCREENSAVER_EVENT_CYCLE_MASK = 2
0036 } xcb_screensaver_event_t;
0037
0038 typedef enum xcb_screensaver_state_t {
0039 XCB_SCREENSAVER_STATE_OFF = 0,
0040 XCB_SCREENSAVER_STATE_ON = 1,
0041 XCB_SCREENSAVER_STATE_CYCLE = 2,
0042 XCB_SCREENSAVER_STATE_DISABLED = 3
0043 } xcb_screensaver_state_t;
0044
0045
0046
0047
0048 typedef struct xcb_screensaver_query_version_cookie_t {
0049 unsigned int sequence;
0050 } xcb_screensaver_query_version_cookie_t;
0051
0052
0053 #define XCB_SCREENSAVER_QUERY_VERSION 0
0054
0055
0056
0057
0058 typedef struct xcb_screensaver_query_version_request_t {
0059 uint8_t major_opcode;
0060 uint8_t minor_opcode;
0061 uint16_t length;
0062 uint8_t client_major_version;
0063 uint8_t client_minor_version;
0064 uint8_t pad0[2];
0065 } xcb_screensaver_query_version_request_t;
0066
0067
0068
0069
0070 typedef struct xcb_screensaver_query_version_reply_t {
0071 uint8_t response_type;
0072 uint8_t pad0;
0073 uint16_t sequence;
0074 uint32_t length;
0075 uint16_t server_major_version;
0076 uint16_t server_minor_version;
0077 uint8_t pad1[20];
0078 } xcb_screensaver_query_version_reply_t;
0079
0080
0081
0082
0083 typedef struct xcb_screensaver_query_info_cookie_t {
0084 unsigned int sequence;
0085 } xcb_screensaver_query_info_cookie_t;
0086
0087
0088 #define XCB_SCREENSAVER_QUERY_INFO 1
0089
0090
0091
0092
0093 typedef struct xcb_screensaver_query_info_request_t {
0094 uint8_t major_opcode;
0095 uint8_t minor_opcode;
0096 uint16_t length;
0097 xcb_drawable_t drawable;
0098 } xcb_screensaver_query_info_request_t;
0099
0100
0101
0102
0103 typedef struct xcb_screensaver_query_info_reply_t {
0104 uint8_t response_type;
0105 uint8_t state;
0106 uint16_t sequence;
0107 uint32_t length;
0108 xcb_window_t saver_window;
0109 uint32_t ms_until_server;
0110 uint32_t ms_since_user_input;
0111 uint32_t event_mask;
0112 uint8_t kind;
0113 uint8_t pad0[7];
0114 } xcb_screensaver_query_info_reply_t;
0115
0116
0117 #define XCB_SCREENSAVER_SELECT_INPUT 2
0118
0119
0120
0121
0122 typedef struct xcb_screensaver_select_input_request_t {
0123 uint8_t major_opcode;
0124 uint8_t minor_opcode;
0125 uint16_t length;
0126 xcb_drawable_t drawable;
0127 uint32_t event_mask;
0128 } xcb_screensaver_select_input_request_t;
0129
0130
0131
0132
0133 typedef struct xcb_screensaver_set_attributes_value_list_t {
0134 xcb_pixmap_t background_pixmap;
0135 uint32_t background_pixel;
0136 xcb_pixmap_t border_pixmap;
0137 uint32_t border_pixel;
0138 uint32_t bit_gravity;
0139 uint32_t win_gravity;
0140 uint32_t backing_store;
0141 uint32_t backing_planes;
0142 uint32_t backing_pixel;
0143 xcb_bool32_t override_redirect;
0144 xcb_bool32_t save_under;
0145 uint32_t event_mask;
0146 uint32_t do_not_propogate_mask;
0147 xcb_colormap_t colormap;
0148 xcb_cursor_t cursor;
0149 } xcb_screensaver_set_attributes_value_list_t;
0150
0151
0152 #define XCB_SCREENSAVER_SET_ATTRIBUTES 3
0153
0154
0155
0156
0157 typedef struct xcb_screensaver_set_attributes_request_t {
0158 uint8_t major_opcode;
0159 uint8_t minor_opcode;
0160 uint16_t length;
0161 xcb_drawable_t drawable;
0162 int16_t x;
0163 int16_t y;
0164 uint16_t width;
0165 uint16_t height;
0166 uint16_t border_width;
0167 uint8_t _class;
0168 uint8_t depth;
0169 xcb_visualid_t visual;
0170 uint32_t value_mask;
0171 } xcb_screensaver_set_attributes_request_t;
0172
0173
0174 #define XCB_SCREENSAVER_UNSET_ATTRIBUTES 4
0175
0176
0177
0178
0179 typedef struct xcb_screensaver_unset_attributes_request_t {
0180 uint8_t major_opcode;
0181 uint8_t minor_opcode;
0182 uint16_t length;
0183 xcb_drawable_t drawable;
0184 } xcb_screensaver_unset_attributes_request_t;
0185
0186
0187 #define XCB_SCREENSAVER_SUSPEND 5
0188
0189
0190
0191
0192 typedef struct xcb_screensaver_suspend_request_t {
0193 uint8_t major_opcode;
0194 uint8_t minor_opcode;
0195 uint16_t length;
0196 uint32_t suspend;
0197 } xcb_screensaver_suspend_request_t;
0198
0199
0200 #define XCB_SCREENSAVER_NOTIFY 0
0201
0202
0203
0204
0205 typedef struct xcb_screensaver_notify_event_t {
0206 uint8_t response_type;
0207 uint8_t state;
0208 uint16_t sequence;
0209 xcb_timestamp_t time;
0210 xcb_window_t root;
0211 xcb_window_t window;
0212 uint8_t kind;
0213 uint8_t forced;
0214 uint8_t pad0[14];
0215 } xcb_screensaver_notify_event_t;
0216
0217
0218
0219
0220
0221
0222
0223
0224
0225 xcb_screensaver_query_version_cookie_t
0226 xcb_screensaver_query_version (xcb_connection_t *c,
0227 uint8_t client_major_version,
0228 uint8_t client_minor_version);
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239
0240
0241 xcb_screensaver_query_version_cookie_t
0242 xcb_screensaver_query_version_unchecked (xcb_connection_t *c,
0243 uint8_t client_major_version,
0244 uint8_t client_minor_version);
0245
0246
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257
0258
0259
0260 xcb_screensaver_query_version_reply_t *
0261 xcb_screensaver_query_version_reply (xcb_connection_t *c,
0262 xcb_screensaver_query_version_cookie_t cookie ,
0263 xcb_generic_error_t **e);
0264
0265
0266
0267
0268
0269
0270
0271
0272
0273 xcb_screensaver_query_info_cookie_t
0274 xcb_screensaver_query_info (xcb_connection_t *c,
0275 xcb_drawable_t drawable);
0276
0277
0278
0279
0280
0281
0282
0283
0284
0285
0286
0287
0288 xcb_screensaver_query_info_cookie_t
0289 xcb_screensaver_query_info_unchecked (xcb_connection_t *c,
0290 xcb_drawable_t drawable);
0291
0292
0293
0294
0295
0296
0297
0298
0299
0300
0301
0302
0303
0304
0305
0306 xcb_screensaver_query_info_reply_t *
0307 xcb_screensaver_query_info_reply (xcb_connection_t *c,
0308 xcb_screensaver_query_info_cookie_t cookie ,
0309 xcb_generic_error_t **e);
0310
0311
0312
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322 xcb_void_cookie_t
0323 xcb_screensaver_select_input_checked (xcb_connection_t *c,
0324 xcb_drawable_t drawable,
0325 uint32_t event_mask);
0326
0327
0328
0329
0330
0331
0332
0333
0334
0335 xcb_void_cookie_t
0336 xcb_screensaver_select_input (xcb_connection_t *c,
0337 xcb_drawable_t drawable,
0338 uint32_t event_mask);
0339
0340 int
0341 xcb_screensaver_set_attributes_value_list_serialize (void **_buffer,
0342 uint32_t value_mask,
0343 const xcb_screensaver_set_attributes_value_list_t *_aux);
0344
0345 int
0346 xcb_screensaver_set_attributes_value_list_unpack (const void *_buffer,
0347 uint32_t value_mask,
0348 xcb_screensaver_set_attributes_value_list_t *_aux);
0349
0350 int
0351 xcb_screensaver_set_attributes_value_list_sizeof (const void *_buffer,
0352 uint32_t value_mask);
0353
0354 int
0355 xcb_screensaver_set_attributes_sizeof (const void *_buffer);
0356
0357
0358
0359
0360
0361
0362
0363
0364
0365
0366
0367
0368 xcb_void_cookie_t
0369 xcb_screensaver_set_attributes_checked (xcb_connection_t *c,
0370 xcb_drawable_t drawable,
0371 int16_t x,
0372 int16_t y,
0373 uint16_t width,
0374 uint16_t height,
0375 uint16_t border_width,
0376 uint8_t _class,
0377 uint8_t depth,
0378 xcb_visualid_t visual,
0379 uint32_t value_mask,
0380 const void *value_list);
0381
0382
0383
0384
0385
0386
0387
0388
0389
0390 xcb_void_cookie_t
0391 xcb_screensaver_set_attributes (xcb_connection_t *c,
0392 xcb_drawable_t drawable,
0393 int16_t x,
0394 int16_t y,
0395 uint16_t width,
0396 uint16_t height,
0397 uint16_t border_width,
0398 uint8_t _class,
0399 uint8_t depth,
0400 xcb_visualid_t visual,
0401 uint32_t value_mask,
0402 const void *value_list);
0403
0404
0405
0406
0407
0408
0409
0410
0411
0412
0413
0414
0415 xcb_void_cookie_t
0416 xcb_screensaver_set_attributes_aux_checked (xcb_connection_t *c,
0417 xcb_drawable_t drawable,
0418 int16_t x,
0419 int16_t y,
0420 uint16_t width,
0421 uint16_t height,
0422 uint16_t border_width,
0423 uint8_t _class,
0424 uint8_t depth,
0425 xcb_visualid_t visual,
0426 uint32_t value_mask,
0427 const xcb_screensaver_set_attributes_value_list_t *value_list);
0428
0429
0430
0431
0432
0433
0434
0435
0436
0437 xcb_void_cookie_t
0438 xcb_screensaver_set_attributes_aux (xcb_connection_t *c,
0439 xcb_drawable_t drawable,
0440 int16_t x,
0441 int16_t y,
0442 uint16_t width,
0443 uint16_t height,
0444 uint16_t border_width,
0445 uint8_t _class,
0446 uint8_t depth,
0447 xcb_visualid_t visual,
0448 uint32_t value_mask,
0449 const xcb_screensaver_set_attributes_value_list_t *value_list);
0450
0451 void *
0452 xcb_screensaver_set_attributes_value_list (const xcb_screensaver_set_attributes_request_t *R);
0453
0454
0455
0456
0457
0458
0459
0460
0461
0462
0463
0464
0465 xcb_void_cookie_t
0466 xcb_screensaver_unset_attributes_checked (xcb_connection_t *c,
0467 xcb_drawable_t drawable);
0468
0469
0470
0471
0472
0473
0474
0475
0476
0477 xcb_void_cookie_t
0478 xcb_screensaver_unset_attributes (xcb_connection_t *c,
0479 xcb_drawable_t drawable);
0480
0481
0482
0483
0484
0485
0486
0487
0488
0489
0490
0491
0492 xcb_void_cookie_t
0493 xcb_screensaver_suspend_checked (xcb_connection_t *c,
0494 uint32_t suspend);
0495
0496
0497
0498
0499
0500
0501
0502
0503
0504 xcb_void_cookie_t
0505 xcb_screensaver_suspend (xcb_connection_t *c,
0506 uint32_t suspend);
0507
0508
0509 #ifdef __cplusplus
0510 }
0511 #endif
0512
0513 #endif
0514
0515
0516
0517