xfixes.h 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005
  1. /*
  2. * This file generated automatically from xfixes.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_XFixes_API XCB XFixes API
  7. * @brief XFixes XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __XFIXES_H
  11. #define __XFIXES_H
  12. #include "xcb.h"
  13. #include "xproto.h"
  14. #include "render.h"
  15. #include "shape.h"
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #define XCB_XFIXES_MAJOR_VERSION 5
  20. #define XCB_XFIXES_MINOR_VERSION 0
  21. extern xcb_extension_t xcb_xfixes_id;
  22. /**
  23. * @brief xcb_xfixes_query_version_cookie_t
  24. **/
  25. typedef struct xcb_xfixes_query_version_cookie_t {
  26. unsigned int sequence;
  27. } xcb_xfixes_query_version_cookie_t;
  28. /** Opcode for xcb_xfixes_query_version. */
  29. #define XCB_XFIXES_QUERY_VERSION 0
  30. /**
  31. * @brief xcb_xfixes_query_version_request_t
  32. **/
  33. typedef struct xcb_xfixes_query_version_request_t {
  34. uint8_t major_opcode;
  35. uint8_t minor_opcode;
  36. uint16_t length;
  37. uint32_t client_major_version;
  38. uint32_t client_minor_version;
  39. } xcb_xfixes_query_version_request_t;
  40. /**
  41. * @brief xcb_xfixes_query_version_reply_t
  42. **/
  43. typedef struct xcb_xfixes_query_version_reply_t {
  44. uint8_t response_type;
  45. uint8_t pad0;
  46. uint16_t sequence;
  47. uint32_t length;
  48. uint32_t major_version;
  49. uint32_t minor_version;
  50. uint8_t pad1[16];
  51. } xcb_xfixes_query_version_reply_t;
  52. typedef enum xcb_xfixes_save_set_mode_t {
  53. XCB_XFIXES_SAVE_SET_MODE_INSERT = 0,
  54. XCB_XFIXES_SAVE_SET_MODE_DELETE = 1
  55. } xcb_xfixes_save_set_mode_t;
  56. typedef enum xcb_xfixes_save_set_target_t {
  57. XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0,
  58. XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1
  59. } xcb_xfixes_save_set_target_t;
  60. typedef enum xcb_xfixes_save_set_mapping_t {
  61. XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0,
  62. XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1
  63. } xcb_xfixes_save_set_mapping_t;
  64. /** Opcode for xcb_xfixes_change_save_set. */
  65. #define XCB_XFIXES_CHANGE_SAVE_SET 1
  66. /**
  67. * @brief xcb_xfixes_change_save_set_request_t
  68. **/
  69. typedef struct xcb_xfixes_change_save_set_request_t {
  70. uint8_t major_opcode;
  71. uint8_t minor_opcode;
  72. uint16_t length;
  73. uint8_t mode;
  74. uint8_t target;
  75. uint8_t map;
  76. uint8_t pad0;
  77. xcb_window_t window;
  78. } xcb_xfixes_change_save_set_request_t;
  79. typedef enum xcb_xfixes_selection_event_t {
  80. XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0,
  81. XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1,
  82. XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2
  83. } xcb_xfixes_selection_event_t;
  84. typedef enum xcb_xfixes_selection_event_mask_t {
  85. XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1,
  86. XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2,
  87. XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4
  88. } xcb_xfixes_selection_event_mask_t;
  89. /** Opcode for xcb_xfixes_selection_notify. */
  90. #define XCB_XFIXES_SELECTION_NOTIFY 0
  91. /**
  92. * @brief xcb_xfixes_selection_notify_event_t
  93. **/
  94. typedef struct xcb_xfixes_selection_notify_event_t {
  95. uint8_t response_type;
  96. uint8_t subtype;
  97. uint16_t sequence;
  98. xcb_window_t window;
  99. xcb_window_t owner;
  100. xcb_atom_t selection;
  101. xcb_timestamp_t timestamp;
  102. xcb_timestamp_t selection_timestamp;
  103. uint8_t pad0[8];
  104. } xcb_xfixes_selection_notify_event_t;
  105. /** Opcode for xcb_xfixes_select_selection_input. */
  106. #define XCB_XFIXES_SELECT_SELECTION_INPUT 2
  107. /**
  108. * @brief xcb_xfixes_select_selection_input_request_t
  109. **/
  110. typedef struct xcb_xfixes_select_selection_input_request_t {
  111. uint8_t major_opcode;
  112. uint8_t minor_opcode;
  113. uint16_t length;
  114. xcb_window_t window;
  115. xcb_atom_t selection;
  116. uint32_t event_mask;
  117. } xcb_xfixes_select_selection_input_request_t;
  118. typedef enum xcb_xfixes_cursor_notify_t {
  119. XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0
  120. } xcb_xfixes_cursor_notify_t;
  121. typedef enum xcb_xfixes_cursor_notify_mask_t {
  122. XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1
  123. } xcb_xfixes_cursor_notify_mask_t;
  124. /** Opcode for xcb_xfixes_cursor_notify. */
  125. #define XCB_XFIXES_CURSOR_NOTIFY 1
  126. /**
  127. * @brief xcb_xfixes_cursor_notify_event_t
  128. **/
  129. typedef struct xcb_xfixes_cursor_notify_event_t {
  130. uint8_t response_type;
  131. uint8_t subtype;
  132. uint16_t sequence;
  133. xcb_window_t window;
  134. uint32_t cursor_serial;
  135. xcb_timestamp_t timestamp;
  136. xcb_atom_t name;
  137. uint8_t pad0[12];
  138. } xcb_xfixes_cursor_notify_event_t;
  139. /** Opcode for xcb_xfixes_select_cursor_input. */
  140. #define XCB_XFIXES_SELECT_CURSOR_INPUT 3
  141. /**
  142. * @brief xcb_xfixes_select_cursor_input_request_t
  143. **/
  144. typedef struct xcb_xfixes_select_cursor_input_request_t {
  145. uint8_t major_opcode;
  146. uint8_t minor_opcode;
  147. uint16_t length;
  148. xcb_window_t window;
  149. uint32_t event_mask;
  150. } xcb_xfixes_select_cursor_input_request_t;
  151. /**
  152. * @brief xcb_xfixes_get_cursor_image_cookie_t
  153. **/
  154. typedef struct xcb_xfixes_get_cursor_image_cookie_t {
  155. unsigned int sequence;
  156. } xcb_xfixes_get_cursor_image_cookie_t;
  157. /** Opcode for xcb_xfixes_get_cursor_image. */
  158. #define XCB_XFIXES_GET_CURSOR_IMAGE 4
  159. /**
  160. * @brief xcb_xfixes_get_cursor_image_request_t
  161. **/
  162. typedef struct xcb_xfixes_get_cursor_image_request_t {
  163. uint8_t major_opcode;
  164. uint8_t minor_opcode;
  165. uint16_t length;
  166. } xcb_xfixes_get_cursor_image_request_t;
  167. /**
  168. * @brief xcb_xfixes_get_cursor_image_reply_t
  169. **/
  170. typedef struct xcb_xfixes_get_cursor_image_reply_t {
  171. uint8_t response_type;
  172. uint8_t pad0;
  173. uint16_t sequence;
  174. uint32_t length;
  175. int16_t x;
  176. int16_t y;
  177. uint16_t width;
  178. uint16_t height;
  179. uint16_t xhot;
  180. uint16_t yhot;
  181. uint32_t cursor_serial;
  182. uint8_t pad1[8];
  183. } xcb_xfixes_get_cursor_image_reply_t;
  184. typedef uint32_t xcb_xfixes_region_t;
  185. /**
  186. * @brief xcb_xfixes_region_iterator_t
  187. **/
  188. typedef struct xcb_xfixes_region_iterator_t {
  189. xcb_xfixes_region_t *data;
  190. int rem;
  191. int index;
  192. } xcb_xfixes_region_iterator_t;
  193. /** Opcode for xcb_xfixes_bad_region. */
  194. #define XCB_XFIXES_BAD_REGION 0
  195. /**
  196. * @brief xcb_xfixes_bad_region_error_t
  197. **/
  198. typedef struct xcb_xfixes_bad_region_error_t {
  199. uint8_t response_type;
  200. uint8_t error_code;
  201. uint16_t sequence;
  202. } xcb_xfixes_bad_region_error_t;
  203. typedef enum xcb_xfixes_region_enum_t {
  204. XCB_XFIXES_REGION_NONE = 0
  205. } xcb_xfixes_region_enum_t;
  206. /** Opcode for xcb_xfixes_create_region. */
  207. #define XCB_XFIXES_CREATE_REGION 5
  208. /**
  209. * @brief xcb_xfixes_create_region_request_t
  210. **/
  211. typedef struct xcb_xfixes_create_region_request_t {
  212. uint8_t major_opcode;
  213. uint8_t minor_opcode;
  214. uint16_t length;
  215. xcb_xfixes_region_t region;
  216. } xcb_xfixes_create_region_request_t;
  217. /** Opcode for xcb_xfixes_create_region_from_bitmap. */
  218. #define XCB_XFIXES_CREATE_REGION_FROM_BITMAP 6
  219. /**
  220. * @brief xcb_xfixes_create_region_from_bitmap_request_t
  221. **/
  222. typedef struct xcb_xfixes_create_region_from_bitmap_request_t {
  223. uint8_t major_opcode;
  224. uint8_t minor_opcode;
  225. uint16_t length;
  226. xcb_xfixes_region_t region;
  227. xcb_pixmap_t bitmap;
  228. } xcb_xfixes_create_region_from_bitmap_request_t;
  229. /** Opcode for xcb_xfixes_create_region_from_window. */
  230. #define XCB_XFIXES_CREATE_REGION_FROM_WINDOW 7
  231. /**
  232. * @brief xcb_xfixes_create_region_from_window_request_t
  233. **/
  234. typedef struct xcb_xfixes_create_region_from_window_request_t {
  235. uint8_t major_opcode;
  236. uint8_t minor_opcode;
  237. uint16_t length;
  238. xcb_xfixes_region_t region;
  239. xcb_window_t window;
  240. xcb_shape_kind_t kind;
  241. uint8_t pad0[3];
  242. } xcb_xfixes_create_region_from_window_request_t;
  243. /** Opcode for xcb_xfixes_create_region_from_gc. */
  244. #define XCB_XFIXES_CREATE_REGION_FROM_GC 8
  245. /**
  246. * @brief xcb_xfixes_create_region_from_gc_request_t
  247. **/
  248. typedef struct xcb_xfixes_create_region_from_gc_request_t {
  249. uint8_t major_opcode;
  250. uint8_t minor_opcode;
  251. uint16_t length;
  252. xcb_xfixes_region_t region;
  253. xcb_gcontext_t gc;
  254. } xcb_xfixes_create_region_from_gc_request_t;
  255. /** Opcode for xcb_xfixes_create_region_from_picture. */
  256. #define XCB_XFIXES_CREATE_REGION_FROM_PICTURE 9
  257. /**
  258. * @brief xcb_xfixes_create_region_from_picture_request_t
  259. **/
  260. typedef struct xcb_xfixes_create_region_from_picture_request_t {
  261. uint8_t major_opcode;
  262. uint8_t minor_opcode;
  263. uint16_t length;
  264. xcb_xfixes_region_t region;
  265. xcb_render_picture_t picture;
  266. } xcb_xfixes_create_region_from_picture_request_t;
  267. /** Opcode for xcb_xfixes_destroy_region. */
  268. #define XCB_XFIXES_DESTROY_REGION 10
  269. /**
  270. * @brief xcb_xfixes_destroy_region_request_t
  271. **/
  272. typedef struct xcb_xfixes_destroy_region_request_t {
  273. uint8_t major_opcode;
  274. uint8_t minor_opcode;
  275. uint16_t length;
  276. xcb_xfixes_region_t region;
  277. } xcb_xfixes_destroy_region_request_t;
  278. /** Opcode for xcb_xfixes_set_region. */
  279. #define XCB_XFIXES_SET_REGION 11
  280. /**
  281. * @brief xcb_xfixes_set_region_request_t
  282. **/
  283. typedef struct xcb_xfixes_set_region_request_t {
  284. uint8_t major_opcode;
  285. uint8_t minor_opcode;
  286. uint16_t length;
  287. xcb_xfixes_region_t region;
  288. } xcb_xfixes_set_region_request_t;
  289. /** Opcode for xcb_xfixes_copy_region. */
  290. #define XCB_XFIXES_COPY_REGION 12
  291. /**
  292. * @brief xcb_xfixes_copy_region_request_t
  293. **/
  294. typedef struct xcb_xfixes_copy_region_request_t {
  295. uint8_t major_opcode;
  296. uint8_t minor_opcode;
  297. uint16_t length;
  298. xcb_xfixes_region_t source;
  299. xcb_xfixes_region_t destination;
  300. } xcb_xfixes_copy_region_request_t;
  301. /** Opcode for xcb_xfixes_union_region. */
  302. #define XCB_XFIXES_UNION_REGION 13
  303. /**
  304. * @brief xcb_xfixes_union_region_request_t
  305. **/
  306. typedef struct xcb_xfixes_union_region_request_t {
  307. uint8_t major_opcode;
  308. uint8_t minor_opcode;
  309. uint16_t length;
  310. xcb_xfixes_region_t source1;
  311. xcb_xfixes_region_t source2;
  312. xcb_xfixes_region_t destination;
  313. } xcb_xfixes_union_region_request_t;
  314. /** Opcode for xcb_xfixes_intersect_region. */
  315. #define XCB_XFIXES_INTERSECT_REGION 14
  316. /**
  317. * @brief xcb_xfixes_intersect_region_request_t
  318. **/
  319. typedef struct xcb_xfixes_intersect_region_request_t {
  320. uint8_t major_opcode;
  321. uint8_t minor_opcode;
  322. uint16_t length;
  323. xcb_xfixes_region_t source1;
  324. xcb_xfixes_region_t source2;
  325. xcb_xfixes_region_t destination;
  326. } xcb_xfixes_intersect_region_request_t;
  327. /** Opcode for xcb_xfixes_subtract_region. */
  328. #define XCB_XFIXES_SUBTRACT_REGION 15
  329. /**
  330. * @brief xcb_xfixes_subtract_region_request_t
  331. **/
  332. typedef struct xcb_xfixes_subtract_region_request_t {
  333. uint8_t major_opcode;
  334. uint8_t minor_opcode;
  335. uint16_t length;
  336. xcb_xfixes_region_t source1;
  337. xcb_xfixes_region_t source2;
  338. xcb_xfixes_region_t destination;
  339. } xcb_xfixes_subtract_region_request_t;
  340. /** Opcode for xcb_xfixes_invert_region. */
  341. #define XCB_XFIXES_INVERT_REGION 16
  342. /**
  343. * @brief xcb_xfixes_invert_region_request_t
  344. **/
  345. typedef struct xcb_xfixes_invert_region_request_t {
  346. uint8_t major_opcode;
  347. uint8_t minor_opcode;
  348. uint16_t length;
  349. xcb_xfixes_region_t source;
  350. xcb_rectangle_t bounds;
  351. xcb_xfixes_region_t destination;
  352. } xcb_xfixes_invert_region_request_t;
  353. /** Opcode for xcb_xfixes_translate_region. */
  354. #define XCB_XFIXES_TRANSLATE_REGION 17
  355. /**
  356. * @brief xcb_xfixes_translate_region_request_t
  357. **/
  358. typedef struct xcb_xfixes_translate_region_request_t {
  359. uint8_t major_opcode;
  360. uint8_t minor_opcode;
  361. uint16_t length;
  362. xcb_xfixes_region_t region;
  363. int16_t dx;
  364. int16_t dy;
  365. } xcb_xfixes_translate_region_request_t;
  366. /** Opcode for xcb_xfixes_region_extents. */
  367. #define XCB_XFIXES_REGION_EXTENTS 18
  368. /**
  369. * @brief xcb_xfixes_region_extents_request_t
  370. **/
  371. typedef struct xcb_xfixes_region_extents_request_t {
  372. uint8_t major_opcode;
  373. uint8_t minor_opcode;
  374. uint16_t length;
  375. xcb_xfixes_region_t source;
  376. xcb_xfixes_region_t destination;
  377. } xcb_xfixes_region_extents_request_t;
  378. /**
  379. * @brief xcb_xfixes_fetch_region_cookie_t
  380. **/
  381. typedef struct xcb_xfixes_fetch_region_cookie_t {
  382. unsigned int sequence;
  383. } xcb_xfixes_fetch_region_cookie_t;
  384. /** Opcode for xcb_xfixes_fetch_region. */
  385. #define XCB_XFIXES_FETCH_REGION 19
  386. /**
  387. * @brief xcb_xfixes_fetch_region_request_t
  388. **/
  389. typedef struct xcb_xfixes_fetch_region_request_t {
  390. uint8_t major_opcode;
  391. uint8_t minor_opcode;
  392. uint16_t length;
  393. xcb_xfixes_region_t region;
  394. } xcb_xfixes_fetch_region_request_t;
  395. /**
  396. * @brief xcb_xfixes_fetch_region_reply_t
  397. **/
  398. typedef struct xcb_xfixes_fetch_region_reply_t {
  399. uint8_t response_type;
  400. uint8_t pad0;
  401. uint16_t sequence;
  402. uint32_t length;
  403. xcb_rectangle_t extents;
  404. uint8_t pad1[16];
  405. } xcb_xfixes_fetch_region_reply_t;
  406. /** Opcode for xcb_xfixes_set_gc_clip_region. */
  407. #define XCB_XFIXES_SET_GC_CLIP_REGION 20
  408. /**
  409. * @brief xcb_xfixes_set_gc_clip_region_request_t
  410. **/
  411. typedef struct xcb_xfixes_set_gc_clip_region_request_t {
  412. uint8_t major_opcode;
  413. uint8_t minor_opcode;
  414. uint16_t length;
  415. xcb_gcontext_t gc;
  416. xcb_xfixes_region_t region;
  417. int16_t x_origin;
  418. int16_t y_origin;
  419. } xcb_xfixes_set_gc_clip_region_request_t;
  420. /** Opcode for xcb_xfixes_set_window_shape_region. */
  421. #define XCB_XFIXES_SET_WINDOW_SHAPE_REGION 21
  422. /**
  423. * @brief xcb_xfixes_set_window_shape_region_request_t
  424. **/
  425. typedef struct xcb_xfixes_set_window_shape_region_request_t {
  426. uint8_t major_opcode;
  427. uint8_t minor_opcode;
  428. uint16_t length;
  429. xcb_window_t dest;
  430. xcb_shape_kind_t dest_kind;
  431. uint8_t pad0[3];
  432. int16_t x_offset;
  433. int16_t y_offset;
  434. xcb_xfixes_region_t region;
  435. } xcb_xfixes_set_window_shape_region_request_t;
  436. /** Opcode for xcb_xfixes_set_picture_clip_region. */
  437. #define XCB_XFIXES_SET_PICTURE_CLIP_REGION 22
  438. /**
  439. * @brief xcb_xfixes_set_picture_clip_region_request_t
  440. **/
  441. typedef struct xcb_xfixes_set_picture_clip_region_request_t {
  442. uint8_t major_opcode;
  443. uint8_t minor_opcode;
  444. uint16_t length;
  445. xcb_render_picture_t picture;
  446. xcb_xfixes_region_t region;
  447. int16_t x_origin;
  448. int16_t y_origin;
  449. } xcb_xfixes_set_picture_clip_region_request_t;
  450. /** Opcode for xcb_xfixes_set_cursor_name. */
  451. #define XCB_XFIXES_SET_CURSOR_NAME 23
  452. /**
  453. * @brief xcb_xfixes_set_cursor_name_request_t
  454. **/
  455. typedef struct xcb_xfixes_set_cursor_name_request_t {
  456. uint8_t major_opcode;
  457. uint8_t minor_opcode;
  458. uint16_t length;
  459. xcb_cursor_t cursor;
  460. uint16_t nbytes;
  461. uint8_t pad0[2];
  462. } xcb_xfixes_set_cursor_name_request_t;
  463. /**
  464. * @brief xcb_xfixes_get_cursor_name_cookie_t
  465. **/
  466. typedef struct xcb_xfixes_get_cursor_name_cookie_t {
  467. unsigned int sequence;
  468. } xcb_xfixes_get_cursor_name_cookie_t;
  469. /** Opcode for xcb_xfixes_get_cursor_name. */
  470. #define XCB_XFIXES_GET_CURSOR_NAME 24
  471. /**
  472. * @brief xcb_xfixes_get_cursor_name_request_t
  473. **/
  474. typedef struct xcb_xfixes_get_cursor_name_request_t {
  475. uint8_t major_opcode;
  476. uint8_t minor_opcode;
  477. uint16_t length;
  478. xcb_cursor_t cursor;
  479. } xcb_xfixes_get_cursor_name_request_t;
  480. /**
  481. * @brief xcb_xfixes_get_cursor_name_reply_t
  482. **/
  483. typedef struct xcb_xfixes_get_cursor_name_reply_t {
  484. uint8_t response_type;
  485. uint8_t pad0;
  486. uint16_t sequence;
  487. uint32_t length;
  488. xcb_atom_t atom;
  489. uint16_t nbytes;
  490. uint8_t pad1[18];
  491. } xcb_xfixes_get_cursor_name_reply_t;
  492. /**
  493. * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t
  494. **/
  495. typedef struct xcb_xfixes_get_cursor_image_and_name_cookie_t {
  496. unsigned int sequence;
  497. } xcb_xfixes_get_cursor_image_and_name_cookie_t;
  498. /** Opcode for xcb_xfixes_get_cursor_image_and_name. */
  499. #define XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME 25
  500. /**
  501. * @brief xcb_xfixes_get_cursor_image_and_name_request_t
  502. **/
  503. typedef struct xcb_xfixes_get_cursor_image_and_name_request_t {
  504. uint8_t major_opcode;
  505. uint8_t minor_opcode;
  506. uint16_t length;
  507. } xcb_xfixes_get_cursor_image_and_name_request_t;
  508. /**
  509. * @brief xcb_xfixes_get_cursor_image_and_name_reply_t
  510. **/
  511. typedef struct xcb_xfixes_get_cursor_image_and_name_reply_t {
  512. uint8_t response_type;
  513. uint8_t pad0;
  514. uint16_t sequence;
  515. uint32_t length;
  516. int16_t x;
  517. int16_t y;
  518. uint16_t width;
  519. uint16_t height;
  520. uint16_t xhot;
  521. uint16_t yhot;
  522. uint32_t cursor_serial;
  523. xcb_atom_t cursor_atom;
  524. uint16_t nbytes;
  525. uint8_t pad1[2];
  526. } xcb_xfixes_get_cursor_image_and_name_reply_t;
  527. /** Opcode for xcb_xfixes_change_cursor. */
  528. #define XCB_XFIXES_CHANGE_CURSOR 26
  529. /**
  530. * @brief xcb_xfixes_change_cursor_request_t
  531. **/
  532. typedef struct xcb_xfixes_change_cursor_request_t {
  533. uint8_t major_opcode;
  534. uint8_t minor_opcode;
  535. uint16_t length;
  536. xcb_cursor_t source;
  537. xcb_cursor_t destination;
  538. } xcb_xfixes_change_cursor_request_t;
  539. /** Opcode for xcb_xfixes_change_cursor_by_name. */
  540. #define XCB_XFIXES_CHANGE_CURSOR_BY_NAME 27
  541. /**
  542. * @brief xcb_xfixes_change_cursor_by_name_request_t
  543. **/
  544. typedef struct xcb_xfixes_change_cursor_by_name_request_t {
  545. uint8_t major_opcode;
  546. uint8_t minor_opcode;
  547. uint16_t length;
  548. xcb_cursor_t src;
  549. uint16_t nbytes;
  550. uint8_t pad0[2];
  551. } xcb_xfixes_change_cursor_by_name_request_t;
  552. /** Opcode for xcb_xfixes_expand_region. */
  553. #define XCB_XFIXES_EXPAND_REGION 28
  554. /**
  555. * @brief xcb_xfixes_expand_region_request_t
  556. **/
  557. typedef struct xcb_xfixes_expand_region_request_t {
  558. uint8_t major_opcode;
  559. uint8_t minor_opcode;
  560. uint16_t length;
  561. xcb_xfixes_region_t source;
  562. xcb_xfixes_region_t destination;
  563. uint16_t left;
  564. uint16_t right;
  565. uint16_t top;
  566. uint16_t bottom;
  567. } xcb_xfixes_expand_region_request_t;
  568. /** Opcode for xcb_xfixes_hide_cursor. */
  569. #define XCB_XFIXES_HIDE_CURSOR 29
  570. /**
  571. * @brief xcb_xfixes_hide_cursor_request_t
  572. **/
  573. typedef struct xcb_xfixes_hide_cursor_request_t {
  574. uint8_t major_opcode;
  575. uint8_t minor_opcode;
  576. uint16_t length;
  577. xcb_window_t window;
  578. } xcb_xfixes_hide_cursor_request_t;
  579. /** Opcode for xcb_xfixes_show_cursor. */
  580. #define XCB_XFIXES_SHOW_CURSOR 30
  581. /**
  582. * @brief xcb_xfixes_show_cursor_request_t
  583. **/
  584. typedef struct xcb_xfixes_show_cursor_request_t {
  585. uint8_t major_opcode;
  586. uint8_t minor_opcode;
  587. uint16_t length;
  588. xcb_window_t window;
  589. } xcb_xfixes_show_cursor_request_t;
  590. typedef uint32_t xcb_xfixes_barrier_t;
  591. /**
  592. * @brief xcb_xfixes_barrier_iterator_t
  593. **/
  594. typedef struct xcb_xfixes_barrier_iterator_t {
  595. xcb_xfixes_barrier_t *data;
  596. int rem;
  597. int index;
  598. } xcb_xfixes_barrier_iterator_t;
  599. typedef enum xcb_xfixes_barrier_directions_t {
  600. XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1,
  601. XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2,
  602. XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4,
  603. XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8
  604. } xcb_xfixes_barrier_directions_t;
  605. /** Opcode for xcb_xfixes_create_pointer_barrier. */
  606. #define XCB_XFIXES_CREATE_POINTER_BARRIER 31
  607. /**
  608. * @brief xcb_xfixes_create_pointer_barrier_request_t
  609. **/
  610. typedef struct xcb_xfixes_create_pointer_barrier_request_t {
  611. uint8_t major_opcode;
  612. uint8_t minor_opcode;
  613. uint16_t length;
  614. xcb_xfixes_barrier_t barrier;
  615. xcb_window_t window;
  616. uint16_t x1;
  617. uint16_t y1;
  618. uint16_t x2;
  619. uint16_t y2;
  620. uint32_t directions;
  621. uint8_t pad0[2];
  622. uint16_t num_devices;
  623. } xcb_xfixes_create_pointer_barrier_request_t;
  624. /** Opcode for xcb_xfixes_delete_pointer_barrier. */
  625. #define XCB_XFIXES_DELETE_POINTER_BARRIER 32
  626. /**
  627. * @brief xcb_xfixes_delete_pointer_barrier_request_t
  628. **/
  629. typedef struct xcb_xfixes_delete_pointer_barrier_request_t {
  630. uint8_t major_opcode;
  631. uint8_t minor_opcode;
  632. uint16_t length;
  633. xcb_xfixes_barrier_t barrier;
  634. } xcb_xfixes_delete_pointer_barrier_request_t;
  635. /**
  636. *
  637. * @param c The connection
  638. * @return A cookie
  639. *
  640. * Delivers a request to the X server.
  641. *
  642. */
  643. xcb_xfixes_query_version_cookie_t
  644. xcb_xfixes_query_version (xcb_connection_t *c,
  645. uint32_t client_major_version,
  646. uint32_t client_minor_version);
  647. /**
  648. *
  649. * @param c The connection
  650. * @return A cookie
  651. *
  652. * Delivers a request to the X server.
  653. *
  654. * This form can be used only if the request will cause
  655. * a reply to be generated. Any returned error will be
  656. * placed in the event queue.
  657. */
  658. xcb_xfixes_query_version_cookie_t
  659. xcb_xfixes_query_version_unchecked (xcb_connection_t *c,
  660. uint32_t client_major_version,
  661. uint32_t client_minor_version);
  662. /**
  663. * Return the reply
  664. * @param c The connection
  665. * @param cookie The cookie
  666. * @param e The xcb_generic_error_t supplied
  667. *
  668. * Returns the reply of the request asked by
  669. *
  670. * The parameter @p e supplied to this function must be NULL if
  671. * xcb_xfixes_query_version_unchecked(). is used.
  672. * Otherwise, it stores the error if any.
  673. *
  674. * The returned value must be freed by the caller using free().
  675. */
  676. xcb_xfixes_query_version_reply_t *
  677. xcb_xfixes_query_version_reply (xcb_connection_t *c,
  678. xcb_xfixes_query_version_cookie_t cookie /**< */,
  679. xcb_generic_error_t **e);
  680. /**
  681. *
  682. * @param c The connection
  683. * @return A cookie
  684. *
  685. * Delivers a request to the X server.
  686. *
  687. * This form can be used only if the request will not cause
  688. * a reply to be generated. Any returned error will be
  689. * saved for handling by xcb_request_check().
  690. */
  691. xcb_void_cookie_t
  692. xcb_xfixes_change_save_set_checked (xcb_connection_t *c,
  693. uint8_t mode,
  694. uint8_t target,
  695. uint8_t map,
  696. xcb_window_t window);
  697. /**
  698. *
  699. * @param c The connection
  700. * @return A cookie
  701. *
  702. * Delivers a request to the X server.
  703. *
  704. */
  705. xcb_void_cookie_t
  706. xcb_xfixes_change_save_set (xcb_connection_t *c,
  707. uint8_t mode,
  708. uint8_t target,
  709. uint8_t map,
  710. xcb_window_t window);
  711. /**
  712. *
  713. * @param c The connection
  714. * @return A cookie
  715. *
  716. * Delivers a request to the X server.
  717. *
  718. * This form can be used only if the request will not cause
  719. * a reply to be generated. Any returned error will be
  720. * saved for handling by xcb_request_check().
  721. */
  722. xcb_void_cookie_t
  723. xcb_xfixes_select_selection_input_checked (xcb_connection_t *c,
  724. xcb_window_t window,
  725. xcb_atom_t selection,
  726. uint32_t event_mask);
  727. /**
  728. *
  729. * @param c The connection
  730. * @return A cookie
  731. *
  732. * Delivers a request to the X server.
  733. *
  734. */
  735. xcb_void_cookie_t
  736. xcb_xfixes_select_selection_input (xcb_connection_t *c,
  737. xcb_window_t window,
  738. xcb_atom_t selection,
  739. uint32_t event_mask);
  740. /**
  741. *
  742. * @param c The connection
  743. * @return A cookie
  744. *
  745. * Delivers a request to the X server.
  746. *
  747. * This form can be used only if the request will not cause
  748. * a reply to be generated. Any returned error will be
  749. * saved for handling by xcb_request_check().
  750. */
  751. xcb_void_cookie_t
  752. xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c,
  753. xcb_window_t window,
  754. uint32_t event_mask);
  755. /**
  756. *
  757. * @param c The connection
  758. * @return A cookie
  759. *
  760. * Delivers a request to the X server.
  761. *
  762. */
  763. xcb_void_cookie_t
  764. xcb_xfixes_select_cursor_input (xcb_connection_t *c,
  765. xcb_window_t window,
  766. uint32_t event_mask);
  767. int
  768. xcb_xfixes_get_cursor_image_sizeof (const void *_buffer);
  769. /**
  770. *
  771. * @param c The connection
  772. * @return A cookie
  773. *
  774. * Delivers a request to the X server.
  775. *
  776. */
  777. xcb_xfixes_get_cursor_image_cookie_t
  778. xcb_xfixes_get_cursor_image (xcb_connection_t *c);
  779. /**
  780. *
  781. * @param c The connection
  782. * @return A cookie
  783. *
  784. * Delivers a request to the X server.
  785. *
  786. * This form can be used only if the request will cause
  787. * a reply to be generated. Any returned error will be
  788. * placed in the event queue.
  789. */
  790. xcb_xfixes_get_cursor_image_cookie_t
  791. xcb_xfixes_get_cursor_image_unchecked (xcb_connection_t *c);
  792. uint32_t *
  793. xcb_xfixes_get_cursor_image_cursor_image (const xcb_xfixes_get_cursor_image_reply_t *R);
  794. int
  795. xcb_xfixes_get_cursor_image_cursor_image_length (const xcb_xfixes_get_cursor_image_reply_t *R);
  796. xcb_generic_iterator_t
  797. xcb_xfixes_get_cursor_image_cursor_image_end (const xcb_xfixes_get_cursor_image_reply_t *R);
  798. /**
  799. * Return the reply
  800. * @param c The connection
  801. * @param cookie The cookie
  802. * @param e The xcb_generic_error_t supplied
  803. *
  804. * Returns the reply of the request asked by
  805. *
  806. * The parameter @p e supplied to this function must be NULL if
  807. * xcb_xfixes_get_cursor_image_unchecked(). is used.
  808. * Otherwise, it stores the error if any.
  809. *
  810. * The returned value must be freed by the caller using free().
  811. */
  812. xcb_xfixes_get_cursor_image_reply_t *
  813. xcb_xfixes_get_cursor_image_reply (xcb_connection_t *c,
  814. xcb_xfixes_get_cursor_image_cookie_t cookie /**< */,
  815. xcb_generic_error_t **e);
  816. /**
  817. * Get the next element of the iterator
  818. * @param i Pointer to a xcb_xfixes_region_iterator_t
  819. *
  820. * Get the next element in the iterator. The member rem is
  821. * decreased by one. The member data points to the next
  822. * element. The member index is increased by sizeof(xcb_xfixes_region_t)
  823. */
  824. void
  825. xcb_xfixes_region_next (xcb_xfixes_region_iterator_t *i);
  826. /**
  827. * Return the iterator pointing to the last element
  828. * @param i An xcb_xfixes_region_iterator_t
  829. * @return The iterator pointing to the last element
  830. *
  831. * Set the current element in the iterator to the last element.
  832. * The member rem is set to 0. The member data points to the
  833. * last element.
  834. */
  835. xcb_generic_iterator_t
  836. xcb_xfixes_region_end (xcb_xfixes_region_iterator_t i);
  837. int
  838. xcb_xfixes_create_region_sizeof (const void *_buffer,
  839. uint32_t rectangles_len);
  840. /**
  841. *
  842. * @param c The connection
  843. * @return A cookie
  844. *
  845. * Delivers a request to the X server.
  846. *
  847. * This form can be used only if the request will not cause
  848. * a reply to be generated. Any returned error will be
  849. * saved for handling by xcb_request_check().
  850. */
  851. xcb_void_cookie_t
  852. xcb_xfixes_create_region_checked (xcb_connection_t *c,
  853. xcb_xfixes_region_t region,
  854. uint32_t rectangles_len,
  855. const xcb_rectangle_t *rectangles);
  856. /**
  857. *
  858. * @param c The connection
  859. * @return A cookie
  860. *
  861. * Delivers a request to the X server.
  862. *
  863. */
  864. xcb_void_cookie_t
  865. xcb_xfixes_create_region (xcb_connection_t *c,
  866. xcb_xfixes_region_t region,
  867. uint32_t rectangles_len,
  868. const xcb_rectangle_t *rectangles);
  869. xcb_rectangle_t *
  870. xcb_xfixes_create_region_rectangles (const xcb_xfixes_create_region_request_t *R);
  871. int
  872. xcb_xfixes_create_region_rectangles_length (const xcb_xfixes_create_region_request_t *R);
  873. xcb_rectangle_iterator_t
  874. xcb_xfixes_create_region_rectangles_iterator (const xcb_xfixes_create_region_request_t *R);
  875. /**
  876. *
  877. * @param c The connection
  878. * @return A cookie
  879. *
  880. * Delivers a request to the X server.
  881. *
  882. * This form can be used only if the request will not cause
  883. * a reply to be generated. Any returned error will be
  884. * saved for handling by xcb_request_check().
  885. */
  886. xcb_void_cookie_t
  887. xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c,
  888. xcb_xfixes_region_t region,
  889. xcb_pixmap_t bitmap);
  890. /**
  891. *
  892. * @param c The connection
  893. * @return A cookie
  894. *
  895. * Delivers a request to the X server.
  896. *
  897. */
  898. xcb_void_cookie_t
  899. xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c,
  900. xcb_xfixes_region_t region,
  901. xcb_pixmap_t bitmap);
  902. /**
  903. *
  904. * @param c The connection
  905. * @return A cookie
  906. *
  907. * Delivers a request to the X server.
  908. *
  909. * This form can be used only if the request will not cause
  910. * a reply to be generated. Any returned error will be
  911. * saved for handling by xcb_request_check().
  912. */
  913. xcb_void_cookie_t
  914. xcb_xfixes_create_region_from_window_checked (xcb_connection_t *c,
  915. xcb_xfixes_region_t region,
  916. xcb_window_t window,
  917. xcb_shape_kind_t kind);
  918. /**
  919. *
  920. * @param c The connection
  921. * @return A cookie
  922. *
  923. * Delivers a request to the X server.
  924. *
  925. */
  926. xcb_void_cookie_t
  927. xcb_xfixes_create_region_from_window (xcb_connection_t *c,
  928. xcb_xfixes_region_t region,
  929. xcb_window_t window,
  930. xcb_shape_kind_t kind);
  931. /**
  932. *
  933. * @param c The connection
  934. * @return A cookie
  935. *
  936. * Delivers a request to the X server.
  937. *
  938. * This form can be used only if the request will not cause
  939. * a reply to be generated. Any returned error will be
  940. * saved for handling by xcb_request_check().
  941. */
  942. xcb_void_cookie_t
  943. xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c,
  944. xcb_xfixes_region_t region,
  945. xcb_gcontext_t gc);
  946. /**
  947. *
  948. * @param c The connection
  949. * @return A cookie
  950. *
  951. * Delivers a request to the X server.
  952. *
  953. */
  954. xcb_void_cookie_t
  955. xcb_xfixes_create_region_from_gc (xcb_connection_t *c,
  956. xcb_xfixes_region_t region,
  957. xcb_gcontext_t gc);
  958. /**
  959. *
  960. * @param c The connection
  961. * @return A cookie
  962. *
  963. * Delivers a request to the X server.
  964. *
  965. * This form can be used only if the request will not cause
  966. * a reply to be generated. Any returned error will be
  967. * saved for handling by xcb_request_check().
  968. */
  969. xcb_void_cookie_t
  970. xcb_xfixes_create_region_from_picture_checked (xcb_connection_t *c,
  971. xcb_xfixes_region_t region,
  972. xcb_render_picture_t picture);
  973. /**
  974. *
  975. * @param c The connection
  976. * @return A cookie
  977. *
  978. * Delivers a request to the X server.
  979. *
  980. */
  981. xcb_void_cookie_t
  982. xcb_xfixes_create_region_from_picture (xcb_connection_t *c,
  983. xcb_xfixes_region_t region,
  984. xcb_render_picture_t picture);
  985. /**
  986. *
  987. * @param c The connection
  988. * @return A cookie
  989. *
  990. * Delivers a request to the X server.
  991. *
  992. * This form can be used only if the request will not cause
  993. * a reply to be generated. Any returned error will be
  994. * saved for handling by xcb_request_check().
  995. */
  996. xcb_void_cookie_t
  997. xcb_xfixes_destroy_region_checked (xcb_connection_t *c,
  998. xcb_xfixes_region_t region);
  999. /**
  1000. *
  1001. * @param c The connection
  1002. * @return A cookie
  1003. *
  1004. * Delivers a request to the X server.
  1005. *
  1006. */
  1007. xcb_void_cookie_t
  1008. xcb_xfixes_destroy_region (xcb_connection_t *c,
  1009. xcb_xfixes_region_t region);
  1010. int
  1011. xcb_xfixes_set_region_sizeof (const void *_buffer,
  1012. uint32_t rectangles_len);
  1013. /**
  1014. *
  1015. * @param c The connection
  1016. * @return A cookie
  1017. *
  1018. * Delivers a request to the X server.
  1019. *
  1020. * This form can be used only if the request will not cause
  1021. * a reply to be generated. Any returned error will be
  1022. * saved for handling by xcb_request_check().
  1023. */
  1024. xcb_void_cookie_t
  1025. xcb_xfixes_set_region_checked (xcb_connection_t *c,
  1026. xcb_xfixes_region_t region,
  1027. uint32_t rectangles_len,
  1028. const xcb_rectangle_t *rectangles);
  1029. /**
  1030. *
  1031. * @param c The connection
  1032. * @return A cookie
  1033. *
  1034. * Delivers a request to the X server.
  1035. *
  1036. */
  1037. xcb_void_cookie_t
  1038. xcb_xfixes_set_region (xcb_connection_t *c,
  1039. xcb_xfixes_region_t region,
  1040. uint32_t rectangles_len,
  1041. const xcb_rectangle_t *rectangles);
  1042. xcb_rectangle_t *
  1043. xcb_xfixes_set_region_rectangles (const xcb_xfixes_set_region_request_t *R);
  1044. int
  1045. xcb_xfixes_set_region_rectangles_length (const xcb_xfixes_set_region_request_t *R);
  1046. xcb_rectangle_iterator_t
  1047. xcb_xfixes_set_region_rectangles_iterator (const xcb_xfixes_set_region_request_t *R);
  1048. /**
  1049. *
  1050. * @param c The connection
  1051. * @return A cookie
  1052. *
  1053. * Delivers a request to the X server.
  1054. *
  1055. * This form can be used only if the request will not cause
  1056. * a reply to be generated. Any returned error will be
  1057. * saved for handling by xcb_request_check().
  1058. */
  1059. xcb_void_cookie_t
  1060. xcb_xfixes_copy_region_checked (xcb_connection_t *c,
  1061. xcb_xfixes_region_t source,
  1062. xcb_xfixes_region_t destination);
  1063. /**
  1064. *
  1065. * @param c The connection
  1066. * @return A cookie
  1067. *
  1068. * Delivers a request to the X server.
  1069. *
  1070. */
  1071. xcb_void_cookie_t
  1072. xcb_xfixes_copy_region (xcb_connection_t *c,
  1073. xcb_xfixes_region_t source,
  1074. xcb_xfixes_region_t destination);
  1075. /**
  1076. *
  1077. * @param c The connection
  1078. * @return A cookie
  1079. *
  1080. * Delivers a request to the X server.
  1081. *
  1082. * This form can be used only if the request will not cause
  1083. * a reply to be generated. Any returned error will be
  1084. * saved for handling by xcb_request_check().
  1085. */
  1086. xcb_void_cookie_t
  1087. xcb_xfixes_union_region_checked (xcb_connection_t *c,
  1088. xcb_xfixes_region_t source1,
  1089. xcb_xfixes_region_t source2,
  1090. xcb_xfixes_region_t destination);
  1091. /**
  1092. *
  1093. * @param c The connection
  1094. * @return A cookie
  1095. *
  1096. * Delivers a request to the X server.
  1097. *
  1098. */
  1099. xcb_void_cookie_t
  1100. xcb_xfixes_union_region (xcb_connection_t *c,
  1101. xcb_xfixes_region_t source1,
  1102. xcb_xfixes_region_t source2,
  1103. xcb_xfixes_region_t destination);
  1104. /**
  1105. *
  1106. * @param c The connection
  1107. * @return A cookie
  1108. *
  1109. * Delivers a request to the X server.
  1110. *
  1111. * This form can be used only if the request will not cause
  1112. * a reply to be generated. Any returned error will be
  1113. * saved for handling by xcb_request_check().
  1114. */
  1115. xcb_void_cookie_t
  1116. xcb_xfixes_intersect_region_checked (xcb_connection_t *c,
  1117. xcb_xfixes_region_t source1,
  1118. xcb_xfixes_region_t source2,
  1119. xcb_xfixes_region_t destination);
  1120. /**
  1121. *
  1122. * @param c The connection
  1123. * @return A cookie
  1124. *
  1125. * Delivers a request to the X server.
  1126. *
  1127. */
  1128. xcb_void_cookie_t
  1129. xcb_xfixes_intersect_region (xcb_connection_t *c,
  1130. xcb_xfixes_region_t source1,
  1131. xcb_xfixes_region_t source2,
  1132. xcb_xfixes_region_t destination);
  1133. /**
  1134. *
  1135. * @param c The connection
  1136. * @return A cookie
  1137. *
  1138. * Delivers a request to the X server.
  1139. *
  1140. * This form can be used only if the request will not cause
  1141. * a reply to be generated. Any returned error will be
  1142. * saved for handling by xcb_request_check().
  1143. */
  1144. xcb_void_cookie_t
  1145. xcb_xfixes_subtract_region_checked (xcb_connection_t *c,
  1146. xcb_xfixes_region_t source1,
  1147. xcb_xfixes_region_t source2,
  1148. xcb_xfixes_region_t destination);
  1149. /**
  1150. *
  1151. * @param c The connection
  1152. * @return A cookie
  1153. *
  1154. * Delivers a request to the X server.
  1155. *
  1156. */
  1157. xcb_void_cookie_t
  1158. xcb_xfixes_subtract_region (xcb_connection_t *c,
  1159. xcb_xfixes_region_t source1,
  1160. xcb_xfixes_region_t source2,
  1161. xcb_xfixes_region_t destination);
  1162. /**
  1163. *
  1164. * @param c The connection
  1165. * @return A cookie
  1166. *
  1167. * Delivers a request to the X server.
  1168. *
  1169. * This form can be used only if the request will not cause
  1170. * a reply to be generated. Any returned error will be
  1171. * saved for handling by xcb_request_check().
  1172. */
  1173. xcb_void_cookie_t
  1174. xcb_xfixes_invert_region_checked (xcb_connection_t *c,
  1175. xcb_xfixes_region_t source,
  1176. xcb_rectangle_t bounds,
  1177. xcb_xfixes_region_t destination);
  1178. /**
  1179. *
  1180. * @param c The connection
  1181. * @return A cookie
  1182. *
  1183. * Delivers a request to the X server.
  1184. *
  1185. */
  1186. xcb_void_cookie_t
  1187. xcb_xfixes_invert_region (xcb_connection_t *c,
  1188. xcb_xfixes_region_t source,
  1189. xcb_rectangle_t bounds,
  1190. xcb_xfixes_region_t destination);
  1191. /**
  1192. *
  1193. * @param c The connection
  1194. * @return A cookie
  1195. *
  1196. * Delivers a request to the X server.
  1197. *
  1198. * This form can be used only if the request will not cause
  1199. * a reply to be generated. Any returned error will be
  1200. * saved for handling by xcb_request_check().
  1201. */
  1202. xcb_void_cookie_t
  1203. xcb_xfixes_translate_region_checked (xcb_connection_t *c,
  1204. xcb_xfixes_region_t region,
  1205. int16_t dx,
  1206. int16_t dy);
  1207. /**
  1208. *
  1209. * @param c The connection
  1210. * @return A cookie
  1211. *
  1212. * Delivers a request to the X server.
  1213. *
  1214. */
  1215. xcb_void_cookie_t
  1216. xcb_xfixes_translate_region (xcb_connection_t *c,
  1217. xcb_xfixes_region_t region,
  1218. int16_t dx,
  1219. int16_t dy);
  1220. /**
  1221. *
  1222. * @param c The connection
  1223. * @return A cookie
  1224. *
  1225. * Delivers a request to the X server.
  1226. *
  1227. * This form can be used only if the request will not cause
  1228. * a reply to be generated. Any returned error will be
  1229. * saved for handling by xcb_request_check().
  1230. */
  1231. xcb_void_cookie_t
  1232. xcb_xfixes_region_extents_checked (xcb_connection_t *c,
  1233. xcb_xfixes_region_t source,
  1234. xcb_xfixes_region_t destination);
  1235. /**
  1236. *
  1237. * @param c The connection
  1238. * @return A cookie
  1239. *
  1240. * Delivers a request to the X server.
  1241. *
  1242. */
  1243. xcb_void_cookie_t
  1244. xcb_xfixes_region_extents (xcb_connection_t *c,
  1245. xcb_xfixes_region_t source,
  1246. xcb_xfixes_region_t destination);
  1247. int
  1248. xcb_xfixes_fetch_region_sizeof (const void *_buffer);
  1249. /**
  1250. *
  1251. * @param c The connection
  1252. * @return A cookie
  1253. *
  1254. * Delivers a request to the X server.
  1255. *
  1256. */
  1257. xcb_xfixes_fetch_region_cookie_t
  1258. xcb_xfixes_fetch_region (xcb_connection_t *c,
  1259. xcb_xfixes_region_t region);
  1260. /**
  1261. *
  1262. * @param c The connection
  1263. * @return A cookie
  1264. *
  1265. * Delivers a request to the X server.
  1266. *
  1267. * This form can be used only if the request will cause
  1268. * a reply to be generated. Any returned error will be
  1269. * placed in the event queue.
  1270. */
  1271. xcb_xfixes_fetch_region_cookie_t
  1272. xcb_xfixes_fetch_region_unchecked (xcb_connection_t *c,
  1273. xcb_xfixes_region_t region);
  1274. xcb_rectangle_t *
  1275. xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R);
  1276. int
  1277. xcb_xfixes_fetch_region_rectangles_length (const xcb_xfixes_fetch_region_reply_t *R);
  1278. xcb_rectangle_iterator_t
  1279. xcb_xfixes_fetch_region_rectangles_iterator (const xcb_xfixes_fetch_region_reply_t *R);
  1280. /**
  1281. * Return the reply
  1282. * @param c The connection
  1283. * @param cookie The cookie
  1284. * @param e The xcb_generic_error_t supplied
  1285. *
  1286. * Returns the reply of the request asked by
  1287. *
  1288. * The parameter @p e supplied to this function must be NULL if
  1289. * xcb_xfixes_fetch_region_unchecked(). is used.
  1290. * Otherwise, it stores the error if any.
  1291. *
  1292. * The returned value must be freed by the caller using free().
  1293. */
  1294. xcb_xfixes_fetch_region_reply_t *
  1295. xcb_xfixes_fetch_region_reply (xcb_connection_t *c,
  1296. xcb_xfixes_fetch_region_cookie_t cookie /**< */,
  1297. xcb_generic_error_t **e);
  1298. /**
  1299. *
  1300. * @param c The connection
  1301. * @return A cookie
  1302. *
  1303. * Delivers a request to the X server.
  1304. *
  1305. * This form can be used only if the request will not cause
  1306. * a reply to be generated. Any returned error will be
  1307. * saved for handling by xcb_request_check().
  1308. */
  1309. xcb_void_cookie_t
  1310. xcb_xfixes_set_gc_clip_region_checked (xcb_connection_t *c,
  1311. xcb_gcontext_t gc,
  1312. xcb_xfixes_region_t region,
  1313. int16_t x_origin,
  1314. int16_t y_origin);
  1315. /**
  1316. *
  1317. * @param c The connection
  1318. * @return A cookie
  1319. *
  1320. * Delivers a request to the X server.
  1321. *
  1322. */
  1323. xcb_void_cookie_t
  1324. xcb_xfixes_set_gc_clip_region (xcb_connection_t *c,
  1325. xcb_gcontext_t gc,
  1326. xcb_xfixes_region_t region,
  1327. int16_t x_origin,
  1328. int16_t y_origin);
  1329. /**
  1330. *
  1331. * @param c The connection
  1332. * @return A cookie
  1333. *
  1334. * Delivers a request to the X server.
  1335. *
  1336. * This form can be used only if the request will not cause
  1337. * a reply to be generated. Any returned error will be
  1338. * saved for handling by xcb_request_check().
  1339. */
  1340. xcb_void_cookie_t
  1341. xcb_xfixes_set_window_shape_region_checked (xcb_connection_t *c,
  1342. xcb_window_t dest,
  1343. xcb_shape_kind_t dest_kind,
  1344. int16_t x_offset,
  1345. int16_t y_offset,
  1346. xcb_xfixes_region_t region);
  1347. /**
  1348. *
  1349. * @param c The connection
  1350. * @return A cookie
  1351. *
  1352. * Delivers a request to the X server.
  1353. *
  1354. */
  1355. xcb_void_cookie_t
  1356. xcb_xfixes_set_window_shape_region (xcb_connection_t *c,
  1357. xcb_window_t dest,
  1358. xcb_shape_kind_t dest_kind,
  1359. int16_t x_offset,
  1360. int16_t y_offset,
  1361. xcb_xfixes_region_t region);
  1362. /**
  1363. *
  1364. * @param c The connection
  1365. * @return A cookie
  1366. *
  1367. * Delivers a request to the X server.
  1368. *
  1369. * This form can be used only if the request will not cause
  1370. * a reply to be generated. Any returned error will be
  1371. * saved for handling by xcb_request_check().
  1372. */
  1373. xcb_void_cookie_t
  1374. xcb_xfixes_set_picture_clip_region_checked (xcb_connection_t *c,
  1375. xcb_render_picture_t picture,
  1376. xcb_xfixes_region_t region,
  1377. int16_t x_origin,
  1378. int16_t y_origin);
  1379. /**
  1380. *
  1381. * @param c The connection
  1382. * @return A cookie
  1383. *
  1384. * Delivers a request to the X server.
  1385. *
  1386. */
  1387. xcb_void_cookie_t
  1388. xcb_xfixes_set_picture_clip_region (xcb_connection_t *c,
  1389. xcb_render_picture_t picture,
  1390. xcb_xfixes_region_t region,
  1391. int16_t x_origin,
  1392. int16_t y_origin);
  1393. int
  1394. xcb_xfixes_set_cursor_name_sizeof (const void *_buffer);
  1395. /**
  1396. *
  1397. * @param c The connection
  1398. * @return A cookie
  1399. *
  1400. * Delivers a request to the X server.
  1401. *
  1402. * This form can be used only if the request will not cause
  1403. * a reply to be generated. Any returned error will be
  1404. * saved for handling by xcb_request_check().
  1405. */
  1406. xcb_void_cookie_t
  1407. xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c,
  1408. xcb_cursor_t cursor,
  1409. uint16_t nbytes,
  1410. const char *name);
  1411. /**
  1412. *
  1413. * @param c The connection
  1414. * @return A cookie
  1415. *
  1416. * Delivers a request to the X server.
  1417. *
  1418. */
  1419. xcb_void_cookie_t
  1420. xcb_xfixes_set_cursor_name (xcb_connection_t *c,
  1421. xcb_cursor_t cursor,
  1422. uint16_t nbytes,
  1423. const char *name);
  1424. char *
  1425. xcb_xfixes_set_cursor_name_name (const xcb_xfixes_set_cursor_name_request_t *R);
  1426. int
  1427. xcb_xfixes_set_cursor_name_name_length (const xcb_xfixes_set_cursor_name_request_t *R);
  1428. xcb_generic_iterator_t
  1429. xcb_xfixes_set_cursor_name_name_end (const xcb_xfixes_set_cursor_name_request_t *R);
  1430. int
  1431. xcb_xfixes_get_cursor_name_sizeof (const void *_buffer);
  1432. /**
  1433. *
  1434. * @param c The connection
  1435. * @return A cookie
  1436. *
  1437. * Delivers a request to the X server.
  1438. *
  1439. */
  1440. xcb_xfixes_get_cursor_name_cookie_t
  1441. xcb_xfixes_get_cursor_name (xcb_connection_t *c,
  1442. xcb_cursor_t cursor);
  1443. /**
  1444. *
  1445. * @param c The connection
  1446. * @return A cookie
  1447. *
  1448. * Delivers a request to the X server.
  1449. *
  1450. * This form can be used only if the request will cause
  1451. * a reply to be generated. Any returned error will be
  1452. * placed in the event queue.
  1453. */
  1454. xcb_xfixes_get_cursor_name_cookie_t
  1455. xcb_xfixes_get_cursor_name_unchecked (xcb_connection_t *c,
  1456. xcb_cursor_t cursor);
  1457. char *
  1458. xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R);
  1459. int
  1460. xcb_xfixes_get_cursor_name_name_length (const xcb_xfixes_get_cursor_name_reply_t *R);
  1461. xcb_generic_iterator_t
  1462. xcb_xfixes_get_cursor_name_name_end (const xcb_xfixes_get_cursor_name_reply_t *R);
  1463. /**
  1464. * Return the reply
  1465. * @param c The connection
  1466. * @param cookie The cookie
  1467. * @param e The xcb_generic_error_t supplied
  1468. *
  1469. * Returns the reply of the request asked by
  1470. *
  1471. * The parameter @p e supplied to this function must be NULL if
  1472. * xcb_xfixes_get_cursor_name_unchecked(). is used.
  1473. * Otherwise, it stores the error if any.
  1474. *
  1475. * The returned value must be freed by the caller using free().
  1476. */
  1477. xcb_xfixes_get_cursor_name_reply_t *
  1478. xcb_xfixes_get_cursor_name_reply (xcb_connection_t *c,
  1479. xcb_xfixes_get_cursor_name_cookie_t cookie /**< */,
  1480. xcb_generic_error_t **e);
  1481. int
  1482. xcb_xfixes_get_cursor_image_and_name_sizeof (const void *_buffer);
  1483. /**
  1484. *
  1485. * @param c The connection
  1486. * @return A cookie
  1487. *
  1488. * Delivers a request to the X server.
  1489. *
  1490. */
  1491. xcb_xfixes_get_cursor_image_and_name_cookie_t
  1492. xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c);
  1493. /**
  1494. *
  1495. * @param c The connection
  1496. * @return A cookie
  1497. *
  1498. * Delivers a request to the X server.
  1499. *
  1500. * This form can be used only if the request will cause
  1501. * a reply to be generated. Any returned error will be
  1502. * placed in the event queue.
  1503. */
  1504. xcb_xfixes_get_cursor_image_and_name_cookie_t
  1505. xcb_xfixes_get_cursor_image_and_name_unchecked (xcb_connection_t *c);
  1506. uint32_t *
  1507. xcb_xfixes_get_cursor_image_and_name_cursor_image (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1508. int
  1509. xcb_xfixes_get_cursor_image_and_name_cursor_image_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1510. xcb_generic_iterator_t
  1511. xcb_xfixes_get_cursor_image_and_name_cursor_image_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1512. char *
  1513. xcb_xfixes_get_cursor_image_and_name_name (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1514. int
  1515. xcb_xfixes_get_cursor_image_and_name_name_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1516. xcb_generic_iterator_t
  1517. xcb_xfixes_get_cursor_image_and_name_name_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R);
  1518. /**
  1519. * Return the reply
  1520. * @param c The connection
  1521. * @param cookie The cookie
  1522. * @param e The xcb_generic_error_t supplied
  1523. *
  1524. * Returns the reply of the request asked by
  1525. *
  1526. * The parameter @p e supplied to this function must be NULL if
  1527. * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used.
  1528. * Otherwise, it stores the error if any.
  1529. *
  1530. * The returned value must be freed by the caller using free().
  1531. */
  1532. xcb_xfixes_get_cursor_image_and_name_reply_t *
  1533. xcb_xfixes_get_cursor_image_and_name_reply (xcb_connection_t *c,
  1534. xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */,
  1535. xcb_generic_error_t **e);
  1536. /**
  1537. *
  1538. * @param c The connection
  1539. * @return A cookie
  1540. *
  1541. * Delivers a request to the X server.
  1542. *
  1543. * This form can be used only if the request will not cause
  1544. * a reply to be generated. Any returned error will be
  1545. * saved for handling by xcb_request_check().
  1546. */
  1547. xcb_void_cookie_t
  1548. xcb_xfixes_change_cursor_checked (xcb_connection_t *c,
  1549. xcb_cursor_t source,
  1550. xcb_cursor_t destination);
  1551. /**
  1552. *
  1553. * @param c The connection
  1554. * @return A cookie
  1555. *
  1556. * Delivers a request to the X server.
  1557. *
  1558. */
  1559. xcb_void_cookie_t
  1560. xcb_xfixes_change_cursor (xcb_connection_t *c,
  1561. xcb_cursor_t source,
  1562. xcb_cursor_t destination);
  1563. int
  1564. xcb_xfixes_change_cursor_by_name_sizeof (const void *_buffer);
  1565. /**
  1566. *
  1567. * @param c The connection
  1568. * @return A cookie
  1569. *
  1570. * Delivers a request to the X server.
  1571. *
  1572. * This form can be used only if the request will not cause
  1573. * a reply to be generated. Any returned error will be
  1574. * saved for handling by xcb_request_check().
  1575. */
  1576. xcb_void_cookie_t
  1577. xcb_xfixes_change_cursor_by_name_checked (xcb_connection_t *c,
  1578. xcb_cursor_t src,
  1579. uint16_t nbytes,
  1580. const char *name);
  1581. /**
  1582. *
  1583. * @param c The connection
  1584. * @return A cookie
  1585. *
  1586. * Delivers a request to the X server.
  1587. *
  1588. */
  1589. xcb_void_cookie_t
  1590. xcb_xfixes_change_cursor_by_name (xcb_connection_t *c,
  1591. xcb_cursor_t src,
  1592. uint16_t nbytes,
  1593. const char *name);
  1594. char *
  1595. xcb_xfixes_change_cursor_by_name_name (const xcb_xfixes_change_cursor_by_name_request_t *R);
  1596. int
  1597. xcb_xfixes_change_cursor_by_name_name_length (const xcb_xfixes_change_cursor_by_name_request_t *R);
  1598. xcb_generic_iterator_t
  1599. xcb_xfixes_change_cursor_by_name_name_end (const xcb_xfixes_change_cursor_by_name_request_t *R);
  1600. /**
  1601. *
  1602. * @param c The connection
  1603. * @return A cookie
  1604. *
  1605. * Delivers a request to the X server.
  1606. *
  1607. * This form can be used only if the request will not cause
  1608. * a reply to be generated. Any returned error will be
  1609. * saved for handling by xcb_request_check().
  1610. */
  1611. xcb_void_cookie_t
  1612. xcb_xfixes_expand_region_checked (xcb_connection_t *c,
  1613. xcb_xfixes_region_t source,
  1614. xcb_xfixes_region_t destination,
  1615. uint16_t left,
  1616. uint16_t right,
  1617. uint16_t top,
  1618. uint16_t bottom);
  1619. /**
  1620. *
  1621. * @param c The connection
  1622. * @return A cookie
  1623. *
  1624. * Delivers a request to the X server.
  1625. *
  1626. */
  1627. xcb_void_cookie_t
  1628. xcb_xfixes_expand_region (xcb_connection_t *c,
  1629. xcb_xfixes_region_t source,
  1630. xcb_xfixes_region_t destination,
  1631. uint16_t left,
  1632. uint16_t right,
  1633. uint16_t top,
  1634. uint16_t bottom);
  1635. /**
  1636. *
  1637. * @param c The connection
  1638. * @return A cookie
  1639. *
  1640. * Delivers a request to the X server.
  1641. *
  1642. * This form can be used only if the request will not cause
  1643. * a reply to be generated. Any returned error will be
  1644. * saved for handling by xcb_request_check().
  1645. */
  1646. xcb_void_cookie_t
  1647. xcb_xfixes_hide_cursor_checked (xcb_connection_t *c,
  1648. xcb_window_t window);
  1649. /**
  1650. *
  1651. * @param c The connection
  1652. * @return A cookie
  1653. *
  1654. * Delivers a request to the X server.
  1655. *
  1656. */
  1657. xcb_void_cookie_t
  1658. xcb_xfixes_hide_cursor (xcb_connection_t *c,
  1659. xcb_window_t window);
  1660. /**
  1661. *
  1662. * @param c The connection
  1663. * @return A cookie
  1664. *
  1665. * Delivers a request to the X server.
  1666. *
  1667. * This form can be used only if the request will not cause
  1668. * a reply to be generated. Any returned error will be
  1669. * saved for handling by xcb_request_check().
  1670. */
  1671. xcb_void_cookie_t
  1672. xcb_xfixes_show_cursor_checked (xcb_connection_t *c,
  1673. xcb_window_t window);
  1674. /**
  1675. *
  1676. * @param c The connection
  1677. * @return A cookie
  1678. *
  1679. * Delivers a request to the X server.
  1680. *
  1681. */
  1682. xcb_void_cookie_t
  1683. xcb_xfixes_show_cursor (xcb_connection_t *c,
  1684. xcb_window_t window);
  1685. /**
  1686. * Get the next element of the iterator
  1687. * @param i Pointer to a xcb_xfixes_barrier_iterator_t
  1688. *
  1689. * Get the next element in the iterator. The member rem is
  1690. * decreased by one. The member data points to the next
  1691. * element. The member index is increased by sizeof(xcb_xfixes_barrier_t)
  1692. */
  1693. void
  1694. xcb_xfixes_barrier_next (xcb_xfixes_barrier_iterator_t *i);
  1695. /**
  1696. * Return the iterator pointing to the last element
  1697. * @param i An xcb_xfixes_barrier_iterator_t
  1698. * @return The iterator pointing to the last element
  1699. *
  1700. * Set the current element in the iterator to the last element.
  1701. * The member rem is set to 0. The member data points to the
  1702. * last element.
  1703. */
  1704. xcb_generic_iterator_t
  1705. xcb_xfixes_barrier_end (xcb_xfixes_barrier_iterator_t i);
  1706. int
  1707. xcb_xfixes_create_pointer_barrier_sizeof (const void *_buffer);
  1708. /**
  1709. *
  1710. * @param c The connection
  1711. * @return A cookie
  1712. *
  1713. * Delivers a request to the X server.
  1714. *
  1715. * This form can be used only if the request will not cause
  1716. * a reply to be generated. Any returned error will be
  1717. * saved for handling by xcb_request_check().
  1718. */
  1719. xcb_void_cookie_t
  1720. xcb_xfixes_create_pointer_barrier_checked (xcb_connection_t *c,
  1721. xcb_xfixes_barrier_t barrier,
  1722. xcb_window_t window,
  1723. uint16_t x1,
  1724. uint16_t y1,
  1725. uint16_t x2,
  1726. uint16_t y2,
  1727. uint32_t directions,
  1728. uint16_t num_devices,
  1729. const uint16_t *devices);
  1730. /**
  1731. *
  1732. * @param c The connection
  1733. * @return A cookie
  1734. *
  1735. * Delivers a request to the X server.
  1736. *
  1737. */
  1738. xcb_void_cookie_t
  1739. xcb_xfixes_create_pointer_barrier (xcb_connection_t *c,
  1740. xcb_xfixes_barrier_t barrier,
  1741. xcb_window_t window,
  1742. uint16_t x1,
  1743. uint16_t y1,
  1744. uint16_t x2,
  1745. uint16_t y2,
  1746. uint32_t directions,
  1747. uint16_t num_devices,
  1748. const uint16_t *devices);
  1749. uint16_t *
  1750. xcb_xfixes_create_pointer_barrier_devices (const xcb_xfixes_create_pointer_barrier_request_t *R);
  1751. int
  1752. xcb_xfixes_create_pointer_barrier_devices_length (const xcb_xfixes_create_pointer_barrier_request_t *R);
  1753. xcb_generic_iterator_t
  1754. xcb_xfixes_create_pointer_barrier_devices_end (const xcb_xfixes_create_pointer_barrier_request_t *R);
  1755. /**
  1756. *
  1757. * @param c The connection
  1758. * @return A cookie
  1759. *
  1760. * Delivers a request to the X server.
  1761. *
  1762. * This form can be used only if the request will not cause
  1763. * a reply to be generated. Any returned error will be
  1764. * saved for handling by xcb_request_check().
  1765. */
  1766. xcb_void_cookie_t
  1767. xcb_xfixes_delete_pointer_barrier_checked (xcb_connection_t *c,
  1768. xcb_xfixes_barrier_t barrier);
  1769. /**
  1770. *
  1771. * @param c The connection
  1772. * @return A cookie
  1773. *
  1774. * Delivers a request to the X server.
  1775. *
  1776. */
  1777. xcb_void_cookie_t
  1778. xcb_xfixes_delete_pointer_barrier (xcb_connection_t *c,
  1779. xcb_xfixes_barrier_t barrier);
  1780. #ifdef __cplusplus
  1781. }
  1782. #endif
  1783. #endif
  1784. /**
  1785. * @}
  1786. */