randr.h 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575
  1. /*
  2. * This file generated automatically from randr.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_RandR_API XCB RandR API
  7. * @brief RandR XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __RANDR_H
  11. #define __RANDR_H
  12. #include "xcb.h"
  13. #include "xproto.h"
  14. #include "render.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define XCB_RANDR_MAJOR_VERSION 1
  19. #define XCB_RANDR_MINOR_VERSION 6
  20. extern xcb_extension_t xcb_randr_id;
  21. typedef uint32_t xcb_randr_mode_t;
  22. /**
  23. * @brief xcb_randr_mode_iterator_t
  24. **/
  25. typedef struct xcb_randr_mode_iterator_t {
  26. xcb_randr_mode_t *data;
  27. int rem;
  28. int index;
  29. } xcb_randr_mode_iterator_t;
  30. typedef uint32_t xcb_randr_crtc_t;
  31. /**
  32. * @brief xcb_randr_crtc_iterator_t
  33. **/
  34. typedef struct xcb_randr_crtc_iterator_t {
  35. xcb_randr_crtc_t *data;
  36. int rem;
  37. int index;
  38. } xcb_randr_crtc_iterator_t;
  39. typedef uint32_t xcb_randr_output_t;
  40. /**
  41. * @brief xcb_randr_output_iterator_t
  42. **/
  43. typedef struct xcb_randr_output_iterator_t {
  44. xcb_randr_output_t *data;
  45. int rem;
  46. int index;
  47. } xcb_randr_output_iterator_t;
  48. typedef uint32_t xcb_randr_provider_t;
  49. /**
  50. * @brief xcb_randr_provider_iterator_t
  51. **/
  52. typedef struct xcb_randr_provider_iterator_t {
  53. xcb_randr_provider_t *data;
  54. int rem;
  55. int index;
  56. } xcb_randr_provider_iterator_t;
  57. typedef uint32_t xcb_randr_lease_t;
  58. /**
  59. * @brief xcb_randr_lease_iterator_t
  60. **/
  61. typedef struct xcb_randr_lease_iterator_t {
  62. xcb_randr_lease_t *data;
  63. int rem;
  64. int index;
  65. } xcb_randr_lease_iterator_t;
  66. /** Opcode for xcb_randr_bad_output. */
  67. #define XCB_RANDR_BAD_OUTPUT 0
  68. /**
  69. * @brief xcb_randr_bad_output_error_t
  70. **/
  71. typedef struct xcb_randr_bad_output_error_t {
  72. uint8_t response_type;
  73. uint8_t error_code;
  74. uint16_t sequence;
  75. } xcb_randr_bad_output_error_t;
  76. /** Opcode for xcb_randr_bad_crtc. */
  77. #define XCB_RANDR_BAD_CRTC 1
  78. /**
  79. * @brief xcb_randr_bad_crtc_error_t
  80. **/
  81. typedef struct xcb_randr_bad_crtc_error_t {
  82. uint8_t response_type;
  83. uint8_t error_code;
  84. uint16_t sequence;
  85. } xcb_randr_bad_crtc_error_t;
  86. /** Opcode for xcb_randr_bad_mode. */
  87. #define XCB_RANDR_BAD_MODE 2
  88. /**
  89. * @brief xcb_randr_bad_mode_error_t
  90. **/
  91. typedef struct xcb_randr_bad_mode_error_t {
  92. uint8_t response_type;
  93. uint8_t error_code;
  94. uint16_t sequence;
  95. } xcb_randr_bad_mode_error_t;
  96. /** Opcode for xcb_randr_bad_provider. */
  97. #define XCB_RANDR_BAD_PROVIDER 3
  98. /**
  99. * @brief xcb_randr_bad_provider_error_t
  100. **/
  101. typedef struct xcb_randr_bad_provider_error_t {
  102. uint8_t response_type;
  103. uint8_t error_code;
  104. uint16_t sequence;
  105. } xcb_randr_bad_provider_error_t;
  106. typedef enum xcb_randr_rotation_t {
  107. XCB_RANDR_ROTATION_ROTATE_0 = 1,
  108. XCB_RANDR_ROTATION_ROTATE_90 = 2,
  109. XCB_RANDR_ROTATION_ROTATE_180 = 4,
  110. XCB_RANDR_ROTATION_ROTATE_270 = 8,
  111. XCB_RANDR_ROTATION_REFLECT_X = 16,
  112. XCB_RANDR_ROTATION_REFLECT_Y = 32
  113. } xcb_randr_rotation_t;
  114. /**
  115. * @brief xcb_randr_screen_size_t
  116. **/
  117. typedef struct xcb_randr_screen_size_t {
  118. uint16_t width;
  119. uint16_t height;
  120. uint16_t mwidth;
  121. uint16_t mheight;
  122. } xcb_randr_screen_size_t;
  123. /**
  124. * @brief xcb_randr_screen_size_iterator_t
  125. **/
  126. typedef struct xcb_randr_screen_size_iterator_t {
  127. xcb_randr_screen_size_t *data;
  128. int rem;
  129. int index;
  130. } xcb_randr_screen_size_iterator_t;
  131. /**
  132. * @brief xcb_randr_refresh_rates_t
  133. **/
  134. typedef struct xcb_randr_refresh_rates_t {
  135. uint16_t nRates;
  136. } xcb_randr_refresh_rates_t;
  137. /**
  138. * @brief xcb_randr_refresh_rates_iterator_t
  139. **/
  140. typedef struct xcb_randr_refresh_rates_iterator_t {
  141. xcb_randr_refresh_rates_t *data;
  142. int rem;
  143. int index;
  144. } xcb_randr_refresh_rates_iterator_t;
  145. /**
  146. * @brief xcb_randr_query_version_cookie_t
  147. **/
  148. typedef struct xcb_randr_query_version_cookie_t {
  149. unsigned int sequence;
  150. } xcb_randr_query_version_cookie_t;
  151. /** Opcode for xcb_randr_query_version. */
  152. #define XCB_RANDR_QUERY_VERSION 0
  153. /**
  154. * @brief xcb_randr_query_version_request_t
  155. **/
  156. typedef struct xcb_randr_query_version_request_t {
  157. uint8_t major_opcode;
  158. uint8_t minor_opcode;
  159. uint16_t length;
  160. uint32_t major_version;
  161. uint32_t minor_version;
  162. } xcb_randr_query_version_request_t;
  163. /**
  164. * @brief xcb_randr_query_version_reply_t
  165. **/
  166. typedef struct xcb_randr_query_version_reply_t {
  167. uint8_t response_type;
  168. uint8_t pad0;
  169. uint16_t sequence;
  170. uint32_t length;
  171. uint32_t major_version;
  172. uint32_t minor_version;
  173. uint8_t pad1[16];
  174. } xcb_randr_query_version_reply_t;
  175. typedef enum xcb_randr_set_config_t {
  176. XCB_RANDR_SET_CONFIG_SUCCESS = 0,
  177. XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1,
  178. XCB_RANDR_SET_CONFIG_INVALID_TIME = 2,
  179. XCB_RANDR_SET_CONFIG_FAILED = 3
  180. } xcb_randr_set_config_t;
  181. /**
  182. * @brief xcb_randr_set_screen_config_cookie_t
  183. **/
  184. typedef struct xcb_randr_set_screen_config_cookie_t {
  185. unsigned int sequence;
  186. } xcb_randr_set_screen_config_cookie_t;
  187. /** Opcode for xcb_randr_set_screen_config. */
  188. #define XCB_RANDR_SET_SCREEN_CONFIG 2
  189. /**
  190. * @brief xcb_randr_set_screen_config_request_t
  191. **/
  192. typedef struct xcb_randr_set_screen_config_request_t {
  193. uint8_t major_opcode;
  194. uint8_t minor_opcode;
  195. uint16_t length;
  196. xcb_window_t window;
  197. xcb_timestamp_t timestamp;
  198. xcb_timestamp_t config_timestamp;
  199. uint16_t sizeID;
  200. uint16_t rotation;
  201. uint16_t rate;
  202. uint8_t pad0[2];
  203. } xcb_randr_set_screen_config_request_t;
  204. /**
  205. * @brief xcb_randr_set_screen_config_reply_t
  206. **/
  207. typedef struct xcb_randr_set_screen_config_reply_t {
  208. uint8_t response_type;
  209. uint8_t status;
  210. uint16_t sequence;
  211. uint32_t length;
  212. xcb_timestamp_t new_timestamp;
  213. xcb_timestamp_t config_timestamp;
  214. xcb_window_t root;
  215. uint16_t subpixel_order;
  216. uint8_t pad0[10];
  217. } xcb_randr_set_screen_config_reply_t;
  218. typedef enum xcb_randr_notify_mask_t {
  219. XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE = 1,
  220. XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE = 2,
  221. XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE = 4,
  222. XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY = 8,
  223. XCB_RANDR_NOTIFY_MASK_PROVIDER_CHANGE = 16,
  224. XCB_RANDR_NOTIFY_MASK_PROVIDER_PROPERTY = 32,
  225. XCB_RANDR_NOTIFY_MASK_RESOURCE_CHANGE = 64,
  226. XCB_RANDR_NOTIFY_MASK_LEASE = 128
  227. } xcb_randr_notify_mask_t;
  228. /** Opcode for xcb_randr_select_input. */
  229. #define XCB_RANDR_SELECT_INPUT 4
  230. /**
  231. * @brief xcb_randr_select_input_request_t
  232. **/
  233. typedef struct xcb_randr_select_input_request_t {
  234. uint8_t major_opcode;
  235. uint8_t minor_opcode;
  236. uint16_t length;
  237. xcb_window_t window;
  238. uint16_t enable;
  239. uint8_t pad0[2];
  240. } xcb_randr_select_input_request_t;
  241. /**
  242. * @brief xcb_randr_get_screen_info_cookie_t
  243. **/
  244. typedef struct xcb_randr_get_screen_info_cookie_t {
  245. unsigned int sequence;
  246. } xcb_randr_get_screen_info_cookie_t;
  247. /** Opcode for xcb_randr_get_screen_info. */
  248. #define XCB_RANDR_GET_SCREEN_INFO 5
  249. /**
  250. * @brief xcb_randr_get_screen_info_request_t
  251. **/
  252. typedef struct xcb_randr_get_screen_info_request_t {
  253. uint8_t major_opcode;
  254. uint8_t minor_opcode;
  255. uint16_t length;
  256. xcb_window_t window;
  257. } xcb_randr_get_screen_info_request_t;
  258. /**
  259. * @brief xcb_randr_get_screen_info_reply_t
  260. **/
  261. typedef struct xcb_randr_get_screen_info_reply_t {
  262. uint8_t response_type;
  263. uint8_t rotations;
  264. uint16_t sequence;
  265. uint32_t length;
  266. xcb_window_t root;
  267. xcb_timestamp_t timestamp;
  268. xcb_timestamp_t config_timestamp;
  269. uint16_t nSizes;
  270. uint16_t sizeID;
  271. uint16_t rotation;
  272. uint16_t rate;
  273. uint16_t nInfo;
  274. uint8_t pad0[2];
  275. } xcb_randr_get_screen_info_reply_t;
  276. /**
  277. * @brief xcb_randr_get_screen_size_range_cookie_t
  278. **/
  279. typedef struct xcb_randr_get_screen_size_range_cookie_t {
  280. unsigned int sequence;
  281. } xcb_randr_get_screen_size_range_cookie_t;
  282. /** Opcode for xcb_randr_get_screen_size_range. */
  283. #define XCB_RANDR_GET_SCREEN_SIZE_RANGE 6
  284. /**
  285. * @brief xcb_randr_get_screen_size_range_request_t
  286. **/
  287. typedef struct xcb_randr_get_screen_size_range_request_t {
  288. uint8_t major_opcode;
  289. uint8_t minor_opcode;
  290. uint16_t length;
  291. xcb_window_t window;
  292. } xcb_randr_get_screen_size_range_request_t;
  293. /**
  294. * @brief xcb_randr_get_screen_size_range_reply_t
  295. **/
  296. typedef struct xcb_randr_get_screen_size_range_reply_t {
  297. uint8_t response_type;
  298. uint8_t pad0;
  299. uint16_t sequence;
  300. uint32_t length;
  301. uint16_t min_width;
  302. uint16_t min_height;
  303. uint16_t max_width;
  304. uint16_t max_height;
  305. uint8_t pad1[16];
  306. } xcb_randr_get_screen_size_range_reply_t;
  307. /** Opcode for xcb_randr_set_screen_size. */
  308. #define XCB_RANDR_SET_SCREEN_SIZE 7
  309. /**
  310. * @brief xcb_randr_set_screen_size_request_t
  311. **/
  312. typedef struct xcb_randr_set_screen_size_request_t {
  313. uint8_t major_opcode;
  314. uint8_t minor_opcode;
  315. uint16_t length;
  316. xcb_window_t window;
  317. uint16_t width;
  318. uint16_t height;
  319. uint32_t mm_width;
  320. uint32_t mm_height;
  321. } xcb_randr_set_screen_size_request_t;
  322. typedef enum xcb_randr_mode_flag_t {
  323. XCB_RANDR_MODE_FLAG_HSYNC_POSITIVE = 1,
  324. XCB_RANDR_MODE_FLAG_HSYNC_NEGATIVE = 2,
  325. XCB_RANDR_MODE_FLAG_VSYNC_POSITIVE = 4,
  326. XCB_RANDR_MODE_FLAG_VSYNC_NEGATIVE = 8,
  327. XCB_RANDR_MODE_FLAG_INTERLACE = 16,
  328. XCB_RANDR_MODE_FLAG_DOUBLE_SCAN = 32,
  329. XCB_RANDR_MODE_FLAG_CSYNC = 64,
  330. XCB_RANDR_MODE_FLAG_CSYNC_POSITIVE = 128,
  331. XCB_RANDR_MODE_FLAG_CSYNC_NEGATIVE = 256,
  332. XCB_RANDR_MODE_FLAG_HSKEW_PRESENT = 512,
  333. XCB_RANDR_MODE_FLAG_BCAST = 1024,
  334. XCB_RANDR_MODE_FLAG_PIXEL_MULTIPLEX = 2048,
  335. XCB_RANDR_MODE_FLAG_DOUBLE_CLOCK = 4096,
  336. XCB_RANDR_MODE_FLAG_HALVE_CLOCK = 8192
  337. } xcb_randr_mode_flag_t;
  338. /**
  339. * @brief xcb_randr_mode_info_t
  340. **/
  341. typedef struct xcb_randr_mode_info_t {
  342. uint32_t id;
  343. uint16_t width;
  344. uint16_t height;
  345. uint32_t dot_clock;
  346. uint16_t hsync_start;
  347. uint16_t hsync_end;
  348. uint16_t htotal;
  349. uint16_t hskew;
  350. uint16_t vsync_start;
  351. uint16_t vsync_end;
  352. uint16_t vtotal;
  353. uint16_t name_len;
  354. uint32_t mode_flags;
  355. } xcb_randr_mode_info_t;
  356. /**
  357. * @brief xcb_randr_mode_info_iterator_t
  358. **/
  359. typedef struct xcb_randr_mode_info_iterator_t {
  360. xcb_randr_mode_info_t *data;
  361. int rem;
  362. int index;
  363. } xcb_randr_mode_info_iterator_t;
  364. /**
  365. * @brief xcb_randr_get_screen_resources_cookie_t
  366. **/
  367. typedef struct xcb_randr_get_screen_resources_cookie_t {
  368. unsigned int sequence;
  369. } xcb_randr_get_screen_resources_cookie_t;
  370. /** Opcode for xcb_randr_get_screen_resources. */
  371. #define XCB_RANDR_GET_SCREEN_RESOURCES 8
  372. /**
  373. * @brief xcb_randr_get_screen_resources_request_t
  374. **/
  375. typedef struct xcb_randr_get_screen_resources_request_t {
  376. uint8_t major_opcode;
  377. uint8_t minor_opcode;
  378. uint16_t length;
  379. xcb_window_t window;
  380. } xcb_randr_get_screen_resources_request_t;
  381. /**
  382. * @brief xcb_randr_get_screen_resources_reply_t
  383. **/
  384. typedef struct xcb_randr_get_screen_resources_reply_t {
  385. uint8_t response_type;
  386. uint8_t pad0;
  387. uint16_t sequence;
  388. uint32_t length;
  389. xcb_timestamp_t timestamp;
  390. xcb_timestamp_t config_timestamp;
  391. uint16_t num_crtcs;
  392. uint16_t num_outputs;
  393. uint16_t num_modes;
  394. uint16_t names_len;
  395. uint8_t pad1[8];
  396. } xcb_randr_get_screen_resources_reply_t;
  397. typedef enum xcb_randr_connection_t {
  398. XCB_RANDR_CONNECTION_CONNECTED = 0,
  399. XCB_RANDR_CONNECTION_DISCONNECTED = 1,
  400. XCB_RANDR_CONNECTION_UNKNOWN = 2
  401. } xcb_randr_connection_t;
  402. /**
  403. * @brief xcb_randr_get_output_info_cookie_t
  404. **/
  405. typedef struct xcb_randr_get_output_info_cookie_t {
  406. unsigned int sequence;
  407. } xcb_randr_get_output_info_cookie_t;
  408. /** Opcode for xcb_randr_get_output_info. */
  409. #define XCB_RANDR_GET_OUTPUT_INFO 9
  410. /**
  411. * @brief xcb_randr_get_output_info_request_t
  412. **/
  413. typedef struct xcb_randr_get_output_info_request_t {
  414. uint8_t major_opcode;
  415. uint8_t minor_opcode;
  416. uint16_t length;
  417. xcb_randr_output_t output;
  418. xcb_timestamp_t config_timestamp;
  419. } xcb_randr_get_output_info_request_t;
  420. /**
  421. * @brief xcb_randr_get_output_info_reply_t
  422. **/
  423. typedef struct xcb_randr_get_output_info_reply_t {
  424. uint8_t response_type;
  425. uint8_t status;
  426. uint16_t sequence;
  427. uint32_t length;
  428. xcb_timestamp_t timestamp;
  429. xcb_randr_crtc_t crtc;
  430. uint32_t mm_width;
  431. uint32_t mm_height;
  432. uint8_t connection;
  433. uint8_t subpixel_order;
  434. uint16_t num_crtcs;
  435. uint16_t num_modes;
  436. uint16_t num_preferred;
  437. uint16_t num_clones;
  438. uint16_t name_len;
  439. } xcb_randr_get_output_info_reply_t;
  440. /**
  441. * @brief xcb_randr_list_output_properties_cookie_t
  442. **/
  443. typedef struct xcb_randr_list_output_properties_cookie_t {
  444. unsigned int sequence;
  445. } xcb_randr_list_output_properties_cookie_t;
  446. /** Opcode for xcb_randr_list_output_properties. */
  447. #define XCB_RANDR_LIST_OUTPUT_PROPERTIES 10
  448. /**
  449. * @brief xcb_randr_list_output_properties_request_t
  450. **/
  451. typedef struct xcb_randr_list_output_properties_request_t {
  452. uint8_t major_opcode;
  453. uint8_t minor_opcode;
  454. uint16_t length;
  455. xcb_randr_output_t output;
  456. } xcb_randr_list_output_properties_request_t;
  457. /**
  458. * @brief xcb_randr_list_output_properties_reply_t
  459. **/
  460. typedef struct xcb_randr_list_output_properties_reply_t {
  461. uint8_t response_type;
  462. uint8_t pad0;
  463. uint16_t sequence;
  464. uint32_t length;
  465. uint16_t num_atoms;
  466. uint8_t pad1[22];
  467. } xcb_randr_list_output_properties_reply_t;
  468. /**
  469. * @brief xcb_randr_query_output_property_cookie_t
  470. **/
  471. typedef struct xcb_randr_query_output_property_cookie_t {
  472. unsigned int sequence;
  473. } xcb_randr_query_output_property_cookie_t;
  474. /** Opcode for xcb_randr_query_output_property. */
  475. #define XCB_RANDR_QUERY_OUTPUT_PROPERTY 11
  476. /**
  477. * @brief xcb_randr_query_output_property_request_t
  478. **/
  479. typedef struct xcb_randr_query_output_property_request_t {
  480. uint8_t major_opcode;
  481. uint8_t minor_opcode;
  482. uint16_t length;
  483. xcb_randr_output_t output;
  484. xcb_atom_t property;
  485. } xcb_randr_query_output_property_request_t;
  486. /**
  487. * @brief xcb_randr_query_output_property_reply_t
  488. **/
  489. typedef struct xcb_randr_query_output_property_reply_t {
  490. uint8_t response_type;
  491. uint8_t pad0;
  492. uint16_t sequence;
  493. uint32_t length;
  494. uint8_t pending;
  495. uint8_t range;
  496. uint8_t immutable;
  497. uint8_t pad1[21];
  498. } xcb_randr_query_output_property_reply_t;
  499. /** Opcode for xcb_randr_configure_output_property. */
  500. #define XCB_RANDR_CONFIGURE_OUTPUT_PROPERTY 12
  501. /**
  502. * @brief xcb_randr_configure_output_property_request_t
  503. **/
  504. typedef struct xcb_randr_configure_output_property_request_t {
  505. uint8_t major_opcode;
  506. uint8_t minor_opcode;
  507. uint16_t length;
  508. xcb_randr_output_t output;
  509. xcb_atom_t property;
  510. uint8_t pending;
  511. uint8_t range;
  512. uint8_t pad0[2];
  513. } xcb_randr_configure_output_property_request_t;
  514. /** Opcode for xcb_randr_change_output_property. */
  515. #define XCB_RANDR_CHANGE_OUTPUT_PROPERTY 13
  516. /**
  517. * @brief xcb_randr_change_output_property_request_t
  518. **/
  519. typedef struct xcb_randr_change_output_property_request_t {
  520. uint8_t major_opcode;
  521. uint8_t minor_opcode;
  522. uint16_t length;
  523. xcb_randr_output_t output;
  524. xcb_atom_t property;
  525. xcb_atom_t type;
  526. uint8_t format;
  527. uint8_t mode;
  528. uint8_t pad0[2];
  529. uint32_t num_units;
  530. } xcb_randr_change_output_property_request_t;
  531. /** Opcode for xcb_randr_delete_output_property. */
  532. #define XCB_RANDR_DELETE_OUTPUT_PROPERTY 14
  533. /**
  534. * @brief xcb_randr_delete_output_property_request_t
  535. **/
  536. typedef struct xcb_randr_delete_output_property_request_t {
  537. uint8_t major_opcode;
  538. uint8_t minor_opcode;
  539. uint16_t length;
  540. xcb_randr_output_t output;
  541. xcb_atom_t property;
  542. } xcb_randr_delete_output_property_request_t;
  543. /**
  544. * @brief xcb_randr_get_output_property_cookie_t
  545. **/
  546. typedef struct xcb_randr_get_output_property_cookie_t {
  547. unsigned int sequence;
  548. } xcb_randr_get_output_property_cookie_t;
  549. /** Opcode for xcb_randr_get_output_property. */
  550. #define XCB_RANDR_GET_OUTPUT_PROPERTY 15
  551. /**
  552. * @brief xcb_randr_get_output_property_request_t
  553. **/
  554. typedef struct xcb_randr_get_output_property_request_t {
  555. uint8_t major_opcode;
  556. uint8_t minor_opcode;
  557. uint16_t length;
  558. xcb_randr_output_t output;
  559. xcb_atom_t property;
  560. xcb_atom_t type;
  561. uint32_t long_offset;
  562. uint32_t long_length;
  563. uint8_t _delete;
  564. uint8_t pending;
  565. uint8_t pad0[2];
  566. } xcb_randr_get_output_property_request_t;
  567. /**
  568. * @brief xcb_randr_get_output_property_reply_t
  569. **/
  570. typedef struct xcb_randr_get_output_property_reply_t {
  571. uint8_t response_type;
  572. uint8_t format;
  573. uint16_t sequence;
  574. uint32_t length;
  575. xcb_atom_t type;
  576. uint32_t bytes_after;
  577. uint32_t num_items;
  578. uint8_t pad0[12];
  579. } xcb_randr_get_output_property_reply_t;
  580. /**
  581. * @brief xcb_randr_create_mode_cookie_t
  582. **/
  583. typedef struct xcb_randr_create_mode_cookie_t {
  584. unsigned int sequence;
  585. } xcb_randr_create_mode_cookie_t;
  586. /** Opcode for xcb_randr_create_mode. */
  587. #define XCB_RANDR_CREATE_MODE 16
  588. /**
  589. * @brief xcb_randr_create_mode_request_t
  590. **/
  591. typedef struct xcb_randr_create_mode_request_t {
  592. uint8_t major_opcode;
  593. uint8_t minor_opcode;
  594. uint16_t length;
  595. xcb_window_t window;
  596. xcb_randr_mode_info_t mode_info;
  597. } xcb_randr_create_mode_request_t;
  598. /**
  599. * @brief xcb_randr_create_mode_reply_t
  600. **/
  601. typedef struct xcb_randr_create_mode_reply_t {
  602. uint8_t response_type;
  603. uint8_t pad0;
  604. uint16_t sequence;
  605. uint32_t length;
  606. xcb_randr_mode_t mode;
  607. uint8_t pad1[20];
  608. } xcb_randr_create_mode_reply_t;
  609. /** Opcode for xcb_randr_destroy_mode. */
  610. #define XCB_RANDR_DESTROY_MODE 17
  611. /**
  612. * @brief xcb_randr_destroy_mode_request_t
  613. **/
  614. typedef struct xcb_randr_destroy_mode_request_t {
  615. uint8_t major_opcode;
  616. uint8_t minor_opcode;
  617. uint16_t length;
  618. xcb_randr_mode_t mode;
  619. } xcb_randr_destroy_mode_request_t;
  620. /** Opcode for xcb_randr_add_output_mode. */
  621. #define XCB_RANDR_ADD_OUTPUT_MODE 18
  622. /**
  623. * @brief xcb_randr_add_output_mode_request_t
  624. **/
  625. typedef struct xcb_randr_add_output_mode_request_t {
  626. uint8_t major_opcode;
  627. uint8_t minor_opcode;
  628. uint16_t length;
  629. xcb_randr_output_t output;
  630. xcb_randr_mode_t mode;
  631. } xcb_randr_add_output_mode_request_t;
  632. /** Opcode for xcb_randr_delete_output_mode. */
  633. #define XCB_RANDR_DELETE_OUTPUT_MODE 19
  634. /**
  635. * @brief xcb_randr_delete_output_mode_request_t
  636. **/
  637. typedef struct xcb_randr_delete_output_mode_request_t {
  638. uint8_t major_opcode;
  639. uint8_t minor_opcode;
  640. uint16_t length;
  641. xcb_randr_output_t output;
  642. xcb_randr_mode_t mode;
  643. } xcb_randr_delete_output_mode_request_t;
  644. /**
  645. * @brief xcb_randr_get_crtc_info_cookie_t
  646. **/
  647. typedef struct xcb_randr_get_crtc_info_cookie_t {
  648. unsigned int sequence;
  649. } xcb_randr_get_crtc_info_cookie_t;
  650. /** Opcode for xcb_randr_get_crtc_info. */
  651. #define XCB_RANDR_GET_CRTC_INFO 20
  652. /**
  653. * @brief xcb_randr_get_crtc_info_request_t
  654. **/
  655. typedef struct xcb_randr_get_crtc_info_request_t {
  656. uint8_t major_opcode;
  657. uint8_t minor_opcode;
  658. uint16_t length;
  659. xcb_randr_crtc_t crtc;
  660. xcb_timestamp_t config_timestamp;
  661. } xcb_randr_get_crtc_info_request_t;
  662. /**
  663. * @brief xcb_randr_get_crtc_info_reply_t
  664. **/
  665. typedef struct xcb_randr_get_crtc_info_reply_t {
  666. uint8_t response_type;
  667. uint8_t status;
  668. uint16_t sequence;
  669. uint32_t length;
  670. xcb_timestamp_t timestamp;
  671. int16_t x;
  672. int16_t y;
  673. uint16_t width;
  674. uint16_t height;
  675. xcb_randr_mode_t mode;
  676. uint16_t rotation;
  677. uint16_t rotations;
  678. uint16_t num_outputs;
  679. uint16_t num_possible_outputs;
  680. } xcb_randr_get_crtc_info_reply_t;
  681. /**
  682. * @brief xcb_randr_set_crtc_config_cookie_t
  683. **/
  684. typedef struct xcb_randr_set_crtc_config_cookie_t {
  685. unsigned int sequence;
  686. } xcb_randr_set_crtc_config_cookie_t;
  687. /** Opcode for xcb_randr_set_crtc_config. */
  688. #define XCB_RANDR_SET_CRTC_CONFIG 21
  689. /**
  690. * @brief xcb_randr_set_crtc_config_request_t
  691. **/
  692. typedef struct xcb_randr_set_crtc_config_request_t {
  693. uint8_t major_opcode;
  694. uint8_t minor_opcode;
  695. uint16_t length;
  696. xcb_randr_crtc_t crtc;
  697. xcb_timestamp_t timestamp;
  698. xcb_timestamp_t config_timestamp;
  699. int16_t x;
  700. int16_t y;
  701. xcb_randr_mode_t mode;
  702. uint16_t rotation;
  703. uint8_t pad0[2];
  704. } xcb_randr_set_crtc_config_request_t;
  705. /**
  706. * @brief xcb_randr_set_crtc_config_reply_t
  707. **/
  708. typedef struct xcb_randr_set_crtc_config_reply_t {
  709. uint8_t response_type;
  710. uint8_t status;
  711. uint16_t sequence;
  712. uint32_t length;
  713. xcb_timestamp_t timestamp;
  714. uint8_t pad0[20];
  715. } xcb_randr_set_crtc_config_reply_t;
  716. /**
  717. * @brief xcb_randr_get_crtc_gamma_size_cookie_t
  718. **/
  719. typedef struct xcb_randr_get_crtc_gamma_size_cookie_t {
  720. unsigned int sequence;
  721. } xcb_randr_get_crtc_gamma_size_cookie_t;
  722. /** Opcode for xcb_randr_get_crtc_gamma_size. */
  723. #define XCB_RANDR_GET_CRTC_GAMMA_SIZE 22
  724. /**
  725. * @brief xcb_randr_get_crtc_gamma_size_request_t
  726. **/
  727. typedef struct xcb_randr_get_crtc_gamma_size_request_t {
  728. uint8_t major_opcode;
  729. uint8_t minor_opcode;
  730. uint16_t length;
  731. xcb_randr_crtc_t crtc;
  732. } xcb_randr_get_crtc_gamma_size_request_t;
  733. /**
  734. * @brief xcb_randr_get_crtc_gamma_size_reply_t
  735. **/
  736. typedef struct xcb_randr_get_crtc_gamma_size_reply_t {
  737. uint8_t response_type;
  738. uint8_t pad0;
  739. uint16_t sequence;
  740. uint32_t length;
  741. uint16_t size;
  742. uint8_t pad1[22];
  743. } xcb_randr_get_crtc_gamma_size_reply_t;
  744. /**
  745. * @brief xcb_randr_get_crtc_gamma_cookie_t
  746. **/
  747. typedef struct xcb_randr_get_crtc_gamma_cookie_t {
  748. unsigned int sequence;
  749. } xcb_randr_get_crtc_gamma_cookie_t;
  750. /** Opcode for xcb_randr_get_crtc_gamma. */
  751. #define XCB_RANDR_GET_CRTC_GAMMA 23
  752. /**
  753. * @brief xcb_randr_get_crtc_gamma_request_t
  754. **/
  755. typedef struct xcb_randr_get_crtc_gamma_request_t {
  756. uint8_t major_opcode;
  757. uint8_t minor_opcode;
  758. uint16_t length;
  759. xcb_randr_crtc_t crtc;
  760. } xcb_randr_get_crtc_gamma_request_t;
  761. /**
  762. * @brief xcb_randr_get_crtc_gamma_reply_t
  763. **/
  764. typedef struct xcb_randr_get_crtc_gamma_reply_t {
  765. uint8_t response_type;
  766. uint8_t pad0;
  767. uint16_t sequence;
  768. uint32_t length;
  769. uint16_t size;
  770. uint8_t pad1[22];
  771. } xcb_randr_get_crtc_gamma_reply_t;
  772. /** Opcode for xcb_randr_set_crtc_gamma. */
  773. #define XCB_RANDR_SET_CRTC_GAMMA 24
  774. /**
  775. * @brief xcb_randr_set_crtc_gamma_request_t
  776. **/
  777. typedef struct xcb_randr_set_crtc_gamma_request_t {
  778. uint8_t major_opcode;
  779. uint8_t minor_opcode;
  780. uint16_t length;
  781. xcb_randr_crtc_t crtc;
  782. uint16_t size;
  783. uint8_t pad0[2];
  784. } xcb_randr_set_crtc_gamma_request_t;
  785. /**
  786. * @brief xcb_randr_get_screen_resources_current_cookie_t
  787. **/
  788. typedef struct xcb_randr_get_screen_resources_current_cookie_t {
  789. unsigned int sequence;
  790. } xcb_randr_get_screen_resources_current_cookie_t;
  791. /** Opcode for xcb_randr_get_screen_resources_current. */
  792. #define XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT 25
  793. /**
  794. * @brief xcb_randr_get_screen_resources_current_request_t
  795. **/
  796. typedef struct xcb_randr_get_screen_resources_current_request_t {
  797. uint8_t major_opcode;
  798. uint8_t minor_opcode;
  799. uint16_t length;
  800. xcb_window_t window;
  801. } xcb_randr_get_screen_resources_current_request_t;
  802. /**
  803. * @brief xcb_randr_get_screen_resources_current_reply_t
  804. **/
  805. typedef struct xcb_randr_get_screen_resources_current_reply_t {
  806. uint8_t response_type;
  807. uint8_t pad0;
  808. uint16_t sequence;
  809. uint32_t length;
  810. xcb_timestamp_t timestamp;
  811. xcb_timestamp_t config_timestamp;
  812. uint16_t num_crtcs;
  813. uint16_t num_outputs;
  814. uint16_t num_modes;
  815. uint16_t names_len;
  816. uint8_t pad1[8];
  817. } xcb_randr_get_screen_resources_current_reply_t;
  818. typedef enum xcb_randr_transform_t {
  819. XCB_RANDR_TRANSFORM_UNIT = 1,
  820. XCB_RANDR_TRANSFORM_SCALE_UP = 2,
  821. XCB_RANDR_TRANSFORM_SCALE_DOWN = 4,
  822. XCB_RANDR_TRANSFORM_PROJECTIVE = 8
  823. } xcb_randr_transform_t;
  824. /** Opcode for xcb_randr_set_crtc_transform. */
  825. #define XCB_RANDR_SET_CRTC_TRANSFORM 26
  826. /**
  827. * @brief xcb_randr_set_crtc_transform_request_t
  828. **/
  829. typedef struct xcb_randr_set_crtc_transform_request_t {
  830. uint8_t major_opcode;
  831. uint8_t minor_opcode;
  832. uint16_t length;
  833. xcb_randr_crtc_t crtc;
  834. xcb_render_transform_t transform;
  835. uint16_t filter_len;
  836. uint8_t pad0[2];
  837. } xcb_randr_set_crtc_transform_request_t;
  838. /**
  839. * @brief xcb_randr_get_crtc_transform_cookie_t
  840. **/
  841. typedef struct xcb_randr_get_crtc_transform_cookie_t {
  842. unsigned int sequence;
  843. } xcb_randr_get_crtc_transform_cookie_t;
  844. /** Opcode for xcb_randr_get_crtc_transform. */
  845. #define XCB_RANDR_GET_CRTC_TRANSFORM 27
  846. /**
  847. * @brief xcb_randr_get_crtc_transform_request_t
  848. **/
  849. typedef struct xcb_randr_get_crtc_transform_request_t {
  850. uint8_t major_opcode;
  851. uint8_t minor_opcode;
  852. uint16_t length;
  853. xcb_randr_crtc_t crtc;
  854. } xcb_randr_get_crtc_transform_request_t;
  855. /**
  856. * @brief xcb_randr_get_crtc_transform_reply_t
  857. **/
  858. typedef struct xcb_randr_get_crtc_transform_reply_t {
  859. uint8_t response_type;
  860. uint8_t pad0;
  861. uint16_t sequence;
  862. uint32_t length;
  863. xcb_render_transform_t pending_transform;
  864. uint8_t has_transforms;
  865. uint8_t pad1[3];
  866. xcb_render_transform_t current_transform;
  867. uint8_t pad2[4];
  868. uint16_t pending_len;
  869. uint16_t pending_nparams;
  870. uint16_t current_len;
  871. uint16_t current_nparams;
  872. } xcb_randr_get_crtc_transform_reply_t;
  873. /**
  874. * @brief xcb_randr_get_panning_cookie_t
  875. **/
  876. typedef struct xcb_randr_get_panning_cookie_t {
  877. unsigned int sequence;
  878. } xcb_randr_get_panning_cookie_t;
  879. /** Opcode for xcb_randr_get_panning. */
  880. #define XCB_RANDR_GET_PANNING 28
  881. /**
  882. * @brief xcb_randr_get_panning_request_t
  883. **/
  884. typedef struct xcb_randr_get_panning_request_t {
  885. uint8_t major_opcode;
  886. uint8_t minor_opcode;
  887. uint16_t length;
  888. xcb_randr_crtc_t crtc;
  889. } xcb_randr_get_panning_request_t;
  890. /**
  891. * @brief xcb_randr_get_panning_reply_t
  892. **/
  893. typedef struct xcb_randr_get_panning_reply_t {
  894. uint8_t response_type;
  895. uint8_t status;
  896. uint16_t sequence;
  897. uint32_t length;
  898. xcb_timestamp_t timestamp;
  899. uint16_t left;
  900. uint16_t top;
  901. uint16_t width;
  902. uint16_t height;
  903. uint16_t track_left;
  904. uint16_t track_top;
  905. uint16_t track_width;
  906. uint16_t track_height;
  907. int16_t border_left;
  908. int16_t border_top;
  909. int16_t border_right;
  910. int16_t border_bottom;
  911. } xcb_randr_get_panning_reply_t;
  912. /**
  913. * @brief xcb_randr_set_panning_cookie_t
  914. **/
  915. typedef struct xcb_randr_set_panning_cookie_t {
  916. unsigned int sequence;
  917. } xcb_randr_set_panning_cookie_t;
  918. /** Opcode for xcb_randr_set_panning. */
  919. #define XCB_RANDR_SET_PANNING 29
  920. /**
  921. * @brief xcb_randr_set_panning_request_t
  922. **/
  923. typedef struct xcb_randr_set_panning_request_t {
  924. uint8_t major_opcode;
  925. uint8_t minor_opcode;
  926. uint16_t length;
  927. xcb_randr_crtc_t crtc;
  928. xcb_timestamp_t timestamp;
  929. uint16_t left;
  930. uint16_t top;
  931. uint16_t width;
  932. uint16_t height;
  933. uint16_t track_left;
  934. uint16_t track_top;
  935. uint16_t track_width;
  936. uint16_t track_height;
  937. int16_t border_left;
  938. int16_t border_top;
  939. int16_t border_right;
  940. int16_t border_bottom;
  941. } xcb_randr_set_panning_request_t;
  942. /**
  943. * @brief xcb_randr_set_panning_reply_t
  944. **/
  945. typedef struct xcb_randr_set_panning_reply_t {
  946. uint8_t response_type;
  947. uint8_t status;
  948. uint16_t sequence;
  949. uint32_t length;
  950. xcb_timestamp_t timestamp;
  951. } xcb_randr_set_panning_reply_t;
  952. /** Opcode for xcb_randr_set_output_primary. */
  953. #define XCB_RANDR_SET_OUTPUT_PRIMARY 30
  954. /**
  955. * @brief xcb_randr_set_output_primary_request_t
  956. **/
  957. typedef struct xcb_randr_set_output_primary_request_t {
  958. uint8_t major_opcode;
  959. uint8_t minor_opcode;
  960. uint16_t length;
  961. xcb_window_t window;
  962. xcb_randr_output_t output;
  963. } xcb_randr_set_output_primary_request_t;
  964. /**
  965. * @brief xcb_randr_get_output_primary_cookie_t
  966. **/
  967. typedef struct xcb_randr_get_output_primary_cookie_t {
  968. unsigned int sequence;
  969. } xcb_randr_get_output_primary_cookie_t;
  970. /** Opcode for xcb_randr_get_output_primary. */
  971. #define XCB_RANDR_GET_OUTPUT_PRIMARY 31
  972. /**
  973. * @brief xcb_randr_get_output_primary_request_t
  974. **/
  975. typedef struct xcb_randr_get_output_primary_request_t {
  976. uint8_t major_opcode;
  977. uint8_t minor_opcode;
  978. uint16_t length;
  979. xcb_window_t window;
  980. } xcb_randr_get_output_primary_request_t;
  981. /**
  982. * @brief xcb_randr_get_output_primary_reply_t
  983. **/
  984. typedef struct xcb_randr_get_output_primary_reply_t {
  985. uint8_t response_type;
  986. uint8_t pad0;
  987. uint16_t sequence;
  988. uint32_t length;
  989. xcb_randr_output_t output;
  990. } xcb_randr_get_output_primary_reply_t;
  991. /**
  992. * @brief xcb_randr_get_providers_cookie_t
  993. **/
  994. typedef struct xcb_randr_get_providers_cookie_t {
  995. unsigned int sequence;
  996. } xcb_randr_get_providers_cookie_t;
  997. /** Opcode for xcb_randr_get_providers. */
  998. #define XCB_RANDR_GET_PROVIDERS 32
  999. /**
  1000. * @brief xcb_randr_get_providers_request_t
  1001. **/
  1002. typedef struct xcb_randr_get_providers_request_t {
  1003. uint8_t major_opcode;
  1004. uint8_t minor_opcode;
  1005. uint16_t length;
  1006. xcb_window_t window;
  1007. } xcb_randr_get_providers_request_t;
  1008. /**
  1009. * @brief xcb_randr_get_providers_reply_t
  1010. **/
  1011. typedef struct xcb_randr_get_providers_reply_t {
  1012. uint8_t response_type;
  1013. uint8_t pad0;
  1014. uint16_t sequence;
  1015. uint32_t length;
  1016. xcb_timestamp_t timestamp;
  1017. uint16_t num_providers;
  1018. uint8_t pad1[18];
  1019. } xcb_randr_get_providers_reply_t;
  1020. typedef enum xcb_randr_provider_capability_t {
  1021. XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OUTPUT = 1,
  1022. XCB_RANDR_PROVIDER_CAPABILITY_SINK_OUTPUT = 2,
  1023. XCB_RANDR_PROVIDER_CAPABILITY_SOURCE_OFFLOAD = 4,
  1024. XCB_RANDR_PROVIDER_CAPABILITY_SINK_OFFLOAD = 8
  1025. } xcb_randr_provider_capability_t;
  1026. /**
  1027. * @brief xcb_randr_get_provider_info_cookie_t
  1028. **/
  1029. typedef struct xcb_randr_get_provider_info_cookie_t {
  1030. unsigned int sequence;
  1031. } xcb_randr_get_provider_info_cookie_t;
  1032. /** Opcode for xcb_randr_get_provider_info. */
  1033. #define XCB_RANDR_GET_PROVIDER_INFO 33
  1034. /**
  1035. * @brief xcb_randr_get_provider_info_request_t
  1036. **/
  1037. typedef struct xcb_randr_get_provider_info_request_t {
  1038. uint8_t major_opcode;
  1039. uint8_t minor_opcode;
  1040. uint16_t length;
  1041. xcb_randr_provider_t provider;
  1042. xcb_timestamp_t config_timestamp;
  1043. } xcb_randr_get_provider_info_request_t;
  1044. /**
  1045. * @brief xcb_randr_get_provider_info_reply_t
  1046. **/
  1047. typedef struct xcb_randr_get_provider_info_reply_t {
  1048. uint8_t response_type;
  1049. uint8_t status;
  1050. uint16_t sequence;
  1051. uint32_t length;
  1052. xcb_timestamp_t timestamp;
  1053. uint32_t capabilities;
  1054. uint16_t num_crtcs;
  1055. uint16_t num_outputs;
  1056. uint16_t num_associated_providers;
  1057. uint16_t name_len;
  1058. uint8_t pad0[8];
  1059. } xcb_randr_get_provider_info_reply_t;
  1060. /** Opcode for xcb_randr_set_provider_offload_sink. */
  1061. #define XCB_RANDR_SET_PROVIDER_OFFLOAD_SINK 34
  1062. /**
  1063. * @brief xcb_randr_set_provider_offload_sink_request_t
  1064. **/
  1065. typedef struct xcb_randr_set_provider_offload_sink_request_t {
  1066. uint8_t major_opcode;
  1067. uint8_t minor_opcode;
  1068. uint16_t length;
  1069. xcb_randr_provider_t provider;
  1070. xcb_randr_provider_t sink_provider;
  1071. xcb_timestamp_t config_timestamp;
  1072. } xcb_randr_set_provider_offload_sink_request_t;
  1073. /** Opcode for xcb_randr_set_provider_output_source. */
  1074. #define XCB_RANDR_SET_PROVIDER_OUTPUT_SOURCE 35
  1075. /**
  1076. * @brief xcb_randr_set_provider_output_source_request_t
  1077. **/
  1078. typedef struct xcb_randr_set_provider_output_source_request_t {
  1079. uint8_t major_opcode;
  1080. uint8_t minor_opcode;
  1081. uint16_t length;
  1082. xcb_randr_provider_t provider;
  1083. xcb_randr_provider_t source_provider;
  1084. xcb_timestamp_t config_timestamp;
  1085. } xcb_randr_set_provider_output_source_request_t;
  1086. /**
  1087. * @brief xcb_randr_list_provider_properties_cookie_t
  1088. **/
  1089. typedef struct xcb_randr_list_provider_properties_cookie_t {
  1090. unsigned int sequence;
  1091. } xcb_randr_list_provider_properties_cookie_t;
  1092. /** Opcode for xcb_randr_list_provider_properties. */
  1093. #define XCB_RANDR_LIST_PROVIDER_PROPERTIES 36
  1094. /**
  1095. * @brief xcb_randr_list_provider_properties_request_t
  1096. **/
  1097. typedef struct xcb_randr_list_provider_properties_request_t {
  1098. uint8_t major_opcode;
  1099. uint8_t minor_opcode;
  1100. uint16_t length;
  1101. xcb_randr_provider_t provider;
  1102. } xcb_randr_list_provider_properties_request_t;
  1103. /**
  1104. * @brief xcb_randr_list_provider_properties_reply_t
  1105. **/
  1106. typedef struct xcb_randr_list_provider_properties_reply_t {
  1107. uint8_t response_type;
  1108. uint8_t pad0;
  1109. uint16_t sequence;
  1110. uint32_t length;
  1111. uint16_t num_atoms;
  1112. uint8_t pad1[22];
  1113. } xcb_randr_list_provider_properties_reply_t;
  1114. /**
  1115. * @brief xcb_randr_query_provider_property_cookie_t
  1116. **/
  1117. typedef struct xcb_randr_query_provider_property_cookie_t {
  1118. unsigned int sequence;
  1119. } xcb_randr_query_provider_property_cookie_t;
  1120. /** Opcode for xcb_randr_query_provider_property. */
  1121. #define XCB_RANDR_QUERY_PROVIDER_PROPERTY 37
  1122. /**
  1123. * @brief xcb_randr_query_provider_property_request_t
  1124. **/
  1125. typedef struct xcb_randr_query_provider_property_request_t {
  1126. uint8_t major_opcode;
  1127. uint8_t minor_opcode;
  1128. uint16_t length;
  1129. xcb_randr_provider_t provider;
  1130. xcb_atom_t property;
  1131. } xcb_randr_query_provider_property_request_t;
  1132. /**
  1133. * @brief xcb_randr_query_provider_property_reply_t
  1134. **/
  1135. typedef struct xcb_randr_query_provider_property_reply_t {
  1136. uint8_t response_type;
  1137. uint8_t pad0;
  1138. uint16_t sequence;
  1139. uint32_t length;
  1140. uint8_t pending;
  1141. uint8_t range;
  1142. uint8_t immutable;
  1143. uint8_t pad1[21];
  1144. } xcb_randr_query_provider_property_reply_t;
  1145. /** Opcode for xcb_randr_configure_provider_property. */
  1146. #define XCB_RANDR_CONFIGURE_PROVIDER_PROPERTY 38
  1147. /**
  1148. * @brief xcb_randr_configure_provider_property_request_t
  1149. **/
  1150. typedef struct xcb_randr_configure_provider_property_request_t {
  1151. uint8_t major_opcode;
  1152. uint8_t minor_opcode;
  1153. uint16_t length;
  1154. xcb_randr_provider_t provider;
  1155. xcb_atom_t property;
  1156. uint8_t pending;
  1157. uint8_t range;
  1158. uint8_t pad0[2];
  1159. } xcb_randr_configure_provider_property_request_t;
  1160. /** Opcode for xcb_randr_change_provider_property. */
  1161. #define XCB_RANDR_CHANGE_PROVIDER_PROPERTY 39
  1162. /**
  1163. * @brief xcb_randr_change_provider_property_request_t
  1164. **/
  1165. typedef struct xcb_randr_change_provider_property_request_t {
  1166. uint8_t major_opcode;
  1167. uint8_t minor_opcode;
  1168. uint16_t length;
  1169. xcb_randr_provider_t provider;
  1170. xcb_atom_t property;
  1171. xcb_atom_t type;
  1172. uint8_t format;
  1173. uint8_t mode;
  1174. uint8_t pad0[2];
  1175. uint32_t num_items;
  1176. } xcb_randr_change_provider_property_request_t;
  1177. /** Opcode for xcb_randr_delete_provider_property. */
  1178. #define XCB_RANDR_DELETE_PROVIDER_PROPERTY 40
  1179. /**
  1180. * @brief xcb_randr_delete_provider_property_request_t
  1181. **/
  1182. typedef struct xcb_randr_delete_provider_property_request_t {
  1183. uint8_t major_opcode;
  1184. uint8_t minor_opcode;
  1185. uint16_t length;
  1186. xcb_randr_provider_t provider;
  1187. xcb_atom_t property;
  1188. } xcb_randr_delete_provider_property_request_t;
  1189. /**
  1190. * @brief xcb_randr_get_provider_property_cookie_t
  1191. **/
  1192. typedef struct xcb_randr_get_provider_property_cookie_t {
  1193. unsigned int sequence;
  1194. } xcb_randr_get_provider_property_cookie_t;
  1195. /** Opcode for xcb_randr_get_provider_property. */
  1196. #define XCB_RANDR_GET_PROVIDER_PROPERTY 41
  1197. /**
  1198. * @brief xcb_randr_get_provider_property_request_t
  1199. **/
  1200. typedef struct xcb_randr_get_provider_property_request_t {
  1201. uint8_t major_opcode;
  1202. uint8_t minor_opcode;
  1203. uint16_t length;
  1204. xcb_randr_provider_t provider;
  1205. xcb_atom_t property;
  1206. xcb_atom_t type;
  1207. uint32_t long_offset;
  1208. uint32_t long_length;
  1209. uint8_t _delete;
  1210. uint8_t pending;
  1211. uint8_t pad0[2];
  1212. } xcb_randr_get_provider_property_request_t;
  1213. /**
  1214. * @brief xcb_randr_get_provider_property_reply_t
  1215. **/
  1216. typedef struct xcb_randr_get_provider_property_reply_t {
  1217. uint8_t response_type;
  1218. uint8_t format;
  1219. uint16_t sequence;
  1220. uint32_t length;
  1221. xcb_atom_t type;
  1222. uint32_t bytes_after;
  1223. uint32_t num_items;
  1224. uint8_t pad0[12];
  1225. } xcb_randr_get_provider_property_reply_t;
  1226. /** Opcode for xcb_randr_screen_change_notify. */
  1227. #define XCB_RANDR_SCREEN_CHANGE_NOTIFY 0
  1228. /**
  1229. * @brief xcb_randr_screen_change_notify_event_t
  1230. **/
  1231. typedef struct xcb_randr_screen_change_notify_event_t {
  1232. uint8_t response_type;
  1233. uint8_t rotation;
  1234. uint16_t sequence;
  1235. xcb_timestamp_t timestamp;
  1236. xcb_timestamp_t config_timestamp;
  1237. xcb_window_t root;
  1238. xcb_window_t request_window;
  1239. uint16_t sizeID;
  1240. uint16_t subpixel_order;
  1241. uint16_t width;
  1242. uint16_t height;
  1243. uint16_t mwidth;
  1244. uint16_t mheight;
  1245. } xcb_randr_screen_change_notify_event_t;
  1246. typedef enum xcb_randr_notify_t {
  1247. XCB_RANDR_NOTIFY_CRTC_CHANGE = 0,
  1248. XCB_RANDR_NOTIFY_OUTPUT_CHANGE = 1,
  1249. XCB_RANDR_NOTIFY_OUTPUT_PROPERTY = 2,
  1250. XCB_RANDR_NOTIFY_PROVIDER_CHANGE = 3,
  1251. XCB_RANDR_NOTIFY_PROVIDER_PROPERTY = 4,
  1252. XCB_RANDR_NOTIFY_RESOURCE_CHANGE = 5,
  1253. XCB_RANDR_NOTIFY_LEASE = 6
  1254. } xcb_randr_notify_t;
  1255. /**
  1256. * @brief xcb_randr_crtc_change_t
  1257. **/
  1258. typedef struct xcb_randr_crtc_change_t {
  1259. xcb_timestamp_t timestamp;
  1260. xcb_window_t window;
  1261. xcb_randr_crtc_t crtc;
  1262. xcb_randr_mode_t mode;
  1263. uint16_t rotation;
  1264. uint8_t pad0[2];
  1265. int16_t x;
  1266. int16_t y;
  1267. uint16_t width;
  1268. uint16_t height;
  1269. } xcb_randr_crtc_change_t;
  1270. /**
  1271. * @brief xcb_randr_crtc_change_iterator_t
  1272. **/
  1273. typedef struct xcb_randr_crtc_change_iterator_t {
  1274. xcb_randr_crtc_change_t *data;
  1275. int rem;
  1276. int index;
  1277. } xcb_randr_crtc_change_iterator_t;
  1278. /**
  1279. * @brief xcb_randr_output_change_t
  1280. **/
  1281. typedef struct xcb_randr_output_change_t {
  1282. xcb_timestamp_t timestamp;
  1283. xcb_timestamp_t config_timestamp;
  1284. xcb_window_t window;
  1285. xcb_randr_output_t output;
  1286. xcb_randr_crtc_t crtc;
  1287. xcb_randr_mode_t mode;
  1288. uint16_t rotation;
  1289. uint8_t connection;
  1290. uint8_t subpixel_order;
  1291. } xcb_randr_output_change_t;
  1292. /**
  1293. * @brief xcb_randr_output_change_iterator_t
  1294. **/
  1295. typedef struct xcb_randr_output_change_iterator_t {
  1296. xcb_randr_output_change_t *data;
  1297. int rem;
  1298. int index;
  1299. } xcb_randr_output_change_iterator_t;
  1300. /**
  1301. * @brief xcb_randr_output_property_t
  1302. **/
  1303. typedef struct xcb_randr_output_property_t {
  1304. xcb_window_t window;
  1305. xcb_randr_output_t output;
  1306. xcb_atom_t atom;
  1307. xcb_timestamp_t timestamp;
  1308. uint8_t status;
  1309. uint8_t pad0[11];
  1310. } xcb_randr_output_property_t;
  1311. /**
  1312. * @brief xcb_randr_output_property_iterator_t
  1313. **/
  1314. typedef struct xcb_randr_output_property_iterator_t {
  1315. xcb_randr_output_property_t *data;
  1316. int rem;
  1317. int index;
  1318. } xcb_randr_output_property_iterator_t;
  1319. /**
  1320. * @brief xcb_randr_provider_change_t
  1321. **/
  1322. typedef struct xcb_randr_provider_change_t {
  1323. xcb_timestamp_t timestamp;
  1324. xcb_window_t window;
  1325. xcb_randr_provider_t provider;
  1326. uint8_t pad0[16];
  1327. } xcb_randr_provider_change_t;
  1328. /**
  1329. * @brief xcb_randr_provider_change_iterator_t
  1330. **/
  1331. typedef struct xcb_randr_provider_change_iterator_t {
  1332. xcb_randr_provider_change_t *data;
  1333. int rem;
  1334. int index;
  1335. } xcb_randr_provider_change_iterator_t;
  1336. /**
  1337. * @brief xcb_randr_provider_property_t
  1338. **/
  1339. typedef struct xcb_randr_provider_property_t {
  1340. xcb_window_t window;
  1341. xcb_randr_provider_t provider;
  1342. xcb_atom_t atom;
  1343. xcb_timestamp_t timestamp;
  1344. uint8_t state;
  1345. uint8_t pad0[11];
  1346. } xcb_randr_provider_property_t;
  1347. /**
  1348. * @brief xcb_randr_provider_property_iterator_t
  1349. **/
  1350. typedef struct xcb_randr_provider_property_iterator_t {
  1351. xcb_randr_provider_property_t *data;
  1352. int rem;
  1353. int index;
  1354. } xcb_randr_provider_property_iterator_t;
  1355. /**
  1356. * @brief xcb_randr_resource_change_t
  1357. **/
  1358. typedef struct xcb_randr_resource_change_t {
  1359. xcb_timestamp_t timestamp;
  1360. xcb_window_t window;
  1361. uint8_t pad0[20];
  1362. } xcb_randr_resource_change_t;
  1363. /**
  1364. * @brief xcb_randr_resource_change_iterator_t
  1365. **/
  1366. typedef struct xcb_randr_resource_change_iterator_t {
  1367. xcb_randr_resource_change_t *data;
  1368. int rem;
  1369. int index;
  1370. } xcb_randr_resource_change_iterator_t;
  1371. /**
  1372. * @brief xcb_randr_monitor_info_t
  1373. **/
  1374. typedef struct xcb_randr_monitor_info_t {
  1375. xcb_atom_t name;
  1376. uint8_t primary;
  1377. uint8_t automatic;
  1378. uint16_t nOutput;
  1379. int16_t x;
  1380. int16_t y;
  1381. uint16_t width;
  1382. uint16_t height;
  1383. uint32_t width_in_millimeters;
  1384. uint32_t height_in_millimeters;
  1385. } xcb_randr_monitor_info_t;
  1386. /**
  1387. * @brief xcb_randr_monitor_info_iterator_t
  1388. **/
  1389. typedef struct xcb_randr_monitor_info_iterator_t {
  1390. xcb_randr_monitor_info_t *data;
  1391. int rem;
  1392. int index;
  1393. } xcb_randr_monitor_info_iterator_t;
  1394. /**
  1395. * @brief xcb_randr_get_monitors_cookie_t
  1396. **/
  1397. typedef struct xcb_randr_get_monitors_cookie_t {
  1398. unsigned int sequence;
  1399. } xcb_randr_get_monitors_cookie_t;
  1400. /** Opcode for xcb_randr_get_monitors. */
  1401. #define XCB_RANDR_GET_MONITORS 42
  1402. /**
  1403. * @brief xcb_randr_get_monitors_request_t
  1404. **/
  1405. typedef struct xcb_randr_get_monitors_request_t {
  1406. uint8_t major_opcode;
  1407. uint8_t minor_opcode;
  1408. uint16_t length;
  1409. xcb_window_t window;
  1410. uint8_t get_active;
  1411. } xcb_randr_get_monitors_request_t;
  1412. /**
  1413. * @brief xcb_randr_get_monitors_reply_t
  1414. **/
  1415. typedef struct xcb_randr_get_monitors_reply_t {
  1416. uint8_t response_type;
  1417. uint8_t pad0;
  1418. uint16_t sequence;
  1419. uint32_t length;
  1420. xcb_timestamp_t timestamp;
  1421. uint32_t nMonitors;
  1422. uint32_t nOutputs;
  1423. uint8_t pad1[12];
  1424. } xcb_randr_get_monitors_reply_t;
  1425. /** Opcode for xcb_randr_set_monitor. */
  1426. #define XCB_RANDR_SET_MONITOR 43
  1427. /**
  1428. * @brief xcb_randr_set_monitor_request_t
  1429. **/
  1430. typedef struct xcb_randr_set_monitor_request_t {
  1431. uint8_t major_opcode;
  1432. uint8_t minor_opcode;
  1433. uint16_t length;
  1434. xcb_window_t window;
  1435. } xcb_randr_set_monitor_request_t;
  1436. /** Opcode for xcb_randr_delete_monitor. */
  1437. #define XCB_RANDR_DELETE_MONITOR 44
  1438. /**
  1439. * @brief xcb_randr_delete_monitor_request_t
  1440. **/
  1441. typedef struct xcb_randr_delete_monitor_request_t {
  1442. uint8_t major_opcode;
  1443. uint8_t minor_opcode;
  1444. uint16_t length;
  1445. xcb_window_t window;
  1446. xcb_atom_t name;
  1447. } xcb_randr_delete_monitor_request_t;
  1448. /**
  1449. * @brief xcb_randr_create_lease_cookie_t
  1450. **/
  1451. typedef struct xcb_randr_create_lease_cookie_t {
  1452. unsigned int sequence;
  1453. } xcb_randr_create_lease_cookie_t;
  1454. /** Opcode for xcb_randr_create_lease. */
  1455. #define XCB_RANDR_CREATE_LEASE 45
  1456. /**
  1457. * @brief xcb_randr_create_lease_request_t
  1458. **/
  1459. typedef struct xcb_randr_create_lease_request_t {
  1460. uint8_t major_opcode;
  1461. uint8_t minor_opcode;
  1462. uint16_t length;
  1463. xcb_window_t window;
  1464. xcb_randr_lease_t lid;
  1465. uint16_t num_crtcs;
  1466. uint16_t num_outputs;
  1467. } xcb_randr_create_lease_request_t;
  1468. /**
  1469. * @brief xcb_randr_create_lease_reply_t
  1470. **/
  1471. typedef struct xcb_randr_create_lease_reply_t {
  1472. uint8_t response_type;
  1473. uint8_t nfd;
  1474. uint16_t sequence;
  1475. uint32_t length;
  1476. uint8_t pad0[24];
  1477. } xcb_randr_create_lease_reply_t;
  1478. /** Opcode for xcb_randr_free_lease. */
  1479. #define XCB_RANDR_FREE_LEASE 46
  1480. /**
  1481. * @brief xcb_randr_free_lease_request_t
  1482. **/
  1483. typedef struct xcb_randr_free_lease_request_t {
  1484. uint8_t major_opcode;
  1485. uint8_t minor_opcode;
  1486. uint16_t length;
  1487. xcb_randr_lease_t lid;
  1488. uint8_t terminate;
  1489. } xcb_randr_free_lease_request_t;
  1490. /**
  1491. * @brief xcb_randr_lease_notify_t
  1492. **/
  1493. typedef struct xcb_randr_lease_notify_t {
  1494. xcb_timestamp_t timestamp;
  1495. xcb_window_t window;
  1496. xcb_randr_lease_t lease;
  1497. uint8_t created;
  1498. uint8_t pad0[15];
  1499. } xcb_randr_lease_notify_t;
  1500. /**
  1501. * @brief xcb_randr_lease_notify_iterator_t
  1502. **/
  1503. typedef struct xcb_randr_lease_notify_iterator_t {
  1504. xcb_randr_lease_notify_t *data;
  1505. int rem;
  1506. int index;
  1507. } xcb_randr_lease_notify_iterator_t;
  1508. /**
  1509. * @brief xcb_randr_notify_data_t
  1510. **/
  1511. typedef union xcb_randr_notify_data_t {
  1512. xcb_randr_crtc_change_t cc;
  1513. xcb_randr_output_change_t oc;
  1514. xcb_randr_output_property_t op;
  1515. xcb_randr_provider_change_t pc;
  1516. xcb_randr_provider_property_t pp;
  1517. xcb_randr_resource_change_t rc;
  1518. xcb_randr_lease_notify_t lc;
  1519. } xcb_randr_notify_data_t;
  1520. /**
  1521. * @brief xcb_randr_notify_data_iterator_t
  1522. **/
  1523. typedef struct xcb_randr_notify_data_iterator_t {
  1524. xcb_randr_notify_data_t *data;
  1525. int rem;
  1526. int index;
  1527. } xcb_randr_notify_data_iterator_t;
  1528. /** Opcode for xcb_randr_notify. */
  1529. #define XCB_RANDR_NOTIFY 1
  1530. /**
  1531. * @brief xcb_randr_notify_event_t
  1532. **/
  1533. typedef struct xcb_randr_notify_event_t {
  1534. uint8_t response_type;
  1535. uint8_t subCode;
  1536. uint16_t sequence;
  1537. xcb_randr_notify_data_t u;
  1538. } xcb_randr_notify_event_t;
  1539. /**
  1540. * Get the next element of the iterator
  1541. * @param i Pointer to a xcb_randr_mode_iterator_t
  1542. *
  1543. * Get the next element in the iterator. The member rem is
  1544. * decreased by one. The member data points to the next
  1545. * element. The member index is increased by sizeof(xcb_randr_mode_t)
  1546. */
  1547. void
  1548. xcb_randr_mode_next (xcb_randr_mode_iterator_t *i);
  1549. /**
  1550. * Return the iterator pointing to the last element
  1551. * @param i An xcb_randr_mode_iterator_t
  1552. * @return The iterator pointing to the last element
  1553. *
  1554. * Set the current element in the iterator to the last element.
  1555. * The member rem is set to 0. The member data points to the
  1556. * last element.
  1557. */
  1558. xcb_generic_iterator_t
  1559. xcb_randr_mode_end (xcb_randr_mode_iterator_t i);
  1560. /**
  1561. * Get the next element of the iterator
  1562. * @param i Pointer to a xcb_randr_crtc_iterator_t
  1563. *
  1564. * Get the next element in the iterator. The member rem is
  1565. * decreased by one. The member data points to the next
  1566. * element. The member index is increased by sizeof(xcb_randr_crtc_t)
  1567. */
  1568. void
  1569. xcb_randr_crtc_next (xcb_randr_crtc_iterator_t *i);
  1570. /**
  1571. * Return the iterator pointing to the last element
  1572. * @param i An xcb_randr_crtc_iterator_t
  1573. * @return The iterator pointing to the last element
  1574. *
  1575. * Set the current element in the iterator to the last element.
  1576. * The member rem is set to 0. The member data points to the
  1577. * last element.
  1578. */
  1579. xcb_generic_iterator_t
  1580. xcb_randr_crtc_end (xcb_randr_crtc_iterator_t i);
  1581. /**
  1582. * Get the next element of the iterator
  1583. * @param i Pointer to a xcb_randr_output_iterator_t
  1584. *
  1585. * Get the next element in the iterator. The member rem is
  1586. * decreased by one. The member data points to the next
  1587. * element. The member index is increased by sizeof(xcb_randr_output_t)
  1588. */
  1589. void
  1590. xcb_randr_output_next (xcb_randr_output_iterator_t *i);
  1591. /**
  1592. * Return the iterator pointing to the last element
  1593. * @param i An xcb_randr_output_iterator_t
  1594. * @return The iterator pointing to the last element
  1595. *
  1596. * Set the current element in the iterator to the last element.
  1597. * The member rem is set to 0. The member data points to the
  1598. * last element.
  1599. */
  1600. xcb_generic_iterator_t
  1601. xcb_randr_output_end (xcb_randr_output_iterator_t i);
  1602. /**
  1603. * Get the next element of the iterator
  1604. * @param i Pointer to a xcb_randr_provider_iterator_t
  1605. *
  1606. * Get the next element in the iterator. The member rem is
  1607. * decreased by one. The member data points to the next
  1608. * element. The member index is increased by sizeof(xcb_randr_provider_t)
  1609. */
  1610. void
  1611. xcb_randr_provider_next (xcb_randr_provider_iterator_t *i);
  1612. /**
  1613. * Return the iterator pointing to the last element
  1614. * @param i An xcb_randr_provider_iterator_t
  1615. * @return The iterator pointing to the last element
  1616. *
  1617. * Set the current element in the iterator to the last element.
  1618. * The member rem is set to 0. The member data points to the
  1619. * last element.
  1620. */
  1621. xcb_generic_iterator_t
  1622. xcb_randr_provider_end (xcb_randr_provider_iterator_t i);
  1623. /**
  1624. * Get the next element of the iterator
  1625. * @param i Pointer to a xcb_randr_lease_iterator_t
  1626. *
  1627. * Get the next element in the iterator. The member rem is
  1628. * decreased by one. The member data points to the next
  1629. * element. The member index is increased by sizeof(xcb_randr_lease_t)
  1630. */
  1631. void
  1632. xcb_randr_lease_next (xcb_randr_lease_iterator_t *i);
  1633. /**
  1634. * Return the iterator pointing to the last element
  1635. * @param i An xcb_randr_lease_iterator_t
  1636. * @return The iterator pointing to the last element
  1637. *
  1638. * Set the current element in the iterator to the last element.
  1639. * The member rem is set to 0. The member data points to the
  1640. * last element.
  1641. */
  1642. xcb_generic_iterator_t
  1643. xcb_randr_lease_end (xcb_randr_lease_iterator_t i);
  1644. /**
  1645. * Get the next element of the iterator
  1646. * @param i Pointer to a xcb_randr_screen_size_iterator_t
  1647. *
  1648. * Get the next element in the iterator. The member rem is
  1649. * decreased by one. The member data points to the next
  1650. * element. The member index is increased by sizeof(xcb_randr_screen_size_t)
  1651. */
  1652. void
  1653. xcb_randr_screen_size_next (xcb_randr_screen_size_iterator_t *i);
  1654. /**
  1655. * Return the iterator pointing to the last element
  1656. * @param i An xcb_randr_screen_size_iterator_t
  1657. * @return The iterator pointing to the last element
  1658. *
  1659. * Set the current element in the iterator to the last element.
  1660. * The member rem is set to 0. The member data points to the
  1661. * last element.
  1662. */
  1663. xcb_generic_iterator_t
  1664. xcb_randr_screen_size_end (xcb_randr_screen_size_iterator_t i);
  1665. int
  1666. xcb_randr_refresh_rates_sizeof (const void *_buffer);
  1667. uint16_t *
  1668. xcb_randr_refresh_rates_rates (const xcb_randr_refresh_rates_t *R);
  1669. int
  1670. xcb_randr_refresh_rates_rates_length (const xcb_randr_refresh_rates_t *R);
  1671. xcb_generic_iterator_t
  1672. xcb_randr_refresh_rates_rates_end (const xcb_randr_refresh_rates_t *R);
  1673. /**
  1674. * Get the next element of the iterator
  1675. * @param i Pointer to a xcb_randr_refresh_rates_iterator_t
  1676. *
  1677. * Get the next element in the iterator. The member rem is
  1678. * decreased by one. The member data points to the next
  1679. * element. The member index is increased by sizeof(xcb_randr_refresh_rates_t)
  1680. */
  1681. void
  1682. xcb_randr_refresh_rates_next (xcb_randr_refresh_rates_iterator_t *i);
  1683. /**
  1684. * Return the iterator pointing to the last element
  1685. * @param i An xcb_randr_refresh_rates_iterator_t
  1686. * @return The iterator pointing to the last element
  1687. *
  1688. * Set the current element in the iterator to the last element.
  1689. * The member rem is set to 0. The member data points to the
  1690. * last element.
  1691. */
  1692. xcb_generic_iterator_t
  1693. xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i);
  1694. /**
  1695. *
  1696. * @param c The connection
  1697. * @return A cookie
  1698. *
  1699. * Delivers a request to the X server.
  1700. *
  1701. */
  1702. xcb_randr_query_version_cookie_t
  1703. xcb_randr_query_version (xcb_connection_t *c,
  1704. uint32_t major_version,
  1705. uint32_t minor_version);
  1706. /**
  1707. *
  1708. * @param c The connection
  1709. * @return A cookie
  1710. *
  1711. * Delivers a request to the X server.
  1712. *
  1713. * This form can be used only if the request will cause
  1714. * a reply to be generated. Any returned error will be
  1715. * placed in the event queue.
  1716. */
  1717. xcb_randr_query_version_cookie_t
  1718. xcb_randr_query_version_unchecked (xcb_connection_t *c,
  1719. uint32_t major_version,
  1720. uint32_t minor_version);
  1721. /**
  1722. * Return the reply
  1723. * @param c The connection
  1724. * @param cookie The cookie
  1725. * @param e The xcb_generic_error_t supplied
  1726. *
  1727. * Returns the reply of the request asked by
  1728. *
  1729. * The parameter @p e supplied to this function must be NULL if
  1730. * xcb_randr_query_version_unchecked(). is used.
  1731. * Otherwise, it stores the error if any.
  1732. *
  1733. * The returned value must be freed by the caller using free().
  1734. */
  1735. xcb_randr_query_version_reply_t *
  1736. xcb_randr_query_version_reply (xcb_connection_t *c,
  1737. xcb_randr_query_version_cookie_t cookie /**< */,
  1738. xcb_generic_error_t **e);
  1739. /**
  1740. *
  1741. * @param c The connection
  1742. * @return A cookie
  1743. *
  1744. * Delivers a request to the X server.
  1745. *
  1746. */
  1747. xcb_randr_set_screen_config_cookie_t
  1748. xcb_randr_set_screen_config (xcb_connection_t *c,
  1749. xcb_window_t window,
  1750. xcb_timestamp_t timestamp,
  1751. xcb_timestamp_t config_timestamp,
  1752. uint16_t sizeID,
  1753. uint16_t rotation,
  1754. uint16_t rate);
  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 cause
  1763. * a reply to be generated. Any returned error will be
  1764. * placed in the event queue.
  1765. */
  1766. xcb_randr_set_screen_config_cookie_t
  1767. xcb_randr_set_screen_config_unchecked (xcb_connection_t *c,
  1768. xcb_window_t window,
  1769. xcb_timestamp_t timestamp,
  1770. xcb_timestamp_t config_timestamp,
  1771. uint16_t sizeID,
  1772. uint16_t rotation,
  1773. uint16_t rate);
  1774. /**
  1775. * Return the reply
  1776. * @param c The connection
  1777. * @param cookie The cookie
  1778. * @param e The xcb_generic_error_t supplied
  1779. *
  1780. * Returns the reply of the request asked by
  1781. *
  1782. * The parameter @p e supplied to this function must be NULL if
  1783. * xcb_randr_set_screen_config_unchecked(). is used.
  1784. * Otherwise, it stores the error if any.
  1785. *
  1786. * The returned value must be freed by the caller using free().
  1787. */
  1788. xcb_randr_set_screen_config_reply_t *
  1789. xcb_randr_set_screen_config_reply (xcb_connection_t *c,
  1790. xcb_randr_set_screen_config_cookie_t cookie /**< */,
  1791. xcb_generic_error_t **e);
  1792. /**
  1793. *
  1794. * @param c The connection
  1795. * @return A cookie
  1796. *
  1797. * Delivers a request to the X server.
  1798. *
  1799. * This form can be used only if the request will not cause
  1800. * a reply to be generated. Any returned error will be
  1801. * saved for handling by xcb_request_check().
  1802. */
  1803. xcb_void_cookie_t
  1804. xcb_randr_select_input_checked (xcb_connection_t *c,
  1805. xcb_window_t window,
  1806. uint16_t enable);
  1807. /**
  1808. *
  1809. * @param c The connection
  1810. * @return A cookie
  1811. *
  1812. * Delivers a request to the X server.
  1813. *
  1814. */
  1815. xcb_void_cookie_t
  1816. xcb_randr_select_input (xcb_connection_t *c,
  1817. xcb_window_t window,
  1818. uint16_t enable);
  1819. int
  1820. xcb_randr_get_screen_info_sizeof (const void *_buffer);
  1821. /**
  1822. *
  1823. * @param c The connection
  1824. * @return A cookie
  1825. *
  1826. * Delivers a request to the X server.
  1827. *
  1828. */
  1829. xcb_randr_get_screen_info_cookie_t
  1830. xcb_randr_get_screen_info (xcb_connection_t *c,
  1831. xcb_window_t window);
  1832. /**
  1833. *
  1834. * @param c The connection
  1835. * @return A cookie
  1836. *
  1837. * Delivers a request to the X server.
  1838. *
  1839. * This form can be used only if the request will cause
  1840. * a reply to be generated. Any returned error will be
  1841. * placed in the event queue.
  1842. */
  1843. xcb_randr_get_screen_info_cookie_t
  1844. xcb_randr_get_screen_info_unchecked (xcb_connection_t *c,
  1845. xcb_window_t window);
  1846. xcb_randr_screen_size_t *
  1847. xcb_randr_get_screen_info_sizes (const xcb_randr_get_screen_info_reply_t *R);
  1848. int
  1849. xcb_randr_get_screen_info_sizes_length (const xcb_randr_get_screen_info_reply_t *R);
  1850. xcb_randr_screen_size_iterator_t
  1851. xcb_randr_get_screen_info_sizes_iterator (const xcb_randr_get_screen_info_reply_t *R);
  1852. int
  1853. xcb_randr_get_screen_info_rates_length (const xcb_randr_get_screen_info_reply_t *R);
  1854. xcb_randr_refresh_rates_iterator_t
  1855. xcb_randr_get_screen_info_rates_iterator (const xcb_randr_get_screen_info_reply_t *R);
  1856. /**
  1857. * Return the reply
  1858. * @param c The connection
  1859. * @param cookie The cookie
  1860. * @param e The xcb_generic_error_t supplied
  1861. *
  1862. * Returns the reply of the request asked by
  1863. *
  1864. * The parameter @p e supplied to this function must be NULL if
  1865. * xcb_randr_get_screen_info_unchecked(). is used.
  1866. * Otherwise, it stores the error if any.
  1867. *
  1868. * The returned value must be freed by the caller using free().
  1869. */
  1870. xcb_randr_get_screen_info_reply_t *
  1871. xcb_randr_get_screen_info_reply (xcb_connection_t *c,
  1872. xcb_randr_get_screen_info_cookie_t cookie /**< */,
  1873. xcb_generic_error_t **e);
  1874. /**
  1875. *
  1876. * @param c The connection
  1877. * @return A cookie
  1878. *
  1879. * Delivers a request to the X server.
  1880. *
  1881. */
  1882. xcb_randr_get_screen_size_range_cookie_t
  1883. xcb_randr_get_screen_size_range (xcb_connection_t *c,
  1884. xcb_window_t window);
  1885. /**
  1886. *
  1887. * @param c The connection
  1888. * @return A cookie
  1889. *
  1890. * Delivers a request to the X server.
  1891. *
  1892. * This form can be used only if the request will cause
  1893. * a reply to be generated. Any returned error will be
  1894. * placed in the event queue.
  1895. */
  1896. xcb_randr_get_screen_size_range_cookie_t
  1897. xcb_randr_get_screen_size_range_unchecked (xcb_connection_t *c,
  1898. xcb_window_t window);
  1899. /**
  1900. * Return the reply
  1901. * @param c The connection
  1902. * @param cookie The cookie
  1903. * @param e The xcb_generic_error_t supplied
  1904. *
  1905. * Returns the reply of the request asked by
  1906. *
  1907. * The parameter @p e supplied to this function must be NULL if
  1908. * xcb_randr_get_screen_size_range_unchecked(). is used.
  1909. * Otherwise, it stores the error if any.
  1910. *
  1911. * The returned value must be freed by the caller using free().
  1912. */
  1913. xcb_randr_get_screen_size_range_reply_t *
  1914. xcb_randr_get_screen_size_range_reply (xcb_connection_t *c,
  1915. xcb_randr_get_screen_size_range_cookie_t cookie /**< */,
  1916. xcb_generic_error_t **e);
  1917. /**
  1918. *
  1919. * @param c The connection
  1920. * @return A cookie
  1921. *
  1922. * Delivers a request to the X server.
  1923. *
  1924. * This form can be used only if the request will not cause
  1925. * a reply to be generated. Any returned error will be
  1926. * saved for handling by xcb_request_check().
  1927. */
  1928. xcb_void_cookie_t
  1929. xcb_randr_set_screen_size_checked (xcb_connection_t *c,
  1930. xcb_window_t window,
  1931. uint16_t width,
  1932. uint16_t height,
  1933. uint32_t mm_width,
  1934. uint32_t mm_height);
  1935. /**
  1936. *
  1937. * @param c The connection
  1938. * @return A cookie
  1939. *
  1940. * Delivers a request to the X server.
  1941. *
  1942. */
  1943. xcb_void_cookie_t
  1944. xcb_randr_set_screen_size (xcb_connection_t *c,
  1945. xcb_window_t window,
  1946. uint16_t width,
  1947. uint16_t height,
  1948. uint32_t mm_width,
  1949. uint32_t mm_height);
  1950. /**
  1951. * Get the next element of the iterator
  1952. * @param i Pointer to a xcb_randr_mode_info_iterator_t
  1953. *
  1954. * Get the next element in the iterator. The member rem is
  1955. * decreased by one. The member data points to the next
  1956. * element. The member index is increased by sizeof(xcb_randr_mode_info_t)
  1957. */
  1958. void
  1959. xcb_randr_mode_info_next (xcb_randr_mode_info_iterator_t *i);
  1960. /**
  1961. * Return the iterator pointing to the last element
  1962. * @param i An xcb_randr_mode_info_iterator_t
  1963. * @return The iterator pointing to the last element
  1964. *
  1965. * Set the current element in the iterator to the last element.
  1966. * The member rem is set to 0. The member data points to the
  1967. * last element.
  1968. */
  1969. xcb_generic_iterator_t
  1970. xcb_randr_mode_info_end (xcb_randr_mode_info_iterator_t i);
  1971. int
  1972. xcb_randr_get_screen_resources_sizeof (const void *_buffer);
  1973. /**
  1974. *
  1975. * @param c The connection
  1976. * @return A cookie
  1977. *
  1978. * Delivers a request to the X server.
  1979. *
  1980. */
  1981. xcb_randr_get_screen_resources_cookie_t
  1982. xcb_randr_get_screen_resources (xcb_connection_t *c,
  1983. xcb_window_t window);
  1984. /**
  1985. *
  1986. * @param c The connection
  1987. * @return A cookie
  1988. *
  1989. * Delivers a request to the X server.
  1990. *
  1991. * This form can be used only if the request will cause
  1992. * a reply to be generated. Any returned error will be
  1993. * placed in the event queue.
  1994. */
  1995. xcb_randr_get_screen_resources_cookie_t
  1996. xcb_randr_get_screen_resources_unchecked (xcb_connection_t *c,
  1997. xcb_window_t window);
  1998. xcb_randr_crtc_t *
  1999. xcb_randr_get_screen_resources_crtcs (const xcb_randr_get_screen_resources_reply_t *R);
  2000. int
  2001. xcb_randr_get_screen_resources_crtcs_length (const xcb_randr_get_screen_resources_reply_t *R);
  2002. xcb_generic_iterator_t
  2003. xcb_randr_get_screen_resources_crtcs_end (const xcb_randr_get_screen_resources_reply_t *R);
  2004. xcb_randr_output_t *
  2005. xcb_randr_get_screen_resources_outputs (const xcb_randr_get_screen_resources_reply_t *R);
  2006. int
  2007. xcb_randr_get_screen_resources_outputs_length (const xcb_randr_get_screen_resources_reply_t *R);
  2008. xcb_generic_iterator_t
  2009. xcb_randr_get_screen_resources_outputs_end (const xcb_randr_get_screen_resources_reply_t *R);
  2010. xcb_randr_mode_info_t *
  2011. xcb_randr_get_screen_resources_modes (const xcb_randr_get_screen_resources_reply_t *R);
  2012. int
  2013. xcb_randr_get_screen_resources_modes_length (const xcb_randr_get_screen_resources_reply_t *R);
  2014. xcb_randr_mode_info_iterator_t
  2015. xcb_randr_get_screen_resources_modes_iterator (const xcb_randr_get_screen_resources_reply_t *R);
  2016. uint8_t *
  2017. xcb_randr_get_screen_resources_names (const xcb_randr_get_screen_resources_reply_t *R);
  2018. int
  2019. xcb_randr_get_screen_resources_names_length (const xcb_randr_get_screen_resources_reply_t *R);
  2020. xcb_generic_iterator_t
  2021. xcb_randr_get_screen_resources_names_end (const xcb_randr_get_screen_resources_reply_t *R);
  2022. /**
  2023. * Return the reply
  2024. * @param c The connection
  2025. * @param cookie The cookie
  2026. * @param e The xcb_generic_error_t supplied
  2027. *
  2028. * Returns the reply of the request asked by
  2029. *
  2030. * The parameter @p e supplied to this function must be NULL if
  2031. * xcb_randr_get_screen_resources_unchecked(). is used.
  2032. * Otherwise, it stores the error if any.
  2033. *
  2034. * The returned value must be freed by the caller using free().
  2035. */
  2036. xcb_randr_get_screen_resources_reply_t *
  2037. xcb_randr_get_screen_resources_reply (xcb_connection_t *c,
  2038. xcb_randr_get_screen_resources_cookie_t cookie /**< */,
  2039. xcb_generic_error_t **e);
  2040. int
  2041. xcb_randr_get_output_info_sizeof (const void *_buffer);
  2042. /**
  2043. *
  2044. * @param c The connection
  2045. * @return A cookie
  2046. *
  2047. * Delivers a request to the X server.
  2048. *
  2049. */
  2050. xcb_randr_get_output_info_cookie_t
  2051. xcb_randr_get_output_info (xcb_connection_t *c,
  2052. xcb_randr_output_t output,
  2053. xcb_timestamp_t config_timestamp);
  2054. /**
  2055. *
  2056. * @param c The connection
  2057. * @return A cookie
  2058. *
  2059. * Delivers a request to the X server.
  2060. *
  2061. * This form can be used only if the request will cause
  2062. * a reply to be generated. Any returned error will be
  2063. * placed in the event queue.
  2064. */
  2065. xcb_randr_get_output_info_cookie_t
  2066. xcb_randr_get_output_info_unchecked (xcb_connection_t *c,
  2067. xcb_randr_output_t output,
  2068. xcb_timestamp_t config_timestamp);
  2069. xcb_randr_crtc_t *
  2070. xcb_randr_get_output_info_crtcs (const xcb_randr_get_output_info_reply_t *R);
  2071. int
  2072. xcb_randr_get_output_info_crtcs_length (const xcb_randr_get_output_info_reply_t *R);
  2073. xcb_generic_iterator_t
  2074. xcb_randr_get_output_info_crtcs_end (const xcb_randr_get_output_info_reply_t *R);
  2075. xcb_randr_mode_t *
  2076. xcb_randr_get_output_info_modes (const xcb_randr_get_output_info_reply_t *R);
  2077. int
  2078. xcb_randr_get_output_info_modes_length (const xcb_randr_get_output_info_reply_t *R);
  2079. xcb_generic_iterator_t
  2080. xcb_randr_get_output_info_modes_end (const xcb_randr_get_output_info_reply_t *R);
  2081. xcb_randr_output_t *
  2082. xcb_randr_get_output_info_clones (const xcb_randr_get_output_info_reply_t *R);
  2083. int
  2084. xcb_randr_get_output_info_clones_length (const xcb_randr_get_output_info_reply_t *R);
  2085. xcb_generic_iterator_t
  2086. xcb_randr_get_output_info_clones_end (const xcb_randr_get_output_info_reply_t *R);
  2087. uint8_t *
  2088. xcb_randr_get_output_info_name (const xcb_randr_get_output_info_reply_t *R);
  2089. int
  2090. xcb_randr_get_output_info_name_length (const xcb_randr_get_output_info_reply_t *R);
  2091. xcb_generic_iterator_t
  2092. xcb_randr_get_output_info_name_end (const xcb_randr_get_output_info_reply_t *R);
  2093. /**
  2094. * Return the reply
  2095. * @param c The connection
  2096. * @param cookie The cookie
  2097. * @param e The xcb_generic_error_t supplied
  2098. *
  2099. * Returns the reply of the request asked by
  2100. *
  2101. * The parameter @p e supplied to this function must be NULL if
  2102. * xcb_randr_get_output_info_unchecked(). is used.
  2103. * Otherwise, it stores the error if any.
  2104. *
  2105. * The returned value must be freed by the caller using free().
  2106. */
  2107. xcb_randr_get_output_info_reply_t *
  2108. xcb_randr_get_output_info_reply (xcb_connection_t *c,
  2109. xcb_randr_get_output_info_cookie_t cookie /**< */,
  2110. xcb_generic_error_t **e);
  2111. int
  2112. xcb_randr_list_output_properties_sizeof (const void *_buffer);
  2113. /**
  2114. *
  2115. * @param c The connection
  2116. * @return A cookie
  2117. *
  2118. * Delivers a request to the X server.
  2119. *
  2120. */
  2121. xcb_randr_list_output_properties_cookie_t
  2122. xcb_randr_list_output_properties (xcb_connection_t *c,
  2123. xcb_randr_output_t output);
  2124. /**
  2125. *
  2126. * @param c The connection
  2127. * @return A cookie
  2128. *
  2129. * Delivers a request to the X server.
  2130. *
  2131. * This form can be used only if the request will cause
  2132. * a reply to be generated. Any returned error will be
  2133. * placed in the event queue.
  2134. */
  2135. xcb_randr_list_output_properties_cookie_t
  2136. xcb_randr_list_output_properties_unchecked (xcb_connection_t *c,
  2137. xcb_randr_output_t output);
  2138. xcb_atom_t *
  2139. xcb_randr_list_output_properties_atoms (const xcb_randr_list_output_properties_reply_t *R);
  2140. int
  2141. xcb_randr_list_output_properties_atoms_length (const xcb_randr_list_output_properties_reply_t *R);
  2142. xcb_generic_iterator_t
  2143. xcb_randr_list_output_properties_atoms_end (const xcb_randr_list_output_properties_reply_t *R);
  2144. /**
  2145. * Return the reply
  2146. * @param c The connection
  2147. * @param cookie The cookie
  2148. * @param e The xcb_generic_error_t supplied
  2149. *
  2150. * Returns the reply of the request asked by
  2151. *
  2152. * The parameter @p e supplied to this function must be NULL if
  2153. * xcb_randr_list_output_properties_unchecked(). is used.
  2154. * Otherwise, it stores the error if any.
  2155. *
  2156. * The returned value must be freed by the caller using free().
  2157. */
  2158. xcb_randr_list_output_properties_reply_t *
  2159. xcb_randr_list_output_properties_reply (xcb_connection_t *c,
  2160. xcb_randr_list_output_properties_cookie_t cookie /**< */,
  2161. xcb_generic_error_t **e);
  2162. int
  2163. xcb_randr_query_output_property_sizeof (const void *_buffer);
  2164. /**
  2165. *
  2166. * @param c The connection
  2167. * @return A cookie
  2168. *
  2169. * Delivers a request to the X server.
  2170. *
  2171. */
  2172. xcb_randr_query_output_property_cookie_t
  2173. xcb_randr_query_output_property (xcb_connection_t *c,
  2174. xcb_randr_output_t output,
  2175. xcb_atom_t property);
  2176. /**
  2177. *
  2178. * @param c The connection
  2179. * @return A cookie
  2180. *
  2181. * Delivers a request to the X server.
  2182. *
  2183. * This form can be used only if the request will cause
  2184. * a reply to be generated. Any returned error will be
  2185. * placed in the event queue.
  2186. */
  2187. xcb_randr_query_output_property_cookie_t
  2188. xcb_randr_query_output_property_unchecked (xcb_connection_t *c,
  2189. xcb_randr_output_t output,
  2190. xcb_atom_t property);
  2191. int32_t *
  2192. xcb_randr_query_output_property_valid_values (const xcb_randr_query_output_property_reply_t *R);
  2193. int
  2194. xcb_randr_query_output_property_valid_values_length (const xcb_randr_query_output_property_reply_t *R);
  2195. xcb_generic_iterator_t
  2196. xcb_randr_query_output_property_valid_values_end (const xcb_randr_query_output_property_reply_t *R);
  2197. /**
  2198. * Return the reply
  2199. * @param c The connection
  2200. * @param cookie The cookie
  2201. * @param e The xcb_generic_error_t supplied
  2202. *
  2203. * Returns the reply of the request asked by
  2204. *
  2205. * The parameter @p e supplied to this function must be NULL if
  2206. * xcb_randr_query_output_property_unchecked(). is used.
  2207. * Otherwise, it stores the error if any.
  2208. *
  2209. * The returned value must be freed by the caller using free().
  2210. */
  2211. xcb_randr_query_output_property_reply_t *
  2212. xcb_randr_query_output_property_reply (xcb_connection_t *c,
  2213. xcb_randr_query_output_property_cookie_t cookie /**< */,
  2214. xcb_generic_error_t **e);
  2215. int
  2216. xcb_randr_configure_output_property_sizeof (const void *_buffer,
  2217. uint32_t values_len);
  2218. /**
  2219. *
  2220. * @param c The connection
  2221. * @return A cookie
  2222. *
  2223. * Delivers a request to the X server.
  2224. *
  2225. * This form can be used only if the request will not cause
  2226. * a reply to be generated. Any returned error will be
  2227. * saved for handling by xcb_request_check().
  2228. */
  2229. xcb_void_cookie_t
  2230. xcb_randr_configure_output_property_checked (xcb_connection_t *c,
  2231. xcb_randr_output_t output,
  2232. xcb_atom_t property,
  2233. uint8_t pending,
  2234. uint8_t range,
  2235. uint32_t values_len,
  2236. const int32_t *values);
  2237. /**
  2238. *
  2239. * @param c The connection
  2240. * @return A cookie
  2241. *
  2242. * Delivers a request to the X server.
  2243. *
  2244. */
  2245. xcb_void_cookie_t
  2246. xcb_randr_configure_output_property (xcb_connection_t *c,
  2247. xcb_randr_output_t output,
  2248. xcb_atom_t property,
  2249. uint8_t pending,
  2250. uint8_t range,
  2251. uint32_t values_len,
  2252. const int32_t *values);
  2253. int32_t *
  2254. xcb_randr_configure_output_property_values (const xcb_randr_configure_output_property_request_t *R);
  2255. int
  2256. xcb_randr_configure_output_property_values_length (const xcb_randr_configure_output_property_request_t *R);
  2257. xcb_generic_iterator_t
  2258. xcb_randr_configure_output_property_values_end (const xcb_randr_configure_output_property_request_t *R);
  2259. int
  2260. xcb_randr_change_output_property_sizeof (const void *_buffer);
  2261. /**
  2262. *
  2263. * @param c The connection
  2264. * @return A cookie
  2265. *
  2266. * Delivers a request to the X server.
  2267. *
  2268. * This form can be used only if the request will not cause
  2269. * a reply to be generated. Any returned error will be
  2270. * saved for handling by xcb_request_check().
  2271. */
  2272. xcb_void_cookie_t
  2273. xcb_randr_change_output_property_checked (xcb_connection_t *c,
  2274. xcb_randr_output_t output,
  2275. xcb_atom_t property,
  2276. xcb_atom_t type,
  2277. uint8_t format,
  2278. uint8_t mode,
  2279. uint32_t num_units,
  2280. const void *data);
  2281. /**
  2282. *
  2283. * @param c The connection
  2284. * @return A cookie
  2285. *
  2286. * Delivers a request to the X server.
  2287. *
  2288. */
  2289. xcb_void_cookie_t
  2290. xcb_randr_change_output_property (xcb_connection_t *c,
  2291. xcb_randr_output_t output,
  2292. xcb_atom_t property,
  2293. xcb_atom_t type,
  2294. uint8_t format,
  2295. uint8_t mode,
  2296. uint32_t num_units,
  2297. const void *data);
  2298. void *
  2299. xcb_randr_change_output_property_data (const xcb_randr_change_output_property_request_t *R);
  2300. int
  2301. xcb_randr_change_output_property_data_length (const xcb_randr_change_output_property_request_t *R);
  2302. xcb_generic_iterator_t
  2303. xcb_randr_change_output_property_data_end (const xcb_randr_change_output_property_request_t *R);
  2304. /**
  2305. *
  2306. * @param c The connection
  2307. * @return A cookie
  2308. *
  2309. * Delivers a request to the X server.
  2310. *
  2311. * This form can be used only if the request will not cause
  2312. * a reply to be generated. Any returned error will be
  2313. * saved for handling by xcb_request_check().
  2314. */
  2315. xcb_void_cookie_t
  2316. xcb_randr_delete_output_property_checked (xcb_connection_t *c,
  2317. xcb_randr_output_t output,
  2318. xcb_atom_t property);
  2319. /**
  2320. *
  2321. * @param c The connection
  2322. * @return A cookie
  2323. *
  2324. * Delivers a request to the X server.
  2325. *
  2326. */
  2327. xcb_void_cookie_t
  2328. xcb_randr_delete_output_property (xcb_connection_t *c,
  2329. xcb_randr_output_t output,
  2330. xcb_atom_t property);
  2331. int
  2332. xcb_randr_get_output_property_sizeof (const void *_buffer);
  2333. /**
  2334. *
  2335. * @param c The connection
  2336. * @return A cookie
  2337. *
  2338. * Delivers a request to the X server.
  2339. *
  2340. */
  2341. xcb_randr_get_output_property_cookie_t
  2342. xcb_randr_get_output_property (xcb_connection_t *c,
  2343. xcb_randr_output_t output,
  2344. xcb_atom_t property,
  2345. xcb_atom_t type,
  2346. uint32_t long_offset,
  2347. uint32_t long_length,
  2348. uint8_t _delete,
  2349. uint8_t pending);
  2350. /**
  2351. *
  2352. * @param c The connection
  2353. * @return A cookie
  2354. *
  2355. * Delivers a request to the X server.
  2356. *
  2357. * This form can be used only if the request will cause
  2358. * a reply to be generated. Any returned error will be
  2359. * placed in the event queue.
  2360. */
  2361. xcb_randr_get_output_property_cookie_t
  2362. xcb_randr_get_output_property_unchecked (xcb_connection_t *c,
  2363. xcb_randr_output_t output,
  2364. xcb_atom_t property,
  2365. xcb_atom_t type,
  2366. uint32_t long_offset,
  2367. uint32_t long_length,
  2368. uint8_t _delete,
  2369. uint8_t pending);
  2370. uint8_t *
  2371. xcb_randr_get_output_property_data (const xcb_randr_get_output_property_reply_t *R);
  2372. int
  2373. xcb_randr_get_output_property_data_length (const xcb_randr_get_output_property_reply_t *R);
  2374. xcb_generic_iterator_t
  2375. xcb_randr_get_output_property_data_end (const xcb_randr_get_output_property_reply_t *R);
  2376. /**
  2377. * Return the reply
  2378. * @param c The connection
  2379. * @param cookie The cookie
  2380. * @param e The xcb_generic_error_t supplied
  2381. *
  2382. * Returns the reply of the request asked by
  2383. *
  2384. * The parameter @p e supplied to this function must be NULL if
  2385. * xcb_randr_get_output_property_unchecked(). is used.
  2386. * Otherwise, it stores the error if any.
  2387. *
  2388. * The returned value must be freed by the caller using free().
  2389. */
  2390. xcb_randr_get_output_property_reply_t *
  2391. xcb_randr_get_output_property_reply (xcb_connection_t *c,
  2392. xcb_randr_get_output_property_cookie_t cookie /**< */,
  2393. xcb_generic_error_t **e);
  2394. int
  2395. xcb_randr_create_mode_sizeof (const void *_buffer,
  2396. uint32_t name_len);
  2397. /**
  2398. *
  2399. * @param c The connection
  2400. * @return A cookie
  2401. *
  2402. * Delivers a request to the X server.
  2403. *
  2404. */
  2405. xcb_randr_create_mode_cookie_t
  2406. xcb_randr_create_mode (xcb_connection_t *c,
  2407. xcb_window_t window,
  2408. xcb_randr_mode_info_t mode_info,
  2409. uint32_t name_len,
  2410. const char *name);
  2411. /**
  2412. *
  2413. * @param c The connection
  2414. * @return A cookie
  2415. *
  2416. * Delivers a request to the X server.
  2417. *
  2418. * This form can be used only if the request will cause
  2419. * a reply to be generated. Any returned error will be
  2420. * placed in the event queue.
  2421. */
  2422. xcb_randr_create_mode_cookie_t
  2423. xcb_randr_create_mode_unchecked (xcb_connection_t *c,
  2424. xcb_window_t window,
  2425. xcb_randr_mode_info_t mode_info,
  2426. uint32_t name_len,
  2427. const char *name);
  2428. /**
  2429. * Return the reply
  2430. * @param c The connection
  2431. * @param cookie The cookie
  2432. * @param e The xcb_generic_error_t supplied
  2433. *
  2434. * Returns the reply of the request asked by
  2435. *
  2436. * The parameter @p e supplied to this function must be NULL if
  2437. * xcb_randr_create_mode_unchecked(). is used.
  2438. * Otherwise, it stores the error if any.
  2439. *
  2440. * The returned value must be freed by the caller using free().
  2441. */
  2442. xcb_randr_create_mode_reply_t *
  2443. xcb_randr_create_mode_reply (xcb_connection_t *c,
  2444. xcb_randr_create_mode_cookie_t cookie /**< */,
  2445. xcb_generic_error_t **e);
  2446. /**
  2447. *
  2448. * @param c The connection
  2449. * @return A cookie
  2450. *
  2451. * Delivers a request to the X server.
  2452. *
  2453. * This form can be used only if the request will not cause
  2454. * a reply to be generated. Any returned error will be
  2455. * saved for handling by xcb_request_check().
  2456. */
  2457. xcb_void_cookie_t
  2458. xcb_randr_destroy_mode_checked (xcb_connection_t *c,
  2459. xcb_randr_mode_t mode);
  2460. /**
  2461. *
  2462. * @param c The connection
  2463. * @return A cookie
  2464. *
  2465. * Delivers a request to the X server.
  2466. *
  2467. */
  2468. xcb_void_cookie_t
  2469. xcb_randr_destroy_mode (xcb_connection_t *c,
  2470. xcb_randr_mode_t mode);
  2471. /**
  2472. *
  2473. * @param c The connection
  2474. * @return A cookie
  2475. *
  2476. * Delivers a request to the X server.
  2477. *
  2478. * This form can be used only if the request will not cause
  2479. * a reply to be generated. Any returned error will be
  2480. * saved for handling by xcb_request_check().
  2481. */
  2482. xcb_void_cookie_t
  2483. xcb_randr_add_output_mode_checked (xcb_connection_t *c,
  2484. xcb_randr_output_t output,
  2485. xcb_randr_mode_t mode);
  2486. /**
  2487. *
  2488. * @param c The connection
  2489. * @return A cookie
  2490. *
  2491. * Delivers a request to the X server.
  2492. *
  2493. */
  2494. xcb_void_cookie_t
  2495. xcb_randr_add_output_mode (xcb_connection_t *c,
  2496. xcb_randr_output_t output,
  2497. xcb_randr_mode_t mode);
  2498. /**
  2499. *
  2500. * @param c The connection
  2501. * @return A cookie
  2502. *
  2503. * Delivers a request to the X server.
  2504. *
  2505. * This form can be used only if the request will not cause
  2506. * a reply to be generated. Any returned error will be
  2507. * saved for handling by xcb_request_check().
  2508. */
  2509. xcb_void_cookie_t
  2510. xcb_randr_delete_output_mode_checked (xcb_connection_t *c,
  2511. xcb_randr_output_t output,
  2512. xcb_randr_mode_t mode);
  2513. /**
  2514. *
  2515. * @param c The connection
  2516. * @return A cookie
  2517. *
  2518. * Delivers a request to the X server.
  2519. *
  2520. */
  2521. xcb_void_cookie_t
  2522. xcb_randr_delete_output_mode (xcb_connection_t *c,
  2523. xcb_randr_output_t output,
  2524. xcb_randr_mode_t mode);
  2525. int
  2526. xcb_randr_get_crtc_info_sizeof (const void *_buffer);
  2527. /**
  2528. *
  2529. * @param c The connection
  2530. * @return A cookie
  2531. *
  2532. * Delivers a request to the X server.
  2533. *
  2534. */
  2535. xcb_randr_get_crtc_info_cookie_t
  2536. xcb_randr_get_crtc_info (xcb_connection_t *c,
  2537. xcb_randr_crtc_t crtc,
  2538. xcb_timestamp_t config_timestamp);
  2539. /**
  2540. *
  2541. * @param c The connection
  2542. * @return A cookie
  2543. *
  2544. * Delivers a request to the X server.
  2545. *
  2546. * This form can be used only if the request will cause
  2547. * a reply to be generated. Any returned error will be
  2548. * placed in the event queue.
  2549. */
  2550. xcb_randr_get_crtc_info_cookie_t
  2551. xcb_randr_get_crtc_info_unchecked (xcb_connection_t *c,
  2552. xcb_randr_crtc_t crtc,
  2553. xcb_timestamp_t config_timestamp);
  2554. xcb_randr_output_t *
  2555. xcb_randr_get_crtc_info_outputs (const xcb_randr_get_crtc_info_reply_t *R);
  2556. int
  2557. xcb_randr_get_crtc_info_outputs_length (const xcb_randr_get_crtc_info_reply_t *R);
  2558. xcb_generic_iterator_t
  2559. xcb_randr_get_crtc_info_outputs_end (const xcb_randr_get_crtc_info_reply_t *R);
  2560. xcb_randr_output_t *
  2561. xcb_randr_get_crtc_info_possible (const xcb_randr_get_crtc_info_reply_t *R);
  2562. int
  2563. xcb_randr_get_crtc_info_possible_length (const xcb_randr_get_crtc_info_reply_t *R);
  2564. xcb_generic_iterator_t
  2565. xcb_randr_get_crtc_info_possible_end (const xcb_randr_get_crtc_info_reply_t *R);
  2566. /**
  2567. * Return the reply
  2568. * @param c The connection
  2569. * @param cookie The cookie
  2570. * @param e The xcb_generic_error_t supplied
  2571. *
  2572. * Returns the reply of the request asked by
  2573. *
  2574. * The parameter @p e supplied to this function must be NULL if
  2575. * xcb_randr_get_crtc_info_unchecked(). is used.
  2576. * Otherwise, it stores the error if any.
  2577. *
  2578. * The returned value must be freed by the caller using free().
  2579. */
  2580. xcb_randr_get_crtc_info_reply_t *
  2581. xcb_randr_get_crtc_info_reply (xcb_connection_t *c,
  2582. xcb_randr_get_crtc_info_cookie_t cookie /**< */,
  2583. xcb_generic_error_t **e);
  2584. int
  2585. xcb_randr_set_crtc_config_sizeof (const void *_buffer,
  2586. uint32_t outputs_len);
  2587. /**
  2588. *
  2589. * @param c The connection
  2590. * @return A cookie
  2591. *
  2592. * Delivers a request to the X server.
  2593. *
  2594. */
  2595. xcb_randr_set_crtc_config_cookie_t
  2596. xcb_randr_set_crtc_config (xcb_connection_t *c,
  2597. xcb_randr_crtc_t crtc,
  2598. xcb_timestamp_t timestamp,
  2599. xcb_timestamp_t config_timestamp,
  2600. int16_t x,
  2601. int16_t y,
  2602. xcb_randr_mode_t mode,
  2603. uint16_t rotation,
  2604. uint32_t outputs_len,
  2605. const xcb_randr_output_t *outputs);
  2606. /**
  2607. *
  2608. * @param c The connection
  2609. * @return A cookie
  2610. *
  2611. * Delivers a request to the X server.
  2612. *
  2613. * This form can be used only if the request will cause
  2614. * a reply to be generated. Any returned error will be
  2615. * placed in the event queue.
  2616. */
  2617. xcb_randr_set_crtc_config_cookie_t
  2618. xcb_randr_set_crtc_config_unchecked (xcb_connection_t *c,
  2619. xcb_randr_crtc_t crtc,
  2620. xcb_timestamp_t timestamp,
  2621. xcb_timestamp_t config_timestamp,
  2622. int16_t x,
  2623. int16_t y,
  2624. xcb_randr_mode_t mode,
  2625. uint16_t rotation,
  2626. uint32_t outputs_len,
  2627. const xcb_randr_output_t *outputs);
  2628. /**
  2629. * Return the reply
  2630. * @param c The connection
  2631. * @param cookie The cookie
  2632. * @param e The xcb_generic_error_t supplied
  2633. *
  2634. * Returns the reply of the request asked by
  2635. *
  2636. * The parameter @p e supplied to this function must be NULL if
  2637. * xcb_randr_set_crtc_config_unchecked(). is used.
  2638. * Otherwise, it stores the error if any.
  2639. *
  2640. * The returned value must be freed by the caller using free().
  2641. */
  2642. xcb_randr_set_crtc_config_reply_t *
  2643. xcb_randr_set_crtc_config_reply (xcb_connection_t *c,
  2644. xcb_randr_set_crtc_config_cookie_t cookie /**< */,
  2645. xcb_generic_error_t **e);
  2646. /**
  2647. *
  2648. * @param c The connection
  2649. * @return A cookie
  2650. *
  2651. * Delivers a request to the X server.
  2652. *
  2653. */
  2654. xcb_randr_get_crtc_gamma_size_cookie_t
  2655. xcb_randr_get_crtc_gamma_size (xcb_connection_t *c,
  2656. xcb_randr_crtc_t crtc);
  2657. /**
  2658. *
  2659. * @param c The connection
  2660. * @return A cookie
  2661. *
  2662. * Delivers a request to the X server.
  2663. *
  2664. * This form can be used only if the request will cause
  2665. * a reply to be generated. Any returned error will be
  2666. * placed in the event queue.
  2667. */
  2668. xcb_randr_get_crtc_gamma_size_cookie_t
  2669. xcb_randr_get_crtc_gamma_size_unchecked (xcb_connection_t *c,
  2670. xcb_randr_crtc_t crtc);
  2671. /**
  2672. * Return the reply
  2673. * @param c The connection
  2674. * @param cookie The cookie
  2675. * @param e The xcb_generic_error_t supplied
  2676. *
  2677. * Returns the reply of the request asked by
  2678. *
  2679. * The parameter @p e supplied to this function must be NULL if
  2680. * xcb_randr_get_crtc_gamma_size_unchecked(). is used.
  2681. * Otherwise, it stores the error if any.
  2682. *
  2683. * The returned value must be freed by the caller using free().
  2684. */
  2685. xcb_randr_get_crtc_gamma_size_reply_t *
  2686. xcb_randr_get_crtc_gamma_size_reply (xcb_connection_t *c,
  2687. xcb_randr_get_crtc_gamma_size_cookie_t cookie /**< */,
  2688. xcb_generic_error_t **e);
  2689. int
  2690. xcb_randr_get_crtc_gamma_sizeof (const void *_buffer);
  2691. /**
  2692. *
  2693. * @param c The connection
  2694. * @return A cookie
  2695. *
  2696. * Delivers a request to the X server.
  2697. *
  2698. */
  2699. xcb_randr_get_crtc_gamma_cookie_t
  2700. xcb_randr_get_crtc_gamma (xcb_connection_t *c,
  2701. xcb_randr_crtc_t crtc);
  2702. /**
  2703. *
  2704. * @param c The connection
  2705. * @return A cookie
  2706. *
  2707. * Delivers a request to the X server.
  2708. *
  2709. * This form can be used only if the request will cause
  2710. * a reply to be generated. Any returned error will be
  2711. * placed in the event queue.
  2712. */
  2713. xcb_randr_get_crtc_gamma_cookie_t
  2714. xcb_randr_get_crtc_gamma_unchecked (xcb_connection_t *c,
  2715. xcb_randr_crtc_t crtc);
  2716. uint16_t *
  2717. xcb_randr_get_crtc_gamma_red (const xcb_randr_get_crtc_gamma_reply_t *R);
  2718. int
  2719. xcb_randr_get_crtc_gamma_red_length (const xcb_randr_get_crtc_gamma_reply_t *R);
  2720. xcb_generic_iterator_t
  2721. xcb_randr_get_crtc_gamma_red_end (const xcb_randr_get_crtc_gamma_reply_t *R);
  2722. uint16_t *
  2723. xcb_randr_get_crtc_gamma_green (const xcb_randr_get_crtc_gamma_reply_t *R);
  2724. int
  2725. xcb_randr_get_crtc_gamma_green_length (const xcb_randr_get_crtc_gamma_reply_t *R);
  2726. xcb_generic_iterator_t
  2727. xcb_randr_get_crtc_gamma_green_end (const xcb_randr_get_crtc_gamma_reply_t *R);
  2728. uint16_t *
  2729. xcb_randr_get_crtc_gamma_blue (const xcb_randr_get_crtc_gamma_reply_t *R);
  2730. int
  2731. xcb_randr_get_crtc_gamma_blue_length (const xcb_randr_get_crtc_gamma_reply_t *R);
  2732. xcb_generic_iterator_t
  2733. xcb_randr_get_crtc_gamma_blue_end (const xcb_randr_get_crtc_gamma_reply_t *R);
  2734. /**
  2735. * Return the reply
  2736. * @param c The connection
  2737. * @param cookie The cookie
  2738. * @param e The xcb_generic_error_t supplied
  2739. *
  2740. * Returns the reply of the request asked by
  2741. *
  2742. * The parameter @p e supplied to this function must be NULL if
  2743. * xcb_randr_get_crtc_gamma_unchecked(). is used.
  2744. * Otherwise, it stores the error if any.
  2745. *
  2746. * The returned value must be freed by the caller using free().
  2747. */
  2748. xcb_randr_get_crtc_gamma_reply_t *
  2749. xcb_randr_get_crtc_gamma_reply (xcb_connection_t *c,
  2750. xcb_randr_get_crtc_gamma_cookie_t cookie /**< */,
  2751. xcb_generic_error_t **e);
  2752. int
  2753. xcb_randr_set_crtc_gamma_sizeof (const void *_buffer);
  2754. /**
  2755. *
  2756. * @param c The connection
  2757. * @return A cookie
  2758. *
  2759. * Delivers a request to the X server.
  2760. *
  2761. * This form can be used only if the request will not cause
  2762. * a reply to be generated. Any returned error will be
  2763. * saved for handling by xcb_request_check().
  2764. */
  2765. xcb_void_cookie_t
  2766. xcb_randr_set_crtc_gamma_checked (xcb_connection_t *c,
  2767. xcb_randr_crtc_t crtc,
  2768. uint16_t size,
  2769. const uint16_t *red,
  2770. const uint16_t *green,
  2771. const uint16_t *blue);
  2772. /**
  2773. *
  2774. * @param c The connection
  2775. * @return A cookie
  2776. *
  2777. * Delivers a request to the X server.
  2778. *
  2779. */
  2780. xcb_void_cookie_t
  2781. xcb_randr_set_crtc_gamma (xcb_connection_t *c,
  2782. xcb_randr_crtc_t crtc,
  2783. uint16_t size,
  2784. const uint16_t *red,
  2785. const uint16_t *green,
  2786. const uint16_t *blue);
  2787. uint16_t *
  2788. xcb_randr_set_crtc_gamma_red (const xcb_randr_set_crtc_gamma_request_t *R);
  2789. int
  2790. xcb_randr_set_crtc_gamma_red_length (const xcb_randr_set_crtc_gamma_request_t *R);
  2791. xcb_generic_iterator_t
  2792. xcb_randr_set_crtc_gamma_red_end (const xcb_randr_set_crtc_gamma_request_t *R);
  2793. uint16_t *
  2794. xcb_randr_set_crtc_gamma_green (const xcb_randr_set_crtc_gamma_request_t *R);
  2795. int
  2796. xcb_randr_set_crtc_gamma_green_length (const xcb_randr_set_crtc_gamma_request_t *R);
  2797. xcb_generic_iterator_t
  2798. xcb_randr_set_crtc_gamma_green_end (const xcb_randr_set_crtc_gamma_request_t *R);
  2799. uint16_t *
  2800. xcb_randr_set_crtc_gamma_blue (const xcb_randr_set_crtc_gamma_request_t *R);
  2801. int
  2802. xcb_randr_set_crtc_gamma_blue_length (const xcb_randr_set_crtc_gamma_request_t *R);
  2803. xcb_generic_iterator_t
  2804. xcb_randr_set_crtc_gamma_blue_end (const xcb_randr_set_crtc_gamma_request_t *R);
  2805. int
  2806. xcb_randr_get_screen_resources_current_sizeof (const void *_buffer);
  2807. /**
  2808. *
  2809. * @param c The connection
  2810. * @return A cookie
  2811. *
  2812. * Delivers a request to the X server.
  2813. *
  2814. */
  2815. xcb_randr_get_screen_resources_current_cookie_t
  2816. xcb_randr_get_screen_resources_current (xcb_connection_t *c,
  2817. xcb_window_t window);
  2818. /**
  2819. *
  2820. * @param c The connection
  2821. * @return A cookie
  2822. *
  2823. * Delivers a request to the X server.
  2824. *
  2825. * This form can be used only if the request will cause
  2826. * a reply to be generated. Any returned error will be
  2827. * placed in the event queue.
  2828. */
  2829. xcb_randr_get_screen_resources_current_cookie_t
  2830. xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c,
  2831. xcb_window_t window);
  2832. xcb_randr_crtc_t *
  2833. xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R);
  2834. int
  2835. xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R);
  2836. xcb_generic_iterator_t
  2837. xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R);
  2838. xcb_randr_output_t *
  2839. xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R);
  2840. int
  2841. xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R);
  2842. xcb_generic_iterator_t
  2843. xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R);
  2844. xcb_randr_mode_info_t *
  2845. xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R);
  2846. int
  2847. xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R);
  2848. xcb_randr_mode_info_iterator_t
  2849. xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R);
  2850. uint8_t *
  2851. xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R);
  2852. int
  2853. xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R);
  2854. xcb_generic_iterator_t
  2855. xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R);
  2856. /**
  2857. * Return the reply
  2858. * @param c The connection
  2859. * @param cookie The cookie
  2860. * @param e The xcb_generic_error_t supplied
  2861. *
  2862. * Returns the reply of the request asked by
  2863. *
  2864. * The parameter @p e supplied to this function must be NULL if
  2865. * xcb_randr_get_screen_resources_current_unchecked(). is used.
  2866. * Otherwise, it stores the error if any.
  2867. *
  2868. * The returned value must be freed by the caller using free().
  2869. */
  2870. xcb_randr_get_screen_resources_current_reply_t *
  2871. xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c,
  2872. xcb_randr_get_screen_resources_current_cookie_t cookie /**< */,
  2873. xcb_generic_error_t **e);
  2874. int
  2875. xcb_randr_set_crtc_transform_sizeof (const void *_buffer,
  2876. uint32_t filter_params_len);
  2877. /**
  2878. *
  2879. * @param c The connection
  2880. * @return A cookie
  2881. *
  2882. * Delivers a request to the X server.
  2883. *
  2884. * This form can be used only if the request will not cause
  2885. * a reply to be generated. Any returned error will be
  2886. * saved for handling by xcb_request_check().
  2887. */
  2888. xcb_void_cookie_t
  2889. xcb_randr_set_crtc_transform_checked (xcb_connection_t *c,
  2890. xcb_randr_crtc_t crtc,
  2891. xcb_render_transform_t transform,
  2892. uint16_t filter_len,
  2893. const char *filter_name,
  2894. uint32_t filter_params_len,
  2895. const xcb_render_fixed_t *filter_params);
  2896. /**
  2897. *
  2898. * @param c The connection
  2899. * @return A cookie
  2900. *
  2901. * Delivers a request to the X server.
  2902. *
  2903. */
  2904. xcb_void_cookie_t
  2905. xcb_randr_set_crtc_transform (xcb_connection_t *c,
  2906. xcb_randr_crtc_t crtc,
  2907. xcb_render_transform_t transform,
  2908. uint16_t filter_len,
  2909. const char *filter_name,
  2910. uint32_t filter_params_len,
  2911. const xcb_render_fixed_t *filter_params);
  2912. char *
  2913. xcb_randr_set_crtc_transform_filter_name (const xcb_randr_set_crtc_transform_request_t *R);
  2914. int
  2915. xcb_randr_set_crtc_transform_filter_name_length (const xcb_randr_set_crtc_transform_request_t *R);
  2916. xcb_generic_iterator_t
  2917. xcb_randr_set_crtc_transform_filter_name_end (const xcb_randr_set_crtc_transform_request_t *R);
  2918. xcb_render_fixed_t *
  2919. xcb_randr_set_crtc_transform_filter_params (const xcb_randr_set_crtc_transform_request_t *R);
  2920. int
  2921. xcb_randr_set_crtc_transform_filter_params_length (const xcb_randr_set_crtc_transform_request_t *R);
  2922. xcb_generic_iterator_t
  2923. xcb_randr_set_crtc_transform_filter_params_end (const xcb_randr_set_crtc_transform_request_t *R);
  2924. int
  2925. xcb_randr_get_crtc_transform_sizeof (const void *_buffer);
  2926. /**
  2927. *
  2928. * @param c The connection
  2929. * @return A cookie
  2930. *
  2931. * Delivers a request to the X server.
  2932. *
  2933. */
  2934. xcb_randr_get_crtc_transform_cookie_t
  2935. xcb_randr_get_crtc_transform (xcb_connection_t *c,
  2936. xcb_randr_crtc_t crtc);
  2937. /**
  2938. *
  2939. * @param c The connection
  2940. * @return A cookie
  2941. *
  2942. * Delivers a request to the X server.
  2943. *
  2944. * This form can be used only if the request will cause
  2945. * a reply to be generated. Any returned error will be
  2946. * placed in the event queue.
  2947. */
  2948. xcb_randr_get_crtc_transform_cookie_t
  2949. xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c,
  2950. xcb_randr_crtc_t crtc);
  2951. char *
  2952. xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R);
  2953. int
  2954. xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R);
  2955. xcb_generic_iterator_t
  2956. xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R);
  2957. xcb_render_fixed_t *
  2958. xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R);
  2959. int
  2960. xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R);
  2961. xcb_generic_iterator_t
  2962. xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R);
  2963. char *
  2964. xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R);
  2965. int
  2966. xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R);
  2967. xcb_generic_iterator_t
  2968. xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R);
  2969. xcb_render_fixed_t *
  2970. xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R);
  2971. int
  2972. xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R);
  2973. xcb_generic_iterator_t
  2974. xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R);
  2975. /**
  2976. * Return the reply
  2977. * @param c The connection
  2978. * @param cookie The cookie
  2979. * @param e The xcb_generic_error_t supplied
  2980. *
  2981. * Returns the reply of the request asked by
  2982. *
  2983. * The parameter @p e supplied to this function must be NULL if
  2984. * xcb_randr_get_crtc_transform_unchecked(). is used.
  2985. * Otherwise, it stores the error if any.
  2986. *
  2987. * The returned value must be freed by the caller using free().
  2988. */
  2989. xcb_randr_get_crtc_transform_reply_t *
  2990. xcb_randr_get_crtc_transform_reply (xcb_connection_t *c,
  2991. xcb_randr_get_crtc_transform_cookie_t cookie /**< */,
  2992. xcb_generic_error_t **e);
  2993. /**
  2994. *
  2995. * @param c The connection
  2996. * @return A cookie
  2997. *
  2998. * Delivers a request to the X server.
  2999. *
  3000. */
  3001. xcb_randr_get_panning_cookie_t
  3002. xcb_randr_get_panning (xcb_connection_t *c,
  3003. xcb_randr_crtc_t crtc);
  3004. /**
  3005. *
  3006. * @param c The connection
  3007. * @return A cookie
  3008. *
  3009. * Delivers a request to the X server.
  3010. *
  3011. * This form can be used only if the request will cause
  3012. * a reply to be generated. Any returned error will be
  3013. * placed in the event queue.
  3014. */
  3015. xcb_randr_get_panning_cookie_t
  3016. xcb_randr_get_panning_unchecked (xcb_connection_t *c,
  3017. xcb_randr_crtc_t crtc);
  3018. /**
  3019. * Return the reply
  3020. * @param c The connection
  3021. * @param cookie The cookie
  3022. * @param e The xcb_generic_error_t supplied
  3023. *
  3024. * Returns the reply of the request asked by
  3025. *
  3026. * The parameter @p e supplied to this function must be NULL if
  3027. * xcb_randr_get_panning_unchecked(). is used.
  3028. * Otherwise, it stores the error if any.
  3029. *
  3030. * The returned value must be freed by the caller using free().
  3031. */
  3032. xcb_randr_get_panning_reply_t *
  3033. xcb_randr_get_panning_reply (xcb_connection_t *c,
  3034. xcb_randr_get_panning_cookie_t cookie /**< */,
  3035. xcb_generic_error_t **e);
  3036. /**
  3037. *
  3038. * @param c The connection
  3039. * @return A cookie
  3040. *
  3041. * Delivers a request to the X server.
  3042. *
  3043. */
  3044. xcb_randr_set_panning_cookie_t
  3045. xcb_randr_set_panning (xcb_connection_t *c,
  3046. xcb_randr_crtc_t crtc,
  3047. xcb_timestamp_t timestamp,
  3048. uint16_t left,
  3049. uint16_t top,
  3050. uint16_t width,
  3051. uint16_t height,
  3052. uint16_t track_left,
  3053. uint16_t track_top,
  3054. uint16_t track_width,
  3055. uint16_t track_height,
  3056. int16_t border_left,
  3057. int16_t border_top,
  3058. int16_t border_right,
  3059. int16_t border_bottom);
  3060. /**
  3061. *
  3062. * @param c The connection
  3063. * @return A cookie
  3064. *
  3065. * Delivers a request to the X server.
  3066. *
  3067. * This form can be used only if the request will cause
  3068. * a reply to be generated. Any returned error will be
  3069. * placed in the event queue.
  3070. */
  3071. xcb_randr_set_panning_cookie_t
  3072. xcb_randr_set_panning_unchecked (xcb_connection_t *c,
  3073. xcb_randr_crtc_t crtc,
  3074. xcb_timestamp_t timestamp,
  3075. uint16_t left,
  3076. uint16_t top,
  3077. uint16_t width,
  3078. uint16_t height,
  3079. uint16_t track_left,
  3080. uint16_t track_top,
  3081. uint16_t track_width,
  3082. uint16_t track_height,
  3083. int16_t border_left,
  3084. int16_t border_top,
  3085. int16_t border_right,
  3086. int16_t border_bottom);
  3087. /**
  3088. * Return the reply
  3089. * @param c The connection
  3090. * @param cookie The cookie
  3091. * @param e The xcb_generic_error_t supplied
  3092. *
  3093. * Returns the reply of the request asked by
  3094. *
  3095. * The parameter @p e supplied to this function must be NULL if
  3096. * xcb_randr_set_panning_unchecked(). is used.
  3097. * Otherwise, it stores the error if any.
  3098. *
  3099. * The returned value must be freed by the caller using free().
  3100. */
  3101. xcb_randr_set_panning_reply_t *
  3102. xcb_randr_set_panning_reply (xcb_connection_t *c,
  3103. xcb_randr_set_panning_cookie_t cookie /**< */,
  3104. xcb_generic_error_t **e);
  3105. /**
  3106. *
  3107. * @param c The connection
  3108. * @return A cookie
  3109. *
  3110. * Delivers a request to the X server.
  3111. *
  3112. * This form can be used only if the request will not cause
  3113. * a reply to be generated. Any returned error will be
  3114. * saved for handling by xcb_request_check().
  3115. */
  3116. xcb_void_cookie_t
  3117. xcb_randr_set_output_primary_checked (xcb_connection_t *c,
  3118. xcb_window_t window,
  3119. xcb_randr_output_t output);
  3120. /**
  3121. *
  3122. * @param c The connection
  3123. * @return A cookie
  3124. *
  3125. * Delivers a request to the X server.
  3126. *
  3127. */
  3128. xcb_void_cookie_t
  3129. xcb_randr_set_output_primary (xcb_connection_t *c,
  3130. xcb_window_t window,
  3131. xcb_randr_output_t output);
  3132. /**
  3133. *
  3134. * @param c The connection
  3135. * @return A cookie
  3136. *
  3137. * Delivers a request to the X server.
  3138. *
  3139. */
  3140. xcb_randr_get_output_primary_cookie_t
  3141. xcb_randr_get_output_primary (xcb_connection_t *c,
  3142. xcb_window_t window);
  3143. /**
  3144. *
  3145. * @param c The connection
  3146. * @return A cookie
  3147. *
  3148. * Delivers a request to the X server.
  3149. *
  3150. * This form can be used only if the request will cause
  3151. * a reply to be generated. Any returned error will be
  3152. * placed in the event queue.
  3153. */
  3154. xcb_randr_get_output_primary_cookie_t
  3155. xcb_randr_get_output_primary_unchecked (xcb_connection_t *c,
  3156. xcb_window_t window);
  3157. /**
  3158. * Return the reply
  3159. * @param c The connection
  3160. * @param cookie The cookie
  3161. * @param e The xcb_generic_error_t supplied
  3162. *
  3163. * Returns the reply of the request asked by
  3164. *
  3165. * The parameter @p e supplied to this function must be NULL if
  3166. * xcb_randr_get_output_primary_unchecked(). is used.
  3167. * Otherwise, it stores the error if any.
  3168. *
  3169. * The returned value must be freed by the caller using free().
  3170. */
  3171. xcb_randr_get_output_primary_reply_t *
  3172. xcb_randr_get_output_primary_reply (xcb_connection_t *c,
  3173. xcb_randr_get_output_primary_cookie_t cookie /**< */,
  3174. xcb_generic_error_t **e);
  3175. int
  3176. xcb_randr_get_providers_sizeof (const void *_buffer);
  3177. /**
  3178. *
  3179. * @param c The connection
  3180. * @return A cookie
  3181. *
  3182. * Delivers a request to the X server.
  3183. *
  3184. */
  3185. xcb_randr_get_providers_cookie_t
  3186. xcb_randr_get_providers (xcb_connection_t *c,
  3187. xcb_window_t window);
  3188. /**
  3189. *
  3190. * @param c The connection
  3191. * @return A cookie
  3192. *
  3193. * Delivers a request to the X server.
  3194. *
  3195. * This form can be used only if the request will cause
  3196. * a reply to be generated. Any returned error will be
  3197. * placed in the event queue.
  3198. */
  3199. xcb_randr_get_providers_cookie_t
  3200. xcb_randr_get_providers_unchecked (xcb_connection_t *c,
  3201. xcb_window_t window);
  3202. xcb_randr_provider_t *
  3203. xcb_randr_get_providers_providers (const xcb_randr_get_providers_reply_t *R);
  3204. int
  3205. xcb_randr_get_providers_providers_length (const xcb_randr_get_providers_reply_t *R);
  3206. xcb_generic_iterator_t
  3207. xcb_randr_get_providers_providers_end (const xcb_randr_get_providers_reply_t *R);
  3208. /**
  3209. * Return the reply
  3210. * @param c The connection
  3211. * @param cookie The cookie
  3212. * @param e The xcb_generic_error_t supplied
  3213. *
  3214. * Returns the reply of the request asked by
  3215. *
  3216. * The parameter @p e supplied to this function must be NULL if
  3217. * xcb_randr_get_providers_unchecked(). is used.
  3218. * Otherwise, it stores the error if any.
  3219. *
  3220. * The returned value must be freed by the caller using free().
  3221. */
  3222. xcb_randr_get_providers_reply_t *
  3223. xcb_randr_get_providers_reply (xcb_connection_t *c,
  3224. xcb_randr_get_providers_cookie_t cookie /**< */,
  3225. xcb_generic_error_t **e);
  3226. int
  3227. xcb_randr_get_provider_info_sizeof (const void *_buffer);
  3228. /**
  3229. *
  3230. * @param c The connection
  3231. * @return A cookie
  3232. *
  3233. * Delivers a request to the X server.
  3234. *
  3235. */
  3236. xcb_randr_get_provider_info_cookie_t
  3237. xcb_randr_get_provider_info (xcb_connection_t *c,
  3238. xcb_randr_provider_t provider,
  3239. xcb_timestamp_t config_timestamp);
  3240. /**
  3241. *
  3242. * @param c The connection
  3243. * @return A cookie
  3244. *
  3245. * Delivers a request to the X server.
  3246. *
  3247. * This form can be used only if the request will cause
  3248. * a reply to be generated. Any returned error will be
  3249. * placed in the event queue.
  3250. */
  3251. xcb_randr_get_provider_info_cookie_t
  3252. xcb_randr_get_provider_info_unchecked (xcb_connection_t *c,
  3253. xcb_randr_provider_t provider,
  3254. xcb_timestamp_t config_timestamp);
  3255. xcb_randr_crtc_t *
  3256. xcb_randr_get_provider_info_crtcs (const xcb_randr_get_provider_info_reply_t *R);
  3257. int
  3258. xcb_randr_get_provider_info_crtcs_length (const xcb_randr_get_provider_info_reply_t *R);
  3259. xcb_generic_iterator_t
  3260. xcb_randr_get_provider_info_crtcs_end (const xcb_randr_get_provider_info_reply_t *R);
  3261. xcb_randr_output_t *
  3262. xcb_randr_get_provider_info_outputs (const xcb_randr_get_provider_info_reply_t *R);
  3263. int
  3264. xcb_randr_get_provider_info_outputs_length (const xcb_randr_get_provider_info_reply_t *R);
  3265. xcb_generic_iterator_t
  3266. xcb_randr_get_provider_info_outputs_end (const xcb_randr_get_provider_info_reply_t *R);
  3267. xcb_randr_provider_t *
  3268. xcb_randr_get_provider_info_associated_providers (const xcb_randr_get_provider_info_reply_t *R);
  3269. int
  3270. xcb_randr_get_provider_info_associated_providers_length (const xcb_randr_get_provider_info_reply_t *R);
  3271. xcb_generic_iterator_t
  3272. xcb_randr_get_provider_info_associated_providers_end (const xcb_randr_get_provider_info_reply_t *R);
  3273. uint32_t *
  3274. xcb_randr_get_provider_info_associated_capability (const xcb_randr_get_provider_info_reply_t *R);
  3275. int
  3276. xcb_randr_get_provider_info_associated_capability_length (const xcb_randr_get_provider_info_reply_t *R);
  3277. xcb_generic_iterator_t
  3278. xcb_randr_get_provider_info_associated_capability_end (const xcb_randr_get_provider_info_reply_t *R);
  3279. char *
  3280. xcb_randr_get_provider_info_name (const xcb_randr_get_provider_info_reply_t *R);
  3281. int
  3282. xcb_randr_get_provider_info_name_length (const xcb_randr_get_provider_info_reply_t *R);
  3283. xcb_generic_iterator_t
  3284. xcb_randr_get_provider_info_name_end (const xcb_randr_get_provider_info_reply_t *R);
  3285. /**
  3286. * Return the reply
  3287. * @param c The connection
  3288. * @param cookie The cookie
  3289. * @param e The xcb_generic_error_t supplied
  3290. *
  3291. * Returns the reply of the request asked by
  3292. *
  3293. * The parameter @p e supplied to this function must be NULL if
  3294. * xcb_randr_get_provider_info_unchecked(). is used.
  3295. * Otherwise, it stores the error if any.
  3296. *
  3297. * The returned value must be freed by the caller using free().
  3298. */
  3299. xcb_randr_get_provider_info_reply_t *
  3300. xcb_randr_get_provider_info_reply (xcb_connection_t *c,
  3301. xcb_randr_get_provider_info_cookie_t cookie /**< */,
  3302. xcb_generic_error_t **e);
  3303. /**
  3304. *
  3305. * @param c The connection
  3306. * @return A cookie
  3307. *
  3308. * Delivers a request to the X server.
  3309. *
  3310. * This form can be used only if the request will not cause
  3311. * a reply to be generated. Any returned error will be
  3312. * saved for handling by xcb_request_check().
  3313. */
  3314. xcb_void_cookie_t
  3315. xcb_randr_set_provider_offload_sink_checked (xcb_connection_t *c,
  3316. xcb_randr_provider_t provider,
  3317. xcb_randr_provider_t sink_provider,
  3318. xcb_timestamp_t config_timestamp);
  3319. /**
  3320. *
  3321. * @param c The connection
  3322. * @return A cookie
  3323. *
  3324. * Delivers a request to the X server.
  3325. *
  3326. */
  3327. xcb_void_cookie_t
  3328. xcb_randr_set_provider_offload_sink (xcb_connection_t *c,
  3329. xcb_randr_provider_t provider,
  3330. xcb_randr_provider_t sink_provider,
  3331. xcb_timestamp_t config_timestamp);
  3332. /**
  3333. *
  3334. * @param c The connection
  3335. * @return A cookie
  3336. *
  3337. * Delivers a request to the X server.
  3338. *
  3339. * This form can be used only if the request will not cause
  3340. * a reply to be generated. Any returned error will be
  3341. * saved for handling by xcb_request_check().
  3342. */
  3343. xcb_void_cookie_t
  3344. xcb_randr_set_provider_output_source_checked (xcb_connection_t *c,
  3345. xcb_randr_provider_t provider,
  3346. xcb_randr_provider_t source_provider,
  3347. xcb_timestamp_t config_timestamp);
  3348. /**
  3349. *
  3350. * @param c The connection
  3351. * @return A cookie
  3352. *
  3353. * Delivers a request to the X server.
  3354. *
  3355. */
  3356. xcb_void_cookie_t
  3357. xcb_randr_set_provider_output_source (xcb_connection_t *c,
  3358. xcb_randr_provider_t provider,
  3359. xcb_randr_provider_t source_provider,
  3360. xcb_timestamp_t config_timestamp);
  3361. int
  3362. xcb_randr_list_provider_properties_sizeof (const void *_buffer);
  3363. /**
  3364. *
  3365. * @param c The connection
  3366. * @return A cookie
  3367. *
  3368. * Delivers a request to the X server.
  3369. *
  3370. */
  3371. xcb_randr_list_provider_properties_cookie_t
  3372. xcb_randr_list_provider_properties (xcb_connection_t *c,
  3373. xcb_randr_provider_t provider);
  3374. /**
  3375. *
  3376. * @param c The connection
  3377. * @return A cookie
  3378. *
  3379. * Delivers a request to the X server.
  3380. *
  3381. * This form can be used only if the request will cause
  3382. * a reply to be generated. Any returned error will be
  3383. * placed in the event queue.
  3384. */
  3385. xcb_randr_list_provider_properties_cookie_t
  3386. xcb_randr_list_provider_properties_unchecked (xcb_connection_t *c,
  3387. xcb_randr_provider_t provider);
  3388. xcb_atom_t *
  3389. xcb_randr_list_provider_properties_atoms (const xcb_randr_list_provider_properties_reply_t *R);
  3390. int
  3391. xcb_randr_list_provider_properties_atoms_length (const xcb_randr_list_provider_properties_reply_t *R);
  3392. xcb_generic_iterator_t
  3393. xcb_randr_list_provider_properties_atoms_end (const xcb_randr_list_provider_properties_reply_t *R);
  3394. /**
  3395. * Return the reply
  3396. * @param c The connection
  3397. * @param cookie The cookie
  3398. * @param e The xcb_generic_error_t supplied
  3399. *
  3400. * Returns the reply of the request asked by
  3401. *
  3402. * The parameter @p e supplied to this function must be NULL if
  3403. * xcb_randr_list_provider_properties_unchecked(). is used.
  3404. * Otherwise, it stores the error if any.
  3405. *
  3406. * The returned value must be freed by the caller using free().
  3407. */
  3408. xcb_randr_list_provider_properties_reply_t *
  3409. xcb_randr_list_provider_properties_reply (xcb_connection_t *c,
  3410. xcb_randr_list_provider_properties_cookie_t cookie /**< */,
  3411. xcb_generic_error_t **e);
  3412. int
  3413. xcb_randr_query_provider_property_sizeof (const void *_buffer);
  3414. /**
  3415. *
  3416. * @param c The connection
  3417. * @return A cookie
  3418. *
  3419. * Delivers a request to the X server.
  3420. *
  3421. */
  3422. xcb_randr_query_provider_property_cookie_t
  3423. xcb_randr_query_provider_property (xcb_connection_t *c,
  3424. xcb_randr_provider_t provider,
  3425. xcb_atom_t property);
  3426. /**
  3427. *
  3428. * @param c The connection
  3429. * @return A cookie
  3430. *
  3431. * Delivers a request to the X server.
  3432. *
  3433. * This form can be used only if the request will cause
  3434. * a reply to be generated. Any returned error will be
  3435. * placed in the event queue.
  3436. */
  3437. xcb_randr_query_provider_property_cookie_t
  3438. xcb_randr_query_provider_property_unchecked (xcb_connection_t *c,
  3439. xcb_randr_provider_t provider,
  3440. xcb_atom_t property);
  3441. int32_t *
  3442. xcb_randr_query_provider_property_valid_values (const xcb_randr_query_provider_property_reply_t *R);
  3443. int
  3444. xcb_randr_query_provider_property_valid_values_length (const xcb_randr_query_provider_property_reply_t *R);
  3445. xcb_generic_iterator_t
  3446. xcb_randr_query_provider_property_valid_values_end (const xcb_randr_query_provider_property_reply_t *R);
  3447. /**
  3448. * Return the reply
  3449. * @param c The connection
  3450. * @param cookie The cookie
  3451. * @param e The xcb_generic_error_t supplied
  3452. *
  3453. * Returns the reply of the request asked by
  3454. *
  3455. * The parameter @p e supplied to this function must be NULL if
  3456. * xcb_randr_query_provider_property_unchecked(). is used.
  3457. * Otherwise, it stores the error if any.
  3458. *
  3459. * The returned value must be freed by the caller using free().
  3460. */
  3461. xcb_randr_query_provider_property_reply_t *
  3462. xcb_randr_query_provider_property_reply (xcb_connection_t *c,
  3463. xcb_randr_query_provider_property_cookie_t cookie /**< */,
  3464. xcb_generic_error_t **e);
  3465. int
  3466. xcb_randr_configure_provider_property_sizeof (const void *_buffer,
  3467. uint32_t values_len);
  3468. /**
  3469. *
  3470. * @param c The connection
  3471. * @return A cookie
  3472. *
  3473. * Delivers a request to the X server.
  3474. *
  3475. * This form can be used only if the request will not cause
  3476. * a reply to be generated. Any returned error will be
  3477. * saved for handling by xcb_request_check().
  3478. */
  3479. xcb_void_cookie_t
  3480. xcb_randr_configure_provider_property_checked (xcb_connection_t *c,
  3481. xcb_randr_provider_t provider,
  3482. xcb_atom_t property,
  3483. uint8_t pending,
  3484. uint8_t range,
  3485. uint32_t values_len,
  3486. const int32_t *values);
  3487. /**
  3488. *
  3489. * @param c The connection
  3490. * @return A cookie
  3491. *
  3492. * Delivers a request to the X server.
  3493. *
  3494. */
  3495. xcb_void_cookie_t
  3496. xcb_randr_configure_provider_property (xcb_connection_t *c,
  3497. xcb_randr_provider_t provider,
  3498. xcb_atom_t property,
  3499. uint8_t pending,
  3500. uint8_t range,
  3501. uint32_t values_len,
  3502. const int32_t *values);
  3503. int32_t *
  3504. xcb_randr_configure_provider_property_values (const xcb_randr_configure_provider_property_request_t *R);
  3505. int
  3506. xcb_randr_configure_provider_property_values_length (const xcb_randr_configure_provider_property_request_t *R);
  3507. xcb_generic_iterator_t
  3508. xcb_randr_configure_provider_property_values_end (const xcb_randr_configure_provider_property_request_t *R);
  3509. int
  3510. xcb_randr_change_provider_property_sizeof (const void *_buffer);
  3511. /**
  3512. *
  3513. * @param c The connection
  3514. * @return A cookie
  3515. *
  3516. * Delivers a request to the X server.
  3517. *
  3518. * This form can be used only if the request will not cause
  3519. * a reply to be generated. Any returned error will be
  3520. * saved for handling by xcb_request_check().
  3521. */
  3522. xcb_void_cookie_t
  3523. xcb_randr_change_provider_property_checked (xcb_connection_t *c,
  3524. xcb_randr_provider_t provider,
  3525. xcb_atom_t property,
  3526. xcb_atom_t type,
  3527. uint8_t format,
  3528. uint8_t mode,
  3529. uint32_t num_items,
  3530. const void *data);
  3531. /**
  3532. *
  3533. * @param c The connection
  3534. * @return A cookie
  3535. *
  3536. * Delivers a request to the X server.
  3537. *
  3538. */
  3539. xcb_void_cookie_t
  3540. xcb_randr_change_provider_property (xcb_connection_t *c,
  3541. xcb_randr_provider_t provider,
  3542. xcb_atom_t property,
  3543. xcb_atom_t type,
  3544. uint8_t format,
  3545. uint8_t mode,
  3546. uint32_t num_items,
  3547. const void *data);
  3548. void *
  3549. xcb_randr_change_provider_property_data (const xcb_randr_change_provider_property_request_t *R);
  3550. int
  3551. xcb_randr_change_provider_property_data_length (const xcb_randr_change_provider_property_request_t *R);
  3552. xcb_generic_iterator_t
  3553. xcb_randr_change_provider_property_data_end (const xcb_randr_change_provider_property_request_t *R);
  3554. /**
  3555. *
  3556. * @param c The connection
  3557. * @return A cookie
  3558. *
  3559. * Delivers a request to the X server.
  3560. *
  3561. * This form can be used only if the request will not cause
  3562. * a reply to be generated. Any returned error will be
  3563. * saved for handling by xcb_request_check().
  3564. */
  3565. xcb_void_cookie_t
  3566. xcb_randr_delete_provider_property_checked (xcb_connection_t *c,
  3567. xcb_randr_provider_t provider,
  3568. xcb_atom_t property);
  3569. /**
  3570. *
  3571. * @param c The connection
  3572. * @return A cookie
  3573. *
  3574. * Delivers a request to the X server.
  3575. *
  3576. */
  3577. xcb_void_cookie_t
  3578. xcb_randr_delete_provider_property (xcb_connection_t *c,
  3579. xcb_randr_provider_t provider,
  3580. xcb_atom_t property);
  3581. int
  3582. xcb_randr_get_provider_property_sizeof (const void *_buffer);
  3583. /**
  3584. *
  3585. * @param c The connection
  3586. * @return A cookie
  3587. *
  3588. * Delivers a request to the X server.
  3589. *
  3590. */
  3591. xcb_randr_get_provider_property_cookie_t
  3592. xcb_randr_get_provider_property (xcb_connection_t *c,
  3593. xcb_randr_provider_t provider,
  3594. xcb_atom_t property,
  3595. xcb_atom_t type,
  3596. uint32_t long_offset,
  3597. uint32_t long_length,
  3598. uint8_t _delete,
  3599. uint8_t pending);
  3600. /**
  3601. *
  3602. * @param c The connection
  3603. * @return A cookie
  3604. *
  3605. * Delivers a request to the X server.
  3606. *
  3607. * This form can be used only if the request will cause
  3608. * a reply to be generated. Any returned error will be
  3609. * placed in the event queue.
  3610. */
  3611. xcb_randr_get_provider_property_cookie_t
  3612. xcb_randr_get_provider_property_unchecked (xcb_connection_t *c,
  3613. xcb_randr_provider_t provider,
  3614. xcb_atom_t property,
  3615. xcb_atom_t type,
  3616. uint32_t long_offset,
  3617. uint32_t long_length,
  3618. uint8_t _delete,
  3619. uint8_t pending);
  3620. void *
  3621. xcb_randr_get_provider_property_data (const xcb_randr_get_provider_property_reply_t *R);
  3622. int
  3623. xcb_randr_get_provider_property_data_length (const xcb_randr_get_provider_property_reply_t *R);
  3624. xcb_generic_iterator_t
  3625. xcb_randr_get_provider_property_data_end (const xcb_randr_get_provider_property_reply_t *R);
  3626. /**
  3627. * Return the reply
  3628. * @param c The connection
  3629. * @param cookie The cookie
  3630. * @param e The xcb_generic_error_t supplied
  3631. *
  3632. * Returns the reply of the request asked by
  3633. *
  3634. * The parameter @p e supplied to this function must be NULL if
  3635. * xcb_randr_get_provider_property_unchecked(). is used.
  3636. * Otherwise, it stores the error if any.
  3637. *
  3638. * The returned value must be freed by the caller using free().
  3639. */
  3640. xcb_randr_get_provider_property_reply_t *
  3641. xcb_randr_get_provider_property_reply (xcb_connection_t *c,
  3642. xcb_randr_get_provider_property_cookie_t cookie /**< */,
  3643. xcb_generic_error_t **e);
  3644. /**
  3645. * Get the next element of the iterator
  3646. * @param i Pointer to a xcb_randr_crtc_change_iterator_t
  3647. *
  3648. * Get the next element in the iterator. The member rem is
  3649. * decreased by one. The member data points to the next
  3650. * element. The member index is increased by sizeof(xcb_randr_crtc_change_t)
  3651. */
  3652. void
  3653. xcb_randr_crtc_change_next (xcb_randr_crtc_change_iterator_t *i);
  3654. /**
  3655. * Return the iterator pointing to the last element
  3656. * @param i An xcb_randr_crtc_change_iterator_t
  3657. * @return The iterator pointing to the last element
  3658. *
  3659. * Set the current element in the iterator to the last element.
  3660. * The member rem is set to 0. The member data points to the
  3661. * last element.
  3662. */
  3663. xcb_generic_iterator_t
  3664. xcb_randr_crtc_change_end (xcb_randr_crtc_change_iterator_t i);
  3665. /**
  3666. * Get the next element of the iterator
  3667. * @param i Pointer to a xcb_randr_output_change_iterator_t
  3668. *
  3669. * Get the next element in the iterator. The member rem is
  3670. * decreased by one. The member data points to the next
  3671. * element. The member index is increased by sizeof(xcb_randr_output_change_t)
  3672. */
  3673. void
  3674. xcb_randr_output_change_next (xcb_randr_output_change_iterator_t *i);
  3675. /**
  3676. * Return the iterator pointing to the last element
  3677. * @param i An xcb_randr_output_change_iterator_t
  3678. * @return The iterator pointing to the last element
  3679. *
  3680. * Set the current element in the iterator to the last element.
  3681. * The member rem is set to 0. The member data points to the
  3682. * last element.
  3683. */
  3684. xcb_generic_iterator_t
  3685. xcb_randr_output_change_end (xcb_randr_output_change_iterator_t i);
  3686. /**
  3687. * Get the next element of the iterator
  3688. * @param i Pointer to a xcb_randr_output_property_iterator_t
  3689. *
  3690. * Get the next element in the iterator. The member rem is
  3691. * decreased by one. The member data points to the next
  3692. * element. The member index is increased by sizeof(xcb_randr_output_property_t)
  3693. */
  3694. void
  3695. xcb_randr_output_property_next (xcb_randr_output_property_iterator_t *i);
  3696. /**
  3697. * Return the iterator pointing to the last element
  3698. * @param i An xcb_randr_output_property_iterator_t
  3699. * @return The iterator pointing to the last element
  3700. *
  3701. * Set the current element in the iterator to the last element.
  3702. * The member rem is set to 0. The member data points to the
  3703. * last element.
  3704. */
  3705. xcb_generic_iterator_t
  3706. xcb_randr_output_property_end (xcb_randr_output_property_iterator_t i);
  3707. /**
  3708. * Get the next element of the iterator
  3709. * @param i Pointer to a xcb_randr_provider_change_iterator_t
  3710. *
  3711. * Get the next element in the iterator. The member rem is
  3712. * decreased by one. The member data points to the next
  3713. * element. The member index is increased by sizeof(xcb_randr_provider_change_t)
  3714. */
  3715. void
  3716. xcb_randr_provider_change_next (xcb_randr_provider_change_iterator_t *i);
  3717. /**
  3718. * Return the iterator pointing to the last element
  3719. * @param i An xcb_randr_provider_change_iterator_t
  3720. * @return The iterator pointing to the last element
  3721. *
  3722. * Set the current element in the iterator to the last element.
  3723. * The member rem is set to 0. The member data points to the
  3724. * last element.
  3725. */
  3726. xcb_generic_iterator_t
  3727. xcb_randr_provider_change_end (xcb_randr_provider_change_iterator_t i);
  3728. /**
  3729. * Get the next element of the iterator
  3730. * @param i Pointer to a xcb_randr_provider_property_iterator_t
  3731. *
  3732. * Get the next element in the iterator. The member rem is
  3733. * decreased by one. The member data points to the next
  3734. * element. The member index is increased by sizeof(xcb_randr_provider_property_t)
  3735. */
  3736. void
  3737. xcb_randr_provider_property_next (xcb_randr_provider_property_iterator_t *i);
  3738. /**
  3739. * Return the iterator pointing to the last element
  3740. * @param i An xcb_randr_provider_property_iterator_t
  3741. * @return The iterator pointing to the last element
  3742. *
  3743. * Set the current element in the iterator to the last element.
  3744. * The member rem is set to 0. The member data points to the
  3745. * last element.
  3746. */
  3747. xcb_generic_iterator_t
  3748. xcb_randr_provider_property_end (xcb_randr_provider_property_iterator_t i);
  3749. /**
  3750. * Get the next element of the iterator
  3751. * @param i Pointer to a xcb_randr_resource_change_iterator_t
  3752. *
  3753. * Get the next element in the iterator. The member rem is
  3754. * decreased by one. The member data points to the next
  3755. * element. The member index is increased by sizeof(xcb_randr_resource_change_t)
  3756. */
  3757. void
  3758. xcb_randr_resource_change_next (xcb_randr_resource_change_iterator_t *i);
  3759. /**
  3760. * Return the iterator pointing to the last element
  3761. * @param i An xcb_randr_resource_change_iterator_t
  3762. * @return The iterator pointing to the last element
  3763. *
  3764. * Set the current element in the iterator to the last element.
  3765. * The member rem is set to 0. The member data points to the
  3766. * last element.
  3767. */
  3768. xcb_generic_iterator_t
  3769. xcb_randr_resource_change_end (xcb_randr_resource_change_iterator_t i);
  3770. int
  3771. xcb_randr_monitor_info_sizeof (const void *_buffer);
  3772. xcb_randr_output_t *
  3773. xcb_randr_monitor_info_outputs (const xcb_randr_monitor_info_t *R);
  3774. int
  3775. xcb_randr_monitor_info_outputs_length (const xcb_randr_monitor_info_t *R);
  3776. xcb_generic_iterator_t
  3777. xcb_randr_monitor_info_outputs_end (const xcb_randr_monitor_info_t *R);
  3778. /**
  3779. * Get the next element of the iterator
  3780. * @param i Pointer to a xcb_randr_monitor_info_iterator_t
  3781. *
  3782. * Get the next element in the iterator. The member rem is
  3783. * decreased by one. The member data points to the next
  3784. * element. The member index is increased by sizeof(xcb_randr_monitor_info_t)
  3785. */
  3786. void
  3787. xcb_randr_monitor_info_next (xcb_randr_monitor_info_iterator_t *i);
  3788. /**
  3789. * Return the iterator pointing to the last element
  3790. * @param i An xcb_randr_monitor_info_iterator_t
  3791. * @return The iterator pointing to the last element
  3792. *
  3793. * Set the current element in the iterator to the last element.
  3794. * The member rem is set to 0. The member data points to the
  3795. * last element.
  3796. */
  3797. xcb_generic_iterator_t
  3798. xcb_randr_monitor_info_end (xcb_randr_monitor_info_iterator_t i);
  3799. int
  3800. xcb_randr_get_monitors_sizeof (const void *_buffer);
  3801. /**
  3802. *
  3803. * @param c The connection
  3804. * @return A cookie
  3805. *
  3806. * Delivers a request to the X server.
  3807. *
  3808. */
  3809. xcb_randr_get_monitors_cookie_t
  3810. xcb_randr_get_monitors (xcb_connection_t *c,
  3811. xcb_window_t window,
  3812. uint8_t get_active);
  3813. /**
  3814. *
  3815. * @param c The connection
  3816. * @return A cookie
  3817. *
  3818. * Delivers a request to the X server.
  3819. *
  3820. * This form can be used only if the request will cause
  3821. * a reply to be generated. Any returned error will be
  3822. * placed in the event queue.
  3823. */
  3824. xcb_randr_get_monitors_cookie_t
  3825. xcb_randr_get_monitors_unchecked (xcb_connection_t *c,
  3826. xcb_window_t window,
  3827. uint8_t get_active);
  3828. int
  3829. xcb_randr_get_monitors_monitors_length (const xcb_randr_get_monitors_reply_t *R);
  3830. xcb_randr_monitor_info_iterator_t
  3831. xcb_randr_get_monitors_monitors_iterator (const xcb_randr_get_monitors_reply_t *R);
  3832. /**
  3833. * Return the reply
  3834. * @param c The connection
  3835. * @param cookie The cookie
  3836. * @param e The xcb_generic_error_t supplied
  3837. *
  3838. * Returns the reply of the request asked by
  3839. *
  3840. * The parameter @p e supplied to this function must be NULL if
  3841. * xcb_randr_get_monitors_unchecked(). is used.
  3842. * Otherwise, it stores the error if any.
  3843. *
  3844. * The returned value must be freed by the caller using free().
  3845. */
  3846. xcb_randr_get_monitors_reply_t *
  3847. xcb_randr_get_monitors_reply (xcb_connection_t *c,
  3848. xcb_randr_get_monitors_cookie_t cookie /**< */,
  3849. xcb_generic_error_t **e);
  3850. int
  3851. xcb_randr_set_monitor_sizeof (const void *_buffer);
  3852. /**
  3853. *
  3854. * @param c The connection
  3855. * @return A cookie
  3856. *
  3857. * Delivers a request to the X server.
  3858. *
  3859. * This form can be used only if the request will not cause
  3860. * a reply to be generated. Any returned error will be
  3861. * saved for handling by xcb_request_check().
  3862. */
  3863. xcb_void_cookie_t
  3864. xcb_randr_set_monitor_checked (xcb_connection_t *c,
  3865. xcb_window_t window,
  3866. xcb_randr_monitor_info_t *monitorinfo);
  3867. /**
  3868. *
  3869. * @param c The connection
  3870. * @return A cookie
  3871. *
  3872. * Delivers a request to the X server.
  3873. *
  3874. */
  3875. xcb_void_cookie_t
  3876. xcb_randr_set_monitor (xcb_connection_t *c,
  3877. xcb_window_t window,
  3878. xcb_randr_monitor_info_t *monitorinfo);
  3879. xcb_randr_monitor_info_t *
  3880. xcb_randr_set_monitor_monitorinfo (const xcb_randr_set_monitor_request_t *R);
  3881. /**
  3882. *
  3883. * @param c The connection
  3884. * @return A cookie
  3885. *
  3886. * Delivers a request to the X server.
  3887. *
  3888. * This form can be used only if the request will not cause
  3889. * a reply to be generated. Any returned error will be
  3890. * saved for handling by xcb_request_check().
  3891. */
  3892. xcb_void_cookie_t
  3893. xcb_randr_delete_monitor_checked (xcb_connection_t *c,
  3894. xcb_window_t window,
  3895. xcb_atom_t name);
  3896. /**
  3897. *
  3898. * @param c The connection
  3899. * @return A cookie
  3900. *
  3901. * Delivers a request to the X server.
  3902. *
  3903. */
  3904. xcb_void_cookie_t
  3905. xcb_randr_delete_monitor (xcb_connection_t *c,
  3906. xcb_window_t window,
  3907. xcb_atom_t name);
  3908. int
  3909. xcb_randr_create_lease_sizeof (const void *_buffer);
  3910. /**
  3911. *
  3912. * @param c The connection
  3913. * @return A cookie
  3914. *
  3915. * Delivers a request to the X server.
  3916. *
  3917. */
  3918. xcb_randr_create_lease_cookie_t
  3919. xcb_randr_create_lease (xcb_connection_t *c,
  3920. xcb_window_t window,
  3921. xcb_randr_lease_t lid,
  3922. uint16_t num_crtcs,
  3923. uint16_t num_outputs,
  3924. const xcb_randr_crtc_t *crtcs,
  3925. const xcb_randr_output_t *outputs);
  3926. /**
  3927. *
  3928. * @param c The connection
  3929. * @return A cookie
  3930. *
  3931. * Delivers a request to the X server.
  3932. *
  3933. * This form can be used only if the request will cause
  3934. * a reply to be generated. Any returned error will be
  3935. * placed in the event queue.
  3936. */
  3937. xcb_randr_create_lease_cookie_t
  3938. xcb_randr_create_lease_unchecked (xcb_connection_t *c,
  3939. xcb_window_t window,
  3940. xcb_randr_lease_t lid,
  3941. uint16_t num_crtcs,
  3942. uint16_t num_outputs,
  3943. const xcb_randr_crtc_t *crtcs,
  3944. const xcb_randr_output_t *outputs);
  3945. /**
  3946. * Return the reply
  3947. * @param c The connection
  3948. * @param cookie The cookie
  3949. * @param e The xcb_generic_error_t supplied
  3950. *
  3951. * Returns the reply of the request asked by
  3952. *
  3953. * The parameter @p e supplied to this function must be NULL if
  3954. * xcb_randr_create_lease_unchecked(). is used.
  3955. * Otherwise, it stores the error if any.
  3956. *
  3957. * The returned value must be freed by the caller using free().
  3958. */
  3959. xcb_randr_create_lease_reply_t *
  3960. xcb_randr_create_lease_reply (xcb_connection_t *c,
  3961. xcb_randr_create_lease_cookie_t cookie /**< */,
  3962. xcb_generic_error_t **e);
  3963. /**
  3964. * Return the reply fds
  3965. * @param c The connection
  3966. * @param reply The reply
  3967. *
  3968. * Returns the array of reply fds of the request asked by
  3969. *
  3970. * The returned value must be freed by the caller using free().
  3971. */
  3972. int *
  3973. xcb_randr_create_lease_reply_fds (xcb_connection_t *c /**< */,
  3974. xcb_randr_create_lease_reply_t *reply);
  3975. /**
  3976. *
  3977. * @param c The connection
  3978. * @return A cookie
  3979. *
  3980. * Delivers a request to the X server.
  3981. *
  3982. * This form can be used only if the request will not cause
  3983. * a reply to be generated. Any returned error will be
  3984. * saved for handling by xcb_request_check().
  3985. */
  3986. xcb_void_cookie_t
  3987. xcb_randr_free_lease_checked (xcb_connection_t *c,
  3988. xcb_randr_lease_t lid,
  3989. uint8_t terminate);
  3990. /**
  3991. *
  3992. * @param c The connection
  3993. * @return A cookie
  3994. *
  3995. * Delivers a request to the X server.
  3996. *
  3997. */
  3998. xcb_void_cookie_t
  3999. xcb_randr_free_lease (xcb_connection_t *c,
  4000. xcb_randr_lease_t lid,
  4001. uint8_t terminate);
  4002. /**
  4003. * Get the next element of the iterator
  4004. * @param i Pointer to a xcb_randr_lease_notify_iterator_t
  4005. *
  4006. * Get the next element in the iterator. The member rem is
  4007. * decreased by one. The member data points to the next
  4008. * element. The member index is increased by sizeof(xcb_randr_lease_notify_t)
  4009. */
  4010. void
  4011. xcb_randr_lease_notify_next (xcb_randr_lease_notify_iterator_t *i);
  4012. /**
  4013. * Return the iterator pointing to the last element
  4014. * @param i An xcb_randr_lease_notify_iterator_t
  4015. * @return The iterator pointing to the last element
  4016. *
  4017. * Set the current element in the iterator to the last element.
  4018. * The member rem is set to 0. The member data points to the
  4019. * last element.
  4020. */
  4021. xcb_generic_iterator_t
  4022. xcb_randr_lease_notify_end (xcb_randr_lease_notify_iterator_t i);
  4023. /**
  4024. * Get the next element of the iterator
  4025. * @param i Pointer to a xcb_randr_notify_data_iterator_t
  4026. *
  4027. * Get the next element in the iterator. The member rem is
  4028. * decreased by one. The member data points to the next
  4029. * element. The member index is increased by sizeof(xcb_randr_notify_data_t)
  4030. */
  4031. void
  4032. xcb_randr_notify_data_next (xcb_randr_notify_data_iterator_t *i);
  4033. /**
  4034. * Return the iterator pointing to the last element
  4035. * @param i An xcb_randr_notify_data_iterator_t
  4036. * @return The iterator pointing to the last element
  4037. *
  4038. * Set the current element in the iterator to the last element.
  4039. * The member rem is set to 0. The member data points to the
  4040. * last element.
  4041. */
  4042. xcb_generic_iterator_t
  4043. xcb_randr_notify_data_end (xcb_randr_notify_data_iterator_t i);
  4044. #ifdef __cplusplus
  4045. }
  4046. #endif
  4047. #endif
  4048. /**
  4049. * @}
  4050. */