| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696 |
- /*
- * This file generated automatically from xproto.xml by c_client.py.
- * Edit at your peril.
- */
- /**
- * @defgroup XCB__API XCB API
- * @brief XCB Protocol Implementation.
- * @{
- **/
- #ifndef __XPROTO_H
- #define __XPROTO_H
- #include "xcb.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- /**
- * @brief xcb_char2b_t
- **/
- typedef struct xcb_char2b_t {
- uint8_t byte1;
- uint8_t byte2;
- } xcb_char2b_t;
- /**
- * @brief xcb_char2b_iterator_t
- **/
- typedef struct xcb_char2b_iterator_t {
- xcb_char2b_t *data;
- int rem;
- int index;
- } xcb_char2b_iterator_t;
- typedef uint32_t xcb_window_t;
- /**
- * @brief xcb_window_iterator_t
- **/
- typedef struct xcb_window_iterator_t {
- xcb_window_t *data;
- int rem;
- int index;
- } xcb_window_iterator_t;
- typedef uint32_t xcb_pixmap_t;
- /**
- * @brief xcb_pixmap_iterator_t
- **/
- typedef struct xcb_pixmap_iterator_t {
- xcb_pixmap_t *data;
- int rem;
- int index;
- } xcb_pixmap_iterator_t;
- typedef uint32_t xcb_cursor_t;
- /**
- * @brief xcb_cursor_iterator_t
- **/
- typedef struct xcb_cursor_iterator_t {
- xcb_cursor_t *data;
- int rem;
- int index;
- } xcb_cursor_iterator_t;
- typedef uint32_t xcb_font_t;
- /**
- * @brief xcb_font_iterator_t
- **/
- typedef struct xcb_font_iterator_t {
- xcb_font_t *data;
- int rem;
- int index;
- } xcb_font_iterator_t;
- typedef uint32_t xcb_gcontext_t;
- /**
- * @brief xcb_gcontext_iterator_t
- **/
- typedef struct xcb_gcontext_iterator_t {
- xcb_gcontext_t *data;
- int rem;
- int index;
- } xcb_gcontext_iterator_t;
- typedef uint32_t xcb_colormap_t;
- /**
- * @brief xcb_colormap_iterator_t
- **/
- typedef struct xcb_colormap_iterator_t {
- xcb_colormap_t *data;
- int rem;
- int index;
- } xcb_colormap_iterator_t;
- typedef uint32_t xcb_atom_t;
- /**
- * @brief xcb_atom_iterator_t
- **/
- typedef struct xcb_atom_iterator_t {
- xcb_atom_t *data;
- int rem;
- int index;
- } xcb_atom_iterator_t;
- typedef uint32_t xcb_drawable_t;
- /**
- * @brief xcb_drawable_iterator_t
- **/
- typedef struct xcb_drawable_iterator_t {
- xcb_drawable_t *data;
- int rem;
- int index;
- } xcb_drawable_iterator_t;
- typedef uint32_t xcb_fontable_t;
- /**
- * @brief xcb_fontable_iterator_t
- **/
- typedef struct xcb_fontable_iterator_t {
- xcb_fontable_t *data;
- int rem;
- int index;
- } xcb_fontable_iterator_t;
- typedef uint32_t xcb_bool32_t;
- /**
- * @brief xcb_bool32_iterator_t
- **/
- typedef struct xcb_bool32_iterator_t {
- xcb_bool32_t *data;
- int rem;
- int index;
- } xcb_bool32_iterator_t;
- typedef uint32_t xcb_visualid_t;
- /**
- * @brief xcb_visualid_iterator_t
- **/
- typedef struct xcb_visualid_iterator_t {
- xcb_visualid_t *data;
- int rem;
- int index;
- } xcb_visualid_iterator_t;
- typedef uint32_t xcb_timestamp_t;
- /**
- * @brief xcb_timestamp_iterator_t
- **/
- typedef struct xcb_timestamp_iterator_t {
- xcb_timestamp_t *data;
- int rem;
- int index;
- } xcb_timestamp_iterator_t;
- typedef uint32_t xcb_keysym_t;
- /**
- * @brief xcb_keysym_iterator_t
- **/
- typedef struct xcb_keysym_iterator_t {
- xcb_keysym_t *data;
- int rem;
- int index;
- } xcb_keysym_iterator_t;
- typedef uint8_t xcb_keycode_t;
- /**
- * @brief xcb_keycode_iterator_t
- **/
- typedef struct xcb_keycode_iterator_t {
- xcb_keycode_t *data;
- int rem;
- int index;
- } xcb_keycode_iterator_t;
- typedef uint32_t xcb_keycode32_t;
- /**
- * @brief xcb_keycode32_iterator_t
- **/
- typedef struct xcb_keycode32_iterator_t {
- xcb_keycode32_t *data;
- int rem;
- int index;
- } xcb_keycode32_iterator_t;
- typedef uint8_t xcb_button_t;
- /**
- * @brief xcb_button_iterator_t
- **/
- typedef struct xcb_button_iterator_t {
- xcb_button_t *data;
- int rem;
- int index;
- } xcb_button_iterator_t;
- /**
- * @brief xcb_point_t
- **/
- typedef struct xcb_point_t {
- int16_t x;
- int16_t y;
- } xcb_point_t;
- /**
- * @brief xcb_point_iterator_t
- **/
- typedef struct xcb_point_iterator_t {
- xcb_point_t *data;
- int rem;
- int index;
- } xcb_point_iterator_t;
- /**
- * @brief xcb_rectangle_t
- **/
- typedef struct xcb_rectangle_t {
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- } xcb_rectangle_t;
- /**
- * @brief xcb_rectangle_iterator_t
- **/
- typedef struct xcb_rectangle_iterator_t {
- xcb_rectangle_t *data;
- int rem;
- int index;
- } xcb_rectangle_iterator_t;
- /**
- * @brief xcb_arc_t
- **/
- typedef struct xcb_arc_t {
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- int16_t angle1;
- int16_t angle2;
- } xcb_arc_t;
- /**
- * @brief xcb_arc_iterator_t
- **/
- typedef struct xcb_arc_iterator_t {
- xcb_arc_t *data;
- int rem;
- int index;
- } xcb_arc_iterator_t;
- /**
- * @brief xcb_format_t
- **/
- typedef struct xcb_format_t {
- uint8_t depth;
- uint8_t bits_per_pixel;
- uint8_t scanline_pad;
- uint8_t pad0[5];
- } xcb_format_t;
- /**
- * @brief xcb_format_iterator_t
- **/
- typedef struct xcb_format_iterator_t {
- xcb_format_t *data;
- int rem;
- int index;
- } xcb_format_iterator_t;
- typedef enum xcb_visual_class_t {
- XCB_VISUAL_CLASS_STATIC_GRAY = 0,
- XCB_VISUAL_CLASS_GRAY_SCALE = 1,
- XCB_VISUAL_CLASS_STATIC_COLOR = 2,
- XCB_VISUAL_CLASS_PSEUDO_COLOR = 3,
- XCB_VISUAL_CLASS_TRUE_COLOR = 4,
- XCB_VISUAL_CLASS_DIRECT_COLOR = 5
- } xcb_visual_class_t;
- /**
- * @brief xcb_visualtype_t
- **/
- typedef struct xcb_visualtype_t {
- xcb_visualid_t visual_id;
- uint8_t _class;
- uint8_t bits_per_rgb_value;
- uint16_t colormap_entries;
- uint32_t red_mask;
- uint32_t green_mask;
- uint32_t blue_mask;
- uint8_t pad0[4];
- } xcb_visualtype_t;
- /**
- * @brief xcb_visualtype_iterator_t
- **/
- typedef struct xcb_visualtype_iterator_t {
- xcb_visualtype_t *data;
- int rem;
- int index;
- } xcb_visualtype_iterator_t;
- /**
- * @brief xcb_depth_t
- **/
- typedef struct xcb_depth_t {
- uint8_t depth;
- uint8_t pad0;
- uint16_t visuals_len;
- uint8_t pad1[4];
- } xcb_depth_t;
- /**
- * @brief xcb_depth_iterator_t
- **/
- typedef struct xcb_depth_iterator_t {
- xcb_depth_t *data;
- int rem;
- int index;
- } xcb_depth_iterator_t;
- typedef enum xcb_event_mask_t {
- XCB_EVENT_MASK_NO_EVENT = 0,
- XCB_EVENT_MASK_KEY_PRESS = 1,
- XCB_EVENT_MASK_KEY_RELEASE = 2,
- XCB_EVENT_MASK_BUTTON_PRESS = 4,
- XCB_EVENT_MASK_BUTTON_RELEASE = 8,
- XCB_EVENT_MASK_ENTER_WINDOW = 16,
- XCB_EVENT_MASK_LEAVE_WINDOW = 32,
- XCB_EVENT_MASK_POINTER_MOTION = 64,
- XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
- XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
- XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
- XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
- XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
- XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
- XCB_EVENT_MASK_BUTTON_MOTION = 8192,
- XCB_EVENT_MASK_KEYMAP_STATE = 16384,
- XCB_EVENT_MASK_EXPOSURE = 32768,
- XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
- XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
- XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
- XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
- XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
- XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
- XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
- XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
- XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
- } xcb_event_mask_t;
- typedef enum xcb_backing_store_t {
- XCB_BACKING_STORE_NOT_USEFUL = 0,
- XCB_BACKING_STORE_WHEN_MAPPED = 1,
- XCB_BACKING_STORE_ALWAYS = 2
- } xcb_backing_store_t;
- /**
- * @brief xcb_screen_t
- **/
- typedef struct xcb_screen_t {
- xcb_window_t root;
- xcb_colormap_t default_colormap;
- uint32_t white_pixel;
- uint32_t black_pixel;
- uint32_t current_input_masks;
- uint16_t width_in_pixels;
- uint16_t height_in_pixels;
- uint16_t width_in_millimeters;
- uint16_t height_in_millimeters;
- uint16_t min_installed_maps;
- uint16_t max_installed_maps;
- xcb_visualid_t root_visual;
- uint8_t backing_stores;
- uint8_t save_unders;
- uint8_t root_depth;
- uint8_t allowed_depths_len;
- } xcb_screen_t;
- /**
- * @brief xcb_screen_iterator_t
- **/
- typedef struct xcb_screen_iterator_t {
- xcb_screen_t *data;
- int rem;
- int index;
- } xcb_screen_iterator_t;
- /**
- * @brief xcb_setup_request_t
- **/
- typedef struct xcb_setup_request_t {
- uint8_t byte_order;
- uint8_t pad0;
- uint16_t protocol_major_version;
- uint16_t protocol_minor_version;
- uint16_t authorization_protocol_name_len;
- uint16_t authorization_protocol_data_len;
- uint8_t pad1[2];
- } xcb_setup_request_t;
- /**
- * @brief xcb_setup_request_iterator_t
- **/
- typedef struct xcb_setup_request_iterator_t {
- xcb_setup_request_t *data;
- int rem;
- int index;
- } xcb_setup_request_iterator_t;
- /**
- * @brief xcb_setup_failed_t
- **/
- typedef struct xcb_setup_failed_t {
- uint8_t status;
- uint8_t reason_len;
- uint16_t protocol_major_version;
- uint16_t protocol_minor_version;
- uint16_t length;
- } xcb_setup_failed_t;
- /**
- * @brief xcb_setup_failed_iterator_t
- **/
- typedef struct xcb_setup_failed_iterator_t {
- xcb_setup_failed_t *data;
- int rem;
- int index;
- } xcb_setup_failed_iterator_t;
- /**
- * @brief xcb_setup_authenticate_t
- **/
- typedef struct xcb_setup_authenticate_t {
- uint8_t status;
- uint8_t pad0[5];
- uint16_t length;
- } xcb_setup_authenticate_t;
- /**
- * @brief xcb_setup_authenticate_iterator_t
- **/
- typedef struct xcb_setup_authenticate_iterator_t {
- xcb_setup_authenticate_t *data;
- int rem;
- int index;
- } xcb_setup_authenticate_iterator_t;
- typedef enum xcb_image_order_t {
- XCB_IMAGE_ORDER_LSB_FIRST = 0,
- XCB_IMAGE_ORDER_MSB_FIRST = 1
- } xcb_image_order_t;
- /**
- * @brief xcb_setup_t
- **/
- typedef struct xcb_setup_t {
- uint8_t status;
- uint8_t pad0;
- uint16_t protocol_major_version;
- uint16_t protocol_minor_version;
- uint16_t length;
- uint32_t release_number;
- uint32_t resource_id_base;
- uint32_t resource_id_mask;
- uint32_t motion_buffer_size;
- uint16_t vendor_len;
- uint16_t maximum_request_length;
- uint8_t roots_len;
- uint8_t pixmap_formats_len;
- uint8_t image_byte_order;
- uint8_t bitmap_format_bit_order;
- uint8_t bitmap_format_scanline_unit;
- uint8_t bitmap_format_scanline_pad;
- xcb_keycode_t min_keycode;
- xcb_keycode_t max_keycode;
- uint8_t pad1[4];
- } xcb_setup_t;
- /**
- * @brief xcb_setup_iterator_t
- **/
- typedef struct xcb_setup_iterator_t {
- xcb_setup_t *data;
- int rem;
- int index;
- } xcb_setup_iterator_t;
- typedef enum xcb_mod_mask_t {
- XCB_MOD_MASK_SHIFT = 1,
- XCB_MOD_MASK_LOCK = 2,
- XCB_MOD_MASK_CONTROL = 4,
- XCB_MOD_MASK_1 = 8,
- XCB_MOD_MASK_2 = 16,
- XCB_MOD_MASK_3 = 32,
- XCB_MOD_MASK_4 = 64,
- XCB_MOD_MASK_5 = 128,
- XCB_MOD_MASK_ANY = 32768
- } xcb_mod_mask_t;
- typedef enum xcb_key_but_mask_t {
- XCB_KEY_BUT_MASK_SHIFT = 1,
- XCB_KEY_BUT_MASK_LOCK = 2,
- XCB_KEY_BUT_MASK_CONTROL = 4,
- XCB_KEY_BUT_MASK_MOD_1 = 8,
- XCB_KEY_BUT_MASK_MOD_2 = 16,
- XCB_KEY_BUT_MASK_MOD_3 = 32,
- XCB_KEY_BUT_MASK_MOD_4 = 64,
- XCB_KEY_BUT_MASK_MOD_5 = 128,
- XCB_KEY_BUT_MASK_BUTTON_1 = 256,
- XCB_KEY_BUT_MASK_BUTTON_2 = 512,
- XCB_KEY_BUT_MASK_BUTTON_3 = 1024,
- XCB_KEY_BUT_MASK_BUTTON_4 = 2048,
- XCB_KEY_BUT_MASK_BUTTON_5 = 4096
- } xcb_key_but_mask_t;
- typedef enum xcb_window_enum_t {
- XCB_WINDOW_NONE = 0
- } xcb_window_enum_t;
- /** Opcode for xcb_key_press. */
- #define XCB_KEY_PRESS 2
- /**
- * @brief xcb_key_press_event_t
- **/
- typedef struct xcb_key_press_event_t {
- uint8_t response_type;
- xcb_keycode_t detail;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t root;
- xcb_window_t event;
- xcb_window_t child;
- int16_t root_x;
- int16_t root_y;
- int16_t event_x;
- int16_t event_y;
- uint16_t state;
- uint8_t same_screen;
- uint8_t pad0;
- } xcb_key_press_event_t;
- /** Opcode for xcb_key_release. */
- #define XCB_KEY_RELEASE 3
- typedef xcb_key_press_event_t xcb_key_release_event_t;
- typedef enum xcb_button_mask_t {
- XCB_BUTTON_MASK_1 = 256,
- XCB_BUTTON_MASK_2 = 512,
- XCB_BUTTON_MASK_3 = 1024,
- XCB_BUTTON_MASK_4 = 2048,
- XCB_BUTTON_MASK_5 = 4096,
- XCB_BUTTON_MASK_ANY = 32768
- } xcb_button_mask_t;
- /** Opcode for xcb_button_press. */
- #define XCB_BUTTON_PRESS 4
- /**
- * @brief xcb_button_press_event_t
- **/
- typedef struct xcb_button_press_event_t {
- uint8_t response_type;
- xcb_button_t detail;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t root;
- xcb_window_t event;
- xcb_window_t child;
- int16_t root_x;
- int16_t root_y;
- int16_t event_x;
- int16_t event_y;
- uint16_t state;
- uint8_t same_screen;
- uint8_t pad0;
- } xcb_button_press_event_t;
- /** Opcode for xcb_button_release. */
- #define XCB_BUTTON_RELEASE 5
- typedef xcb_button_press_event_t xcb_button_release_event_t;
- typedef enum xcb_motion_t {
- XCB_MOTION_NORMAL = 0,
- XCB_MOTION_HINT = 1
- } xcb_motion_t;
- /** Opcode for xcb_motion_notify. */
- #define XCB_MOTION_NOTIFY 6
- /**
- * @brief xcb_motion_notify_event_t
- **/
- typedef struct xcb_motion_notify_event_t {
- uint8_t response_type;
- uint8_t detail;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t root;
- xcb_window_t event;
- xcb_window_t child;
- int16_t root_x;
- int16_t root_y;
- int16_t event_x;
- int16_t event_y;
- uint16_t state;
- uint8_t same_screen;
- uint8_t pad0;
- } xcb_motion_notify_event_t;
- typedef enum xcb_notify_detail_t {
- XCB_NOTIFY_DETAIL_ANCESTOR = 0,
- XCB_NOTIFY_DETAIL_VIRTUAL = 1,
- XCB_NOTIFY_DETAIL_INFERIOR = 2,
- XCB_NOTIFY_DETAIL_NONLINEAR = 3,
- XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
- XCB_NOTIFY_DETAIL_POINTER = 5,
- XCB_NOTIFY_DETAIL_POINTER_ROOT = 6,
- XCB_NOTIFY_DETAIL_NONE = 7
- } xcb_notify_detail_t;
- typedef enum xcb_notify_mode_t {
- XCB_NOTIFY_MODE_NORMAL = 0,
- XCB_NOTIFY_MODE_GRAB = 1,
- XCB_NOTIFY_MODE_UNGRAB = 2,
- XCB_NOTIFY_MODE_WHILE_GRABBED = 3
- } xcb_notify_mode_t;
- /** Opcode for xcb_enter_notify. */
- #define XCB_ENTER_NOTIFY 7
- /**
- * @brief xcb_enter_notify_event_t
- **/
- typedef struct xcb_enter_notify_event_t {
- uint8_t response_type;
- uint8_t detail;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t root;
- xcb_window_t event;
- xcb_window_t child;
- int16_t root_x;
- int16_t root_y;
- int16_t event_x;
- int16_t event_y;
- uint16_t state;
- uint8_t mode;
- uint8_t same_screen_focus;
- } xcb_enter_notify_event_t;
- /** Opcode for xcb_leave_notify. */
- #define XCB_LEAVE_NOTIFY 8
- typedef xcb_enter_notify_event_t xcb_leave_notify_event_t;
- /** Opcode for xcb_focus_in. */
- #define XCB_FOCUS_IN 9
- /**
- * @brief xcb_focus_in_event_t
- **/
- typedef struct xcb_focus_in_event_t {
- uint8_t response_type;
- uint8_t detail;
- uint16_t sequence;
- xcb_window_t event;
- uint8_t mode;
- uint8_t pad0[3];
- } xcb_focus_in_event_t;
- /** Opcode for xcb_focus_out. */
- #define XCB_FOCUS_OUT 10
- typedef xcb_focus_in_event_t xcb_focus_out_event_t;
- /** Opcode for xcb_keymap_notify. */
- #define XCB_KEYMAP_NOTIFY 11
- /**
- * @brief xcb_keymap_notify_event_t
- **/
- typedef struct xcb_keymap_notify_event_t {
- uint8_t response_type;
- uint8_t keys[31];
- } xcb_keymap_notify_event_t;
- /** Opcode for xcb_expose. */
- #define XCB_EXPOSE 12
- /**
- * @brief xcb_expose_event_t
- **/
- typedef struct xcb_expose_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t window;
- uint16_t x;
- uint16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t count;
- uint8_t pad1[2];
- } xcb_expose_event_t;
- /** Opcode for xcb_graphics_exposure. */
- #define XCB_GRAPHICS_EXPOSURE 13
- /**
- * @brief xcb_graphics_exposure_event_t
- **/
- typedef struct xcb_graphics_exposure_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_drawable_t drawable;
- uint16_t x;
- uint16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t minor_opcode;
- uint16_t count;
- uint8_t major_opcode;
- uint8_t pad1[3];
- } xcb_graphics_exposure_event_t;
- /** Opcode for xcb_no_exposure. */
- #define XCB_NO_EXPOSURE 14
- /**
- * @brief xcb_no_exposure_event_t
- **/
- typedef struct xcb_no_exposure_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_drawable_t drawable;
- uint16_t minor_opcode;
- uint8_t major_opcode;
- uint8_t pad1;
- } xcb_no_exposure_event_t;
- typedef enum xcb_visibility_t {
- XCB_VISIBILITY_UNOBSCURED = 0,
- XCB_VISIBILITY_PARTIALLY_OBSCURED = 1,
- XCB_VISIBILITY_FULLY_OBSCURED = 2
- } xcb_visibility_t;
- /** Opcode for xcb_visibility_notify. */
- #define XCB_VISIBILITY_NOTIFY 15
- /**
- * @brief xcb_visibility_notify_event_t
- **/
- typedef struct xcb_visibility_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t window;
- uint8_t state;
- uint8_t pad1[3];
- } xcb_visibility_notify_event_t;
- /** Opcode for xcb_create_notify. */
- #define XCB_CREATE_NOTIFY 16
- /**
- * @brief xcb_create_notify_event_t
- **/
- typedef struct xcb_create_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t parent;
- xcb_window_t window;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t border_width;
- uint8_t override_redirect;
- uint8_t pad1;
- } xcb_create_notify_event_t;
- /** Opcode for xcb_destroy_notify. */
- #define XCB_DESTROY_NOTIFY 17
- /**
- * @brief xcb_destroy_notify_event_t
- **/
- typedef struct xcb_destroy_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- } xcb_destroy_notify_event_t;
- /** Opcode for xcb_unmap_notify. */
- #define XCB_UNMAP_NOTIFY 18
- /**
- * @brief xcb_unmap_notify_event_t
- **/
- typedef struct xcb_unmap_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- uint8_t from_configure;
- uint8_t pad1[3];
- } xcb_unmap_notify_event_t;
- /** Opcode for xcb_map_notify. */
- #define XCB_MAP_NOTIFY 19
- /**
- * @brief xcb_map_notify_event_t
- **/
- typedef struct xcb_map_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- uint8_t override_redirect;
- uint8_t pad1[3];
- } xcb_map_notify_event_t;
- /** Opcode for xcb_map_request. */
- #define XCB_MAP_REQUEST 20
- /**
- * @brief xcb_map_request_event_t
- **/
- typedef struct xcb_map_request_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t parent;
- xcb_window_t window;
- } xcb_map_request_event_t;
- /** Opcode for xcb_reparent_notify. */
- #define XCB_REPARENT_NOTIFY 21
- /**
- * @brief xcb_reparent_notify_event_t
- **/
- typedef struct xcb_reparent_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- xcb_window_t parent;
- int16_t x;
- int16_t y;
- uint8_t override_redirect;
- uint8_t pad1[3];
- } xcb_reparent_notify_event_t;
- /** Opcode for xcb_configure_notify. */
- #define XCB_CONFIGURE_NOTIFY 22
- /**
- * @brief xcb_configure_notify_event_t
- **/
- typedef struct xcb_configure_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- xcb_window_t above_sibling;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t border_width;
- uint8_t override_redirect;
- uint8_t pad1;
- } xcb_configure_notify_event_t;
- /** Opcode for xcb_configure_request. */
- #define XCB_CONFIGURE_REQUEST 23
- /**
- * @brief xcb_configure_request_event_t
- **/
- typedef struct xcb_configure_request_event_t {
- uint8_t response_type;
- uint8_t stack_mode;
- uint16_t sequence;
- xcb_window_t parent;
- xcb_window_t window;
- xcb_window_t sibling;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t border_width;
- uint16_t value_mask;
- } xcb_configure_request_event_t;
- /** Opcode for xcb_gravity_notify. */
- #define XCB_GRAVITY_NOTIFY 24
- /**
- * @brief xcb_gravity_notify_event_t
- **/
- typedef struct xcb_gravity_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- int16_t x;
- int16_t y;
- } xcb_gravity_notify_event_t;
- /** Opcode for xcb_resize_request. */
- #define XCB_RESIZE_REQUEST 25
- /**
- * @brief xcb_resize_request_event_t
- **/
- typedef struct xcb_resize_request_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t window;
- uint16_t width;
- uint16_t height;
- } xcb_resize_request_event_t;
- typedef enum xcb_place_t {
- XCB_PLACE_ON_TOP = 0,
- /**< The window is now on top of all siblings. */
- XCB_PLACE_ON_BOTTOM = 1
- /**< The window is now below all siblings. */
- } xcb_place_t;
- /** Opcode for xcb_circulate_notify. */
- #define XCB_CIRCULATE_NOTIFY 26
- /**
- * @brief xcb_circulate_notify_event_t
- **/
- typedef struct xcb_circulate_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t event;
- xcb_window_t window;
- uint8_t pad1[4];
- uint8_t place;
- uint8_t pad2[3];
- } xcb_circulate_notify_event_t;
- /** Opcode for xcb_circulate_request. */
- #define XCB_CIRCULATE_REQUEST 27
- typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t;
- typedef enum xcb_property_t {
- XCB_PROPERTY_NEW_VALUE = 0,
- XCB_PROPERTY_DELETE = 1
- } xcb_property_t;
- /** Opcode for xcb_property_notify. */
- #define XCB_PROPERTY_NOTIFY 28
- /**
- * @brief xcb_property_notify_event_t
- **/
- typedef struct xcb_property_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t window;
- xcb_atom_t atom;
- xcb_timestamp_t time;
- uint8_t state;
- uint8_t pad1[3];
- } xcb_property_notify_event_t;
- /** Opcode for xcb_selection_clear. */
- #define XCB_SELECTION_CLEAR 29
- /**
- * @brief xcb_selection_clear_event_t
- **/
- typedef struct xcb_selection_clear_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t owner;
- xcb_atom_t selection;
- } xcb_selection_clear_event_t;
- typedef enum xcb_time_t {
- XCB_TIME_CURRENT_TIME = 0
- } xcb_time_t;
- typedef enum xcb_atom_enum_t {
- XCB_ATOM_NONE = 0,
- XCB_ATOM_ANY = 0,
- XCB_ATOM_PRIMARY = 1,
- XCB_ATOM_SECONDARY = 2,
- XCB_ATOM_ARC = 3,
- XCB_ATOM_ATOM = 4,
- XCB_ATOM_BITMAP = 5,
- XCB_ATOM_CARDINAL = 6,
- XCB_ATOM_COLORMAP = 7,
- XCB_ATOM_CURSOR = 8,
- XCB_ATOM_CUT_BUFFER0 = 9,
- XCB_ATOM_CUT_BUFFER1 = 10,
- XCB_ATOM_CUT_BUFFER2 = 11,
- XCB_ATOM_CUT_BUFFER3 = 12,
- XCB_ATOM_CUT_BUFFER4 = 13,
- XCB_ATOM_CUT_BUFFER5 = 14,
- XCB_ATOM_CUT_BUFFER6 = 15,
- XCB_ATOM_CUT_BUFFER7 = 16,
- XCB_ATOM_DRAWABLE = 17,
- XCB_ATOM_FONT = 18,
- XCB_ATOM_INTEGER = 19,
- XCB_ATOM_PIXMAP = 20,
- XCB_ATOM_POINT = 21,
- XCB_ATOM_RECTANGLE = 22,
- XCB_ATOM_RESOURCE_MANAGER = 23,
- XCB_ATOM_RGB_COLOR_MAP = 24,
- XCB_ATOM_RGB_BEST_MAP = 25,
- XCB_ATOM_RGB_BLUE_MAP = 26,
- XCB_ATOM_RGB_DEFAULT_MAP = 27,
- XCB_ATOM_RGB_GRAY_MAP = 28,
- XCB_ATOM_RGB_GREEN_MAP = 29,
- XCB_ATOM_RGB_RED_MAP = 30,
- XCB_ATOM_STRING = 31,
- XCB_ATOM_VISUALID = 32,
- XCB_ATOM_WINDOW = 33,
- XCB_ATOM_WM_COMMAND = 34,
- XCB_ATOM_WM_HINTS = 35,
- XCB_ATOM_WM_CLIENT_MACHINE = 36,
- XCB_ATOM_WM_ICON_NAME = 37,
- XCB_ATOM_WM_ICON_SIZE = 38,
- XCB_ATOM_WM_NAME = 39,
- XCB_ATOM_WM_NORMAL_HINTS = 40,
- XCB_ATOM_WM_SIZE_HINTS = 41,
- XCB_ATOM_WM_ZOOM_HINTS = 42,
- XCB_ATOM_MIN_SPACE = 43,
- XCB_ATOM_NORM_SPACE = 44,
- XCB_ATOM_MAX_SPACE = 45,
- XCB_ATOM_END_SPACE = 46,
- XCB_ATOM_SUPERSCRIPT_X = 47,
- XCB_ATOM_SUPERSCRIPT_Y = 48,
- XCB_ATOM_SUBSCRIPT_X = 49,
- XCB_ATOM_SUBSCRIPT_Y = 50,
- XCB_ATOM_UNDERLINE_POSITION = 51,
- XCB_ATOM_UNDERLINE_THICKNESS = 52,
- XCB_ATOM_STRIKEOUT_ASCENT = 53,
- XCB_ATOM_STRIKEOUT_DESCENT = 54,
- XCB_ATOM_ITALIC_ANGLE = 55,
- XCB_ATOM_X_HEIGHT = 56,
- XCB_ATOM_QUAD_WIDTH = 57,
- XCB_ATOM_WEIGHT = 58,
- XCB_ATOM_POINT_SIZE = 59,
- XCB_ATOM_RESOLUTION = 60,
- XCB_ATOM_COPYRIGHT = 61,
- XCB_ATOM_NOTICE = 62,
- XCB_ATOM_FONT_NAME = 63,
- XCB_ATOM_FAMILY_NAME = 64,
- XCB_ATOM_FULL_NAME = 65,
- XCB_ATOM_CAP_HEIGHT = 66,
- XCB_ATOM_WM_CLASS = 67,
- XCB_ATOM_WM_TRANSIENT_FOR = 68
- } xcb_atom_enum_t;
- /** Opcode for xcb_selection_request. */
- #define XCB_SELECTION_REQUEST 30
- /**
- * @brief xcb_selection_request_event_t
- **/
- typedef struct xcb_selection_request_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t owner;
- xcb_window_t requestor;
- xcb_atom_t selection;
- xcb_atom_t target;
- xcb_atom_t property;
- } xcb_selection_request_event_t;
- /** Opcode for xcb_selection_notify. */
- #define XCB_SELECTION_NOTIFY 31
- /**
- * @brief xcb_selection_notify_event_t
- **/
- typedef struct xcb_selection_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_timestamp_t time;
- xcb_window_t requestor;
- xcb_atom_t selection;
- xcb_atom_t target;
- xcb_atom_t property;
- } xcb_selection_notify_event_t;
- typedef enum xcb_colormap_state_t {
- XCB_COLORMAP_STATE_UNINSTALLED = 0,
- /**< The colormap was uninstalled. */
- XCB_COLORMAP_STATE_INSTALLED = 1
- /**< The colormap was installed. */
- } xcb_colormap_state_t;
- typedef enum xcb_colormap_enum_t {
- XCB_COLORMAP_NONE = 0
- } xcb_colormap_enum_t;
- /** Opcode for xcb_colormap_notify. */
- #define XCB_COLORMAP_NOTIFY 32
- /**
- * @brief xcb_colormap_notify_event_t
- **/
- typedef struct xcb_colormap_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- xcb_window_t window;
- xcb_colormap_t colormap;
- uint8_t _new;
- uint8_t state;
- uint8_t pad1[2];
- } xcb_colormap_notify_event_t;
- /**
- * @brief xcb_client_message_data_t
- **/
- typedef union xcb_client_message_data_t {
- uint8_t data8[20];
- uint16_t data16[10];
- uint32_t data32[5];
- } xcb_client_message_data_t;
- /**
- * @brief xcb_client_message_data_iterator_t
- **/
- typedef struct xcb_client_message_data_iterator_t {
- xcb_client_message_data_t *data;
- int rem;
- int index;
- } xcb_client_message_data_iterator_t;
- /** Opcode for xcb_client_message. */
- #define XCB_CLIENT_MESSAGE 33
- /**
- * @brief xcb_client_message_event_t
- **/
- typedef struct xcb_client_message_event_t {
- uint8_t response_type;
- uint8_t format;
- uint16_t sequence;
- xcb_window_t window;
- xcb_atom_t type;
- xcb_client_message_data_t data;
- } xcb_client_message_event_t;
- typedef enum xcb_mapping_t {
- XCB_MAPPING_MODIFIER = 0,
- XCB_MAPPING_KEYBOARD = 1,
- XCB_MAPPING_POINTER = 2
- } xcb_mapping_t;
- /** Opcode for xcb_mapping_notify. */
- #define XCB_MAPPING_NOTIFY 34
- /**
- * @brief xcb_mapping_notify_event_t
- **/
- typedef struct xcb_mapping_notify_event_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint8_t request;
- xcb_keycode_t first_keycode;
- uint8_t count;
- uint8_t pad1;
- } xcb_mapping_notify_event_t;
- /** Opcode for xcb_ge_generic. */
- #define XCB_GE_GENERIC 35
- /**
- * @brief xcb_ge_generic_event_t
- **/
- typedef struct xcb_ge_generic_event_t {
- uint8_t response_type;
- uint8_t extension;
- uint16_t sequence;
- uint32_t length;
- uint16_t event_type;
- uint8_t pad0[22];
- uint32_t full_sequence;
- } xcb_ge_generic_event_t;
- /** Opcode for xcb_request. */
- #define XCB_REQUEST 1
- /**
- * @brief xcb_request_error_t
- **/
- typedef struct xcb_request_error_t {
- uint8_t response_type;
- uint8_t error_code;
- uint16_t sequence;
- uint32_t bad_value;
- uint16_t minor_opcode;
- uint8_t major_opcode;
- uint8_t pad0;
- } xcb_request_error_t;
- /** Opcode for xcb_value. */
- #define XCB_VALUE 2
- /**
- * @brief xcb_value_error_t
- **/
- typedef struct xcb_value_error_t {
- uint8_t response_type;
- uint8_t error_code;
- uint16_t sequence;
- uint32_t bad_value;
- uint16_t minor_opcode;
- uint8_t major_opcode;
- uint8_t pad0;
- } xcb_value_error_t;
- /** Opcode for xcb_window. */
- #define XCB_WINDOW 3
- typedef xcb_value_error_t xcb_window_error_t;
- /** Opcode for xcb_pixmap. */
- #define XCB_PIXMAP 4
- typedef xcb_value_error_t xcb_pixmap_error_t;
- /** Opcode for xcb_atom. */
- #define XCB_ATOM 5
- typedef xcb_value_error_t xcb_atom_error_t;
- /** Opcode for xcb_cursor. */
- #define XCB_CURSOR 6
- typedef xcb_value_error_t xcb_cursor_error_t;
- /** Opcode for xcb_font. */
- #define XCB_FONT 7
- typedef xcb_value_error_t xcb_font_error_t;
- /** Opcode for xcb_match. */
- #define XCB_MATCH 8
- typedef xcb_request_error_t xcb_match_error_t;
- /** Opcode for xcb_drawable. */
- #define XCB_DRAWABLE 9
- typedef xcb_value_error_t xcb_drawable_error_t;
- /** Opcode for xcb_access. */
- #define XCB_ACCESS 10
- typedef xcb_request_error_t xcb_access_error_t;
- /** Opcode for xcb_alloc. */
- #define XCB_ALLOC 11
- typedef xcb_request_error_t xcb_alloc_error_t;
- /** Opcode for xcb_colormap. */
- #define XCB_COLORMAP 12
- typedef xcb_value_error_t xcb_colormap_error_t;
- /** Opcode for xcb_g_context. */
- #define XCB_G_CONTEXT 13
- typedef xcb_value_error_t xcb_g_context_error_t;
- /** Opcode for xcb_id_choice. */
- #define XCB_ID_CHOICE 14
- typedef xcb_value_error_t xcb_id_choice_error_t;
- /** Opcode for xcb_name. */
- #define XCB_NAME 15
- typedef xcb_request_error_t xcb_name_error_t;
- /** Opcode for xcb_length. */
- #define XCB_LENGTH 16
- typedef xcb_request_error_t xcb_length_error_t;
- /** Opcode for xcb_implementation. */
- #define XCB_IMPLEMENTATION 17
- typedef xcb_request_error_t xcb_implementation_error_t;
- typedef enum xcb_window_class_t {
- XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0,
- XCB_WINDOW_CLASS_INPUT_OUTPUT = 1,
- XCB_WINDOW_CLASS_INPUT_ONLY = 2
- } xcb_window_class_t;
- typedef enum xcb_cw_t {
- XCB_CW_BACK_PIXMAP = 1,
- /**< Overrides the default background-pixmap. The background pixmap and window must
- have the same root and same depth. Any size pixmap can be used, although some
- sizes may be faster than others.
- If `XCB_BACK_PIXMAP_NONE` is specified, the window has no defined background.
- The server may fill the contents with the previous screen contents or with
- contents of its own choosing.
- If `XCB_BACK_PIXMAP_PARENT_RELATIVE` is specified, the parent's background is
- used, but the window must have the same depth as the parent (or a Match error
- results). The parent's background is tracked, and the current version is
- used each time the window background is required. */
- XCB_CW_BACK_PIXEL = 2,
- /**< Overrides `BackPixmap`. A pixmap of undefined size filled with the specified
- background pixel is used for the background. Range-checking is not performed,
- the background pixel is truncated to the appropriate number of bits. */
- XCB_CW_BORDER_PIXMAP = 4,
- /**< Overrides the default border-pixmap. The border pixmap and window must have the
- same root and the same depth. Any size pixmap can be used, although some sizes
- may be faster than others.
- The special value `XCB_COPY_FROM_PARENT` means the parent's border pixmap is
- copied (subsequent changes to the parent's border attribute do not affect the
- child), but the window must have the same depth as the parent. */
- XCB_CW_BORDER_PIXEL = 8,
- /**< Overrides `BorderPixmap`. A pixmap of undefined size filled with the specified
- border pixel is used for the border. Range checking is not performed on the
- border-pixel value, it is truncated to the appropriate number of bits. */
- XCB_CW_BIT_GRAVITY = 16,
- /**< Defines which region of the window should be retained if the window is resized. */
- XCB_CW_WIN_GRAVITY = 32,
- /**< Defines how the window should be repositioned if the parent is resized (see
- `ConfigureWindow`). */
- XCB_CW_BACKING_STORE = 64,
- /**< A backing-store of `WhenMapped` advises the server that maintaining contents of
- obscured regions when the window is mapped would be beneficial. A backing-store
- of `Always` advises the server that maintaining contents even when the window
- is unmapped would be beneficial. In this case, the server may generate an
- exposure event when the window is created. A value of `NotUseful` advises the
- server that maintaining contents is unnecessary, although a server may still
- choose to maintain contents while the window is mapped. Note that if the server
- maintains contents, then the server should maintain complete contents not just
- the region within the parent boundaries, even if the window is larger than its
- parent. While the server maintains contents, exposure events will not normally
- be generated, but the server may stop maintaining contents at any time. */
- XCB_CW_BACKING_PLANES = 128,
- /**< The backing-planes indicates (with bits set to 1) which bit planes of the
- window hold dynamic data that must be preserved in backing-stores and during
- save-unders. */
- XCB_CW_BACKING_PIXEL = 256,
- /**< The backing-pixel specifies what value to use in planes not covered by
- backing-planes. The server is free to save only the specified bit planes in the
- backing-store or save-under and regenerate the remaining planes with the
- specified pixel value. Any bits beyond the specified depth of the window in
- these values are simply ignored. */
- XCB_CW_OVERRIDE_REDIRECT = 512,
- /**< The override-redirect specifies whether map and configure requests on this
- window should override a SubstructureRedirect on the parent, typically to
- inform a window manager not to tamper with the window. */
- XCB_CW_SAVE_UNDER = 1024,
- /**< If 1, the server is advised that when this window is mapped, saving the
- contents of windows it obscures would be beneficial. */
- XCB_CW_EVENT_MASK = 2048,
- /**< The event-mask defines which events the client is interested in for this window
- (or for some event types, inferiors of the window). */
- XCB_CW_DONT_PROPAGATE = 4096,
- /**< The do-not-propagate-mask defines which events should not be propagated to
- ancestor windows when no client has the event type selected in this window. */
- XCB_CW_COLORMAP = 8192,
- /**< The colormap specifies the colormap that best reflects the true colors of the window. Servers
- capable of supporting multiple hardware colormaps may use this information, and window man-
- agers may use it for InstallColormap requests. The colormap must have the same visual type
- and root as the window (or a Match error results). If CopyFromParent is specified, the parent's
- colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child).
- However, the window must have the same visual type as the parent (or a Match error results),
- and the parent must not have a colormap of None (or a Match error results). For an explanation
- of None, see FreeColormap request. The colormap is copied by sharing the colormap object
- between the child and the parent, not by making a complete copy of the colormap contents. */
- XCB_CW_CURSOR = 16384
- /**< If a cursor is specified, it will be used whenever the pointer is in the window. If None is speci-
- fied, the parent's cursor will be used when the pointer is in the window, and any change in the
- parent's cursor will cause an immediate change in the displayed cursor. */
- } xcb_cw_t;
- typedef enum xcb_back_pixmap_t {
- XCB_BACK_PIXMAP_NONE = 0,
- XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
- } xcb_back_pixmap_t;
- typedef enum xcb_gravity_t {
- XCB_GRAVITY_BIT_FORGET = 0,
- XCB_GRAVITY_WIN_UNMAP = 0,
- XCB_GRAVITY_NORTH_WEST = 1,
- XCB_GRAVITY_NORTH = 2,
- XCB_GRAVITY_NORTH_EAST = 3,
- XCB_GRAVITY_WEST = 4,
- XCB_GRAVITY_CENTER = 5,
- XCB_GRAVITY_EAST = 6,
- XCB_GRAVITY_SOUTH_WEST = 7,
- XCB_GRAVITY_SOUTH = 8,
- XCB_GRAVITY_SOUTH_EAST = 9,
- XCB_GRAVITY_STATIC = 10
- } xcb_gravity_t;
- /**
- * @brief xcb_create_window_value_list_t
- **/
- typedef struct xcb_create_window_value_list_t {
- xcb_pixmap_t background_pixmap;
- uint32_t background_pixel;
- xcb_pixmap_t border_pixmap;
- uint32_t border_pixel;
- uint32_t bit_gravity;
- uint32_t win_gravity;
- uint32_t backing_store;
- uint32_t backing_planes;
- uint32_t backing_pixel;
- xcb_bool32_t override_redirect;
- xcb_bool32_t save_under;
- uint32_t event_mask;
- uint32_t do_not_propogate_mask;
- xcb_colormap_t colormap;
- xcb_cursor_t cursor;
- } xcb_create_window_value_list_t;
- /** Opcode for xcb_create_window. */
- #define XCB_CREATE_WINDOW 1
- /**
- * @brief xcb_create_window_request_t
- **/
- typedef struct xcb_create_window_request_t {
- uint8_t major_opcode;
- uint8_t depth;
- uint16_t length;
- xcb_window_t wid;
- xcb_window_t parent;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t border_width;
- uint16_t _class;
- xcb_visualid_t visual;
- uint32_t value_mask;
- } xcb_create_window_request_t;
- /**
- * @brief xcb_change_window_attributes_value_list_t
- **/
- typedef struct xcb_change_window_attributes_value_list_t {
- xcb_pixmap_t background_pixmap;
- uint32_t background_pixel;
- xcb_pixmap_t border_pixmap;
- uint32_t border_pixel;
- uint32_t bit_gravity;
- uint32_t win_gravity;
- uint32_t backing_store;
- uint32_t backing_planes;
- uint32_t backing_pixel;
- xcb_bool32_t override_redirect;
- xcb_bool32_t save_under;
- uint32_t event_mask;
- uint32_t do_not_propogate_mask;
- xcb_colormap_t colormap;
- xcb_cursor_t cursor;
- } xcb_change_window_attributes_value_list_t;
- /** Opcode for xcb_change_window_attributes. */
- #define XCB_CHANGE_WINDOW_ATTRIBUTES 2
- /**
- * @brief xcb_change_window_attributes_request_t
- **/
- typedef struct xcb_change_window_attributes_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- uint32_t value_mask;
- } xcb_change_window_attributes_request_t;
- typedef enum xcb_map_state_t {
- XCB_MAP_STATE_UNMAPPED = 0,
- XCB_MAP_STATE_UNVIEWABLE = 1,
- XCB_MAP_STATE_VIEWABLE = 2
- } xcb_map_state_t;
- /**
- * @brief xcb_get_window_attributes_cookie_t
- **/
- typedef struct xcb_get_window_attributes_cookie_t {
- unsigned int sequence;
- } xcb_get_window_attributes_cookie_t;
- /** Opcode for xcb_get_window_attributes. */
- #define XCB_GET_WINDOW_ATTRIBUTES 3
- /**
- * @brief xcb_get_window_attributes_request_t
- **/
- typedef struct xcb_get_window_attributes_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_get_window_attributes_request_t;
- /**
- * @brief xcb_get_window_attributes_reply_t
- **/
- typedef struct xcb_get_window_attributes_reply_t {
- uint8_t response_type;
- uint8_t backing_store;
- uint16_t sequence;
- uint32_t length;
- xcb_visualid_t visual;
- uint16_t _class;
- uint8_t bit_gravity;
- uint8_t win_gravity;
- uint32_t backing_planes;
- uint32_t backing_pixel;
- uint8_t save_under;
- uint8_t map_is_installed;
- uint8_t map_state;
- uint8_t override_redirect;
- xcb_colormap_t colormap;
- uint32_t all_event_masks;
- uint32_t your_event_mask;
- uint16_t do_not_propagate_mask;
- uint8_t pad0[2];
- } xcb_get_window_attributes_reply_t;
- /** Opcode for xcb_destroy_window. */
- #define XCB_DESTROY_WINDOW 4
- /**
- * @brief xcb_destroy_window_request_t
- **/
- typedef struct xcb_destroy_window_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_destroy_window_request_t;
- /** Opcode for xcb_destroy_subwindows. */
- #define XCB_DESTROY_SUBWINDOWS 5
- /**
- * @brief xcb_destroy_subwindows_request_t
- **/
- typedef struct xcb_destroy_subwindows_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_destroy_subwindows_request_t;
- typedef enum xcb_set_mode_t {
- XCB_SET_MODE_INSERT = 0,
- XCB_SET_MODE_DELETE = 1
- } xcb_set_mode_t;
- /** Opcode for xcb_change_save_set. */
- #define XCB_CHANGE_SAVE_SET 6
- /**
- * @brief xcb_change_save_set_request_t
- **/
- typedef struct xcb_change_save_set_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- xcb_window_t window;
- } xcb_change_save_set_request_t;
- /** Opcode for xcb_reparent_window. */
- #define XCB_REPARENT_WINDOW 7
- /**
- * @brief xcb_reparent_window_request_t
- **/
- typedef struct xcb_reparent_window_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- xcb_window_t parent;
- int16_t x;
- int16_t y;
- } xcb_reparent_window_request_t;
- /** Opcode for xcb_map_window. */
- #define XCB_MAP_WINDOW 8
- /**
- * @brief xcb_map_window_request_t
- **/
- typedef struct xcb_map_window_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_map_window_request_t;
- /** Opcode for xcb_map_subwindows. */
- #define XCB_MAP_SUBWINDOWS 9
- /**
- * @brief xcb_map_subwindows_request_t
- **/
- typedef struct xcb_map_subwindows_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_map_subwindows_request_t;
- /** Opcode for xcb_unmap_window. */
- #define XCB_UNMAP_WINDOW 10
- /**
- * @brief xcb_unmap_window_request_t
- **/
- typedef struct xcb_unmap_window_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_unmap_window_request_t;
- /** Opcode for xcb_unmap_subwindows. */
- #define XCB_UNMAP_SUBWINDOWS 11
- /**
- * @brief xcb_unmap_subwindows_request_t
- **/
- typedef struct xcb_unmap_subwindows_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_unmap_subwindows_request_t;
- typedef enum xcb_config_window_t {
- XCB_CONFIG_WINDOW_X = 1,
- XCB_CONFIG_WINDOW_Y = 2,
- XCB_CONFIG_WINDOW_WIDTH = 4,
- XCB_CONFIG_WINDOW_HEIGHT = 8,
- XCB_CONFIG_WINDOW_BORDER_WIDTH = 16,
- XCB_CONFIG_WINDOW_SIBLING = 32,
- XCB_CONFIG_WINDOW_STACK_MODE = 64
- } xcb_config_window_t;
- typedef enum xcb_stack_mode_t {
- XCB_STACK_MODE_ABOVE = 0,
- XCB_STACK_MODE_BELOW = 1,
- XCB_STACK_MODE_TOP_IF = 2,
- XCB_STACK_MODE_BOTTOM_IF = 3,
- XCB_STACK_MODE_OPPOSITE = 4
- } xcb_stack_mode_t;
- /**
- * @brief xcb_configure_window_value_list_t
- **/
- typedef struct xcb_configure_window_value_list_t {
- int32_t x;
- int32_t y;
- uint32_t width;
- uint32_t height;
- uint32_t border_width;
- xcb_window_t sibling;
- uint32_t stack_mode;
- } xcb_configure_window_value_list_t;
- /** Opcode for xcb_configure_window. */
- #define XCB_CONFIGURE_WINDOW 12
- /**
- * @brief xcb_configure_window_request_t
- **/
- typedef struct xcb_configure_window_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- uint16_t value_mask;
- uint8_t pad1[2];
- } xcb_configure_window_request_t;
- typedef enum xcb_circulate_t {
- XCB_CIRCULATE_RAISE_LOWEST = 0,
- XCB_CIRCULATE_LOWER_HIGHEST = 1
- } xcb_circulate_t;
- /** Opcode for xcb_circulate_window. */
- #define XCB_CIRCULATE_WINDOW 13
- /**
- * @brief xcb_circulate_window_request_t
- **/
- typedef struct xcb_circulate_window_request_t {
- uint8_t major_opcode;
- uint8_t direction;
- uint16_t length;
- xcb_window_t window;
- } xcb_circulate_window_request_t;
- /**
- * @brief xcb_get_geometry_cookie_t
- **/
- typedef struct xcb_get_geometry_cookie_t {
- unsigned int sequence;
- } xcb_get_geometry_cookie_t;
- /** Opcode for xcb_get_geometry. */
- #define XCB_GET_GEOMETRY 14
- /**
- * @brief xcb_get_geometry_request_t
- **/
- typedef struct xcb_get_geometry_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- } xcb_get_geometry_request_t;
- /**
- * @brief xcb_get_geometry_reply_t
- **/
- typedef struct xcb_get_geometry_reply_t {
- uint8_t response_type;
- uint8_t depth;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t root;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint16_t border_width;
- uint8_t pad0[2];
- } xcb_get_geometry_reply_t;
- /**
- * @brief xcb_query_tree_cookie_t
- **/
- typedef struct xcb_query_tree_cookie_t {
- unsigned int sequence;
- } xcb_query_tree_cookie_t;
- /** Opcode for xcb_query_tree. */
- #define XCB_QUERY_TREE 15
- /**
- * @brief xcb_query_tree_request_t
- **/
- typedef struct xcb_query_tree_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_query_tree_request_t;
- /**
- * @brief xcb_query_tree_reply_t
- **/
- typedef struct xcb_query_tree_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t root;
- xcb_window_t parent;
- uint16_t children_len;
- uint8_t pad1[14];
- } xcb_query_tree_reply_t;
- /**
- * @brief xcb_intern_atom_cookie_t
- **/
- typedef struct xcb_intern_atom_cookie_t {
- unsigned int sequence;
- } xcb_intern_atom_cookie_t;
- /** Opcode for xcb_intern_atom. */
- #define XCB_INTERN_ATOM 16
- /**
- * @brief xcb_intern_atom_request_t
- **/
- typedef struct xcb_intern_atom_request_t {
- uint8_t major_opcode;
- uint8_t only_if_exists;
- uint16_t length;
- uint16_t name_len;
- uint8_t pad0[2];
- } xcb_intern_atom_request_t;
- /**
- * @brief xcb_intern_atom_reply_t
- **/
- typedef struct xcb_intern_atom_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- xcb_atom_t atom;
- } xcb_intern_atom_reply_t;
- /**
- * @brief xcb_get_atom_name_cookie_t
- **/
- typedef struct xcb_get_atom_name_cookie_t {
- unsigned int sequence;
- } xcb_get_atom_name_cookie_t;
- /** Opcode for xcb_get_atom_name. */
- #define XCB_GET_ATOM_NAME 17
- /**
- * @brief xcb_get_atom_name_request_t
- **/
- typedef struct xcb_get_atom_name_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_atom_t atom;
- } xcb_get_atom_name_request_t;
- /**
- * @brief xcb_get_atom_name_reply_t
- **/
- typedef struct xcb_get_atom_name_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t name_len;
- uint8_t pad1[22];
- } xcb_get_atom_name_reply_t;
- typedef enum xcb_prop_mode_t {
- XCB_PROP_MODE_REPLACE = 0,
- /**< Discard the previous property value and store the new data. */
- XCB_PROP_MODE_PREPEND = 1,
- /**< Insert the new data before the beginning of existing data. The `format` must
- match existing property value. If the property is undefined, it is treated as
- defined with the correct type and format with zero-length data. */
- XCB_PROP_MODE_APPEND = 2
- /**< Insert the new data after the beginning of existing data. The `format` must
- match existing property value. If the property is undefined, it is treated as
- defined with the correct type and format with zero-length data. */
- } xcb_prop_mode_t;
- /** Opcode for xcb_change_property. */
- #define XCB_CHANGE_PROPERTY 18
- /**
- * @brief xcb_change_property_request_t
- **/
- typedef struct xcb_change_property_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- xcb_window_t window;
- xcb_atom_t property;
- xcb_atom_t type;
- uint8_t format;
- uint8_t pad0[3];
- uint32_t data_len;
- } xcb_change_property_request_t;
- /** Opcode for xcb_delete_property. */
- #define XCB_DELETE_PROPERTY 19
- /**
- * @brief xcb_delete_property_request_t
- **/
- typedef struct xcb_delete_property_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- xcb_atom_t property;
- } xcb_delete_property_request_t;
- typedef enum xcb_get_property_type_t {
- XCB_GET_PROPERTY_TYPE_ANY = 0
- } xcb_get_property_type_t;
- /**
- * @brief xcb_get_property_cookie_t
- **/
- typedef struct xcb_get_property_cookie_t {
- unsigned int sequence;
- } xcb_get_property_cookie_t;
- /** Opcode for xcb_get_property. */
- #define XCB_GET_PROPERTY 20
- /**
- * @brief xcb_get_property_request_t
- **/
- typedef struct xcb_get_property_request_t {
- uint8_t major_opcode;
- uint8_t _delete;
- uint16_t length;
- xcb_window_t window;
- xcb_atom_t property;
- xcb_atom_t type;
- uint32_t long_offset;
- uint32_t long_length;
- } xcb_get_property_request_t;
- /**
- * @brief xcb_get_property_reply_t
- **/
- typedef struct xcb_get_property_reply_t {
- uint8_t response_type;
- uint8_t format;
- uint16_t sequence;
- uint32_t length;
- xcb_atom_t type;
- uint32_t bytes_after;
- uint32_t value_len;
- uint8_t pad0[12];
- } xcb_get_property_reply_t;
- /**
- * @brief xcb_list_properties_cookie_t
- **/
- typedef struct xcb_list_properties_cookie_t {
- unsigned int sequence;
- } xcb_list_properties_cookie_t;
- /** Opcode for xcb_list_properties. */
- #define XCB_LIST_PROPERTIES 21
- /**
- * @brief xcb_list_properties_request_t
- **/
- typedef struct xcb_list_properties_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_list_properties_request_t;
- /**
- * @brief xcb_list_properties_reply_t
- **/
- typedef struct xcb_list_properties_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t atoms_len;
- uint8_t pad1[22];
- } xcb_list_properties_reply_t;
- /** Opcode for xcb_set_selection_owner. */
- #define XCB_SET_SELECTION_OWNER 22
- /**
- * @brief xcb_set_selection_owner_request_t
- **/
- typedef struct xcb_set_selection_owner_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t owner;
- xcb_atom_t selection;
- xcb_timestamp_t time;
- } xcb_set_selection_owner_request_t;
- /**
- * @brief xcb_get_selection_owner_cookie_t
- **/
- typedef struct xcb_get_selection_owner_cookie_t {
- unsigned int sequence;
- } xcb_get_selection_owner_cookie_t;
- /** Opcode for xcb_get_selection_owner. */
- #define XCB_GET_SELECTION_OWNER 23
- /**
- * @brief xcb_get_selection_owner_request_t
- **/
- typedef struct xcb_get_selection_owner_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_atom_t selection;
- } xcb_get_selection_owner_request_t;
- /**
- * @brief xcb_get_selection_owner_reply_t
- **/
- typedef struct xcb_get_selection_owner_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t owner;
- } xcb_get_selection_owner_reply_t;
- /** Opcode for xcb_convert_selection. */
- #define XCB_CONVERT_SELECTION 24
- /**
- * @brief xcb_convert_selection_request_t
- **/
- typedef struct xcb_convert_selection_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t requestor;
- xcb_atom_t selection;
- xcb_atom_t target;
- xcb_atom_t property;
- xcb_timestamp_t time;
- } xcb_convert_selection_request_t;
- typedef enum xcb_send_event_dest_t {
- XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0,
- XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
- } xcb_send_event_dest_t;
- /** Opcode for xcb_send_event. */
- #define XCB_SEND_EVENT 25
- /**
- * @brief xcb_send_event_request_t
- **/
- typedef struct xcb_send_event_request_t {
- uint8_t major_opcode;
- uint8_t propagate;
- uint16_t length;
- xcb_window_t destination;
- uint32_t event_mask;
- char event[32];
- } xcb_send_event_request_t;
- typedef enum xcb_grab_mode_t {
- XCB_GRAB_MODE_SYNC = 0,
- /**< The state of the keyboard appears to freeze: No further keyboard events are
- generated by the server until the grabbing client issues a releasing
- `AllowEvents` request or until the keyboard grab is released. */
- XCB_GRAB_MODE_ASYNC = 1
- /**< Keyboard event processing continues normally. */
- } xcb_grab_mode_t;
- typedef enum xcb_grab_status_t {
- XCB_GRAB_STATUS_SUCCESS = 0,
- XCB_GRAB_STATUS_ALREADY_GRABBED = 1,
- XCB_GRAB_STATUS_INVALID_TIME = 2,
- XCB_GRAB_STATUS_NOT_VIEWABLE = 3,
- XCB_GRAB_STATUS_FROZEN = 4
- } xcb_grab_status_t;
- typedef enum xcb_cursor_enum_t {
- XCB_CURSOR_NONE = 0
- } xcb_cursor_enum_t;
- /**
- * @brief xcb_grab_pointer_cookie_t
- **/
- typedef struct xcb_grab_pointer_cookie_t {
- unsigned int sequence;
- } xcb_grab_pointer_cookie_t;
- /** Opcode for xcb_grab_pointer. */
- #define XCB_GRAB_POINTER 26
- /**
- * @brief xcb_grab_pointer_request_t
- **/
- typedef struct xcb_grab_pointer_request_t {
- uint8_t major_opcode;
- uint8_t owner_events;
- uint16_t length;
- xcb_window_t grab_window;
- uint16_t event_mask;
- uint8_t pointer_mode;
- uint8_t keyboard_mode;
- xcb_window_t confine_to;
- xcb_cursor_t cursor;
- xcb_timestamp_t time;
- } xcb_grab_pointer_request_t;
- /**
- * @brief xcb_grab_pointer_reply_t
- **/
- typedef struct xcb_grab_pointer_reply_t {
- uint8_t response_type;
- uint8_t status;
- uint16_t sequence;
- uint32_t length;
- } xcb_grab_pointer_reply_t;
- /** Opcode for xcb_ungrab_pointer. */
- #define XCB_UNGRAB_POINTER 27
- /**
- * @brief xcb_ungrab_pointer_request_t
- **/
- typedef struct xcb_ungrab_pointer_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_timestamp_t time;
- } xcb_ungrab_pointer_request_t;
- typedef enum xcb_button_index_t {
- XCB_BUTTON_INDEX_ANY = 0,
- /**< Any of the following (or none): */
- XCB_BUTTON_INDEX_1 = 1,
- /**< The left mouse button. */
- XCB_BUTTON_INDEX_2 = 2,
- /**< The right mouse button. */
- XCB_BUTTON_INDEX_3 = 3,
- /**< The middle mouse button. */
- XCB_BUTTON_INDEX_4 = 4,
- /**< Scroll wheel. TODO: direction? */
- XCB_BUTTON_INDEX_5 = 5
- /**< Scroll wheel. TODO: direction? */
- } xcb_button_index_t;
- /** Opcode for xcb_grab_button. */
- #define XCB_GRAB_BUTTON 28
- /**
- * @brief xcb_grab_button_request_t
- **/
- typedef struct xcb_grab_button_request_t {
- uint8_t major_opcode;
- uint8_t owner_events;
- uint16_t length;
- xcb_window_t grab_window;
- uint16_t event_mask;
- uint8_t pointer_mode;
- uint8_t keyboard_mode;
- xcb_window_t confine_to;
- xcb_cursor_t cursor;
- uint8_t button;
- uint8_t pad0;
- uint16_t modifiers;
- } xcb_grab_button_request_t;
- /** Opcode for xcb_ungrab_button. */
- #define XCB_UNGRAB_BUTTON 29
- /**
- * @brief xcb_ungrab_button_request_t
- **/
- typedef struct xcb_ungrab_button_request_t {
- uint8_t major_opcode;
- uint8_t button;
- uint16_t length;
- xcb_window_t grab_window;
- uint16_t modifiers;
- uint8_t pad0[2];
- } xcb_ungrab_button_request_t;
- /** Opcode for xcb_change_active_pointer_grab. */
- #define XCB_CHANGE_ACTIVE_POINTER_GRAB 30
- /**
- * @brief xcb_change_active_pointer_grab_request_t
- **/
- typedef struct xcb_change_active_pointer_grab_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_cursor_t cursor;
- xcb_timestamp_t time;
- uint16_t event_mask;
- uint8_t pad1[2];
- } xcb_change_active_pointer_grab_request_t;
- /**
- * @brief xcb_grab_keyboard_cookie_t
- **/
- typedef struct xcb_grab_keyboard_cookie_t {
- unsigned int sequence;
- } xcb_grab_keyboard_cookie_t;
- /** Opcode for xcb_grab_keyboard. */
- #define XCB_GRAB_KEYBOARD 31
- /**
- * @brief xcb_grab_keyboard_request_t
- **/
- typedef struct xcb_grab_keyboard_request_t {
- uint8_t major_opcode;
- uint8_t owner_events;
- uint16_t length;
- xcb_window_t grab_window;
- xcb_timestamp_t time;
- uint8_t pointer_mode;
- uint8_t keyboard_mode;
- uint8_t pad0[2];
- } xcb_grab_keyboard_request_t;
- /**
- * @brief xcb_grab_keyboard_reply_t
- **/
- typedef struct xcb_grab_keyboard_reply_t {
- uint8_t response_type;
- uint8_t status;
- uint16_t sequence;
- uint32_t length;
- } xcb_grab_keyboard_reply_t;
- /** Opcode for xcb_ungrab_keyboard. */
- #define XCB_UNGRAB_KEYBOARD 32
- /**
- * @brief xcb_ungrab_keyboard_request_t
- **/
- typedef struct xcb_ungrab_keyboard_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_timestamp_t time;
- } xcb_ungrab_keyboard_request_t;
- typedef enum xcb_grab_t {
- XCB_GRAB_ANY = 0
- } xcb_grab_t;
- /** Opcode for xcb_grab_key. */
- #define XCB_GRAB_KEY 33
- /**
- * @brief xcb_grab_key_request_t
- **/
- typedef struct xcb_grab_key_request_t {
- uint8_t major_opcode;
- uint8_t owner_events;
- uint16_t length;
- xcb_window_t grab_window;
- uint16_t modifiers;
- xcb_keycode_t key;
- uint8_t pointer_mode;
- uint8_t keyboard_mode;
- uint8_t pad0[3];
- } xcb_grab_key_request_t;
- /** Opcode for xcb_ungrab_key. */
- #define XCB_UNGRAB_KEY 34
- /**
- * @brief xcb_ungrab_key_request_t
- **/
- typedef struct xcb_ungrab_key_request_t {
- uint8_t major_opcode;
- xcb_keycode_t key;
- uint16_t length;
- xcb_window_t grab_window;
- uint16_t modifiers;
- uint8_t pad0[2];
- } xcb_ungrab_key_request_t;
- typedef enum xcb_allow_t {
- XCB_ALLOW_ASYNC_POINTER = 0,
- /**< For AsyncPointer, if the pointer is frozen by the client, pointer event
- processing continues normally. If the pointer is frozen twice by the client on
- behalf of two separate grabs, AsyncPointer thaws for both. AsyncPointer has no
- effect if the pointer is not frozen by the client, but the pointer need not be
- grabbed by the client.
- TODO: rewrite this in more understandable terms. */
- XCB_ALLOW_SYNC_POINTER = 1,
- /**< For SyncPointer, if the pointer is frozen and actively grabbed by the client,
- pointer event processing continues normally until the next ButtonPress or
- ButtonRelease event is reported to the client, at which time the pointer again
- appears to freeze. However, if the reported event causes the pointer grab to be
- released, then the pointer does not freeze. SyncPointer has no effect if the
- pointer is not frozen by the client or if the pointer is not grabbed by the
- client. */
- XCB_ALLOW_REPLAY_POINTER = 2,
- /**< For ReplayPointer, if the pointer is actively grabbed by the client and is
- frozen as the result of an event having been sent to the client (either from
- the activation of a GrabButton or from a previous AllowEvents with mode
- SyncPointer but not from a GrabPointer), then the pointer grab is released and
- that event is completely reprocessed, this time ignoring any passive grabs at
- or above (towards the root) the grab-window of the grab just released. The
- request has no effect if the pointer is not grabbed by the client or if the
- pointer is not frozen as the result of an event. */
- XCB_ALLOW_ASYNC_KEYBOARD = 3,
- /**< For AsyncKeyboard, if the keyboard is frozen by the client, keyboard event
- processing continues normally. If the keyboard is frozen twice by the client on
- behalf of two separate grabs, AsyncKeyboard thaws for both. AsyncKeyboard has
- no effect if the keyboard is not frozen by the client, but the keyboard need
- not be grabbed by the client. */
- XCB_ALLOW_SYNC_KEYBOARD = 4,
- /**< For SyncKeyboard, if the keyboard is frozen and actively grabbed by the client,
- keyboard event processing continues normally until the next KeyPress or
- KeyRelease event is reported to the client, at which time the keyboard again
- appears to freeze. However, if the reported event causes the keyboard grab to
- be released, then the keyboard does not freeze. SyncKeyboard has no effect if
- the keyboard is not frozen by the client or if the keyboard is not grabbed by
- the client. */
- XCB_ALLOW_REPLAY_KEYBOARD = 5,
- /**< For ReplayKeyboard, if the keyboard is actively grabbed by the client and is
- frozen as the result of an event having been sent to the client (either from
- the activation of a GrabKey or from a previous AllowEvents with mode
- SyncKeyboard but not from a GrabKeyboard), then the keyboard grab is released
- and that event is completely reprocessed, this time ignoring any passive grabs
- at or above (towards the root) the grab-window of the grab just released. The
- request has no effect if the keyboard is not grabbed by the client or if the
- keyboard is not frozen as the result of an event. */
- XCB_ALLOW_ASYNC_BOTH = 6,
- /**< For AsyncBoth, if the pointer and the keyboard are frozen by the client, event
- processing for both devices continues normally. If a device is frozen twice by
- the client on behalf of two separate grabs, AsyncBoth thaws for both. AsyncBoth
- has no effect unless both pointer and keyboard are frozen by the client. */
- XCB_ALLOW_SYNC_BOTH = 7
- /**< For SyncBoth, if both pointer and keyboard are frozen by the client, event
- processing (for both devices) continues normally until the next ButtonPress,
- ButtonRelease, KeyPress, or KeyRelease event is reported to the client for a
- grabbed device (button event for the pointer, key event for the keyboard), at
- which time the devices again appear to freeze. However, if the reported event
- causes the grab to be released, then the devices do not freeze (but if the
- other device is still grabbed, then a subsequent event for it will still cause
- both devices to freeze). SyncBoth has no effect unless both pointer and
- keyboard are frozen by the client. If the pointer or keyboard is frozen twice
- by the client on behalf of two separate grabs, SyncBoth thaws for both (but a
- subsequent freeze for SyncBoth will only freeze each device once). */
- } xcb_allow_t;
- /** Opcode for xcb_allow_events. */
- #define XCB_ALLOW_EVENTS 35
- /**
- * @brief xcb_allow_events_request_t
- **/
- typedef struct xcb_allow_events_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- xcb_timestamp_t time;
- } xcb_allow_events_request_t;
- /** Opcode for xcb_grab_server. */
- #define XCB_GRAB_SERVER 36
- /**
- * @brief xcb_grab_server_request_t
- **/
- typedef struct xcb_grab_server_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_grab_server_request_t;
- /** Opcode for xcb_ungrab_server. */
- #define XCB_UNGRAB_SERVER 37
- /**
- * @brief xcb_ungrab_server_request_t
- **/
- typedef struct xcb_ungrab_server_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_ungrab_server_request_t;
- /**
- * @brief xcb_query_pointer_cookie_t
- **/
- typedef struct xcb_query_pointer_cookie_t {
- unsigned int sequence;
- } xcb_query_pointer_cookie_t;
- /** Opcode for xcb_query_pointer. */
- #define XCB_QUERY_POINTER 38
- /**
- * @brief xcb_query_pointer_request_t
- **/
- typedef struct xcb_query_pointer_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_query_pointer_request_t;
- /**
- * @brief xcb_query_pointer_reply_t
- **/
- typedef struct xcb_query_pointer_reply_t {
- uint8_t response_type;
- uint8_t same_screen;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t root;
- xcb_window_t child;
- int16_t root_x;
- int16_t root_y;
- int16_t win_x;
- int16_t win_y;
- uint16_t mask;
- uint8_t pad0[2];
- } xcb_query_pointer_reply_t;
- /**
- * @brief xcb_timecoord_t
- **/
- typedef struct xcb_timecoord_t {
- xcb_timestamp_t time;
- int16_t x;
- int16_t y;
- } xcb_timecoord_t;
- /**
- * @brief xcb_timecoord_iterator_t
- **/
- typedef struct xcb_timecoord_iterator_t {
- xcb_timecoord_t *data;
- int rem;
- int index;
- } xcb_timecoord_iterator_t;
- /**
- * @brief xcb_get_motion_events_cookie_t
- **/
- typedef struct xcb_get_motion_events_cookie_t {
- unsigned int sequence;
- } xcb_get_motion_events_cookie_t;
- /** Opcode for xcb_get_motion_events. */
- #define XCB_GET_MOTION_EVENTS 39
- /**
- * @brief xcb_get_motion_events_request_t
- **/
- typedef struct xcb_get_motion_events_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- xcb_timestamp_t start;
- xcb_timestamp_t stop;
- } xcb_get_motion_events_request_t;
- /**
- * @brief xcb_get_motion_events_reply_t
- **/
- typedef struct xcb_get_motion_events_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint32_t events_len;
- uint8_t pad1[20];
- } xcb_get_motion_events_reply_t;
- /**
- * @brief xcb_translate_coordinates_cookie_t
- **/
- typedef struct xcb_translate_coordinates_cookie_t {
- unsigned int sequence;
- } xcb_translate_coordinates_cookie_t;
- /** Opcode for xcb_translate_coordinates. */
- #define XCB_TRANSLATE_COORDINATES 40
- /**
- * @brief xcb_translate_coordinates_request_t
- **/
- typedef struct xcb_translate_coordinates_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t src_window;
- xcb_window_t dst_window;
- int16_t src_x;
- int16_t src_y;
- } xcb_translate_coordinates_request_t;
- /**
- * @brief xcb_translate_coordinates_reply_t
- **/
- typedef struct xcb_translate_coordinates_reply_t {
- uint8_t response_type;
- uint8_t same_screen;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t child;
- int16_t dst_x;
- int16_t dst_y;
- } xcb_translate_coordinates_reply_t;
- /** Opcode for xcb_warp_pointer. */
- #define XCB_WARP_POINTER 41
- /**
- * @brief xcb_warp_pointer_request_t
- **/
- typedef struct xcb_warp_pointer_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t src_window;
- xcb_window_t dst_window;
- int16_t src_x;
- int16_t src_y;
- uint16_t src_width;
- uint16_t src_height;
- int16_t dst_x;
- int16_t dst_y;
- } xcb_warp_pointer_request_t;
- typedef enum xcb_input_focus_t {
- XCB_INPUT_FOCUS_NONE = 0,
- /**< The focus reverts to `XCB_NONE`, so no window will have the input focus. */
- XCB_INPUT_FOCUS_POINTER_ROOT = 1,
- /**< The focus reverts to `XCB_POINTER_ROOT` respectively. When the focus reverts,
- FocusIn and FocusOut events are generated, but the last-focus-change time is
- not changed. */
- XCB_INPUT_FOCUS_PARENT = 2,
- /**< The focus reverts to the parent (or closest viewable ancestor) and the new
- revert_to value is `XCB_INPUT_FOCUS_NONE`. */
- XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
- /**< NOT YET DOCUMENTED. Only relevant for the xinput extension. */
- } xcb_input_focus_t;
- /** Opcode for xcb_set_input_focus. */
- #define XCB_SET_INPUT_FOCUS 42
- /**
- * @brief xcb_set_input_focus_request_t
- **/
- typedef struct xcb_set_input_focus_request_t {
- uint8_t major_opcode;
- uint8_t revert_to;
- uint16_t length;
- xcb_window_t focus;
- xcb_timestamp_t time;
- } xcb_set_input_focus_request_t;
- /**
- * @brief xcb_get_input_focus_cookie_t
- **/
- typedef struct xcb_get_input_focus_cookie_t {
- unsigned int sequence;
- } xcb_get_input_focus_cookie_t;
- /** Opcode for xcb_get_input_focus. */
- #define XCB_GET_INPUT_FOCUS 43
- /**
- * @brief xcb_get_input_focus_request_t
- **/
- typedef struct xcb_get_input_focus_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_input_focus_request_t;
- /**
- * @brief xcb_get_input_focus_reply_t
- **/
- typedef struct xcb_get_input_focus_reply_t {
- uint8_t response_type;
- uint8_t revert_to;
- uint16_t sequence;
- uint32_t length;
- xcb_window_t focus;
- } xcb_get_input_focus_reply_t;
- /**
- * @brief xcb_query_keymap_cookie_t
- **/
- typedef struct xcb_query_keymap_cookie_t {
- unsigned int sequence;
- } xcb_query_keymap_cookie_t;
- /** Opcode for xcb_query_keymap. */
- #define XCB_QUERY_KEYMAP 44
- /**
- * @brief xcb_query_keymap_request_t
- **/
- typedef struct xcb_query_keymap_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_query_keymap_request_t;
- /**
- * @brief xcb_query_keymap_reply_t
- **/
- typedef struct xcb_query_keymap_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint8_t keys[32];
- } xcb_query_keymap_reply_t;
- /** Opcode for xcb_open_font. */
- #define XCB_OPEN_FONT 45
- /**
- * @brief xcb_open_font_request_t
- **/
- typedef struct xcb_open_font_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_font_t fid;
- uint16_t name_len;
- uint8_t pad1[2];
- } xcb_open_font_request_t;
- /** Opcode for xcb_close_font. */
- #define XCB_CLOSE_FONT 46
- /**
- * @brief xcb_close_font_request_t
- **/
- typedef struct xcb_close_font_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_font_t font;
- } xcb_close_font_request_t;
- typedef enum xcb_font_draw_t {
- XCB_FONT_DRAW_LEFT_TO_RIGHT = 0,
- XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
- } xcb_font_draw_t;
- /**
- * @brief xcb_fontprop_t
- **/
- typedef struct xcb_fontprop_t {
- xcb_atom_t name;
- uint32_t value;
- } xcb_fontprop_t;
- /**
- * @brief xcb_fontprop_iterator_t
- **/
- typedef struct xcb_fontprop_iterator_t {
- xcb_fontprop_t *data;
- int rem;
- int index;
- } xcb_fontprop_iterator_t;
- /**
- * @brief xcb_charinfo_t
- **/
- typedef struct xcb_charinfo_t {
- int16_t left_side_bearing;
- int16_t right_side_bearing;
- int16_t character_width;
- int16_t ascent;
- int16_t descent;
- uint16_t attributes;
- } xcb_charinfo_t;
- /**
- * @brief xcb_charinfo_iterator_t
- **/
- typedef struct xcb_charinfo_iterator_t {
- xcb_charinfo_t *data;
- int rem;
- int index;
- } xcb_charinfo_iterator_t;
- /**
- * @brief xcb_query_font_cookie_t
- **/
- typedef struct xcb_query_font_cookie_t {
- unsigned int sequence;
- } xcb_query_font_cookie_t;
- /** Opcode for xcb_query_font. */
- #define XCB_QUERY_FONT 47
- /**
- * @brief xcb_query_font_request_t
- **/
- typedef struct xcb_query_font_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_fontable_t font;
- } xcb_query_font_request_t;
- /**
- * @brief xcb_query_font_reply_t
- **/
- typedef struct xcb_query_font_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- xcb_charinfo_t min_bounds;
- uint8_t pad1[4];
- xcb_charinfo_t max_bounds;
- uint8_t pad2[4];
- uint16_t min_char_or_byte2;
- uint16_t max_char_or_byte2;
- uint16_t default_char;
- uint16_t properties_len;
- uint8_t draw_direction;
- uint8_t min_byte1;
- uint8_t max_byte1;
- uint8_t all_chars_exist;
- int16_t font_ascent;
- int16_t font_descent;
- uint32_t char_infos_len;
- } xcb_query_font_reply_t;
- /**
- * @brief xcb_query_text_extents_cookie_t
- **/
- typedef struct xcb_query_text_extents_cookie_t {
- unsigned int sequence;
- } xcb_query_text_extents_cookie_t;
- /** Opcode for xcb_query_text_extents. */
- #define XCB_QUERY_TEXT_EXTENTS 48
- /**
- * @brief xcb_query_text_extents_request_t
- **/
- typedef struct xcb_query_text_extents_request_t {
- uint8_t major_opcode;
- uint8_t odd_length;
- uint16_t length;
- xcb_fontable_t font;
- } xcb_query_text_extents_request_t;
- /**
- * @brief xcb_query_text_extents_reply_t
- **/
- typedef struct xcb_query_text_extents_reply_t {
- uint8_t response_type;
- uint8_t draw_direction;
- uint16_t sequence;
- uint32_t length;
- int16_t font_ascent;
- int16_t font_descent;
- int16_t overall_ascent;
- int16_t overall_descent;
- int32_t overall_width;
- int32_t overall_left;
- int32_t overall_right;
- } xcb_query_text_extents_reply_t;
- /**
- * @brief xcb_str_t
- **/
- typedef struct xcb_str_t {
- uint8_t name_len;
- } xcb_str_t;
- /**
- * @brief xcb_str_iterator_t
- **/
- typedef struct xcb_str_iterator_t {
- xcb_str_t *data;
- int rem;
- int index;
- } xcb_str_iterator_t;
- /**
- * @brief xcb_list_fonts_cookie_t
- **/
- typedef struct xcb_list_fonts_cookie_t {
- unsigned int sequence;
- } xcb_list_fonts_cookie_t;
- /** Opcode for xcb_list_fonts. */
- #define XCB_LIST_FONTS 49
- /**
- * @brief xcb_list_fonts_request_t
- **/
- typedef struct xcb_list_fonts_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint16_t max_names;
- uint16_t pattern_len;
- } xcb_list_fonts_request_t;
- /**
- * @brief xcb_list_fonts_reply_t
- **/
- typedef struct xcb_list_fonts_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t names_len;
- uint8_t pad1[22];
- } xcb_list_fonts_reply_t;
- /**
- * @brief xcb_list_fonts_with_info_cookie_t
- **/
- typedef struct xcb_list_fonts_with_info_cookie_t {
- unsigned int sequence;
- } xcb_list_fonts_with_info_cookie_t;
- /** Opcode for xcb_list_fonts_with_info. */
- #define XCB_LIST_FONTS_WITH_INFO 50
- /**
- * @brief xcb_list_fonts_with_info_request_t
- **/
- typedef struct xcb_list_fonts_with_info_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint16_t max_names;
- uint16_t pattern_len;
- } xcb_list_fonts_with_info_request_t;
- /**
- * @brief xcb_list_fonts_with_info_reply_t
- **/
- typedef struct xcb_list_fonts_with_info_reply_t {
- uint8_t response_type;
- uint8_t name_len;
- uint16_t sequence;
- uint32_t length;
- xcb_charinfo_t min_bounds;
- uint8_t pad0[4];
- xcb_charinfo_t max_bounds;
- uint8_t pad1[4];
- uint16_t min_char_or_byte2;
- uint16_t max_char_or_byte2;
- uint16_t default_char;
- uint16_t properties_len;
- uint8_t draw_direction;
- uint8_t min_byte1;
- uint8_t max_byte1;
- uint8_t all_chars_exist;
- int16_t font_ascent;
- int16_t font_descent;
- uint32_t replies_hint;
- } xcb_list_fonts_with_info_reply_t;
- /** Opcode for xcb_set_font_path. */
- #define XCB_SET_FONT_PATH 51
- /**
- * @brief xcb_set_font_path_request_t
- **/
- typedef struct xcb_set_font_path_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint16_t font_qty;
- uint8_t pad1[2];
- } xcb_set_font_path_request_t;
- /**
- * @brief xcb_get_font_path_cookie_t
- **/
- typedef struct xcb_get_font_path_cookie_t {
- unsigned int sequence;
- } xcb_get_font_path_cookie_t;
- /** Opcode for xcb_get_font_path. */
- #define XCB_GET_FONT_PATH 52
- /**
- * @brief xcb_get_font_path_request_t
- **/
- typedef struct xcb_get_font_path_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_font_path_request_t;
- /**
- * @brief xcb_get_font_path_reply_t
- **/
- typedef struct xcb_get_font_path_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t path_len;
- uint8_t pad1[22];
- } xcb_get_font_path_reply_t;
- /** Opcode for xcb_create_pixmap. */
- #define XCB_CREATE_PIXMAP 53
- /**
- * @brief xcb_create_pixmap_request_t
- **/
- typedef struct xcb_create_pixmap_request_t {
- uint8_t major_opcode;
- uint8_t depth;
- uint16_t length;
- xcb_pixmap_t pid;
- xcb_drawable_t drawable;
- uint16_t width;
- uint16_t height;
- } xcb_create_pixmap_request_t;
- /** Opcode for xcb_free_pixmap. */
- #define XCB_FREE_PIXMAP 54
- /**
- * @brief xcb_free_pixmap_request_t
- **/
- typedef struct xcb_free_pixmap_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_pixmap_t pixmap;
- } xcb_free_pixmap_request_t;
- typedef enum xcb_gc_t {
- XCB_GC_FUNCTION = 1,
- /**< TODO: Refer to GX */
- XCB_GC_PLANE_MASK = 2,
- /**< In graphics operations, given a source and destination pixel, the result is
- computed bitwise on corresponding bits of the pixels; that is, a Boolean
- operation is performed in each bit plane. The plane-mask restricts the
- operation to a subset of planes, so the result is:
- ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) */
- XCB_GC_FOREGROUND = 4,
- /**< Foreground colorpixel. */
- XCB_GC_BACKGROUND = 8,
- /**< Background colorpixel. */
- XCB_GC_LINE_WIDTH = 16,
- /**< The line-width is measured in pixels and can be greater than or equal to one, a wide line, or the
- special value zero, a thin line. */
- XCB_GC_LINE_STYLE = 32,
- /**< The line-style defines which sections of a line are drawn:
- Solid The full path of the line is drawn.
- DoubleDash The full path of the line is drawn, but the even dashes are filled differently
- than the odd dashes (see fill-style), with Butt cap-style used where even and
- odd dashes meet.
- OnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of
- the individual dashes (except NotLast is treated as Butt). */
- XCB_GC_CAP_STYLE = 64,
- /**< The cap-style defines how the endpoints of a path are drawn:
- NotLast The result is equivalent to Butt, except that for a line-width of zero the final
- endpoint is not drawn.
- Butt The result is square at the endpoint (perpendicular to the slope of the line)
- with no projection beyond.
- Round The result is a circular arc with its diameter equal to the line-width, centered
- on the endpoint; it is equivalent to Butt for line-width zero.
- Projecting The result is square at the end, but the path continues beyond the endpoint for
- a distance equal to half the line-width; it is equivalent to Butt for line-width
- zero. */
- XCB_GC_JOIN_STYLE = 128,
- /**< The join-style defines how corners are drawn for wide lines:
- Miter The outer edges of the two lines extend to meet at an angle. However, if the
- angle is less than 11 degrees, a Bevel join-style is used instead.
- Round The result is a circular arc with a diameter equal to the line-width, centered
- on the joinpoint.
- Bevel The result is Butt endpoint styles, and then the triangular notch is filled. */
- XCB_GC_FILL_STYLE = 256,
- /**< The fill-style defines the contents of the source for line, text, and fill requests. For all text and fill
- requests (for example, PolyText8, PolyText16, PolyFillRectangle, FillPoly, and PolyFillArc)
- as well as for line requests with line-style Solid, (for example, PolyLine, PolySegment,
- PolyRectangle, PolyArc) and for the even dashes for line requests with line-style OnOffDash
- or DoubleDash:
- Solid Foreground
- Tiled Tile
- OpaqueStippled A tile with the same width and height as stipple but with background
- everywhere stipple has a zero and with foreground everywhere stipple
- has a one
- Stippled Foreground masked by stipple
- For the odd dashes for line requests with line-style DoubleDash:
- Solid Background
- Tiled Same as for even dashes
- OpaqueStippled Same as for even dashes
- Stippled Background masked by stipple */
- XCB_GC_FILL_RULE = 512,
- /**< */
- XCB_GC_TILE = 1024,
- /**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all
- dimensions. When that plane is superimposed on the drawable for use in a graphics operation,
- the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable
- specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the
- origin of whatever destination drawable is specified in a graphics request.
- The tile pixmap must have the same root and depth as the gcontext (or a Match error results).
- The stipple pixmap must have depth one and must have the same root as the gcontext (or a
- Match error results). For fill-style Stippled (but not fill-style
- OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an
- additional clip mask to be ANDed with the clip-mask.
- Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than
- others. */
- XCB_GC_STIPPLE = 2048,
- /**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all
- dimensions. When that plane is superimposed on the drawable for use in a graphics operation,
- the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable
- specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the
- origin of whatever destination drawable is specified in a graphics request.
- The tile pixmap must have the same root and depth as the gcontext (or a Match error results).
- The stipple pixmap must have depth one and must have the same root as the gcontext (or a
- Match error results). For fill-style Stippled (but not fill-style
- OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an
- additional clip mask to be ANDed with the clip-mask.
- Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than
- others. */
- XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096,
- /**< TODO */
- XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192,
- /**< TODO */
- XCB_GC_FONT = 16384,
- /**< Which font to use for the `ImageText8` and `ImageText16` requests. */
- XCB_GC_SUBWINDOW_MODE = 32768,
- /**< For ClipByChildren, both source and destination windows are additionally
- clipped by all viewable InputOutput children. For IncludeInferiors, neither
- source nor destination window is
- clipped by inferiors. This will result in including subwindow contents in the source and drawing
- through subwindow boundaries of the destination. The use of IncludeInferiors with a source or
- destination window of one depth with mapped inferiors of differing depth is not illegal, but the
- semantics is undefined by the core protocol. */
- XCB_GC_GRAPHICS_EXPOSURES = 65536,
- /**< Whether ExposureEvents should be generated (1) or not (0).
- The default is 1. */
- XCB_GC_CLIP_ORIGIN_X = 131072,
- /**< TODO */
- XCB_GC_CLIP_ORIGIN_Y = 262144,
- /**< TODO */
- XCB_GC_CLIP_MASK = 524288,
- /**< The clip-mask restricts writes to the destination drawable. Only pixels where the clip-mask has
- bits set to 1 are drawn. Pixels are not drawn outside the area covered by the clip-mask or where
- the clip-mask has bits set to 0. The clip-mask affects all graphics requests, but it does not clip
- sources. The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. If a pixmap is specified as the clip-mask, it must have
- depth 1 and have the same root as the gcontext (or a Match error results). If clip-mask is None,
- then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the
- SetClipRectangles request. */
- XCB_GC_DASH_OFFSET = 1048576,
- /**< TODO */
- XCB_GC_DASH_LIST = 2097152,
- /**< TODO */
- XCB_GC_ARC_MODE = 4194304
- /**< TODO */
- } xcb_gc_t;
- typedef enum xcb_gx_t {
- XCB_GX_CLEAR = 0,
- XCB_GX_AND = 1,
- XCB_GX_AND_REVERSE = 2,
- XCB_GX_COPY = 3,
- XCB_GX_AND_INVERTED = 4,
- XCB_GX_NOOP = 5,
- XCB_GX_XOR = 6,
- XCB_GX_OR = 7,
- XCB_GX_NOR = 8,
- XCB_GX_EQUIV = 9,
- XCB_GX_INVERT = 10,
- XCB_GX_OR_REVERSE = 11,
- XCB_GX_COPY_INVERTED = 12,
- XCB_GX_OR_INVERTED = 13,
- XCB_GX_NAND = 14,
- XCB_GX_SET = 15
- } xcb_gx_t;
- typedef enum xcb_line_style_t {
- XCB_LINE_STYLE_SOLID = 0,
- XCB_LINE_STYLE_ON_OFF_DASH = 1,
- XCB_LINE_STYLE_DOUBLE_DASH = 2
- } xcb_line_style_t;
- typedef enum xcb_cap_style_t {
- XCB_CAP_STYLE_NOT_LAST = 0,
- XCB_CAP_STYLE_BUTT = 1,
- XCB_CAP_STYLE_ROUND = 2,
- XCB_CAP_STYLE_PROJECTING = 3
- } xcb_cap_style_t;
- typedef enum xcb_join_style_t {
- XCB_JOIN_STYLE_MITER = 0,
- XCB_JOIN_STYLE_ROUND = 1,
- XCB_JOIN_STYLE_BEVEL = 2
- } xcb_join_style_t;
- typedef enum xcb_fill_style_t {
- XCB_FILL_STYLE_SOLID = 0,
- XCB_FILL_STYLE_TILED = 1,
- XCB_FILL_STYLE_STIPPLED = 2,
- XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
- } xcb_fill_style_t;
- typedef enum xcb_fill_rule_t {
- XCB_FILL_RULE_EVEN_ODD = 0,
- XCB_FILL_RULE_WINDING = 1
- } xcb_fill_rule_t;
- typedef enum xcb_subwindow_mode_t {
- XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0,
- XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
- } xcb_subwindow_mode_t;
- typedef enum xcb_arc_mode_t {
- XCB_ARC_MODE_CHORD = 0,
- XCB_ARC_MODE_PIE_SLICE = 1
- } xcb_arc_mode_t;
- /**
- * @brief xcb_create_gc_value_list_t
- **/
- typedef struct xcb_create_gc_value_list_t {
- uint32_t function;
- uint32_t plane_mask;
- uint32_t foreground;
- uint32_t background;
- uint32_t line_width;
- uint32_t line_style;
- uint32_t cap_style;
- uint32_t join_style;
- uint32_t fill_style;
- uint32_t fill_rule;
- xcb_pixmap_t tile;
- xcb_pixmap_t stipple;
- int32_t tile_stipple_x_origin;
- int32_t tile_stipple_y_origin;
- xcb_font_t font;
- uint32_t subwindow_mode;
- xcb_bool32_t graphics_exposures;
- int32_t clip_x_origin;
- int32_t clip_y_origin;
- xcb_pixmap_t clip_mask;
- uint32_t dash_offset;
- uint32_t dashes;
- uint32_t arc_mode;
- } xcb_create_gc_value_list_t;
- /** Opcode for xcb_create_gc. */
- #define XCB_CREATE_GC 55
- /**
- * @brief xcb_create_gc_request_t
- **/
- typedef struct xcb_create_gc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_gcontext_t cid;
- xcb_drawable_t drawable;
- uint32_t value_mask;
- } xcb_create_gc_request_t;
- /**
- * @brief xcb_change_gc_value_list_t
- **/
- typedef struct xcb_change_gc_value_list_t {
- uint32_t function;
- uint32_t plane_mask;
- uint32_t foreground;
- uint32_t background;
- uint32_t line_width;
- uint32_t line_style;
- uint32_t cap_style;
- uint32_t join_style;
- uint32_t fill_style;
- uint32_t fill_rule;
- xcb_pixmap_t tile;
- xcb_pixmap_t stipple;
- int32_t tile_stipple_x_origin;
- int32_t tile_stipple_y_origin;
- xcb_font_t font;
- uint32_t subwindow_mode;
- xcb_bool32_t graphics_exposures;
- int32_t clip_x_origin;
- int32_t clip_y_origin;
- xcb_pixmap_t clip_mask;
- uint32_t dash_offset;
- uint32_t dashes;
- uint32_t arc_mode;
- } xcb_change_gc_value_list_t;
- /** Opcode for xcb_change_gc. */
- #define XCB_CHANGE_GC 56
- /**
- * @brief xcb_change_gc_request_t
- **/
- typedef struct xcb_change_gc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_gcontext_t gc;
- uint32_t value_mask;
- } xcb_change_gc_request_t;
- /** Opcode for xcb_copy_gc. */
- #define XCB_COPY_GC 57
- /**
- * @brief xcb_copy_gc_request_t
- **/
- typedef struct xcb_copy_gc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_gcontext_t src_gc;
- xcb_gcontext_t dst_gc;
- uint32_t value_mask;
- } xcb_copy_gc_request_t;
- /** Opcode for xcb_set_dashes. */
- #define XCB_SET_DASHES 58
- /**
- * @brief xcb_set_dashes_request_t
- **/
- typedef struct xcb_set_dashes_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_gcontext_t gc;
- uint16_t dash_offset;
- uint16_t dashes_len;
- } xcb_set_dashes_request_t;
- typedef enum xcb_clip_ordering_t {
- XCB_CLIP_ORDERING_UNSORTED = 0,
- XCB_CLIP_ORDERING_Y_SORTED = 1,
- XCB_CLIP_ORDERING_YX_SORTED = 2,
- XCB_CLIP_ORDERING_YX_BANDED = 3
- } xcb_clip_ordering_t;
- /** Opcode for xcb_set_clip_rectangles. */
- #define XCB_SET_CLIP_RECTANGLES 59
- /**
- * @brief xcb_set_clip_rectangles_request_t
- **/
- typedef struct xcb_set_clip_rectangles_request_t {
- uint8_t major_opcode;
- uint8_t ordering;
- uint16_t length;
- xcb_gcontext_t gc;
- int16_t clip_x_origin;
- int16_t clip_y_origin;
- } xcb_set_clip_rectangles_request_t;
- /** Opcode for xcb_free_gc. */
- #define XCB_FREE_GC 60
- /**
- * @brief xcb_free_gc_request_t
- **/
- typedef struct xcb_free_gc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_gcontext_t gc;
- } xcb_free_gc_request_t;
- /** Opcode for xcb_clear_area. */
- #define XCB_CLEAR_AREA 61
- /**
- * @brief xcb_clear_area_request_t
- **/
- typedef struct xcb_clear_area_request_t {
- uint8_t major_opcode;
- uint8_t exposures;
- uint16_t length;
- xcb_window_t window;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- } xcb_clear_area_request_t;
- /** Opcode for xcb_copy_area. */
- #define XCB_COPY_AREA 62
- /**
- * @brief xcb_copy_area_request_t
- **/
- typedef struct xcb_copy_area_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t src_drawable;
- xcb_drawable_t dst_drawable;
- xcb_gcontext_t gc;
- int16_t src_x;
- int16_t src_y;
- int16_t dst_x;
- int16_t dst_y;
- uint16_t width;
- uint16_t height;
- } xcb_copy_area_request_t;
- /** Opcode for xcb_copy_plane. */
- #define XCB_COPY_PLANE 63
- /**
- * @brief xcb_copy_plane_request_t
- **/
- typedef struct xcb_copy_plane_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t src_drawable;
- xcb_drawable_t dst_drawable;
- xcb_gcontext_t gc;
- int16_t src_x;
- int16_t src_y;
- int16_t dst_x;
- int16_t dst_y;
- uint16_t width;
- uint16_t height;
- uint32_t bit_plane;
- } xcb_copy_plane_request_t;
- typedef enum xcb_coord_mode_t {
- XCB_COORD_MODE_ORIGIN = 0,
- /**< Treats all coordinates as relative to the origin. */
- XCB_COORD_MODE_PREVIOUS = 1
- /**< Treats all coordinates after the first as relative to the previous coordinate. */
- } xcb_coord_mode_t;
- /** Opcode for xcb_poly_point. */
- #define XCB_POLY_POINT 64
- /**
- * @brief xcb_poly_point_request_t
- **/
- typedef struct xcb_poly_point_request_t {
- uint8_t major_opcode;
- uint8_t coordinate_mode;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_point_request_t;
- /** Opcode for xcb_poly_line. */
- #define XCB_POLY_LINE 65
- /**
- * @brief xcb_poly_line_request_t
- **/
- typedef struct xcb_poly_line_request_t {
- uint8_t major_opcode;
- uint8_t coordinate_mode;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_line_request_t;
- /**
- * @brief xcb_segment_t
- **/
- typedef struct xcb_segment_t {
- int16_t x1;
- int16_t y1;
- int16_t x2;
- int16_t y2;
- } xcb_segment_t;
- /**
- * @brief xcb_segment_iterator_t
- **/
- typedef struct xcb_segment_iterator_t {
- xcb_segment_t *data;
- int rem;
- int index;
- } xcb_segment_iterator_t;
- /** Opcode for xcb_poly_segment. */
- #define XCB_POLY_SEGMENT 66
- /**
- * @brief xcb_poly_segment_request_t
- **/
- typedef struct xcb_poly_segment_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_segment_request_t;
- /** Opcode for xcb_poly_rectangle. */
- #define XCB_POLY_RECTANGLE 67
- /**
- * @brief xcb_poly_rectangle_request_t
- **/
- typedef struct xcb_poly_rectangle_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_rectangle_request_t;
- /** Opcode for xcb_poly_arc. */
- #define XCB_POLY_ARC 68
- /**
- * @brief xcb_poly_arc_request_t
- **/
- typedef struct xcb_poly_arc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_arc_request_t;
- typedef enum xcb_poly_shape_t {
- XCB_POLY_SHAPE_COMPLEX = 0,
- XCB_POLY_SHAPE_NONCONVEX = 1,
- XCB_POLY_SHAPE_CONVEX = 2
- } xcb_poly_shape_t;
- /** Opcode for xcb_fill_poly. */
- #define XCB_FILL_POLY 69
- /**
- * @brief xcb_fill_poly_request_t
- **/
- typedef struct xcb_fill_poly_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- uint8_t shape;
- uint8_t coordinate_mode;
- uint8_t pad1[2];
- } xcb_fill_poly_request_t;
- /** Opcode for xcb_poly_fill_rectangle. */
- #define XCB_POLY_FILL_RECTANGLE 70
- /**
- * @brief xcb_poly_fill_rectangle_request_t
- **/
- typedef struct xcb_poly_fill_rectangle_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_fill_rectangle_request_t;
- /** Opcode for xcb_poly_fill_arc. */
- #define XCB_POLY_FILL_ARC 71
- /**
- * @brief xcb_poly_fill_arc_request_t
- **/
- typedef struct xcb_poly_fill_arc_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- } xcb_poly_fill_arc_request_t;
- typedef enum xcb_image_format_t {
- XCB_IMAGE_FORMAT_XY_BITMAP = 0,
- XCB_IMAGE_FORMAT_XY_PIXMAP = 1,
- XCB_IMAGE_FORMAT_Z_PIXMAP = 2
- } xcb_image_format_t;
- /** Opcode for xcb_put_image. */
- #define XCB_PUT_IMAGE 72
- /**
- * @brief xcb_put_image_request_t
- **/
- typedef struct xcb_put_image_request_t {
- uint8_t major_opcode;
- uint8_t format;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- uint16_t width;
- uint16_t height;
- int16_t dst_x;
- int16_t dst_y;
- uint8_t left_pad;
- uint8_t depth;
- uint8_t pad0[2];
- } xcb_put_image_request_t;
- /**
- * @brief xcb_get_image_cookie_t
- **/
- typedef struct xcb_get_image_cookie_t {
- unsigned int sequence;
- } xcb_get_image_cookie_t;
- /** Opcode for xcb_get_image. */
- #define XCB_GET_IMAGE 73
- /**
- * @brief xcb_get_image_request_t
- **/
- typedef struct xcb_get_image_request_t {
- uint8_t major_opcode;
- uint8_t format;
- uint16_t length;
- xcb_drawable_t drawable;
- int16_t x;
- int16_t y;
- uint16_t width;
- uint16_t height;
- uint32_t plane_mask;
- } xcb_get_image_request_t;
- /**
- * @brief xcb_get_image_reply_t
- **/
- typedef struct xcb_get_image_reply_t {
- uint8_t response_type;
- uint8_t depth;
- uint16_t sequence;
- uint32_t length;
- xcb_visualid_t visual;
- uint8_t pad0[20];
- } xcb_get_image_reply_t;
- /** Opcode for xcb_poly_text_8. */
- #define XCB_POLY_TEXT_8 74
- /**
- * @brief xcb_poly_text_8_request_t
- **/
- typedef struct xcb_poly_text_8_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- int16_t x;
- int16_t y;
- } xcb_poly_text_8_request_t;
- /** Opcode for xcb_poly_text_16. */
- #define XCB_POLY_TEXT_16 75
- /**
- * @brief xcb_poly_text_16_request_t
- **/
- typedef struct xcb_poly_text_16_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- int16_t x;
- int16_t y;
- } xcb_poly_text_16_request_t;
- /** Opcode for xcb_image_text_8. */
- #define XCB_IMAGE_TEXT_8 76
- /**
- * @brief xcb_image_text_8_request_t
- **/
- typedef struct xcb_image_text_8_request_t {
- uint8_t major_opcode;
- uint8_t string_len;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- int16_t x;
- int16_t y;
- } xcb_image_text_8_request_t;
- /** Opcode for xcb_image_text_16. */
- #define XCB_IMAGE_TEXT_16 77
- /**
- * @brief xcb_image_text_16_request_t
- **/
- typedef struct xcb_image_text_16_request_t {
- uint8_t major_opcode;
- uint8_t string_len;
- uint16_t length;
- xcb_drawable_t drawable;
- xcb_gcontext_t gc;
- int16_t x;
- int16_t y;
- } xcb_image_text_16_request_t;
- typedef enum xcb_colormap_alloc_t {
- XCB_COLORMAP_ALLOC_NONE = 0,
- XCB_COLORMAP_ALLOC_ALL = 1
- } xcb_colormap_alloc_t;
- /** Opcode for xcb_create_colormap. */
- #define XCB_CREATE_COLORMAP 78
- /**
- * @brief xcb_create_colormap_request_t
- **/
- typedef struct xcb_create_colormap_request_t {
- uint8_t major_opcode;
- uint8_t alloc;
- uint16_t length;
- xcb_colormap_t mid;
- xcb_window_t window;
- xcb_visualid_t visual;
- } xcb_create_colormap_request_t;
- /** Opcode for xcb_free_colormap. */
- #define XCB_FREE_COLORMAP 79
- /**
- * @brief xcb_free_colormap_request_t
- **/
- typedef struct xcb_free_colormap_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- } xcb_free_colormap_request_t;
- /** Opcode for xcb_copy_colormap_and_free. */
- #define XCB_COPY_COLORMAP_AND_FREE 80
- /**
- * @brief xcb_copy_colormap_and_free_request_t
- **/
- typedef struct xcb_copy_colormap_and_free_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t mid;
- xcb_colormap_t src_cmap;
- } xcb_copy_colormap_and_free_request_t;
- /** Opcode for xcb_install_colormap. */
- #define XCB_INSTALL_COLORMAP 81
- /**
- * @brief xcb_install_colormap_request_t
- **/
- typedef struct xcb_install_colormap_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- } xcb_install_colormap_request_t;
- /** Opcode for xcb_uninstall_colormap. */
- #define XCB_UNINSTALL_COLORMAP 82
- /**
- * @brief xcb_uninstall_colormap_request_t
- **/
- typedef struct xcb_uninstall_colormap_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- } xcb_uninstall_colormap_request_t;
- /**
- * @brief xcb_list_installed_colormaps_cookie_t
- **/
- typedef struct xcb_list_installed_colormaps_cookie_t {
- unsigned int sequence;
- } xcb_list_installed_colormaps_cookie_t;
- /** Opcode for xcb_list_installed_colormaps. */
- #define XCB_LIST_INSTALLED_COLORMAPS 83
- /**
- * @brief xcb_list_installed_colormaps_request_t
- **/
- typedef struct xcb_list_installed_colormaps_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- } xcb_list_installed_colormaps_request_t;
- /**
- * @brief xcb_list_installed_colormaps_reply_t
- **/
- typedef struct xcb_list_installed_colormaps_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t cmaps_len;
- uint8_t pad1[22];
- } xcb_list_installed_colormaps_reply_t;
- /**
- * @brief xcb_alloc_color_cookie_t
- **/
- typedef struct xcb_alloc_color_cookie_t {
- unsigned int sequence;
- } xcb_alloc_color_cookie_t;
- /** Opcode for xcb_alloc_color. */
- #define XCB_ALLOC_COLOR 84
- /**
- * @brief xcb_alloc_color_request_t
- **/
- typedef struct xcb_alloc_color_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- uint16_t red;
- uint16_t green;
- uint16_t blue;
- uint8_t pad1[2];
- } xcb_alloc_color_request_t;
- /**
- * @brief xcb_alloc_color_reply_t
- **/
- typedef struct xcb_alloc_color_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t red;
- uint16_t green;
- uint16_t blue;
- uint8_t pad1[2];
- uint32_t pixel;
- } xcb_alloc_color_reply_t;
- /**
- * @brief xcb_alloc_named_color_cookie_t
- **/
- typedef struct xcb_alloc_named_color_cookie_t {
- unsigned int sequence;
- } xcb_alloc_named_color_cookie_t;
- /** Opcode for xcb_alloc_named_color. */
- #define XCB_ALLOC_NAMED_COLOR 85
- /**
- * @brief xcb_alloc_named_color_request_t
- **/
- typedef struct xcb_alloc_named_color_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- uint16_t name_len;
- uint8_t pad1[2];
- } xcb_alloc_named_color_request_t;
- /**
- * @brief xcb_alloc_named_color_reply_t
- **/
- typedef struct xcb_alloc_named_color_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint32_t pixel;
- uint16_t exact_red;
- uint16_t exact_green;
- uint16_t exact_blue;
- uint16_t visual_red;
- uint16_t visual_green;
- uint16_t visual_blue;
- } xcb_alloc_named_color_reply_t;
- /**
- * @brief xcb_alloc_color_cells_cookie_t
- **/
- typedef struct xcb_alloc_color_cells_cookie_t {
- unsigned int sequence;
- } xcb_alloc_color_cells_cookie_t;
- /** Opcode for xcb_alloc_color_cells. */
- #define XCB_ALLOC_COLOR_CELLS 86
- /**
- * @brief xcb_alloc_color_cells_request_t
- **/
- typedef struct xcb_alloc_color_cells_request_t {
- uint8_t major_opcode;
- uint8_t contiguous;
- uint16_t length;
- xcb_colormap_t cmap;
- uint16_t colors;
- uint16_t planes;
- } xcb_alloc_color_cells_request_t;
- /**
- * @brief xcb_alloc_color_cells_reply_t
- **/
- typedef struct xcb_alloc_color_cells_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t pixels_len;
- uint16_t masks_len;
- uint8_t pad1[20];
- } xcb_alloc_color_cells_reply_t;
- /**
- * @brief xcb_alloc_color_planes_cookie_t
- **/
- typedef struct xcb_alloc_color_planes_cookie_t {
- unsigned int sequence;
- } xcb_alloc_color_planes_cookie_t;
- /** Opcode for xcb_alloc_color_planes. */
- #define XCB_ALLOC_COLOR_PLANES 87
- /**
- * @brief xcb_alloc_color_planes_request_t
- **/
- typedef struct xcb_alloc_color_planes_request_t {
- uint8_t major_opcode;
- uint8_t contiguous;
- uint16_t length;
- xcb_colormap_t cmap;
- uint16_t colors;
- uint16_t reds;
- uint16_t greens;
- uint16_t blues;
- } xcb_alloc_color_planes_request_t;
- /**
- * @brief xcb_alloc_color_planes_reply_t
- **/
- typedef struct xcb_alloc_color_planes_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t pixels_len;
- uint8_t pad1[2];
- uint32_t red_mask;
- uint32_t green_mask;
- uint32_t blue_mask;
- uint8_t pad2[8];
- } xcb_alloc_color_planes_reply_t;
- /** Opcode for xcb_free_colors. */
- #define XCB_FREE_COLORS 88
- /**
- * @brief xcb_free_colors_request_t
- **/
- typedef struct xcb_free_colors_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- uint32_t plane_mask;
- } xcb_free_colors_request_t;
- typedef enum xcb_color_flag_t {
- XCB_COLOR_FLAG_RED = 1,
- XCB_COLOR_FLAG_GREEN = 2,
- XCB_COLOR_FLAG_BLUE = 4
- } xcb_color_flag_t;
- /**
- * @brief xcb_coloritem_t
- **/
- typedef struct xcb_coloritem_t {
- uint32_t pixel;
- uint16_t red;
- uint16_t green;
- uint16_t blue;
- uint8_t flags;
- uint8_t pad0;
- } xcb_coloritem_t;
- /**
- * @brief xcb_coloritem_iterator_t
- **/
- typedef struct xcb_coloritem_iterator_t {
- xcb_coloritem_t *data;
- int rem;
- int index;
- } xcb_coloritem_iterator_t;
- /** Opcode for xcb_store_colors. */
- #define XCB_STORE_COLORS 89
- /**
- * @brief xcb_store_colors_request_t
- **/
- typedef struct xcb_store_colors_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- } xcb_store_colors_request_t;
- /** Opcode for xcb_store_named_color. */
- #define XCB_STORE_NAMED_COLOR 90
- /**
- * @brief xcb_store_named_color_request_t
- **/
- typedef struct xcb_store_named_color_request_t {
- uint8_t major_opcode;
- uint8_t flags;
- uint16_t length;
- xcb_colormap_t cmap;
- uint32_t pixel;
- uint16_t name_len;
- uint8_t pad0[2];
- } xcb_store_named_color_request_t;
- /**
- * @brief xcb_rgb_t
- **/
- typedef struct xcb_rgb_t {
- uint16_t red;
- uint16_t green;
- uint16_t blue;
- uint8_t pad0[2];
- } xcb_rgb_t;
- /**
- * @brief xcb_rgb_iterator_t
- **/
- typedef struct xcb_rgb_iterator_t {
- xcb_rgb_t *data;
- int rem;
- int index;
- } xcb_rgb_iterator_t;
- /**
- * @brief xcb_query_colors_cookie_t
- **/
- typedef struct xcb_query_colors_cookie_t {
- unsigned int sequence;
- } xcb_query_colors_cookie_t;
- /** Opcode for xcb_query_colors. */
- #define XCB_QUERY_COLORS 91
- /**
- * @brief xcb_query_colors_request_t
- **/
- typedef struct xcb_query_colors_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- } xcb_query_colors_request_t;
- /**
- * @brief xcb_query_colors_reply_t
- **/
- typedef struct xcb_query_colors_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t colors_len;
- uint8_t pad1[22];
- } xcb_query_colors_reply_t;
- /**
- * @brief xcb_lookup_color_cookie_t
- **/
- typedef struct xcb_lookup_color_cookie_t {
- unsigned int sequence;
- } xcb_lookup_color_cookie_t;
- /** Opcode for xcb_lookup_color. */
- #define XCB_LOOKUP_COLOR 92
- /**
- * @brief xcb_lookup_color_request_t
- **/
- typedef struct xcb_lookup_color_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_colormap_t cmap;
- uint16_t name_len;
- uint8_t pad1[2];
- } xcb_lookup_color_request_t;
- /**
- * @brief xcb_lookup_color_reply_t
- **/
- typedef struct xcb_lookup_color_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t exact_red;
- uint16_t exact_green;
- uint16_t exact_blue;
- uint16_t visual_red;
- uint16_t visual_green;
- uint16_t visual_blue;
- } xcb_lookup_color_reply_t;
- typedef enum xcb_pixmap_enum_t {
- XCB_PIXMAP_NONE = 0
- } xcb_pixmap_enum_t;
- /** Opcode for xcb_create_cursor. */
- #define XCB_CREATE_CURSOR 93
- /**
- * @brief xcb_create_cursor_request_t
- **/
- typedef struct xcb_create_cursor_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_cursor_t cid;
- xcb_pixmap_t source;
- xcb_pixmap_t mask;
- uint16_t fore_red;
- uint16_t fore_green;
- uint16_t fore_blue;
- uint16_t back_red;
- uint16_t back_green;
- uint16_t back_blue;
- uint16_t x;
- uint16_t y;
- } xcb_create_cursor_request_t;
- typedef enum xcb_font_enum_t {
- XCB_FONT_NONE = 0
- } xcb_font_enum_t;
- /** Opcode for xcb_create_glyph_cursor. */
- #define XCB_CREATE_GLYPH_CURSOR 94
- /**
- * @brief xcb_create_glyph_cursor_request_t
- **/
- typedef struct xcb_create_glyph_cursor_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_cursor_t cid;
- xcb_font_t source_font;
- xcb_font_t mask_font;
- uint16_t source_char;
- uint16_t mask_char;
- uint16_t fore_red;
- uint16_t fore_green;
- uint16_t fore_blue;
- uint16_t back_red;
- uint16_t back_green;
- uint16_t back_blue;
- } xcb_create_glyph_cursor_request_t;
- /** Opcode for xcb_free_cursor. */
- #define XCB_FREE_CURSOR 95
- /**
- * @brief xcb_free_cursor_request_t
- **/
- typedef struct xcb_free_cursor_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_cursor_t cursor;
- } xcb_free_cursor_request_t;
- /** Opcode for xcb_recolor_cursor. */
- #define XCB_RECOLOR_CURSOR 96
- /**
- * @brief xcb_recolor_cursor_request_t
- **/
- typedef struct xcb_recolor_cursor_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_cursor_t cursor;
- uint16_t fore_red;
- uint16_t fore_green;
- uint16_t fore_blue;
- uint16_t back_red;
- uint16_t back_green;
- uint16_t back_blue;
- } xcb_recolor_cursor_request_t;
- typedef enum xcb_query_shape_of_t {
- XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0,
- XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1,
- XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2
- } xcb_query_shape_of_t;
- /**
- * @brief xcb_query_best_size_cookie_t
- **/
- typedef struct xcb_query_best_size_cookie_t {
- unsigned int sequence;
- } xcb_query_best_size_cookie_t;
- /** Opcode for xcb_query_best_size. */
- #define XCB_QUERY_BEST_SIZE 97
- /**
- * @brief xcb_query_best_size_request_t
- **/
- typedef struct xcb_query_best_size_request_t {
- uint8_t major_opcode;
- uint8_t _class;
- uint16_t length;
- xcb_drawable_t drawable;
- uint16_t width;
- uint16_t height;
- } xcb_query_best_size_request_t;
- /**
- * @brief xcb_query_best_size_reply_t
- **/
- typedef struct xcb_query_best_size_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t width;
- uint16_t height;
- } xcb_query_best_size_reply_t;
- /**
- * @brief xcb_query_extension_cookie_t
- **/
- typedef struct xcb_query_extension_cookie_t {
- unsigned int sequence;
- } xcb_query_extension_cookie_t;
- /** Opcode for xcb_query_extension. */
- #define XCB_QUERY_EXTENSION 98
- /**
- * @brief xcb_query_extension_request_t
- **/
- typedef struct xcb_query_extension_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint16_t name_len;
- uint8_t pad1[2];
- } xcb_query_extension_request_t;
- /**
- * @brief xcb_query_extension_reply_t
- **/
- typedef struct xcb_query_extension_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint8_t present;
- uint8_t major_opcode;
- uint8_t first_event;
- uint8_t first_error;
- } xcb_query_extension_reply_t;
- /**
- * @brief xcb_list_extensions_cookie_t
- **/
- typedef struct xcb_list_extensions_cookie_t {
- unsigned int sequence;
- } xcb_list_extensions_cookie_t;
- /** Opcode for xcb_list_extensions. */
- #define XCB_LIST_EXTENSIONS 99
- /**
- * @brief xcb_list_extensions_request_t
- **/
- typedef struct xcb_list_extensions_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_list_extensions_request_t;
- /**
- * @brief xcb_list_extensions_reply_t
- **/
- typedef struct xcb_list_extensions_reply_t {
- uint8_t response_type;
- uint8_t names_len;
- uint16_t sequence;
- uint32_t length;
- uint8_t pad0[24];
- } xcb_list_extensions_reply_t;
- /** Opcode for xcb_change_keyboard_mapping. */
- #define XCB_CHANGE_KEYBOARD_MAPPING 100
- /**
- * @brief xcb_change_keyboard_mapping_request_t
- **/
- typedef struct xcb_change_keyboard_mapping_request_t {
- uint8_t major_opcode;
- uint8_t keycode_count;
- uint16_t length;
- xcb_keycode_t first_keycode;
- uint8_t keysyms_per_keycode;
- uint8_t pad0[2];
- } xcb_change_keyboard_mapping_request_t;
- /**
- * @brief xcb_get_keyboard_mapping_cookie_t
- **/
- typedef struct xcb_get_keyboard_mapping_cookie_t {
- unsigned int sequence;
- } xcb_get_keyboard_mapping_cookie_t;
- /** Opcode for xcb_get_keyboard_mapping. */
- #define XCB_GET_KEYBOARD_MAPPING 101
- /**
- * @brief xcb_get_keyboard_mapping_request_t
- **/
- typedef struct xcb_get_keyboard_mapping_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_keycode_t first_keycode;
- uint8_t count;
- } xcb_get_keyboard_mapping_request_t;
- /**
- * @brief xcb_get_keyboard_mapping_reply_t
- **/
- typedef struct xcb_get_keyboard_mapping_reply_t {
- uint8_t response_type;
- uint8_t keysyms_per_keycode;
- uint16_t sequence;
- uint32_t length;
- uint8_t pad0[24];
- } xcb_get_keyboard_mapping_reply_t;
- typedef enum xcb_kb_t {
- XCB_KB_KEY_CLICK_PERCENT = 1,
- XCB_KB_BELL_PERCENT = 2,
- XCB_KB_BELL_PITCH = 4,
- XCB_KB_BELL_DURATION = 8,
- XCB_KB_LED = 16,
- XCB_KB_LED_MODE = 32,
- XCB_KB_KEY = 64,
- XCB_KB_AUTO_REPEAT_MODE = 128
- } xcb_kb_t;
- typedef enum xcb_led_mode_t {
- XCB_LED_MODE_OFF = 0,
- XCB_LED_MODE_ON = 1
- } xcb_led_mode_t;
- typedef enum xcb_auto_repeat_mode_t {
- XCB_AUTO_REPEAT_MODE_OFF = 0,
- XCB_AUTO_REPEAT_MODE_ON = 1,
- XCB_AUTO_REPEAT_MODE_DEFAULT = 2
- } xcb_auto_repeat_mode_t;
- /**
- * @brief xcb_change_keyboard_control_value_list_t
- **/
- typedef struct xcb_change_keyboard_control_value_list_t {
- int32_t key_click_percent;
- int32_t bell_percent;
- int32_t bell_pitch;
- int32_t bell_duration;
- uint32_t led;
- uint32_t led_mode;
- xcb_keycode32_t key;
- uint32_t auto_repeat_mode;
- } xcb_change_keyboard_control_value_list_t;
- /** Opcode for xcb_change_keyboard_control. */
- #define XCB_CHANGE_KEYBOARD_CONTROL 102
- /**
- * @brief xcb_change_keyboard_control_request_t
- **/
- typedef struct xcb_change_keyboard_control_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint32_t value_mask;
- } xcb_change_keyboard_control_request_t;
- /**
- * @brief xcb_get_keyboard_control_cookie_t
- **/
- typedef struct xcb_get_keyboard_control_cookie_t {
- unsigned int sequence;
- } xcb_get_keyboard_control_cookie_t;
- /** Opcode for xcb_get_keyboard_control. */
- #define XCB_GET_KEYBOARD_CONTROL 103
- /**
- * @brief xcb_get_keyboard_control_request_t
- **/
- typedef struct xcb_get_keyboard_control_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_keyboard_control_request_t;
- /**
- * @brief xcb_get_keyboard_control_reply_t
- **/
- typedef struct xcb_get_keyboard_control_reply_t {
- uint8_t response_type;
- uint8_t global_auto_repeat;
- uint16_t sequence;
- uint32_t length;
- uint32_t led_mask;
- uint8_t key_click_percent;
- uint8_t bell_percent;
- uint16_t bell_pitch;
- uint16_t bell_duration;
- uint8_t pad0[2];
- uint8_t auto_repeats[32];
- } xcb_get_keyboard_control_reply_t;
- /** Opcode for xcb_bell. */
- #define XCB_BELL 104
- /**
- * @brief xcb_bell_request_t
- **/
- typedef struct xcb_bell_request_t {
- uint8_t major_opcode;
- int8_t percent;
- uint16_t length;
- } xcb_bell_request_t;
- /** Opcode for xcb_change_pointer_control. */
- #define XCB_CHANGE_POINTER_CONTROL 105
- /**
- * @brief xcb_change_pointer_control_request_t
- **/
- typedef struct xcb_change_pointer_control_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- int16_t acceleration_numerator;
- int16_t acceleration_denominator;
- int16_t threshold;
- uint8_t do_acceleration;
- uint8_t do_threshold;
- } xcb_change_pointer_control_request_t;
- /**
- * @brief xcb_get_pointer_control_cookie_t
- **/
- typedef struct xcb_get_pointer_control_cookie_t {
- unsigned int sequence;
- } xcb_get_pointer_control_cookie_t;
- /** Opcode for xcb_get_pointer_control. */
- #define XCB_GET_POINTER_CONTROL 106
- /**
- * @brief xcb_get_pointer_control_request_t
- **/
- typedef struct xcb_get_pointer_control_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_pointer_control_request_t;
- /**
- * @brief xcb_get_pointer_control_reply_t
- **/
- typedef struct xcb_get_pointer_control_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t acceleration_numerator;
- uint16_t acceleration_denominator;
- uint16_t threshold;
- uint8_t pad1[18];
- } xcb_get_pointer_control_reply_t;
- typedef enum xcb_blanking_t {
- XCB_BLANKING_NOT_PREFERRED = 0,
- XCB_BLANKING_PREFERRED = 1,
- XCB_BLANKING_DEFAULT = 2
- } xcb_blanking_t;
- typedef enum xcb_exposures_t {
- XCB_EXPOSURES_NOT_ALLOWED = 0,
- XCB_EXPOSURES_ALLOWED = 1,
- XCB_EXPOSURES_DEFAULT = 2
- } xcb_exposures_t;
- /** Opcode for xcb_set_screen_saver. */
- #define XCB_SET_SCREEN_SAVER 107
- /**
- * @brief xcb_set_screen_saver_request_t
- **/
- typedef struct xcb_set_screen_saver_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- int16_t timeout;
- int16_t interval;
- uint8_t prefer_blanking;
- uint8_t allow_exposures;
- } xcb_set_screen_saver_request_t;
- /**
- * @brief xcb_get_screen_saver_cookie_t
- **/
- typedef struct xcb_get_screen_saver_cookie_t {
- unsigned int sequence;
- } xcb_get_screen_saver_cookie_t;
- /** Opcode for xcb_get_screen_saver. */
- #define XCB_GET_SCREEN_SAVER 108
- /**
- * @brief xcb_get_screen_saver_request_t
- **/
- typedef struct xcb_get_screen_saver_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_screen_saver_request_t;
- /**
- * @brief xcb_get_screen_saver_reply_t
- **/
- typedef struct xcb_get_screen_saver_reply_t {
- uint8_t response_type;
- uint8_t pad0;
- uint16_t sequence;
- uint32_t length;
- uint16_t timeout;
- uint16_t interval;
- uint8_t prefer_blanking;
- uint8_t allow_exposures;
- uint8_t pad1[18];
- } xcb_get_screen_saver_reply_t;
- typedef enum xcb_host_mode_t {
- XCB_HOST_MODE_INSERT = 0,
- XCB_HOST_MODE_DELETE = 1
- } xcb_host_mode_t;
- typedef enum xcb_family_t {
- XCB_FAMILY_INTERNET = 0,
- XCB_FAMILY_DECNET = 1,
- XCB_FAMILY_CHAOS = 2,
- XCB_FAMILY_SERVER_INTERPRETED = 5,
- XCB_FAMILY_INTERNET_6 = 6
- } xcb_family_t;
- /** Opcode for xcb_change_hosts. */
- #define XCB_CHANGE_HOSTS 109
- /**
- * @brief xcb_change_hosts_request_t
- **/
- typedef struct xcb_change_hosts_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- uint8_t family;
- uint8_t pad0;
- uint16_t address_len;
- } xcb_change_hosts_request_t;
- /**
- * @brief xcb_host_t
- **/
- typedef struct xcb_host_t {
- uint8_t family;
- uint8_t pad0;
- uint16_t address_len;
- } xcb_host_t;
- /**
- * @brief xcb_host_iterator_t
- **/
- typedef struct xcb_host_iterator_t {
- xcb_host_t *data;
- int rem;
- int index;
- } xcb_host_iterator_t;
- /**
- * @brief xcb_list_hosts_cookie_t
- **/
- typedef struct xcb_list_hosts_cookie_t {
- unsigned int sequence;
- } xcb_list_hosts_cookie_t;
- /** Opcode for xcb_list_hosts. */
- #define XCB_LIST_HOSTS 110
- /**
- * @brief xcb_list_hosts_request_t
- **/
- typedef struct xcb_list_hosts_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_list_hosts_request_t;
- /**
- * @brief xcb_list_hosts_reply_t
- **/
- typedef struct xcb_list_hosts_reply_t {
- uint8_t response_type;
- uint8_t mode;
- uint16_t sequence;
- uint32_t length;
- uint16_t hosts_len;
- uint8_t pad0[22];
- } xcb_list_hosts_reply_t;
- typedef enum xcb_access_control_t {
- XCB_ACCESS_CONTROL_DISABLE = 0,
- XCB_ACCESS_CONTROL_ENABLE = 1
- } xcb_access_control_t;
- /** Opcode for xcb_set_access_control. */
- #define XCB_SET_ACCESS_CONTROL 111
- /**
- * @brief xcb_set_access_control_request_t
- **/
- typedef struct xcb_set_access_control_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- } xcb_set_access_control_request_t;
- typedef enum xcb_close_down_t {
- XCB_CLOSE_DOWN_DESTROY_ALL = 0,
- XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1,
- XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2
- } xcb_close_down_t;
- /** Opcode for xcb_set_close_down_mode. */
- #define XCB_SET_CLOSE_DOWN_MODE 112
- /**
- * @brief xcb_set_close_down_mode_request_t
- **/
- typedef struct xcb_set_close_down_mode_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- } xcb_set_close_down_mode_request_t;
- typedef enum xcb_kill_t {
- XCB_KILL_ALL_TEMPORARY = 0
- } xcb_kill_t;
- /** Opcode for xcb_kill_client. */
- #define XCB_KILL_CLIENT 113
- /**
- * @brief xcb_kill_client_request_t
- **/
- typedef struct xcb_kill_client_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- uint32_t resource;
- } xcb_kill_client_request_t;
- /** Opcode for xcb_rotate_properties. */
- #define XCB_ROTATE_PROPERTIES 114
- /**
- * @brief xcb_rotate_properties_request_t
- **/
- typedef struct xcb_rotate_properties_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- xcb_window_t window;
- uint16_t atoms_len;
- int16_t delta;
- } xcb_rotate_properties_request_t;
- typedef enum xcb_screen_saver_t {
- XCB_SCREEN_SAVER_RESET = 0,
- XCB_SCREEN_SAVER_ACTIVE = 1
- } xcb_screen_saver_t;
- /** Opcode for xcb_force_screen_saver. */
- #define XCB_FORCE_SCREEN_SAVER 115
- /**
- * @brief xcb_force_screen_saver_request_t
- **/
- typedef struct xcb_force_screen_saver_request_t {
- uint8_t major_opcode;
- uint8_t mode;
- uint16_t length;
- } xcb_force_screen_saver_request_t;
- typedef enum xcb_mapping_status_t {
- XCB_MAPPING_STATUS_SUCCESS = 0,
- XCB_MAPPING_STATUS_BUSY = 1,
- XCB_MAPPING_STATUS_FAILURE = 2
- } xcb_mapping_status_t;
- /**
- * @brief xcb_set_pointer_mapping_cookie_t
- **/
- typedef struct xcb_set_pointer_mapping_cookie_t {
- unsigned int sequence;
- } xcb_set_pointer_mapping_cookie_t;
- /** Opcode for xcb_set_pointer_mapping. */
- #define XCB_SET_POINTER_MAPPING 116
- /**
- * @brief xcb_set_pointer_mapping_request_t
- **/
- typedef struct xcb_set_pointer_mapping_request_t {
- uint8_t major_opcode;
- uint8_t map_len;
- uint16_t length;
- } xcb_set_pointer_mapping_request_t;
- /**
- * @brief xcb_set_pointer_mapping_reply_t
- **/
- typedef struct xcb_set_pointer_mapping_reply_t {
- uint8_t response_type;
- uint8_t status;
- uint16_t sequence;
- uint32_t length;
- } xcb_set_pointer_mapping_reply_t;
- /**
- * @brief xcb_get_pointer_mapping_cookie_t
- **/
- typedef struct xcb_get_pointer_mapping_cookie_t {
- unsigned int sequence;
- } xcb_get_pointer_mapping_cookie_t;
- /** Opcode for xcb_get_pointer_mapping. */
- #define XCB_GET_POINTER_MAPPING 117
- /**
- * @brief xcb_get_pointer_mapping_request_t
- **/
- typedef struct xcb_get_pointer_mapping_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_pointer_mapping_request_t;
- /**
- * @brief xcb_get_pointer_mapping_reply_t
- **/
- typedef struct xcb_get_pointer_mapping_reply_t {
- uint8_t response_type;
- uint8_t map_len;
- uint16_t sequence;
- uint32_t length;
- uint8_t pad0[24];
- } xcb_get_pointer_mapping_reply_t;
- typedef enum xcb_map_index_t {
- XCB_MAP_INDEX_SHIFT = 0,
- XCB_MAP_INDEX_LOCK = 1,
- XCB_MAP_INDEX_CONTROL = 2,
- XCB_MAP_INDEX_1 = 3,
- XCB_MAP_INDEX_2 = 4,
- XCB_MAP_INDEX_3 = 5,
- XCB_MAP_INDEX_4 = 6,
- XCB_MAP_INDEX_5 = 7
- } xcb_map_index_t;
- /**
- * @brief xcb_set_modifier_mapping_cookie_t
- **/
- typedef struct xcb_set_modifier_mapping_cookie_t {
- unsigned int sequence;
- } xcb_set_modifier_mapping_cookie_t;
- /** Opcode for xcb_set_modifier_mapping. */
- #define XCB_SET_MODIFIER_MAPPING 118
- /**
- * @brief xcb_set_modifier_mapping_request_t
- **/
- typedef struct xcb_set_modifier_mapping_request_t {
- uint8_t major_opcode;
- uint8_t keycodes_per_modifier;
- uint16_t length;
- } xcb_set_modifier_mapping_request_t;
- /**
- * @brief xcb_set_modifier_mapping_reply_t
- **/
- typedef struct xcb_set_modifier_mapping_reply_t {
- uint8_t response_type;
- uint8_t status;
- uint16_t sequence;
- uint32_t length;
- } xcb_set_modifier_mapping_reply_t;
- /**
- * @brief xcb_get_modifier_mapping_cookie_t
- **/
- typedef struct xcb_get_modifier_mapping_cookie_t {
- unsigned int sequence;
- } xcb_get_modifier_mapping_cookie_t;
- /** Opcode for xcb_get_modifier_mapping. */
- #define XCB_GET_MODIFIER_MAPPING 119
- /**
- * @brief xcb_get_modifier_mapping_request_t
- **/
- typedef struct xcb_get_modifier_mapping_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_get_modifier_mapping_request_t;
- /**
- * @brief xcb_get_modifier_mapping_reply_t
- **/
- typedef struct xcb_get_modifier_mapping_reply_t {
- uint8_t response_type;
- uint8_t keycodes_per_modifier;
- uint16_t sequence;
- uint32_t length;
- uint8_t pad0[24];
- } xcb_get_modifier_mapping_reply_t;
- /** Opcode for xcb_no_operation. */
- #define XCB_NO_OPERATION 127
- /**
- * @brief xcb_no_operation_request_t
- **/
- typedef struct xcb_no_operation_request_t {
- uint8_t major_opcode;
- uint8_t pad0;
- uint16_t length;
- } xcb_no_operation_request_t;
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_char2b_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_char2b_t)
- */
- void
- xcb_char2b_next (xcb_char2b_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_char2b_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_char2b_end (xcb_char2b_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_window_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_window_t)
- */
- void
- xcb_window_next (xcb_window_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_window_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_window_end (xcb_window_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_pixmap_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_pixmap_t)
- */
- void
- xcb_pixmap_next (xcb_pixmap_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_pixmap_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_pixmap_end (xcb_pixmap_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_cursor_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_cursor_t)
- */
- void
- xcb_cursor_next (xcb_cursor_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_cursor_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_cursor_end (xcb_cursor_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_font_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_font_t)
- */
- void
- xcb_font_next (xcb_font_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_font_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_font_end (xcb_font_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_gcontext_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_gcontext_t)
- */
- void
- xcb_gcontext_next (xcb_gcontext_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_gcontext_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_gcontext_end (xcb_gcontext_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_colormap_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_colormap_t)
- */
- void
- xcb_colormap_next (xcb_colormap_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_colormap_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_colormap_end (xcb_colormap_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_atom_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_atom_t)
- */
- void
- xcb_atom_next (xcb_atom_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_atom_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_atom_end (xcb_atom_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_drawable_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_drawable_t)
- */
- void
- xcb_drawable_next (xcb_drawable_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_drawable_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_drawable_end (xcb_drawable_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_fontable_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_fontable_t)
- */
- void
- xcb_fontable_next (xcb_fontable_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_fontable_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_fontable_end (xcb_fontable_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_bool32_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_bool32_t)
- */
- void
- xcb_bool32_next (xcb_bool32_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_bool32_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_bool32_end (xcb_bool32_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_visualid_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_visualid_t)
- */
- void
- xcb_visualid_next (xcb_visualid_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_visualid_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_visualid_end (xcb_visualid_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_timestamp_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_timestamp_t)
- */
- void
- xcb_timestamp_next (xcb_timestamp_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_timestamp_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_timestamp_end (xcb_timestamp_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_keysym_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_keysym_t)
- */
- void
- xcb_keysym_next (xcb_keysym_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_keysym_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_keysym_end (xcb_keysym_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_keycode_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_keycode_t)
- */
- void
- xcb_keycode_next (xcb_keycode_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_keycode_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_keycode_end (xcb_keycode_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_keycode32_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_keycode32_t)
- */
- void
- xcb_keycode32_next (xcb_keycode32_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_keycode32_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_keycode32_end (xcb_keycode32_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_button_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_button_t)
- */
- void
- xcb_button_next (xcb_button_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_button_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_button_end (xcb_button_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_point_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_point_t)
- */
- void
- xcb_point_next (xcb_point_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_point_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_point_end (xcb_point_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_rectangle_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_rectangle_t)
- */
- void
- xcb_rectangle_next (xcb_rectangle_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_rectangle_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_rectangle_end (xcb_rectangle_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_arc_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_arc_t)
- */
- void
- xcb_arc_next (xcb_arc_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_arc_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_arc_end (xcb_arc_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_format_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_format_t)
- */
- void
- xcb_format_next (xcb_format_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_format_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_format_end (xcb_format_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_visualtype_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_visualtype_t)
- */
- void
- xcb_visualtype_next (xcb_visualtype_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_visualtype_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_visualtype_end (xcb_visualtype_iterator_t i);
- int
- xcb_depth_sizeof (const void *_buffer);
- xcb_visualtype_t *
- xcb_depth_visuals (const xcb_depth_t *R);
- int
- xcb_depth_visuals_length (const xcb_depth_t *R);
- xcb_visualtype_iterator_t
- xcb_depth_visuals_iterator (const xcb_depth_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_depth_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_depth_t)
- */
- void
- xcb_depth_next (xcb_depth_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_depth_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_depth_end (xcb_depth_iterator_t i);
- int
- xcb_screen_sizeof (const void *_buffer);
- int
- xcb_screen_allowed_depths_length (const xcb_screen_t *R);
- xcb_depth_iterator_t
- xcb_screen_allowed_depths_iterator (const xcb_screen_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_screen_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_screen_t)
- */
- void
- xcb_screen_next (xcb_screen_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_screen_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_screen_end (xcb_screen_iterator_t i);
- int
- xcb_setup_request_sizeof (const void *_buffer);
- char *
- xcb_setup_request_authorization_protocol_name (const xcb_setup_request_t *R);
- int
- xcb_setup_request_authorization_protocol_name_length (const xcb_setup_request_t *R);
- xcb_generic_iterator_t
- xcb_setup_request_authorization_protocol_name_end (const xcb_setup_request_t *R);
- char *
- xcb_setup_request_authorization_protocol_data (const xcb_setup_request_t *R);
- int
- xcb_setup_request_authorization_protocol_data_length (const xcb_setup_request_t *R);
- xcb_generic_iterator_t
- xcb_setup_request_authorization_protocol_data_end (const xcb_setup_request_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_setup_request_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_setup_request_t)
- */
- void
- xcb_setup_request_next (xcb_setup_request_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_setup_request_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_setup_request_end (xcb_setup_request_iterator_t i);
- int
- xcb_setup_failed_sizeof (const void *_buffer);
- char *
- xcb_setup_failed_reason (const xcb_setup_failed_t *R);
- int
- xcb_setup_failed_reason_length (const xcb_setup_failed_t *R);
- xcb_generic_iterator_t
- xcb_setup_failed_reason_end (const xcb_setup_failed_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_setup_failed_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_setup_failed_t)
- */
- void
- xcb_setup_failed_next (xcb_setup_failed_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_setup_failed_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_setup_failed_end (xcb_setup_failed_iterator_t i);
- int
- xcb_setup_authenticate_sizeof (const void *_buffer);
- char *
- xcb_setup_authenticate_reason (const xcb_setup_authenticate_t *R);
- int
- xcb_setup_authenticate_reason_length (const xcb_setup_authenticate_t *R);
- xcb_generic_iterator_t
- xcb_setup_authenticate_reason_end (const xcb_setup_authenticate_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_setup_authenticate_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_setup_authenticate_t)
- */
- void
- xcb_setup_authenticate_next (xcb_setup_authenticate_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_setup_authenticate_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_setup_authenticate_end (xcb_setup_authenticate_iterator_t i);
- int
- xcb_setup_sizeof (const void *_buffer);
- char *
- xcb_setup_vendor (const xcb_setup_t *R);
- int
- xcb_setup_vendor_length (const xcb_setup_t *R);
- xcb_generic_iterator_t
- xcb_setup_vendor_end (const xcb_setup_t *R);
- xcb_format_t *
- xcb_setup_pixmap_formats (const xcb_setup_t *R);
- int
- xcb_setup_pixmap_formats_length (const xcb_setup_t *R);
- xcb_format_iterator_t
- xcb_setup_pixmap_formats_iterator (const xcb_setup_t *R);
- int
- xcb_setup_roots_length (const xcb_setup_t *R);
- xcb_screen_iterator_t
- xcb_setup_roots_iterator (const xcb_setup_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_setup_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_setup_t)
- */
- void
- xcb_setup_next (xcb_setup_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_setup_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_setup_end (xcb_setup_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_client_message_data_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_client_message_data_t)
- */
- void
- xcb_client_message_data_next (xcb_client_message_data_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_client_message_data_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_client_message_data_end (xcb_client_message_data_iterator_t i);
- int
- xcb_create_window_value_list_serialize (void **_buffer,
- uint32_t value_mask,
- const xcb_create_window_value_list_t *_aux);
- int
- xcb_create_window_value_list_unpack (const void *_buffer,
- uint32_t value_mask,
- xcb_create_window_value_list_t *_aux);
- int
- xcb_create_window_value_list_sizeof (const void *_buffer,
- uint32_t value_mask);
- int
- xcb_create_window_sizeof (const void *_buffer);
- /**
- * @brief Creates a window
- *
- * @param c The connection
- * @param depth Specifies the new window's depth (TODO: what unit?).
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
- * \a parent window.
- * @param wid The ID with which you will refer to the new window, created by
- * `xcb_generate_id`.
- * @param parent The parent window of the new window.
- * @param x The X coordinate of the new window.
- * @param y The Y coordinate of the new window.
- * @param width The width of the new window.
- * @param height The height of the new window.
- * @param border_width TODO:
- * \n
- * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
- * @param _class A bitmask of #xcb_window_class_t values.
- * @param _class \n
- * @param visual Specifies the id for the new window's visual.
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
- * \a parent window.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @return A cookie
- *
- * Creates an unmapped window as child of the specified \a parent window. A
- * CreateNotify event will be generated. The new window is placed on top in the
- * stacking order with respect to siblings.
- *
- * The coordinate system has the X axis horizontal and the Y axis vertical with
- * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
- * of pixels, and coincide with pixel centers. Each window and pixmap has its own
- * coordinate system. For a window, the origin is inside the border at the inside,
- * upper-left corner.
- *
- * The created window is not yet displayed (mapped), call `xcb_map_window` to
- * display it.
- *
- * The created window will initially use the same cursor as its parent.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_window_checked (xcb_connection_t *c,
- uint8_t depth,
- xcb_window_t wid,
- xcb_window_t parent,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint16_t border_width,
- uint16_t _class,
- xcb_visualid_t visual,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief Creates a window
- *
- * @param c The connection
- * @param depth Specifies the new window's depth (TODO: what unit?).
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
- * \a parent window.
- * @param wid The ID with which you will refer to the new window, created by
- * `xcb_generate_id`.
- * @param parent The parent window of the new window.
- * @param x The X coordinate of the new window.
- * @param y The Y coordinate of the new window.
- * @param width The width of the new window.
- * @param height The height of the new window.
- * @param border_width TODO:
- * \n
- * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
- * @param _class A bitmask of #xcb_window_class_t values.
- * @param _class \n
- * @param visual Specifies the id for the new window's visual.
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
- * \a parent window.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @return A cookie
- *
- * Creates an unmapped window as child of the specified \a parent window. A
- * CreateNotify event will be generated. The new window is placed on top in the
- * stacking order with respect to siblings.
- *
- * The coordinate system has the X axis horizontal and the Y axis vertical with
- * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
- * of pixels, and coincide with pixel centers. Each window and pixmap has its own
- * coordinate system. For a window, the origin is inside the border at the inside,
- * upper-left corner.
- *
- * The created window is not yet displayed (mapped), call `xcb_map_window` to
- * display it.
- *
- * The created window will initially use the same cursor as its parent.
- *
- */
- xcb_void_cookie_t
- xcb_create_window (xcb_connection_t *c,
- uint8_t depth,
- xcb_window_t wid,
- xcb_window_t parent,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint16_t border_width,
- uint16_t _class,
- xcb_visualid_t visual,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief Creates a window
- *
- * @param c The connection
- * @param depth Specifies the new window's depth (TODO: what unit?).
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
- * \a parent window.
- * @param wid The ID with which you will refer to the new window, created by
- * `xcb_generate_id`.
- * @param parent The parent window of the new window.
- * @param x The X coordinate of the new window.
- * @param y The Y coordinate of the new window.
- * @param width The width of the new window.
- * @param height The height of the new window.
- * @param border_width TODO:
- * \n
- * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
- * @param _class A bitmask of #xcb_window_class_t values.
- * @param _class \n
- * @param visual Specifies the id for the new window's visual.
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
- * \a parent window.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @return A cookie
- *
- * Creates an unmapped window as child of the specified \a parent window. A
- * CreateNotify event will be generated. The new window is placed on top in the
- * stacking order with respect to siblings.
- *
- * The coordinate system has the X axis horizontal and the Y axis vertical with
- * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
- * of pixels, and coincide with pixel centers. Each window and pixmap has its own
- * coordinate system. For a window, the origin is inside the border at the inside,
- * upper-left corner.
- *
- * The created window is not yet displayed (mapped), call `xcb_map_window` to
- * display it.
- *
- * The created window will initially use the same cursor as its parent.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_window_aux_checked (xcb_connection_t *c,
- uint8_t depth,
- xcb_window_t wid,
- xcb_window_t parent,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint16_t border_width,
- uint16_t _class,
- xcb_visualid_t visual,
- uint32_t value_mask,
- const xcb_create_window_value_list_t *value_list);
- /**
- * @brief Creates a window
- *
- * @param c The connection
- * @param depth Specifies the new window's depth (TODO: what unit?).
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the
- * \a parent window.
- * @param wid The ID with which you will refer to the new window, created by
- * `xcb_generate_id`.
- * @param parent The parent window of the new window.
- * @param x The X coordinate of the new window.
- * @param y The Y coordinate of the new window.
- * @param width The width of the new window.
- * @param height The height of the new window.
- * @param border_width TODO:
- * \n
- * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs.
- * @param _class A bitmask of #xcb_window_class_t values.
- * @param _class \n
- * @param visual Specifies the id for the new window's visual.
- * \n
- * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the
- * \a parent window.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @return A cookie
- *
- * Creates an unmapped window as child of the specified \a parent window. A
- * CreateNotify event will be generated. The new window is placed on top in the
- * stacking order with respect to siblings.
- *
- * The coordinate system has the X axis horizontal and the Y axis vertical with
- * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms
- * of pixels, and coincide with pixel centers. Each window and pixmap has its own
- * coordinate system. For a window, the origin is inside the border at the inside,
- * upper-left corner.
- *
- * The created window is not yet displayed (mapped), call `xcb_map_window` to
- * display it.
- *
- * The created window will initially use the same cursor as its parent.
- *
- */
- xcb_void_cookie_t
- xcb_create_window_aux (xcb_connection_t *c,
- uint8_t depth,
- xcb_window_t wid,
- xcb_window_t parent,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint16_t border_width,
- uint16_t _class,
- xcb_visualid_t visual,
- uint32_t value_mask,
- const xcb_create_window_value_list_t *value_list);
- void *
- xcb_create_window_value_list (const xcb_create_window_request_t *R);
- int
- xcb_change_window_attributes_value_list_serialize (void **_buffer,
- uint32_t value_mask,
- const xcb_change_window_attributes_value_list_t *_aux);
- int
- xcb_change_window_attributes_value_list_unpack (const void *_buffer,
- uint32_t value_mask,
- xcb_change_window_attributes_value_list_t *_aux);
- int
- xcb_change_window_attributes_value_list_sizeof (const void *_buffer,
- uint32_t value_mask);
- int
- xcb_change_window_attributes_sizeof (const void *_buffer);
- /**
- * @brief change window attributes
- *
- * @param c The connection
- * @param window The window to change.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @param value_mask \n
- * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the attributes specified by \a value_mask for the specified \a window.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_window_attributes_checked (xcb_connection_t *c,
- xcb_window_t window,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief change window attributes
- *
- * @param c The connection
- * @param window The window to change.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @param value_mask \n
- * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the attributes specified by \a value_mask for the specified \a window.
- *
- */
- xcb_void_cookie_t
- xcb_change_window_attributes (xcb_connection_t *c,
- xcb_window_t window,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief change window attributes
- *
- * @param c The connection
- * @param window The window to change.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @param value_mask \n
- * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the attributes specified by \a value_mask for the specified \a window.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_window_attributes_aux_checked (xcb_connection_t *c,
- xcb_window_t window,
- uint32_t value_mask,
- const xcb_change_window_attributes_value_list_t *value_list);
- /**
- * @brief change window attributes
- *
- * @param c The connection
- * @param window The window to change.
- * @param value_mask A bitmask of #xcb_cw_t values.
- * @param value_mask \n
- * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the attributes specified by \a value_mask for the specified \a window.
- *
- */
- xcb_void_cookie_t
- xcb_change_window_attributes_aux (xcb_connection_t *c,
- xcb_window_t window,
- uint32_t value_mask,
- const xcb_change_window_attributes_value_list_t *value_list);
- void *
- xcb_change_window_attributes_value_list (const xcb_change_window_attributes_request_t *R);
- /**
- * @brief Gets window attributes
- *
- * @param c The connection
- * @param window The window to get the attributes from.
- * @return A cookie
- *
- * Gets the current attributes for the specified \a window.
- *
- */
- xcb_get_window_attributes_cookie_t
- xcb_get_window_attributes (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Gets window attributes
- *
- * @param c The connection
- * @param window The window to get the attributes from.
- * @return A cookie
- *
- * Gets the current attributes for the specified \a window.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_window_attributes_cookie_t
- xcb_get_window_attributes_unchecked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_window_attributes_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_window_attributes_reply_t *
- xcb_get_window_attributes_reply (xcb_connection_t *c,
- xcb_get_window_attributes_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief Destroys a window
- *
- * @param c The connection
- * @param window The window to destroy.
- * @return A cookie
- *
- * Destroys the specified window and all of its subwindows. A DestroyNotify event
- * is generated for each destroyed window (a DestroyNotify event is first generated
- * for any given window's inferiors). If the window was mapped, it will be
- * automatically unmapped before destroying.
- *
- * Calling DestroyWindow on the root window will do nothing.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_destroy_window_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Destroys a window
- *
- * @param c The connection
- * @param window The window to destroy.
- * @return A cookie
- *
- * Destroys the specified window and all of its subwindows. A DestroyNotify event
- * is generated for each destroyed window (a DestroyNotify event is first generated
- * for any given window's inferiors). If the window was mapped, it will be
- * automatically unmapped before destroying.
- *
- * Calling DestroyWindow on the root window will do nothing.
- *
- */
- xcb_void_cookie_t
- xcb_destroy_window (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_destroy_subwindows_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_destroy_subwindows (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Changes a client's save set
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_set_mode_t values.
- * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set.
- * @param window The window to add or delete to/from your save set.
- * @return A cookie
- *
- * TODO: explain what the save set is for.
- *
- * This function either adds or removes the specified window to the client's (your
- * application's) save set.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_save_set_checked (xcb_connection_t *c,
- uint8_t mode,
- xcb_window_t window);
- /**
- * @brief Changes a client's save set
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_set_mode_t values.
- * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set.
- * @param window The window to add or delete to/from your save set.
- * @return A cookie
- *
- * TODO: explain what the save set is for.
- *
- * This function either adds or removes the specified window to the client's (your
- * application's) save set.
- *
- */
- xcb_void_cookie_t
- xcb_change_save_set (xcb_connection_t *c,
- uint8_t mode,
- xcb_window_t window);
- /**
- * @brief Reparents a window
- *
- * @param c The connection
- * @param window The window to reparent.
- * @param parent The new parent of the window.
- * @param x The X position of the window within its new parent.
- * @param y The Y position of the window within its new parent.
- * @return A cookie
- *
- * Makes the specified window a child of the specified parent window. If the
- * window is mapped, it will automatically be unmapped before reparenting and
- * re-mapped after reparenting. The window is placed in the stacking order on top
- * with respect to sibling windows.
- *
- * After reparenting, a ReparentNotify event is generated.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_reparent_window_checked (xcb_connection_t *c,
- xcb_window_t window,
- xcb_window_t parent,
- int16_t x,
- int16_t y);
- /**
- * @brief Reparents a window
- *
- * @param c The connection
- * @param window The window to reparent.
- * @param parent The new parent of the window.
- * @param x The X position of the window within its new parent.
- * @param y The Y position of the window within its new parent.
- * @return A cookie
- *
- * Makes the specified window a child of the specified parent window. If the
- * window is mapped, it will automatically be unmapped before reparenting and
- * re-mapped after reparenting. The window is placed in the stacking order on top
- * with respect to sibling windows.
- *
- * After reparenting, a ReparentNotify event is generated.
- *
- */
- xcb_void_cookie_t
- xcb_reparent_window (xcb_connection_t *c,
- xcb_window_t window,
- xcb_window_t parent,
- int16_t x,
- int16_t y);
- /**
- * @brief Makes a window visible
- *
- * @param c The connection
- * @param window The window to make visible.
- * @return A cookie
- *
- * Maps the specified window. This means making the window visible (as long as its
- * parent is visible).
- *
- * This MapWindow request will be translated to a MapRequest request if a window
- * manager is running. The window manager then decides to either map the window or
- * not. Set the override-redirect window attribute to true if you want to bypass
- * this mechanism.
- *
- * If the window manager decides to map the window (or if no window manager is
- * running), a MapNotify event is generated.
- *
- * If the window becomes viewable and no earlier contents for it are remembered,
- * the X server tiles the window with its background. If the window's background
- * is undefined, the existing screen contents are not altered, and the X server
- * generates zero or more Expose events.
- *
- * If the window type is InputOutput, an Expose event will be generated when the
- * window becomes visible. The normal response to an Expose event should be to
- * repaint the window.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_map_window_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Makes a window visible
- *
- * @param c The connection
- * @param window The window to make visible.
- * @return A cookie
- *
- * Maps the specified window. This means making the window visible (as long as its
- * parent is visible).
- *
- * This MapWindow request will be translated to a MapRequest request if a window
- * manager is running. The window manager then decides to either map the window or
- * not. Set the override-redirect window attribute to true if you want to bypass
- * this mechanism.
- *
- * If the window manager decides to map the window (or if no window manager is
- * running), a MapNotify event is generated.
- *
- * If the window becomes viewable and no earlier contents for it are remembered,
- * the X server tiles the window with its background. If the window's background
- * is undefined, the existing screen contents are not altered, and the X server
- * generates zero or more Expose events.
- *
- * If the window type is InputOutput, an Expose event will be generated when the
- * window becomes visible. The normal response to an Expose event should be to
- * repaint the window.
- *
- */
- xcb_void_cookie_t
- xcb_map_window (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_map_subwindows_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_map_subwindows (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Makes a window invisible
- *
- * @param c The connection
- * @param window The window to make invisible.
- * @return A cookie
- *
- * Unmaps the specified window. This means making the window invisible (and all
- * its child windows).
- *
- * Unmapping a window leads to the `UnmapNotify` event being generated. Also,
- * `Expose` events are generated for formerly obscured windows.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_unmap_window_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief Makes a window invisible
- *
- * @param c The connection
- * @param window The window to make invisible.
- * @return A cookie
- *
- * Unmaps the specified window. This means making the window invisible (and all
- * its child windows).
- *
- * Unmapping a window leads to the `UnmapNotify` event being generated. Also,
- * `Expose` events are generated for formerly obscured windows.
- *
- */
- xcb_void_cookie_t
- xcb_unmap_window (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_unmap_subwindows_checked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_unmap_subwindows (xcb_connection_t *c,
- xcb_window_t window);
- int
- xcb_configure_window_value_list_serialize (void **_buffer,
- uint16_t value_mask,
- const xcb_configure_window_value_list_t *_aux);
- int
- xcb_configure_window_value_list_unpack (const void *_buffer,
- uint16_t value_mask,
- xcb_configure_window_value_list_t *_aux);
- int
- xcb_configure_window_value_list_sizeof (const void *_buffer,
- uint16_t value_mask);
- int
- xcb_configure_window_sizeof (const void *_buffer);
- /**
- * @brief Configures window attributes
- *
- * @param c The connection
- * @param window The window to configure.
- * @param value_mask Bitmask of attributes to change.
- * @param value_list New values, corresponding to the attributes in value_mask. The order has to
- * correspond to the order of possible \a value_mask bits. See the example.
- * @return A cookie
- *
- * Configures a window's size, position, border width and stacking order.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_configure_window_checked (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t value_mask,
- const void *value_list);
- /**
- * @brief Configures window attributes
- *
- * @param c The connection
- * @param window The window to configure.
- * @param value_mask Bitmask of attributes to change.
- * @param value_list New values, corresponding to the attributes in value_mask. The order has to
- * correspond to the order of possible \a value_mask bits. See the example.
- * @return A cookie
- *
- * Configures a window's size, position, border width and stacking order.
- *
- */
- xcb_void_cookie_t
- xcb_configure_window (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t value_mask,
- const void *value_list);
- /**
- * @brief Configures window attributes
- *
- * @param c The connection
- * @param window The window to configure.
- * @param value_mask Bitmask of attributes to change.
- * @param value_list New values, corresponding to the attributes in value_mask. The order has to
- * correspond to the order of possible \a value_mask bits. See the example.
- * @return A cookie
- *
- * Configures a window's size, position, border width and stacking order.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_configure_window_aux_checked (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t value_mask,
- const xcb_configure_window_value_list_t *value_list);
- /**
- * @brief Configures window attributes
- *
- * @param c The connection
- * @param window The window to configure.
- * @param value_mask Bitmask of attributes to change.
- * @param value_list New values, corresponding to the attributes in value_mask. The order has to
- * correspond to the order of possible \a value_mask bits. See the example.
- * @return A cookie
- *
- * Configures a window's size, position, border width and stacking order.
- *
- */
- xcb_void_cookie_t
- xcb_configure_window_aux (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t value_mask,
- const xcb_configure_window_value_list_t *value_list);
- void *
- xcb_configure_window_value_list (const xcb_configure_window_request_t *R);
- /**
- * @brief Change window stacking order
- *
- * @param c The connection
- * @param direction A bitmask of #xcb_circulate_t values.
- * @param direction \n
- * @param window The window to raise/lower (depending on \a direction).
- * @return A cookie
- *
- * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if
- * any) will be raised to the top of the stack.
- *
- * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will
- * be lowered to the bottom of the stack.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_circulate_window_checked (xcb_connection_t *c,
- uint8_t direction,
- xcb_window_t window);
- /**
- * @brief Change window stacking order
- *
- * @param c The connection
- * @param direction A bitmask of #xcb_circulate_t values.
- * @param direction \n
- * @param window The window to raise/lower (depending on \a direction).
- * @return A cookie
- *
- * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if
- * any) will be raised to the top of the stack.
- *
- * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will
- * be lowered to the bottom of the stack.
- *
- */
- xcb_void_cookie_t
- xcb_circulate_window (xcb_connection_t *c,
- uint8_t direction,
- xcb_window_t window);
- /**
- * @brief Get current window geometry
- *
- * @param c The connection
- * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received.
- * @return A cookie
- *
- * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
- *
- */
- xcb_get_geometry_cookie_t
- xcb_get_geometry (xcb_connection_t *c,
- xcb_drawable_t drawable);
- /**
- * @brief Get current window geometry
- *
- * @param c The connection
- * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received.
- * @return A cookie
- *
- * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_geometry_cookie_t
- xcb_get_geometry_unchecked (xcb_connection_t *c,
- xcb_drawable_t drawable);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_geometry_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_geometry_reply_t *
- xcb_get_geometry_reply (xcb_connection_t *c,
- xcb_get_geometry_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_query_tree_sizeof (const void *_buffer);
- /**
- * @brief query the window tree
- *
- * @param c The connection
- * @param window The \a window to query.
- * @return A cookie
- *
- * Gets the root window ID, parent window ID and list of children windows for the
- * specified \a window. The children are listed in bottom-to-top stacking order.
- *
- */
- xcb_query_tree_cookie_t
- xcb_query_tree (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief query the window tree
- *
- * @param c The connection
- * @param window The \a window to query.
- * @return A cookie
- *
- * Gets the root window ID, parent window ID and list of children windows for the
- * specified \a window. The children are listed in bottom-to-top stacking order.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_tree_cookie_t
- xcb_query_tree_unchecked (xcb_connection_t *c,
- xcb_window_t window);
- xcb_window_t *
- xcb_query_tree_children (const xcb_query_tree_reply_t *R);
- int
- xcb_query_tree_children_length (const xcb_query_tree_reply_t *R);
- xcb_generic_iterator_t
- xcb_query_tree_children_end (const xcb_query_tree_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_tree_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_tree_reply_t *
- xcb_query_tree_reply (xcb_connection_t *c,
- xcb_query_tree_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_intern_atom_sizeof (const void *_buffer);
- /**
- * @brief Get atom identifier by name
- *
- * @param c The connection
- * @param only_if_exists Return a valid atom id only if the atom already exists.
- * @param name_len The length of the following \a name.
- * @param name The name of the atom.
- * @return A cookie
- *
- * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified
- * name. Atoms are used in protocols like EWMH, for example to store window titles
- * (`_NET_WM_NAME` atom) as property of a window.
- *
- * If \a only_if_exists is 0, the atom will be created if it does not already exist.
- * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does
- * not yet exist.
- *
- */
- xcb_intern_atom_cookie_t
- xcb_intern_atom (xcb_connection_t *c,
- uint8_t only_if_exists,
- uint16_t name_len,
- const char *name);
- /**
- * @brief Get atom identifier by name
- *
- * @param c The connection
- * @param only_if_exists Return a valid atom id only if the atom already exists.
- * @param name_len The length of the following \a name.
- * @param name The name of the atom.
- * @return A cookie
- *
- * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified
- * name. Atoms are used in protocols like EWMH, for example to store window titles
- * (`_NET_WM_NAME` atom) as property of a window.
- *
- * If \a only_if_exists is 0, the atom will be created if it does not already exist.
- * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does
- * not yet exist.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_intern_atom_cookie_t
- xcb_intern_atom_unchecked (xcb_connection_t *c,
- uint8_t only_if_exists,
- uint16_t name_len,
- const char *name);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_intern_atom_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_intern_atom_reply_t *
- xcb_intern_atom_reply (xcb_connection_t *c,
- xcb_intern_atom_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_get_atom_name_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_atom_name_cookie_t
- xcb_get_atom_name (xcb_connection_t *c,
- xcb_atom_t atom);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_atom_name_cookie_t
- xcb_get_atom_name_unchecked (xcb_connection_t *c,
- xcb_atom_t atom);
- char *
- xcb_get_atom_name_name (const xcb_get_atom_name_reply_t *R);
- int
- xcb_get_atom_name_name_length (const xcb_get_atom_name_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_atom_name_name_end (const xcb_get_atom_name_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_atom_name_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_atom_name_reply_t *
- xcb_get_atom_name_reply (xcb_connection_t *c,
- xcb_get_atom_name_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_change_property_sizeof (const void *_buffer);
- /**
- * @brief Changes a window property
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_prop_mode_t values.
- * @param mode \n
- * @param window The window whose property you want to change.
- * @param property The property you want to change (an atom).
- * @param type The type of the property you want to change (an atom).
- * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or
- * 32-bit quantities. Possible values are 8, 16 and 32. This information allows
- * the X server to correctly perform byte-swap operations as necessary.
- * @param data_len Specifies the number of elements (see \a format).
- * @param data The property data.
- * @return A cookie
- *
- * Sets or updates a property on the specified \a window. Properties are for
- * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
- * Protocols such as EWMH also use properties - for example EWMH defines the
- * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_property_checked (xcb_connection_t *c,
- uint8_t mode,
- xcb_window_t window,
- xcb_atom_t property,
- xcb_atom_t type,
- uint8_t format,
- uint32_t data_len,
- const void *data);
- /**
- * @brief Changes a window property
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_prop_mode_t values.
- * @param mode \n
- * @param window The window whose property you want to change.
- * @param property The property you want to change (an atom).
- * @param type The type of the property you want to change (an atom).
- * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or
- * 32-bit quantities. Possible values are 8, 16 and 32. This information allows
- * the X server to correctly perform byte-swap operations as necessary.
- * @param data_len Specifies the number of elements (see \a format).
- * @param data The property data.
- * @return A cookie
- *
- * Sets or updates a property on the specified \a window. Properties are for
- * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
- * Protocols such as EWMH also use properties - for example EWMH defines the
- * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
- *
- */
- xcb_void_cookie_t
- xcb_change_property (xcb_connection_t *c,
- uint8_t mode,
- xcb_window_t window,
- xcb_atom_t property,
- xcb_atom_t type,
- uint8_t format,
- uint32_t data_len,
- const void *data);
- void *
- xcb_change_property_data (const xcb_change_property_request_t *R);
- int
- xcb_change_property_data_length (const xcb_change_property_request_t *R);
- xcb_generic_iterator_t
- xcb_change_property_data_end (const xcb_change_property_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_delete_property_checked (xcb_connection_t *c,
- xcb_window_t window,
- xcb_atom_t property);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_delete_property (xcb_connection_t *c,
- xcb_window_t window,
- xcb_atom_t property);
- int
- xcb_get_property_sizeof (const void *_buffer);
- /**
- * @brief Gets a window property
- *
- * @param c The connection
- * @param _delete Whether the property should actually be deleted. For deleting a property, the
- * specified \a type has to match the actual property type.
- * @param window The window whose property you want to get.
- * @param property The property you want to get (an atom).
- * @param type The type of the property you want to get (an atom).
- * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the
- * data is to be retrieved.
- * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you
- * set \a long_length to 4, you will receive 16 bytes of data).
- * @return A cookie
- *
- * Gets the specified \a property from the specified \a window. Properties are for
- * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
- * Protocols such as EWMH also use properties - for example EWMH defines the
- * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
- *
- * TODO: talk about \a type
- *
- * TODO: talk about `delete`
- *
- * TODO: talk about the offset/length thing. what's a valid use case?
- *
- */
- xcb_get_property_cookie_t
- xcb_get_property (xcb_connection_t *c,
- uint8_t _delete,
- xcb_window_t window,
- xcb_atom_t property,
- xcb_atom_t type,
- uint32_t long_offset,
- uint32_t long_length);
- /**
- * @brief Gets a window property
- *
- * @param c The connection
- * @param _delete Whether the property should actually be deleted. For deleting a property, the
- * specified \a type has to match the actual property type.
- * @param window The window whose property you want to get.
- * @param property The property you want to get (an atom).
- * @param type The type of the property you want to get (an atom).
- * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the
- * data is to be retrieved.
- * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you
- * set \a long_length to 4, you will receive 16 bytes of data).
- * @return A cookie
- *
- * Gets the specified \a property from the specified \a window. Properties are for
- * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`).
- * Protocols such as EWMH also use properties - for example EWMH defines the
- * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
- *
- * TODO: talk about \a type
- *
- * TODO: talk about `delete`
- *
- * TODO: talk about the offset/length thing. what's a valid use case?
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_property_cookie_t
- xcb_get_property_unchecked (xcb_connection_t *c,
- uint8_t _delete,
- xcb_window_t window,
- xcb_atom_t property,
- xcb_atom_t type,
- uint32_t long_offset,
- uint32_t long_length);
- void *
- xcb_get_property_value (const xcb_get_property_reply_t *R);
- int
- xcb_get_property_value_length (const xcb_get_property_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_property_value_end (const xcb_get_property_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_property_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_property_reply_t *
- xcb_get_property_reply (xcb_connection_t *c,
- xcb_get_property_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_list_properties_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_list_properties_cookie_t
- xcb_list_properties (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_properties_cookie_t
- xcb_list_properties_unchecked (xcb_connection_t *c,
- xcb_window_t window);
- xcb_atom_t *
- xcb_list_properties_atoms (const xcb_list_properties_reply_t *R);
- int
- xcb_list_properties_atoms_length (const xcb_list_properties_reply_t *R);
- xcb_generic_iterator_t
- xcb_list_properties_atoms_end (const xcb_list_properties_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_properties_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_properties_reply_t *
- xcb_list_properties_reply (xcb_connection_t *c,
- xcb_list_properties_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief Sets the owner of a selection
- *
- * @param c The connection
- * @param owner The new owner of the selection.
- * \n
- * The special value `XCB_NONE` means that the selection will have no owner.
- * @param selection The selection.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The selection will not be changed if \a time is earlier than the current
- * last-change time of the \a selection or is later than the current X server time.
- * Otherwise, the last-change time is set to the specified time.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Makes `window` the owner of the selection \a selection and updates the
- * last-change time of the specified selection.
- *
- * TODO: briefly explain what a selection is.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_selection_owner_checked (xcb_connection_t *c,
- xcb_window_t owner,
- xcb_atom_t selection,
- xcb_timestamp_t time);
- /**
- * @brief Sets the owner of a selection
- *
- * @param c The connection
- * @param owner The new owner of the selection.
- * \n
- * The special value `XCB_NONE` means that the selection will have no owner.
- * @param selection The selection.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The selection will not be changed if \a time is earlier than the current
- * last-change time of the \a selection or is later than the current X server time.
- * Otherwise, the last-change time is set to the specified time.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Makes `window` the owner of the selection \a selection and updates the
- * last-change time of the specified selection.
- *
- * TODO: briefly explain what a selection is.
- *
- */
- xcb_void_cookie_t
- xcb_set_selection_owner (xcb_connection_t *c,
- xcb_window_t owner,
- xcb_atom_t selection,
- xcb_timestamp_t time);
- /**
- * @brief Gets the owner of a selection
- *
- * @param c The connection
- * @param selection The selection.
- * @return A cookie
- *
- * Gets the owner of the specified selection.
- *
- * TODO: briefly explain what a selection is.
- *
- */
- xcb_get_selection_owner_cookie_t
- xcb_get_selection_owner (xcb_connection_t *c,
- xcb_atom_t selection);
- /**
- * @brief Gets the owner of a selection
- *
- * @param c The connection
- * @param selection The selection.
- * @return A cookie
- *
- * Gets the owner of the specified selection.
- *
- * TODO: briefly explain what a selection is.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_selection_owner_cookie_t
- xcb_get_selection_owner_unchecked (xcb_connection_t *c,
- xcb_atom_t selection);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_selection_owner_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_selection_owner_reply_t *
- xcb_get_selection_owner_reply (xcb_connection_t *c,
- xcb_get_selection_owner_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_convert_selection_checked (xcb_connection_t *c,
- xcb_window_t requestor,
- xcb_atom_t selection,
- xcb_atom_t target,
- xcb_atom_t property,
- xcb_timestamp_t time);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_convert_selection (xcb_connection_t *c,
- xcb_window_t requestor,
- xcb_atom_t selection,
- xcb_atom_t target,
- xcb_atom_t property,
- xcb_timestamp_t time);
- /**
- * @brief send an event
- *
- * @param c The connection
- * @param propagate If \a propagate is true and no clients have selected any event on \a destination,
- * the destination is replaced with the closest ancestor of \a destination for
- * which some client has selected a type in \a event_mask and for which no
- * intervening window has that type in its do-not-propagate-mask. If no such
- * window exists or if the window is an ancestor of the focus window and
- * `InputFocus` was originally specified as the destination, the event is not sent
- * to any clients. Otherwise, the event is reported to every client selecting on
- * the final destination any of the types specified in \a event_mask.
- * @param destination The window to send this event to. Every client which selects any event within
- * \a event_mask on \a destination will get the event.
- * \n
- * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window
- * that contains the mouse pointer.
- * \n
- * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which
- * has the keyboard focus.
- * @param event_mask Event_mask for determining which clients should receive the specified event.
- * See \a destination and \a propagate.
- * @param event The event to send to the specified \a destination.
- * @return A cookie
- *
- * Identifies the \a destination window, determines which clients should receive
- * the specified event and ignores any active grabs.
- *
- * The \a event must be one of the core events or an event defined by an extension,
- * so that the X server can correctly byte-swap the contents as necessary. The
- * contents of \a event are otherwise unaltered and unchecked except for the
- * `send_event` field which is forced to 'true'.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_send_event_checked (xcb_connection_t *c,
- uint8_t propagate,
- xcb_window_t destination,
- uint32_t event_mask,
- const char *event);
- /**
- * @brief send an event
- *
- * @param c The connection
- * @param propagate If \a propagate is true and no clients have selected any event on \a destination,
- * the destination is replaced with the closest ancestor of \a destination for
- * which some client has selected a type in \a event_mask and for which no
- * intervening window has that type in its do-not-propagate-mask. If no such
- * window exists or if the window is an ancestor of the focus window and
- * `InputFocus` was originally specified as the destination, the event is not sent
- * to any clients. Otherwise, the event is reported to every client selecting on
- * the final destination any of the types specified in \a event_mask.
- * @param destination The window to send this event to. Every client which selects any event within
- * \a event_mask on \a destination will get the event.
- * \n
- * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window
- * that contains the mouse pointer.
- * \n
- * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which
- * has the keyboard focus.
- * @param event_mask Event_mask for determining which clients should receive the specified event.
- * See \a destination and \a propagate.
- * @param event The event to send to the specified \a destination.
- * @return A cookie
- *
- * Identifies the \a destination window, determines which clients should receive
- * the specified event and ignores any active grabs.
- *
- * The \a event must be one of the core events or an event defined by an extension,
- * so that the X server can correctly byte-swap the contents as necessary. The
- * contents of \a event are otherwise unaltered and unchecked except for the
- * `send_event` field which is forced to 'true'.
- *
- */
- xcb_void_cookie_t
- xcb_send_event (xcb_connection_t *c,
- uint8_t propagate,
- xcb_window_t destination,
- uint32_t event_mask,
- const char *event);
- /**
- * @brief Grab the pointer
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param event_mask Specifies which pointer events are reported to the client.
- * \n
- * TODO: which values?
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
- * move the pointer out of that window).
- * \n
- * The special value `XCB_NONE` means don't confine the pointer.
- * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
- * cursor.
- * @param time The time argument allows you to avoid certain circumstances that come up if
- * applications take a long time to respond or if there are long network delays.
- * Consider a situation where you have two applications, both of which normally
- * grab the pointer when clicked on. If both applications specify the timestamp
- * from the event, the second application may wake up faster and successfully grab
- * the pointer before the first application. The first application then will get
- * an indication that the other application grabbed the pointer before its request
- * was processed.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
- *
- */
- xcb_grab_pointer_cookie_t
- xcb_grab_pointer (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t event_mask,
- uint8_t pointer_mode,
- uint8_t keyboard_mode,
- xcb_window_t confine_to,
- xcb_cursor_t cursor,
- xcb_timestamp_t time);
- /**
- * @brief Grab the pointer
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param event_mask Specifies which pointer events are reported to the client.
- * \n
- * TODO: which values?
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
- * move the pointer out of that window).
- * \n
- * The special value `XCB_NONE` means don't confine the pointer.
- * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
- * cursor.
- * @param time The time argument allows you to avoid certain circumstances that come up if
- * applications take a long time to respond or if there are long network delays.
- * Consider a situation where you have two applications, both of which normally
- * grab the pointer when clicked on. If both applications specify the timestamp
- * from the event, the second application may wake up faster and successfully grab
- * the pointer before the first application. The first application then will get
- * an indication that the other application grabbed the pointer before its request
- * was processed.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_grab_pointer_cookie_t
- xcb_grab_pointer_unchecked (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t event_mask,
- uint8_t pointer_mode,
- uint8_t keyboard_mode,
- xcb_window_t confine_to,
- xcb_cursor_t cursor,
- xcb_timestamp_t time);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_grab_pointer_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_grab_pointer_reply_t *
- xcb_grab_pointer_reply (xcb_connection_t *c,
- xcb_grab_pointer_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief release the pointer
- *
- * @param c The connection
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The pointer will not be released if \a time is earlier than the
- * last-pointer-grab time or later than the current X server time.
- * @return A cookie
- *
- * Releases the pointer and any queued events if you actively grabbed the pointer
- * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button
- * press.
- *
- * EnterNotify and LeaveNotify events are generated.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_ungrab_pointer_checked (xcb_connection_t *c,
- xcb_timestamp_t time);
- /**
- * @brief release the pointer
- *
- * @param c The connection
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The pointer will not be released if \a time is earlier than the
- * last-pointer-grab time or later than the current X server time.
- * @return A cookie
- *
- * Releases the pointer and any queued events if you actively grabbed the pointer
- * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button
- * press.
- *
- * EnterNotify and LeaveNotify events are generated.
- *
- */
- xcb_void_cookie_t
- xcb_ungrab_pointer (xcb_connection_t *c,
- xcb_timestamp_t time);
- /**
- * @brief Grab pointer button(s)
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param event_mask Specifies which pointer events are reported to the client.
- * \n
- * TODO: which values?
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
- * move the pointer out of that window).
- * \n
- * The special value `XCB_NONE` means don't confine the pointer.
- * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
- * cursor.
- * @param button A bitmask of #xcb_button_index_t values.
- * @param button \n
- * @param modifiers The modifiers to grab.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
- * possible modifier combinations.
- * @return A cookie
- *
- * This request establishes a passive grab. The pointer is actively grabbed as
- * described in GrabPointer, the last-pointer-grab time is set to the time at
- * which the button was pressed (as transmitted in the ButtonPress event), and the
- * ButtonPress event is reported if all of the following conditions are true:
- *
- * The pointer is not grabbed and the specified button is logically pressed when
- * the specified modifier keys are logically down, and no other buttons or
- * modifier keys are logically down.
- *
- * The grab-window contains the pointer.
- *
- * The confine-to window (if any) is viewable.
- *
- * A passive grab on the same button/key combination does not exist on any
- * ancestor of grab-window.
- *
- * The interpretation of the remaining arguments is the same as for GrabPointer.
- * The active grab is terminated automatically when the logical state of the
- * pointer has all buttons released, independent of the logical state of modifier
- * keys. Note that the logical state of a device (as seen by means of the
- * protocol) may lag the physical state if device event processing is frozen. This
- * request overrides all previous passive grabs by the same client on the same
- * button/key combinations on the same window. A modifier of AnyModifier is
- * equivalent to issuing the request for all possible modifier combinations
- * (including the combination of no modifiers). It is not required that all
- * specified modifiers have currently assigned keycodes. A button of AnyButton is
- * equivalent to issuing the request for all possible buttons. Otherwise, it is
- * not required that the button specified currently be assigned to a physical
- * button.
- *
- * An Access error is generated if some other client has already issued a
- * GrabButton request with the same button/key combination on the same window.
- * When using AnyModifier or AnyButton, the request fails completely (no grabs are
- * established), and an Access error is generated if there is a conflicting grab
- * for any combination. The request has no effect on an active grab.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_grab_button_checked (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t event_mask,
- uint8_t pointer_mode,
- uint8_t keyboard_mode,
- xcb_window_t confine_to,
- xcb_cursor_t cursor,
- uint8_t button,
- uint16_t modifiers);
- /**
- * @brief Grab pointer button(s)
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param event_mask Specifies which pointer events are reported to the client.
- * \n
- * TODO: which values?
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @param confine_to Specifies the window to confine the pointer in (the user will not be able to
- * move the pointer out of that window).
- * \n
- * The special value `XCB_NONE` means don't confine the pointer.
- * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the
- * cursor.
- * @param button A bitmask of #xcb_button_index_t values.
- * @param button \n
- * @param modifiers The modifiers to grab.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
- * possible modifier combinations.
- * @return A cookie
- *
- * This request establishes a passive grab. The pointer is actively grabbed as
- * described in GrabPointer, the last-pointer-grab time is set to the time at
- * which the button was pressed (as transmitted in the ButtonPress event), and the
- * ButtonPress event is reported if all of the following conditions are true:
- *
- * The pointer is not grabbed and the specified button is logically pressed when
- * the specified modifier keys are logically down, and no other buttons or
- * modifier keys are logically down.
- *
- * The grab-window contains the pointer.
- *
- * The confine-to window (if any) is viewable.
- *
- * A passive grab on the same button/key combination does not exist on any
- * ancestor of grab-window.
- *
- * The interpretation of the remaining arguments is the same as for GrabPointer.
- * The active grab is terminated automatically when the logical state of the
- * pointer has all buttons released, independent of the logical state of modifier
- * keys. Note that the logical state of a device (as seen by means of the
- * protocol) may lag the physical state if device event processing is frozen. This
- * request overrides all previous passive grabs by the same client on the same
- * button/key combinations on the same window. A modifier of AnyModifier is
- * equivalent to issuing the request for all possible modifier combinations
- * (including the combination of no modifiers). It is not required that all
- * specified modifiers have currently assigned keycodes. A button of AnyButton is
- * equivalent to issuing the request for all possible buttons. Otherwise, it is
- * not required that the button specified currently be assigned to a physical
- * button.
- *
- * An Access error is generated if some other client has already issued a
- * GrabButton request with the same button/key combination on the same window.
- * When using AnyModifier or AnyButton, the request fails completely (no grabs are
- * established), and an Access error is generated if there is a conflicting grab
- * for any combination. The request has no effect on an active grab.
- *
- */
- xcb_void_cookie_t
- xcb_grab_button (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t event_mask,
- uint8_t pointer_mode,
- uint8_t keyboard_mode,
- xcb_window_t confine_to,
- xcb_cursor_t cursor,
- uint8_t button,
- uint16_t modifiers);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_ungrab_button_checked (xcb_connection_t *c,
- uint8_t button,
- xcb_window_t grab_window,
- uint16_t modifiers);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_ungrab_button (xcb_connection_t *c,
- uint8_t button,
- xcb_window_t grab_window,
- uint16_t modifiers);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_active_pointer_grab_checked (xcb_connection_t *c,
- xcb_cursor_t cursor,
- xcb_timestamp_t time,
- uint16_t event_mask);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_active_pointer_grab (xcb_connection_t *c,
- xcb_cursor_t cursor,
- xcb_timestamp_t time,
- uint16_t event_mask);
- /**
- * @brief Grab the keyboard
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @return A cookie
- *
- * Actively grabs control of the keyboard and generates FocusIn and FocusOut
- * events. Further key events are reported only to the grabbing client.
- *
- * Any active keyboard grab by this client is overridden. If the keyboard is
- * actively grabbed by some other client, `AlreadyGrabbed` is returned. If
- * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard
- * is frozen by an active grab of another client, `GrabFrozen` is returned. If the
- * specified \a time is earlier than the last-keyboard-grab time or later than the
- * current X server time, `GrabInvalidTime` is returned. Otherwise, the
- * last-keyboard-grab time is set to the specified time.
- *
- */
- xcb_grab_keyboard_cookie_t
- xcb_grab_keyboard (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- xcb_timestamp_t time,
- uint8_t pointer_mode,
- uint8_t keyboard_mode);
- /**
- * @brief Grab the keyboard
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @return A cookie
- *
- * Actively grabs control of the keyboard and generates FocusIn and FocusOut
- * events. Further key events are reported only to the grabbing client.
- *
- * Any active keyboard grab by this client is overridden. If the keyboard is
- * actively grabbed by some other client, `AlreadyGrabbed` is returned. If
- * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard
- * is frozen by an active grab of another client, `GrabFrozen` is returned. If the
- * specified \a time is earlier than the last-keyboard-grab time or later than the
- * current X server time, `GrabInvalidTime` is returned. Otherwise, the
- * last-keyboard-grab time is set to the specified time.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_grab_keyboard_cookie_t
- xcb_grab_keyboard_unchecked (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- xcb_timestamp_t time,
- uint8_t pointer_mode,
- uint8_t keyboard_mode);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_grab_keyboard_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_grab_keyboard_reply_t *
- xcb_grab_keyboard_reply (xcb_connection_t *c,
- xcb_grab_keyboard_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_ungrab_keyboard_checked (xcb_connection_t *c,
- xcb_timestamp_t time);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_ungrab_keyboard (xcb_connection_t *c,
- xcb_timestamp_t time);
- /**
- * @brief Grab keyboard key(s)
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param modifiers The modifiers to grab.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
- * possible modifier combinations.
- * @param key The keycode of the key to grab.
- * \n
- * The special value `XCB_GRAB_ANY` means grab any key.
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @return A cookie
- *
- * Establishes a passive grab on the keyboard. In the future, the keyboard is
- * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to
- * the time at which the key was pressed (as transmitted in the KeyPress event),
- * and the KeyPress event is reported if all of the following conditions are true:
- *
- * The keyboard is not grabbed and the specified key (which can itself be a
- * modifier key) is logically pressed when the specified modifier keys are
- * logically down, and no other modifier keys are logically down.
- *
- * Either the grab_window is an ancestor of (or is) the focus window, or the
- * grab_window is a descendant of the focus window and contains the pointer.
- *
- * A passive grab on the same key combination does not exist on any ancestor of
- * grab_window.
- *
- * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated
- * automatically when the logical state of the keyboard has the specified key released (independent of the
- * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
- *
- * Note that the logical state of a device (as seen by client applications) may lag the physical state if
- * device event processing is frozen.
- *
- * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified
- * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for
- * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode
- * and max_keycode in the connection setup, or a BadValue error results.
- *
- * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess
- * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error
- * results (no grabs are established) if there is a conflicting grab for any combination.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_grab_key_checked (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t modifiers,
- xcb_keycode_t key,
- uint8_t pointer_mode,
- uint8_t keyboard_mode);
- /**
- * @brief Grab keyboard key(s)
- *
- * @param c The connection
- * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not
- * reported to the \a grab_window.
- * @param grab_window Specifies the window on which the pointer should be grabbed.
- * @param modifiers The modifiers to grab.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all
- * possible modifier combinations.
- * @param key The keycode of the key to grab.
- * \n
- * The special value `XCB_GRAB_ANY` means grab any key.
- * @param pointer_mode A bitmask of #xcb_grab_mode_t values.
- * @param pointer_mode \n
- * @param keyboard_mode A bitmask of #xcb_grab_mode_t values.
- * @param keyboard_mode \n
- * @return A cookie
- *
- * Establishes a passive grab on the keyboard. In the future, the keyboard is
- * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to
- * the time at which the key was pressed (as transmitted in the KeyPress event),
- * and the KeyPress event is reported if all of the following conditions are true:
- *
- * The keyboard is not grabbed and the specified key (which can itself be a
- * modifier key) is logically pressed when the specified modifier keys are
- * logically down, and no other modifier keys are logically down.
- *
- * Either the grab_window is an ancestor of (or is) the focus window, or the
- * grab_window is a descendant of the focus window and contains the pointer.
- *
- * A passive grab on the same key combination does not exist on any ancestor of
- * grab_window.
- *
- * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated
- * automatically when the logical state of the keyboard has the specified key released (independent of the
- * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
- *
- * Note that the logical state of a device (as seen by client applications) may lag the physical state if
- * device event processing is frozen.
- *
- * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified
- * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for
- * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode
- * and max_keycode in the connection setup, or a BadValue error results.
- *
- * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess
- * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error
- * results (no grabs are established) if there is a conflicting grab for any combination.
- *
- */
- xcb_void_cookie_t
- xcb_grab_key (xcb_connection_t *c,
- uint8_t owner_events,
- xcb_window_t grab_window,
- uint16_t modifiers,
- xcb_keycode_t key,
- uint8_t pointer_mode,
- uint8_t keyboard_mode);
- /**
- * @brief release a key combination
- *
- * @param c The connection
- * @param key The keycode of the specified key combination.
- * \n
- * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes.
- * @param grab_window The window on which the grabbed key combination will be released.
- * @param modifiers The modifiers of the specified key combination.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination
- * with every possible modifier combination.
- * @return A cookie
- *
- * Releases the key combination on \a grab_window if you grabbed it using
- * `xcb_grab_key` before.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_ungrab_key_checked (xcb_connection_t *c,
- xcb_keycode_t key,
- xcb_window_t grab_window,
- uint16_t modifiers);
- /**
- * @brief release a key combination
- *
- * @param c The connection
- * @param key The keycode of the specified key combination.
- * \n
- * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes.
- * @param grab_window The window on which the grabbed key combination will be released.
- * @param modifiers The modifiers of the specified key combination.
- * \n
- * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination
- * with every possible modifier combination.
- * @return A cookie
- *
- * Releases the key combination on \a grab_window if you grabbed it using
- * `xcb_grab_key` before.
- *
- */
- xcb_void_cookie_t
- xcb_ungrab_key (xcb_connection_t *c,
- xcb_keycode_t key,
- xcb_window_t grab_window,
- uint16_t modifiers);
- /**
- * @brief release queued events
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_allow_t values.
- * @param mode \n
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Releases queued events if the client has caused a device (pointer/keyboard) to
- * freeze due to grabbing it actively. This request has no effect if \a time is
- * earlier than the last-grab time of the most recent active grab for this client
- * or if \a time is later than the current X server time.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_allow_events_checked (xcb_connection_t *c,
- uint8_t mode,
- xcb_timestamp_t time);
- /**
- * @brief release queued events
- *
- * @param c The connection
- * @param mode A bitmask of #xcb_allow_t values.
- * @param mode \n
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Releases queued events if the client has caused a device (pointer/keyboard) to
- * freeze due to grabbing it actively. This request has no effect if \a time is
- * earlier than the last-grab time of the most recent active grab for this client
- * or if \a time is later than the current X server time.
- *
- */
- xcb_void_cookie_t
- xcb_allow_events (xcb_connection_t *c,
- uint8_t mode,
- xcb_timestamp_t time);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_grab_server_checked (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_grab_server (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_ungrab_server_checked (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_ungrab_server (xcb_connection_t *c);
- /**
- * @brief get pointer coordinates
- *
- * @param c The connection
- * @param window A window to check if the pointer is on the same screen as \a window (see the
- * `same_screen` field in the reply).
- * @return A cookie
- *
- * Gets the root window the pointer is logically on and the pointer coordinates
- * relative to the root window's origin.
- *
- */
- xcb_query_pointer_cookie_t
- xcb_query_pointer (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * @brief get pointer coordinates
- *
- * @param c The connection
- * @param window A window to check if the pointer is on the same screen as \a window (see the
- * `same_screen` field in the reply).
- * @return A cookie
- *
- * Gets the root window the pointer is logically on and the pointer coordinates
- * relative to the root window's origin.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_pointer_cookie_t
- xcb_query_pointer_unchecked (xcb_connection_t *c,
- xcb_window_t window);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_pointer_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_pointer_reply_t *
- xcb_query_pointer_reply (xcb_connection_t *c,
- xcb_query_pointer_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_timecoord_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_timecoord_t)
- */
- void
- xcb_timecoord_next (xcb_timecoord_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_timecoord_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_timecoord_end (xcb_timecoord_iterator_t i);
- int
- xcb_get_motion_events_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_motion_events_cookie_t
- xcb_get_motion_events (xcb_connection_t *c,
- xcb_window_t window,
- xcb_timestamp_t start,
- xcb_timestamp_t stop);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_motion_events_cookie_t
- xcb_get_motion_events_unchecked (xcb_connection_t *c,
- xcb_window_t window,
- xcb_timestamp_t start,
- xcb_timestamp_t stop);
- xcb_timecoord_t *
- xcb_get_motion_events_events (const xcb_get_motion_events_reply_t *R);
- int
- xcb_get_motion_events_events_length (const xcb_get_motion_events_reply_t *R);
- xcb_timecoord_iterator_t
- xcb_get_motion_events_events_iterator (const xcb_get_motion_events_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_motion_events_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_motion_events_reply_t *
- xcb_get_motion_events_reply (xcb_connection_t *c,
- xcb_get_motion_events_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_translate_coordinates_cookie_t
- xcb_translate_coordinates (xcb_connection_t *c,
- xcb_window_t src_window,
- xcb_window_t dst_window,
- int16_t src_x,
- int16_t src_y);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_translate_coordinates_cookie_t
- xcb_translate_coordinates_unchecked (xcb_connection_t *c,
- xcb_window_t src_window,
- xcb_window_t dst_window,
- int16_t src_x,
- int16_t src_y);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_translate_coordinates_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_translate_coordinates_reply_t *
- xcb_translate_coordinates_reply (xcb_connection_t *c,
- xcb_translate_coordinates_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief move mouse pointer
- *
- * @param c The connection
- * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
- * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
- * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
- * \a src_window.
- * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
- * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
- * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
- * relative to the current position of the pointer.
- * @return A cookie
- *
- * Moves the mouse pointer to the specified position.
- *
- * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
- * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
- * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
- * \a src_window.
- *
- * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
- * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
- * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
- * relative to the current position of the pointer.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_warp_pointer_checked (xcb_connection_t *c,
- xcb_window_t src_window,
- xcb_window_t dst_window,
- int16_t src_x,
- int16_t src_y,
- uint16_t src_width,
- uint16_t src_height,
- int16_t dst_x,
- int16_t dst_y);
- /**
- * @brief move mouse pointer
- *
- * @param c The connection
- * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
- * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
- * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
- * \a src_window.
- * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
- * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
- * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
- * relative to the current position of the pointer.
- * @return A cookie
- *
- * Moves the mouse pointer to the specified position.
- *
- * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the
- * pointer is inside \a src_window and within the rectangle specified by (\a src_x,
- * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to
- * \a src_window.
- *
- * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the
- * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is
- * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y)
- * relative to the current position of the pointer.
- *
- */
- xcb_void_cookie_t
- xcb_warp_pointer (xcb_connection_t *c,
- xcb_window_t src_window,
- xcb_window_t dst_window,
- int16_t src_x,
- int16_t src_y,
- uint16_t src_width,
- uint16_t src_height,
- int16_t dst_x,
- int16_t dst_y);
- /**
- * @brief Sets input focus
- *
- * @param c The connection
- * @param revert_to A bitmask of #xcb_input_focus_t values.
- * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus
- * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`).
- * @param focus The window to focus. All keyboard events will be reported to this window. The
- * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO).
- * \n
- * If \a focus is `XCB_NONE` (TODO), all keyboard events are
- * discarded until a new focus window is set.
- * \n
- * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the
- * screen on which the pointer is on currently.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Changes the input focus and the last-focus-change time. If the specified \a time
- * is earlier than the current last-focus-change time, the request is ignored (to
- * avoid race conditions when running X over the network).
- *
- * A FocusIn and FocusOut event is generated when focus is changed.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_input_focus_checked (xcb_connection_t *c,
- uint8_t revert_to,
- xcb_window_t focus,
- xcb_timestamp_t time);
- /**
- * @brief Sets input focus
- *
- * @param c The connection
- * @param revert_to A bitmask of #xcb_input_focus_t values.
- * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus
- * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`).
- * @param focus The window to focus. All keyboard events will be reported to this window. The
- * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO).
- * \n
- * If \a focus is `XCB_NONE` (TODO), all keyboard events are
- * discarded until a new focus window is set.
- * \n
- * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the
- * screen on which the pointer is on currently.
- * @param time Timestamp to avoid race conditions when running X over the network.
- * \n
- * The special value `XCB_CURRENT_TIME` will be replaced with the current server
- * time.
- * @return A cookie
- *
- * Changes the input focus and the last-focus-change time. If the specified \a time
- * is earlier than the current last-focus-change time, the request is ignored (to
- * avoid race conditions when running X over the network).
- *
- * A FocusIn and FocusOut event is generated when focus is changed.
- *
- */
- xcb_void_cookie_t
- xcb_set_input_focus (xcb_connection_t *c,
- uint8_t revert_to,
- xcb_window_t focus,
- xcb_timestamp_t time);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_input_focus_cookie_t
- xcb_get_input_focus (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_input_focus_cookie_t
- xcb_get_input_focus_unchecked (xcb_connection_t *c);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_input_focus_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_input_focus_reply_t *
- xcb_get_input_focus_reply (xcb_connection_t *c,
- xcb_get_input_focus_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_query_keymap_cookie_t
- xcb_query_keymap (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_keymap_cookie_t
- xcb_query_keymap_unchecked (xcb_connection_t *c);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_keymap_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_keymap_reply_t *
- xcb_query_keymap_reply (xcb_connection_t *c,
- xcb_query_keymap_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_open_font_sizeof (const void *_buffer);
- /**
- * @brief opens a font
- *
- * @param c The connection
- * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`.
- * @param name_len Length (in bytes) of \a name.
- * @param name A pattern describing an X core font.
- * @return A cookie
- *
- * Opens any X core font matching the given \a name (for example "-misc-fixed-*").
- *
- * Note that X core fonts are deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_open_font_checked (xcb_connection_t *c,
- xcb_font_t fid,
- uint16_t name_len,
- const char *name);
- /**
- * @brief opens a font
- *
- * @param c The connection
- * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`.
- * @param name_len Length (in bytes) of \a name.
- * @param name A pattern describing an X core font.
- * @return A cookie
- *
- * Opens any X core font matching the given \a name (for example "-misc-fixed-*").
- *
- * Note that X core fonts are deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- */
- xcb_void_cookie_t
- xcb_open_font (xcb_connection_t *c,
- xcb_font_t fid,
- uint16_t name_len,
- const char *name);
- char *
- xcb_open_font_name (const xcb_open_font_request_t *R);
- int
- xcb_open_font_name_length (const xcb_open_font_request_t *R);
- xcb_generic_iterator_t
- xcb_open_font_name_end (const xcb_open_font_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_close_font_checked (xcb_connection_t *c,
- xcb_font_t font);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_close_font (xcb_connection_t *c,
- xcb_font_t font);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_fontprop_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_fontprop_t)
- */
- void
- xcb_fontprop_next (xcb_fontprop_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_fontprop_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_fontprop_end (xcb_fontprop_iterator_t i);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_charinfo_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_charinfo_t)
- */
- void
- xcb_charinfo_next (xcb_charinfo_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_charinfo_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_charinfo_end (xcb_charinfo_iterator_t i);
- int
- xcb_query_font_sizeof (const void *_buffer);
- /**
- * @brief query font metrics
- *
- * @param c The connection
- * @param font The fontable (Font or Graphics Context) to query.
- * @return A cookie
- *
- * Queries information associated with the font.
- *
- */
- xcb_query_font_cookie_t
- xcb_query_font (xcb_connection_t *c,
- xcb_fontable_t font);
- /**
- * @brief query font metrics
- *
- * @param c The connection
- * @param font The fontable (Font or Graphics Context) to query.
- * @return A cookie
- *
- * Queries information associated with the font.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_font_cookie_t
- xcb_query_font_unchecked (xcb_connection_t *c,
- xcb_fontable_t font);
- xcb_fontprop_t *
- xcb_query_font_properties (const xcb_query_font_reply_t *R);
- int
- xcb_query_font_properties_length (const xcb_query_font_reply_t *R);
- xcb_fontprop_iterator_t
- xcb_query_font_properties_iterator (const xcb_query_font_reply_t *R);
- xcb_charinfo_t *
- xcb_query_font_char_infos (const xcb_query_font_reply_t *R);
- int
- xcb_query_font_char_infos_length (const xcb_query_font_reply_t *R);
- xcb_charinfo_iterator_t
- xcb_query_font_char_infos_iterator (const xcb_query_font_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_font_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_font_reply_t *
- xcb_query_font_reply (xcb_connection_t *c,
- xcb_query_font_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_query_text_extents_sizeof (const void *_buffer,
- uint32_t string_len);
- /**
- * @brief get text extents
- *
- * @param c The connection
- * @param font The \a font to calculate text extents in. You can also pass a graphics context.
- * @param string_len The number of characters in \a string.
- * @param string The text to get text extents for.
- * @return A cookie
- *
- * Query text extents from the X11 server. This request returns the bounding box
- * of the specified 16-bit character string in the specified \a font or the font
- * contained in the specified graphics context.
- *
- * `font_ascent` is set to the maximum of the ascent metrics of all characters in
- * the string. `font_descent` is set to the maximum of the descent metrics.
- * `overall_width` is set to the sum of the character-width metrics of all
- * characters in the string. For each character in the string, let W be the sum of
- * the character-width metrics of all characters preceding it in the string. Let L
- * be the left-side-bearing metric of the character plus W. Let R be the
- * right-side-bearing metric of the character plus W. The lbearing member is set
- * to the minimum L of all characters in the string. The rbearing member is set to
- * the maximum R.
- *
- * For fonts defined with linear indexing rather than 2-byte matrix indexing, each
- * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the
- * most significant byte. If the font has no defined default character, undefined
- * characters in the string are taken to have all zero metrics.
- *
- * Characters with all zero metrics are ignored. If the font has no defined
- * default_char, the undefined characters in the string are also ignored.
- *
- */
- xcb_query_text_extents_cookie_t
- xcb_query_text_extents (xcb_connection_t *c,
- xcb_fontable_t font,
- uint32_t string_len,
- const xcb_char2b_t *string);
- /**
- * @brief get text extents
- *
- * @param c The connection
- * @param font The \a font to calculate text extents in. You can also pass a graphics context.
- * @param string_len The number of characters in \a string.
- * @param string The text to get text extents for.
- * @return A cookie
- *
- * Query text extents from the X11 server. This request returns the bounding box
- * of the specified 16-bit character string in the specified \a font or the font
- * contained in the specified graphics context.
- *
- * `font_ascent` is set to the maximum of the ascent metrics of all characters in
- * the string. `font_descent` is set to the maximum of the descent metrics.
- * `overall_width` is set to the sum of the character-width metrics of all
- * characters in the string. For each character in the string, let W be the sum of
- * the character-width metrics of all characters preceding it in the string. Let L
- * be the left-side-bearing metric of the character plus W. Let R be the
- * right-side-bearing metric of the character plus W. The lbearing member is set
- * to the minimum L of all characters in the string. The rbearing member is set to
- * the maximum R.
- *
- * For fonts defined with linear indexing rather than 2-byte matrix indexing, each
- * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the
- * most significant byte. If the font has no defined default character, undefined
- * characters in the string are taken to have all zero metrics.
- *
- * Characters with all zero metrics are ignored. If the font has no defined
- * default_char, the undefined characters in the string are also ignored.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_text_extents_cookie_t
- xcb_query_text_extents_unchecked (xcb_connection_t *c,
- xcb_fontable_t font,
- uint32_t string_len,
- const xcb_char2b_t *string);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_text_extents_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_text_extents_reply_t *
- xcb_query_text_extents_reply (xcb_connection_t *c,
- xcb_query_text_extents_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_str_sizeof (const void *_buffer);
- char *
- xcb_str_name (const xcb_str_t *R);
- int
- xcb_str_name_length (const xcb_str_t *R);
- xcb_generic_iterator_t
- xcb_str_name_end (const xcb_str_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_str_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_str_t)
- */
- void
- xcb_str_next (xcb_str_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_str_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_str_end (xcb_str_iterator_t i);
- int
- xcb_list_fonts_sizeof (const void *_buffer);
- /**
- * @brief get matching font names
- *
- * @param c The connection
- * @param max_names The maximum number of fonts to be returned.
- * @param pattern_len The length (in bytes) of \a pattern.
- * @param pattern A font pattern, for example "-misc-fixed-*".
- * \n
- * The asterisk (*) is a wildcard for any number of characters. The question mark
- * (?) is a wildcard for a single character. Use of uppercase or lowercase does
- * not matter.
- * @return A cookie
- *
- * Gets a list of available font names which match the given \a pattern.
- *
- */
- xcb_list_fonts_cookie_t
- xcb_list_fonts (xcb_connection_t *c,
- uint16_t max_names,
- uint16_t pattern_len,
- const char *pattern);
- /**
- * @brief get matching font names
- *
- * @param c The connection
- * @param max_names The maximum number of fonts to be returned.
- * @param pattern_len The length (in bytes) of \a pattern.
- * @param pattern A font pattern, for example "-misc-fixed-*".
- * \n
- * The asterisk (*) is a wildcard for any number of characters. The question mark
- * (?) is a wildcard for a single character. Use of uppercase or lowercase does
- * not matter.
- * @return A cookie
- *
- * Gets a list of available font names which match the given \a pattern.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_fonts_cookie_t
- xcb_list_fonts_unchecked (xcb_connection_t *c,
- uint16_t max_names,
- uint16_t pattern_len,
- const char *pattern);
- int
- xcb_list_fonts_names_length (const xcb_list_fonts_reply_t *R);
- xcb_str_iterator_t
- xcb_list_fonts_names_iterator (const xcb_list_fonts_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_fonts_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_fonts_reply_t *
- xcb_list_fonts_reply (xcb_connection_t *c,
- xcb_list_fonts_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_list_fonts_with_info_sizeof (const void *_buffer);
- /**
- * @brief get matching font names and information
- *
- * @param c The connection
- * @param max_names The maximum number of fonts to be returned.
- * @param pattern_len The length (in bytes) of \a pattern.
- * @param pattern A font pattern, for example "-misc-fixed-*".
- * \n
- * The asterisk (*) is a wildcard for any number of characters. The question mark
- * (?) is a wildcard for a single character. Use of uppercase or lowercase does
- * not matter.
- * @return A cookie
- *
- * Gets a list of available font names which match the given \a pattern.
- *
- */
- xcb_list_fonts_with_info_cookie_t
- xcb_list_fonts_with_info (xcb_connection_t *c,
- uint16_t max_names,
- uint16_t pattern_len,
- const char *pattern);
- /**
- * @brief get matching font names and information
- *
- * @param c The connection
- * @param max_names The maximum number of fonts to be returned.
- * @param pattern_len The length (in bytes) of \a pattern.
- * @param pattern A font pattern, for example "-misc-fixed-*".
- * \n
- * The asterisk (*) is a wildcard for any number of characters. The question mark
- * (?) is a wildcard for a single character. Use of uppercase or lowercase does
- * not matter.
- * @return A cookie
- *
- * Gets a list of available font names which match the given \a pattern.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_fonts_with_info_cookie_t
- xcb_list_fonts_with_info_unchecked (xcb_connection_t *c,
- uint16_t max_names,
- uint16_t pattern_len,
- const char *pattern);
- xcb_fontprop_t *
- xcb_list_fonts_with_info_properties (const xcb_list_fonts_with_info_reply_t *R);
- int
- xcb_list_fonts_with_info_properties_length (const xcb_list_fonts_with_info_reply_t *R);
- xcb_fontprop_iterator_t
- xcb_list_fonts_with_info_properties_iterator (const xcb_list_fonts_with_info_reply_t *R);
- char *
- xcb_list_fonts_with_info_name (const xcb_list_fonts_with_info_reply_t *R);
- int
- xcb_list_fonts_with_info_name_length (const xcb_list_fonts_with_info_reply_t *R);
- xcb_generic_iterator_t
- xcb_list_fonts_with_info_name_end (const xcb_list_fonts_with_info_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_fonts_with_info_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_fonts_with_info_reply_t *
- xcb_list_fonts_with_info_reply (xcb_connection_t *c,
- xcb_list_fonts_with_info_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_set_font_path_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_font_path_checked (xcb_connection_t *c,
- uint16_t font_qty,
- const xcb_str_t *font);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_font_path (xcb_connection_t *c,
- uint16_t font_qty,
- const xcb_str_t *font);
- int
- xcb_set_font_path_font_length (const xcb_set_font_path_request_t *R);
- xcb_str_iterator_t
- xcb_set_font_path_font_iterator (const xcb_set_font_path_request_t *R);
- int
- xcb_get_font_path_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_font_path_cookie_t
- xcb_get_font_path (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_font_path_cookie_t
- xcb_get_font_path_unchecked (xcb_connection_t *c);
- int
- xcb_get_font_path_path_length (const xcb_get_font_path_reply_t *R);
- xcb_str_iterator_t
- xcb_get_font_path_path_iterator (const xcb_get_font_path_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_font_path_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_font_path_reply_t *
- xcb_get_font_path_reply (xcb_connection_t *c,
- xcb_get_font_path_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief Creates a pixmap
- *
- * @param c The connection
- * @param depth TODO
- * @param pid The ID with which you will refer to the new pixmap, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the screen from.
- * @param width The width of the new pixmap.
- * @param height The height of the new pixmap.
- * @return A cookie
- *
- * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable
- * is on and only with drawables of the same \a depth.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_pixmap_checked (xcb_connection_t *c,
- uint8_t depth,
- xcb_pixmap_t pid,
- xcb_drawable_t drawable,
- uint16_t width,
- uint16_t height);
- /**
- * @brief Creates a pixmap
- *
- * @param c The connection
- * @param depth TODO
- * @param pid The ID with which you will refer to the new pixmap, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the screen from.
- * @param width The width of the new pixmap.
- * @param height The height of the new pixmap.
- * @return A cookie
- *
- * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable
- * is on and only with drawables of the same \a depth.
- *
- */
- xcb_void_cookie_t
- xcb_create_pixmap (xcb_connection_t *c,
- uint8_t depth,
- xcb_pixmap_t pid,
- xcb_drawable_t drawable,
- uint16_t width,
- uint16_t height);
- /**
- * @brief Destroys a pixmap
- *
- * @param c The connection
- * @param pixmap The pixmap to destroy.
- * @return A cookie
- *
- * Deletes the association between the pixmap ID and the pixmap. The pixmap
- * storage will be freed when there are no more references to it.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_free_pixmap_checked (xcb_connection_t *c,
- xcb_pixmap_t pixmap);
- /**
- * @brief Destroys a pixmap
- *
- * @param c The connection
- * @param pixmap The pixmap to destroy.
- * @return A cookie
- *
- * Deletes the association between the pixmap ID and the pixmap. The pixmap
- * storage will be freed when there are no more references to it.
- *
- */
- xcb_void_cookie_t
- xcb_free_pixmap (xcb_connection_t *c,
- xcb_pixmap_t pixmap);
- int
- xcb_create_gc_value_list_serialize (void **_buffer,
- uint32_t value_mask,
- const xcb_create_gc_value_list_t *_aux);
- int
- xcb_create_gc_value_list_unpack (const void *_buffer,
- uint32_t value_mask,
- xcb_create_gc_value_list_t *_aux);
- int
- xcb_create_gc_value_list_sizeof (const void *_buffer,
- uint32_t value_mask);
- int
- xcb_create_gc_sizeof (const void *_buffer);
- /**
- * @brief Creates a graphics context
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the graphics context, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the root/depth from.
- * @return A cookie
- *
- * Creates a graphics context. The graphics context can be used with any drawable
- * that has the same root and depth as the specified drawable.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_gc_checked (xcb_connection_t *c,
- xcb_gcontext_t cid,
- xcb_drawable_t drawable,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief Creates a graphics context
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the graphics context, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the root/depth from.
- * @return A cookie
- *
- * Creates a graphics context. The graphics context can be used with any drawable
- * that has the same root and depth as the specified drawable.
- *
- */
- xcb_void_cookie_t
- xcb_create_gc (xcb_connection_t *c,
- xcb_gcontext_t cid,
- xcb_drawable_t drawable,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief Creates a graphics context
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the graphics context, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the root/depth from.
- * @return A cookie
- *
- * Creates a graphics context. The graphics context can be used with any drawable
- * that has the same root and depth as the specified drawable.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_gc_aux_checked (xcb_connection_t *c,
- xcb_gcontext_t cid,
- xcb_drawable_t drawable,
- uint32_t value_mask,
- const xcb_create_gc_value_list_t *value_list);
- /**
- * @brief Creates a graphics context
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the graphics context, created by
- * `xcb_generate_id`.
- * @param drawable Drawable to get the root/depth from.
- * @return A cookie
- *
- * Creates a graphics context. The graphics context can be used with any drawable
- * that has the same root and depth as the specified drawable.
- *
- */
- xcb_void_cookie_t
- xcb_create_gc_aux (xcb_connection_t *c,
- xcb_gcontext_t cid,
- xcb_drawable_t drawable,
- uint32_t value_mask,
- const xcb_create_gc_value_list_t *value_list);
- void *
- xcb_create_gc_value_list (const xcb_create_gc_request_t *R);
- int
- xcb_change_gc_value_list_serialize (void **_buffer,
- uint32_t value_mask,
- const xcb_change_gc_value_list_t *_aux);
- int
- xcb_change_gc_value_list_unpack (const void *_buffer,
- uint32_t value_mask,
- xcb_change_gc_value_list_t *_aux);
- int
- xcb_change_gc_value_list_sizeof (const void *_buffer,
- uint32_t value_mask);
- int
- xcb_change_gc_sizeof (const void *_buffer);
- /**
- * @brief change graphics context components
- *
- * @param c The connection
- * @param gc The graphics context to change.
- * @param value_mask A bitmask of #xcb_gc_t values.
- * @param value_mask \n
- * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the components specified by \a value_mask for the specified graphics context.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_gc_checked (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief change graphics context components
- *
- * @param c The connection
- * @param gc The graphics context to change.
- * @param value_mask A bitmask of #xcb_gc_t values.
- * @param value_mask \n
- * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the components specified by \a value_mask for the specified graphics context.
- *
- */
- xcb_void_cookie_t
- xcb_change_gc (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint32_t value_mask,
- const void *value_list);
- /**
- * @brief change graphics context components
- *
- * @param c The connection
- * @param gc The graphics context to change.
- * @param value_mask A bitmask of #xcb_gc_t values.
- * @param value_mask \n
- * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the components specified by \a value_mask for the specified graphics context.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_gc_aux_checked (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint32_t value_mask,
- const xcb_change_gc_value_list_t *value_list);
- /**
- * @brief change graphics context components
- *
- * @param c The connection
- * @param gc The graphics context to change.
- * @param value_mask A bitmask of #xcb_gc_t values.
- * @param value_mask \n
- * @param value_list Values for each of the components specified in the bitmask \a value_mask. The
- * order has to correspond to the order of possible \a value_mask bits. See the
- * example.
- * @return A cookie
- *
- * Changes the components specified by \a value_mask for the specified graphics context.
- *
- */
- xcb_void_cookie_t
- xcb_change_gc_aux (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint32_t value_mask,
- const xcb_change_gc_value_list_t *value_list);
- void *
- xcb_change_gc_value_list (const xcb_change_gc_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_copy_gc_checked (xcb_connection_t *c,
- xcb_gcontext_t src_gc,
- xcb_gcontext_t dst_gc,
- uint32_t value_mask);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_copy_gc (xcb_connection_t *c,
- xcb_gcontext_t src_gc,
- xcb_gcontext_t dst_gc,
- uint32_t value_mask);
- int
- xcb_set_dashes_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_dashes_checked (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint16_t dash_offset,
- uint16_t dashes_len,
- const uint8_t *dashes);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_dashes (xcb_connection_t *c,
- xcb_gcontext_t gc,
- uint16_t dash_offset,
- uint16_t dashes_len,
- const uint8_t *dashes);
- uint8_t *
- xcb_set_dashes_dashes (const xcb_set_dashes_request_t *R);
- int
- xcb_set_dashes_dashes_length (const xcb_set_dashes_request_t *R);
- xcb_generic_iterator_t
- xcb_set_dashes_dashes_end (const xcb_set_dashes_request_t *R);
- int
- xcb_set_clip_rectangles_sizeof (const void *_buffer,
- uint32_t rectangles_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_clip_rectangles_checked (xcb_connection_t *c,
- uint8_t ordering,
- xcb_gcontext_t gc,
- int16_t clip_x_origin,
- int16_t clip_y_origin,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_clip_rectangles (xcb_connection_t *c,
- uint8_t ordering,
- xcb_gcontext_t gc,
- int16_t clip_x_origin,
- int16_t clip_y_origin,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- xcb_rectangle_t *
- xcb_set_clip_rectangles_rectangles (const xcb_set_clip_rectangles_request_t *R);
- int
- xcb_set_clip_rectangles_rectangles_length (const xcb_set_clip_rectangles_request_t *R);
- xcb_rectangle_iterator_t
- xcb_set_clip_rectangles_rectangles_iterator (const xcb_set_clip_rectangles_request_t *R);
- /**
- * @brief Destroys a graphics context
- *
- * @param c The connection
- * @param gc The graphics context to destroy.
- * @return A cookie
- *
- * Destroys the specified \a gc and all associated storage.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_free_gc_checked (xcb_connection_t *c,
- xcb_gcontext_t gc);
- /**
- * @brief Destroys a graphics context
- *
- * @param c The connection
- * @param gc The graphics context to destroy.
- * @return A cookie
- *
- * Destroys the specified \a gc and all associated storage.
- *
- */
- xcb_void_cookie_t
- xcb_free_gc (xcb_connection_t *c,
- xcb_gcontext_t gc);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_clear_area_checked (xcb_connection_t *c,
- uint8_t exposures,
- xcb_window_t window,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_clear_area (xcb_connection_t *c,
- uint8_t exposures,
- xcb_window_t window,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height);
- /**
- * @brief copy areas
- *
- * @param c The connection
- * @param src_drawable The source drawable (Window or Pixmap).
- * @param dst_drawable The destination drawable (Window or Pixmap).
- * @param gc The graphics context to use.
- * @param src_x The source X coordinate.
- * @param src_y The source Y coordinate.
- * @param dst_x The destination X coordinate.
- * @param dst_y The destination Y coordinate.
- * @param width The width of the area to copy (in pixels).
- * @param height The height of the area to copy (in pixels).
- * @return A cookie
- *
- * Copies the specified rectangle from \a src_drawable to \a dst_drawable.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_copy_area_checked (xcb_connection_t *c,
- xcb_drawable_t src_drawable,
- xcb_drawable_t dst_drawable,
- xcb_gcontext_t gc,
- int16_t src_x,
- int16_t src_y,
- int16_t dst_x,
- int16_t dst_y,
- uint16_t width,
- uint16_t height);
- /**
- * @brief copy areas
- *
- * @param c The connection
- * @param src_drawable The source drawable (Window or Pixmap).
- * @param dst_drawable The destination drawable (Window or Pixmap).
- * @param gc The graphics context to use.
- * @param src_x The source X coordinate.
- * @param src_y The source Y coordinate.
- * @param dst_x The destination X coordinate.
- * @param dst_y The destination Y coordinate.
- * @param width The width of the area to copy (in pixels).
- * @param height The height of the area to copy (in pixels).
- * @return A cookie
- *
- * Copies the specified rectangle from \a src_drawable to \a dst_drawable.
- *
- */
- xcb_void_cookie_t
- xcb_copy_area (xcb_connection_t *c,
- xcb_drawable_t src_drawable,
- xcb_drawable_t dst_drawable,
- xcb_gcontext_t gc,
- int16_t src_x,
- int16_t src_y,
- int16_t dst_x,
- int16_t dst_y,
- uint16_t width,
- uint16_t height);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_copy_plane_checked (xcb_connection_t *c,
- xcb_drawable_t src_drawable,
- xcb_drawable_t dst_drawable,
- xcb_gcontext_t gc,
- int16_t src_x,
- int16_t src_y,
- int16_t dst_x,
- int16_t dst_y,
- uint16_t width,
- uint16_t height,
- uint32_t bit_plane);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_copy_plane (xcb_connection_t *c,
- xcb_drawable_t src_drawable,
- xcb_drawable_t dst_drawable,
- xcb_gcontext_t gc,
- int16_t src_x,
- int16_t src_y,
- int16_t dst_x,
- int16_t dst_y,
- uint16_t width,
- uint16_t height,
- uint32_t bit_plane);
- int
- xcb_poly_point_sizeof (const void *_buffer,
- uint32_t points_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_point_checked (xcb_connection_t *c,
- uint8_t coordinate_mode,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t points_len,
- const xcb_point_t *points);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_point (xcb_connection_t *c,
- uint8_t coordinate_mode,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t points_len,
- const xcb_point_t *points);
- xcb_point_t *
- xcb_poly_point_points (const xcb_poly_point_request_t *R);
- int
- xcb_poly_point_points_length (const xcb_poly_point_request_t *R);
- xcb_point_iterator_t
- xcb_poly_point_points_iterator (const xcb_poly_point_request_t *R);
- int
- xcb_poly_line_sizeof (const void *_buffer,
- uint32_t points_len);
- /**
- * @brief draw lines
- *
- * @param c The connection
- * @param coordinate_mode A bitmask of #xcb_coord_mode_t values.
- * @param coordinate_mode \n
- * @param drawable The drawable to draw the line(s) on.
- * @param gc The graphics context to use.
- * @param points_len The number of `xcb_point_t` structures in \a points.
- * @param points An array of points.
- * @return A cookie
- *
- * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1])
- * in the \a points array. The lines are drawn in the order listed in the array.
- * They join correctly at all intermediate points, and if the first and last
- * points coincide, the first and last lines also join correctly. For any given
- * line, a pixel is not drawn more than once. If thin (zero line-width) lines
- * intersect, the intersecting pixels are drawn multiple times. If wide lines
- * intersect, the intersecting pixels are drawn only once, as though the entire
- * request were a single, filled shape.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_line_checked (xcb_connection_t *c,
- uint8_t coordinate_mode,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t points_len,
- const xcb_point_t *points);
- /**
- * @brief draw lines
- *
- * @param c The connection
- * @param coordinate_mode A bitmask of #xcb_coord_mode_t values.
- * @param coordinate_mode \n
- * @param drawable The drawable to draw the line(s) on.
- * @param gc The graphics context to use.
- * @param points_len The number of `xcb_point_t` structures in \a points.
- * @param points An array of points.
- * @return A cookie
- *
- * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1])
- * in the \a points array. The lines are drawn in the order listed in the array.
- * They join correctly at all intermediate points, and if the first and last
- * points coincide, the first and last lines also join correctly. For any given
- * line, a pixel is not drawn more than once. If thin (zero line-width) lines
- * intersect, the intersecting pixels are drawn multiple times. If wide lines
- * intersect, the intersecting pixels are drawn only once, as though the entire
- * request were a single, filled shape.
- *
- */
- xcb_void_cookie_t
- xcb_poly_line (xcb_connection_t *c,
- uint8_t coordinate_mode,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t points_len,
- const xcb_point_t *points);
- xcb_point_t *
- xcb_poly_line_points (const xcb_poly_line_request_t *R);
- int
- xcb_poly_line_points_length (const xcb_poly_line_request_t *R);
- xcb_point_iterator_t
- xcb_poly_line_points_iterator (const xcb_poly_line_request_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_segment_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_segment_t)
- */
- void
- xcb_segment_next (xcb_segment_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_segment_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_segment_end (xcb_segment_iterator_t i);
- int
- xcb_poly_segment_sizeof (const void *_buffer,
- uint32_t segments_len);
- /**
- * @brief draw lines
- *
- * @param c The connection
- * @param drawable A drawable (Window or Pixmap) to draw on.
- * @param gc The graphics context to use.
- * \n
- * TODO: document which attributes of a gc are used
- * @param segments_len The number of `xcb_segment_t` structures in \a segments.
- * @param segments An array of `xcb_segment_t` structures.
- * @return A cookie
- *
- * Draws multiple, unconnected lines. For each segment, a line is drawn between
- * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of
- * `xcb_segment_t` structures and does not perform joining at coincident
- * endpoints. For any given line, a pixel is not drawn more than once. If lines
- * intersect, the intersecting pixels are drawn multiple times.
- *
- * TODO: include the xcb_segment_t data structure
- *
- * TODO: an example
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_segment_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t segments_len,
- const xcb_segment_t *segments);
- /**
- * @brief draw lines
- *
- * @param c The connection
- * @param drawable A drawable (Window or Pixmap) to draw on.
- * @param gc The graphics context to use.
- * \n
- * TODO: document which attributes of a gc are used
- * @param segments_len The number of `xcb_segment_t` structures in \a segments.
- * @param segments An array of `xcb_segment_t` structures.
- * @return A cookie
- *
- * Draws multiple, unconnected lines. For each segment, a line is drawn between
- * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of
- * `xcb_segment_t` structures and does not perform joining at coincident
- * endpoints. For any given line, a pixel is not drawn more than once. If lines
- * intersect, the intersecting pixels are drawn multiple times.
- *
- * TODO: include the xcb_segment_t data structure
- *
- * TODO: an example
- *
- */
- xcb_void_cookie_t
- xcb_poly_segment (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t segments_len,
- const xcb_segment_t *segments);
- xcb_segment_t *
- xcb_poly_segment_segments (const xcb_poly_segment_request_t *R);
- int
- xcb_poly_segment_segments_length (const xcb_poly_segment_request_t *R);
- xcb_segment_iterator_t
- xcb_poly_segment_segments_iterator (const xcb_poly_segment_request_t *R);
- int
- xcb_poly_rectangle_sizeof (const void *_buffer,
- uint32_t rectangles_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_rectangle_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_rectangle (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- xcb_rectangle_t *
- xcb_poly_rectangle_rectangles (const xcb_poly_rectangle_request_t *R);
- int
- xcb_poly_rectangle_rectangles_length (const xcb_poly_rectangle_request_t *R);
- xcb_rectangle_iterator_t
- xcb_poly_rectangle_rectangles_iterator (const xcb_poly_rectangle_request_t *R);
- int
- xcb_poly_arc_sizeof (const void *_buffer,
- uint32_t arcs_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_arc_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t arcs_len,
- const xcb_arc_t *arcs);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_arc (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t arcs_len,
- const xcb_arc_t *arcs);
- xcb_arc_t *
- xcb_poly_arc_arcs (const xcb_poly_arc_request_t *R);
- int
- xcb_poly_arc_arcs_length (const xcb_poly_arc_request_t *R);
- xcb_arc_iterator_t
- xcb_poly_arc_arcs_iterator (const xcb_poly_arc_request_t *R);
- int
- xcb_fill_poly_sizeof (const void *_buffer,
- uint32_t points_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_fill_poly_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint8_t shape,
- uint8_t coordinate_mode,
- uint32_t points_len,
- const xcb_point_t *points);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_fill_poly (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint8_t shape,
- uint8_t coordinate_mode,
- uint32_t points_len,
- const xcb_point_t *points);
- xcb_point_t *
- xcb_fill_poly_points (const xcb_fill_poly_request_t *R);
- int
- xcb_fill_poly_points_length (const xcb_fill_poly_request_t *R);
- xcb_point_iterator_t
- xcb_fill_poly_points_iterator (const xcb_fill_poly_request_t *R);
- int
- xcb_poly_fill_rectangle_sizeof (const void *_buffer,
- uint32_t rectangles_len);
- /**
- * @brief Fills rectangles
- *
- * @param c The connection
- * @param drawable The drawable (Window or Pixmap) to draw on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: function, plane-mask,
- * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * \n
- * The following graphics context mode-dependent components are used:
- * foreground, background, tile, stipple, tile-stipple-x-origin, and
- * tile-stipple-y-origin.
- * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles.
- * @param rectangles The rectangles to fill.
- * @return A cookie
- *
- * Fills the specified rectangle(s) in the order listed in the array. For any
- * given rectangle, each pixel is not drawn more than once. If rectangles
- * intersect, the intersecting pixels are drawn multiple times.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_fill_rectangle_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- /**
- * @brief Fills rectangles
- *
- * @param c The connection
- * @param drawable The drawable (Window or Pixmap) to draw on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: function, plane-mask,
- * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * \n
- * The following graphics context mode-dependent components are used:
- * foreground, background, tile, stipple, tile-stipple-x-origin, and
- * tile-stipple-y-origin.
- * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles.
- * @param rectangles The rectangles to fill.
- * @return A cookie
- *
- * Fills the specified rectangle(s) in the order listed in the array. For any
- * given rectangle, each pixel is not drawn more than once. If rectangles
- * intersect, the intersecting pixels are drawn multiple times.
- *
- */
- xcb_void_cookie_t
- xcb_poly_fill_rectangle (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t rectangles_len,
- const xcb_rectangle_t *rectangles);
- xcb_rectangle_t *
- xcb_poly_fill_rectangle_rectangles (const xcb_poly_fill_rectangle_request_t *R);
- int
- xcb_poly_fill_rectangle_rectangles_length (const xcb_poly_fill_rectangle_request_t *R);
- xcb_rectangle_iterator_t
- xcb_poly_fill_rectangle_rectangles_iterator (const xcb_poly_fill_rectangle_request_t *R);
- int
- xcb_poly_fill_arc_sizeof (const void *_buffer,
- uint32_t arcs_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_fill_arc_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t arcs_len,
- const xcb_arc_t *arcs);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_fill_arc (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint32_t arcs_len,
- const xcb_arc_t *arcs);
- xcb_arc_t *
- xcb_poly_fill_arc_arcs (const xcb_poly_fill_arc_request_t *R);
- int
- xcb_poly_fill_arc_arcs_length (const xcb_poly_fill_arc_request_t *R);
- xcb_arc_iterator_t
- xcb_poly_fill_arc_arcs_iterator (const xcb_poly_fill_arc_request_t *R);
- int
- xcb_put_image_sizeof (const void *_buffer,
- uint32_t data_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_put_image_checked (xcb_connection_t *c,
- uint8_t format,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint16_t width,
- uint16_t height,
- int16_t dst_x,
- int16_t dst_y,
- uint8_t left_pad,
- uint8_t depth,
- uint32_t data_len,
- const uint8_t *data);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_put_image (xcb_connection_t *c,
- uint8_t format,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- uint16_t width,
- uint16_t height,
- int16_t dst_x,
- int16_t dst_y,
- uint8_t left_pad,
- uint8_t depth,
- uint32_t data_len,
- const uint8_t *data);
- uint8_t *
- xcb_put_image_data (const xcb_put_image_request_t *R);
- int
- xcb_put_image_data_length (const xcb_put_image_request_t *R);
- xcb_generic_iterator_t
- xcb_put_image_data_end (const xcb_put_image_request_t *R);
- int
- xcb_get_image_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_image_cookie_t
- xcb_get_image (xcb_connection_t *c,
- uint8_t format,
- xcb_drawable_t drawable,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint32_t plane_mask);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_image_cookie_t
- xcb_get_image_unchecked (xcb_connection_t *c,
- uint8_t format,
- xcb_drawable_t drawable,
- int16_t x,
- int16_t y,
- uint16_t width,
- uint16_t height,
- uint32_t plane_mask);
- uint8_t *
- xcb_get_image_data (const xcb_get_image_reply_t *R);
- int
- xcb_get_image_data_length (const xcb_get_image_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_image_data_end (const xcb_get_image_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_image_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_image_reply_t *
- xcb_get_image_reply (xcb_connection_t *c,
- xcb_get_image_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_poly_text_8_sizeof (const void *_buffer,
- uint32_t items_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_text_8_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- uint32_t items_len,
- const uint8_t *items);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_text_8 (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- uint32_t items_len,
- const uint8_t *items);
- uint8_t *
- xcb_poly_text_8_items (const xcb_poly_text_8_request_t *R);
- int
- xcb_poly_text_8_items_length (const xcb_poly_text_8_request_t *R);
- xcb_generic_iterator_t
- xcb_poly_text_8_items_end (const xcb_poly_text_8_request_t *R);
- int
- xcb_poly_text_16_sizeof (const void *_buffer,
- uint32_t items_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_poly_text_16_checked (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- uint32_t items_len,
- const uint8_t *items);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_poly_text_16 (xcb_connection_t *c,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- uint32_t items_len,
- const uint8_t *items);
- uint8_t *
- xcb_poly_text_16_items (const xcb_poly_text_16_request_t *R);
- int
- xcb_poly_text_16_items_length (const xcb_poly_text_16_request_t *R);
- xcb_generic_iterator_t
- xcb_poly_text_16_items_end (const xcb_poly_text_16_request_t *R);
- int
- xcb_image_text_8_sizeof (const void *_buffer);
- /**
- * @brief Draws text
- *
- * @param c The connection
- * @param string_len The length of the \a string. Note that this parameter limited by 255 due to
- * using 8 bits!
- * @param drawable The drawable (Window or Pixmap) to draw text on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: plane-mask, foreground,
- * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * @param x The x coordinate of the first character, relative to the origin of \a drawable.
- * @param y The y coordinate of the first character, relative to the origin of \a drawable.
- * @param string The string to draw. Only the first 255 characters are relevant due to the data
- * type of \a string_len.
- * @return A cookie
- *
- * Fills the destination rectangle with the background pixel from \a gc, then
- * paints the text with the foreground pixel from \a gc. The upper-left corner of
- * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
- * the height is font-ascent + font-descent. The overall-width, font-ascent and
- * font-descent are as returned by `xcb_query_text_extents` (TODO).
- *
- * Note that using X core fonts is deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_image_text_8_checked (xcb_connection_t *c,
- uint8_t string_len,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- const char *string);
- /**
- * @brief Draws text
- *
- * @param c The connection
- * @param string_len The length of the \a string. Note that this parameter limited by 255 due to
- * using 8 bits!
- * @param drawable The drawable (Window or Pixmap) to draw text on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: plane-mask, foreground,
- * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * @param x The x coordinate of the first character, relative to the origin of \a drawable.
- * @param y The y coordinate of the first character, relative to the origin of \a drawable.
- * @param string The string to draw. Only the first 255 characters are relevant due to the data
- * type of \a string_len.
- * @return A cookie
- *
- * Fills the destination rectangle with the background pixel from \a gc, then
- * paints the text with the foreground pixel from \a gc. The upper-left corner of
- * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
- * the height is font-ascent + font-descent. The overall-width, font-ascent and
- * font-descent are as returned by `xcb_query_text_extents` (TODO).
- *
- * Note that using X core fonts is deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- */
- xcb_void_cookie_t
- xcb_image_text_8 (xcb_connection_t *c,
- uint8_t string_len,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- const char *string);
- char *
- xcb_image_text_8_string (const xcb_image_text_8_request_t *R);
- int
- xcb_image_text_8_string_length (const xcb_image_text_8_request_t *R);
- xcb_generic_iterator_t
- xcb_image_text_8_string_end (const xcb_image_text_8_request_t *R);
- int
- xcb_image_text_16_sizeof (const void *_buffer);
- /**
- * @brief Draws text
- *
- * @param c The connection
- * @param string_len The length of the \a string in characters. Note that this parameter limited by
- * 255 due to using 8 bits!
- * @param drawable The drawable (Window or Pixmap) to draw text on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: plane-mask, foreground,
- * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * @param x The x coordinate of the first character, relative to the origin of \a drawable.
- * @param y The y coordinate of the first character, relative to the origin of \a drawable.
- * @param string The string to draw. Only the first 255 characters are relevant due to the data
- * type of \a string_len. Every character uses 2 bytes (hence the 16 in this
- * request's name).
- * @return A cookie
- *
- * Fills the destination rectangle with the background pixel from \a gc, then
- * paints the text with the foreground pixel from \a gc. The upper-left corner of
- * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
- * the height is font-ascent + font-descent. The overall-width, font-ascent and
- * font-descent are as returned by `xcb_query_text_extents` (TODO).
- *
- * Note that using X core fonts is deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_image_text_16_checked (xcb_connection_t *c,
- uint8_t string_len,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- const xcb_char2b_t *string);
- /**
- * @brief Draws text
- *
- * @param c The connection
- * @param string_len The length of the \a string in characters. Note that this parameter limited by
- * 255 due to using 8 bits!
- * @param drawable The drawable (Window or Pixmap) to draw text on.
- * @param gc The graphics context to use.
- * \n
- * The following graphics context components are used: plane-mask, foreground,
- * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.
- * @param x The x coordinate of the first character, relative to the origin of \a drawable.
- * @param y The y coordinate of the first character, relative to the origin of \a drawable.
- * @param string The string to draw. Only the first 255 characters are relevant due to the data
- * type of \a string_len. Every character uses 2 bytes (hence the 16 in this
- * request's name).
- * @return A cookie
- *
- * Fills the destination rectangle with the background pixel from \a gc, then
- * paints the text with the foreground pixel from \a gc. The upper-left corner of
- * the filled rectangle is at [x, y - font-ascent]. The width is overall-width,
- * the height is font-ascent + font-descent. The overall-width, font-ascent and
- * font-descent are as returned by `xcb_query_text_extents` (TODO).
- *
- * Note that using X core fonts is deprecated (but still supported) in favor of
- * client-side rendering using Xft.
- *
- */
- xcb_void_cookie_t
- xcb_image_text_16 (xcb_connection_t *c,
- uint8_t string_len,
- xcb_drawable_t drawable,
- xcb_gcontext_t gc,
- int16_t x,
- int16_t y,
- const xcb_char2b_t *string);
- xcb_char2b_t *
- xcb_image_text_16_string (const xcb_image_text_16_request_t *R);
- int
- xcb_image_text_16_string_length (const xcb_image_text_16_request_t *R);
- xcb_char2b_iterator_t
- xcb_image_text_16_string_iterator (const xcb_image_text_16_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_colormap_checked (xcb_connection_t *c,
- uint8_t alloc,
- xcb_colormap_t mid,
- xcb_window_t window,
- xcb_visualid_t visual);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_create_colormap (xcb_connection_t *c,
- uint8_t alloc,
- xcb_colormap_t mid,
- xcb_window_t window,
- xcb_visualid_t visual);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_free_colormap_checked (xcb_connection_t *c,
- xcb_colormap_t cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_free_colormap (xcb_connection_t *c,
- xcb_colormap_t cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_copy_colormap_and_free_checked (xcb_connection_t *c,
- xcb_colormap_t mid,
- xcb_colormap_t src_cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_copy_colormap_and_free (xcb_connection_t *c,
- xcb_colormap_t mid,
- xcb_colormap_t src_cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_install_colormap_checked (xcb_connection_t *c,
- xcb_colormap_t cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_install_colormap (xcb_connection_t *c,
- xcb_colormap_t cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_uninstall_colormap_checked (xcb_connection_t *c,
- xcb_colormap_t cmap);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_uninstall_colormap (xcb_connection_t *c,
- xcb_colormap_t cmap);
- int
- xcb_list_installed_colormaps_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_list_installed_colormaps_cookie_t
- xcb_list_installed_colormaps (xcb_connection_t *c,
- xcb_window_t window);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_installed_colormaps_cookie_t
- xcb_list_installed_colormaps_unchecked (xcb_connection_t *c,
- xcb_window_t window);
- xcb_colormap_t *
- xcb_list_installed_colormaps_cmaps (const xcb_list_installed_colormaps_reply_t *R);
- int
- xcb_list_installed_colormaps_cmaps_length (const xcb_list_installed_colormaps_reply_t *R);
- xcb_generic_iterator_t
- xcb_list_installed_colormaps_cmaps_end (const xcb_list_installed_colormaps_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_installed_colormaps_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_installed_colormaps_reply_t *
- xcb_list_installed_colormaps_reply (xcb_connection_t *c,
- xcb_list_installed_colormaps_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- * @brief Allocate a color
- *
- * @param c The connection
- * @param cmap TODO
- * @param red The red value of your color.
- * @param green The green value of your color.
- * @param blue The blue value of your color.
- * @return A cookie
- *
- * Allocates a read-only colormap entry corresponding to the closest RGB value
- * supported by the hardware. If you are using TrueColor, you can take a shortcut
- * and directly calculate the color pixel value to avoid the round trip. But, for
- * example, on 16-bit color setups (VNC), you can easily get the closest supported
- * RGB value to the RGB value you are specifying.
- *
- */
- xcb_alloc_color_cookie_t
- xcb_alloc_color (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t red,
- uint16_t green,
- uint16_t blue);
- /**
- * @brief Allocate a color
- *
- * @param c The connection
- * @param cmap TODO
- * @param red The red value of your color.
- * @param green The green value of your color.
- * @param blue The blue value of your color.
- * @return A cookie
- *
- * Allocates a read-only colormap entry corresponding to the closest RGB value
- * supported by the hardware. If you are using TrueColor, you can take a shortcut
- * and directly calculate the color pixel value to avoid the round trip. But, for
- * example, on 16-bit color setups (VNC), you can easily get the closest supported
- * RGB value to the RGB value you are specifying.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_alloc_color_cookie_t
- xcb_alloc_color_unchecked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t red,
- uint16_t green,
- uint16_t blue);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_alloc_color_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_alloc_color_reply_t *
- xcb_alloc_color_reply (xcb_connection_t *c,
- xcb_alloc_color_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_alloc_named_color_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_alloc_named_color_cookie_t
- xcb_alloc_named_color (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t name_len,
- const char *name);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_alloc_named_color_cookie_t
- xcb_alloc_named_color_unchecked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t name_len,
- const char *name);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_alloc_named_color_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_alloc_named_color_reply_t *
- xcb_alloc_named_color_reply (xcb_connection_t *c,
- xcb_alloc_named_color_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_alloc_color_cells_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_alloc_color_cells_cookie_t
- xcb_alloc_color_cells (xcb_connection_t *c,
- uint8_t contiguous,
- xcb_colormap_t cmap,
- uint16_t colors,
- uint16_t planes);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_alloc_color_cells_cookie_t
- xcb_alloc_color_cells_unchecked (xcb_connection_t *c,
- uint8_t contiguous,
- xcb_colormap_t cmap,
- uint16_t colors,
- uint16_t planes);
- uint32_t *
- xcb_alloc_color_cells_pixels (const xcb_alloc_color_cells_reply_t *R);
- int
- xcb_alloc_color_cells_pixels_length (const xcb_alloc_color_cells_reply_t *R);
- xcb_generic_iterator_t
- xcb_alloc_color_cells_pixels_end (const xcb_alloc_color_cells_reply_t *R);
- uint32_t *
- xcb_alloc_color_cells_masks (const xcb_alloc_color_cells_reply_t *R);
- int
- xcb_alloc_color_cells_masks_length (const xcb_alloc_color_cells_reply_t *R);
- xcb_generic_iterator_t
- xcb_alloc_color_cells_masks_end (const xcb_alloc_color_cells_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_alloc_color_cells_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_alloc_color_cells_reply_t *
- xcb_alloc_color_cells_reply (xcb_connection_t *c,
- xcb_alloc_color_cells_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_alloc_color_planes_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_alloc_color_planes_cookie_t
- xcb_alloc_color_planes (xcb_connection_t *c,
- uint8_t contiguous,
- xcb_colormap_t cmap,
- uint16_t colors,
- uint16_t reds,
- uint16_t greens,
- uint16_t blues);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_alloc_color_planes_cookie_t
- xcb_alloc_color_planes_unchecked (xcb_connection_t *c,
- uint8_t contiguous,
- xcb_colormap_t cmap,
- uint16_t colors,
- uint16_t reds,
- uint16_t greens,
- uint16_t blues);
- uint32_t *
- xcb_alloc_color_planes_pixels (const xcb_alloc_color_planes_reply_t *R);
- int
- xcb_alloc_color_planes_pixels_length (const xcb_alloc_color_planes_reply_t *R);
- xcb_generic_iterator_t
- xcb_alloc_color_planes_pixels_end (const xcb_alloc_color_planes_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_alloc_color_planes_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_alloc_color_planes_reply_t *
- xcb_alloc_color_planes_reply (xcb_connection_t *c,
- xcb_alloc_color_planes_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_free_colors_sizeof (const void *_buffer,
- uint32_t pixels_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_free_colors_checked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t plane_mask,
- uint32_t pixels_len,
- const uint32_t *pixels);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_free_colors (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t plane_mask,
- uint32_t pixels_len,
- const uint32_t *pixels);
- uint32_t *
- xcb_free_colors_pixels (const xcb_free_colors_request_t *R);
- int
- xcb_free_colors_pixels_length (const xcb_free_colors_request_t *R);
- xcb_generic_iterator_t
- xcb_free_colors_pixels_end (const xcb_free_colors_request_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_coloritem_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_coloritem_t)
- */
- void
- xcb_coloritem_next (xcb_coloritem_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_coloritem_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_coloritem_end (xcb_coloritem_iterator_t i);
- int
- xcb_store_colors_sizeof (const void *_buffer,
- uint32_t items_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_store_colors_checked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t items_len,
- const xcb_coloritem_t *items);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_store_colors (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t items_len,
- const xcb_coloritem_t *items);
- xcb_coloritem_t *
- xcb_store_colors_items (const xcb_store_colors_request_t *R);
- int
- xcb_store_colors_items_length (const xcb_store_colors_request_t *R);
- xcb_coloritem_iterator_t
- xcb_store_colors_items_iterator (const xcb_store_colors_request_t *R);
- int
- xcb_store_named_color_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_store_named_color_checked (xcb_connection_t *c,
- uint8_t flags,
- xcb_colormap_t cmap,
- uint32_t pixel,
- uint16_t name_len,
- const char *name);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_store_named_color (xcb_connection_t *c,
- uint8_t flags,
- xcb_colormap_t cmap,
- uint32_t pixel,
- uint16_t name_len,
- const char *name);
- char *
- xcb_store_named_color_name (const xcb_store_named_color_request_t *R);
- int
- xcb_store_named_color_name_length (const xcb_store_named_color_request_t *R);
- xcb_generic_iterator_t
- xcb_store_named_color_name_end (const xcb_store_named_color_request_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_rgb_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_rgb_t)
- */
- void
- xcb_rgb_next (xcb_rgb_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_rgb_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_rgb_end (xcb_rgb_iterator_t i);
- int
- xcb_query_colors_sizeof (const void *_buffer,
- uint32_t pixels_len);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_query_colors_cookie_t
- xcb_query_colors (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t pixels_len,
- const uint32_t *pixels);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_colors_cookie_t
- xcb_query_colors_unchecked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint32_t pixels_len,
- const uint32_t *pixels);
- xcb_rgb_t *
- xcb_query_colors_colors (const xcb_query_colors_reply_t *R);
- int
- xcb_query_colors_colors_length (const xcb_query_colors_reply_t *R);
- xcb_rgb_iterator_t
- xcb_query_colors_colors_iterator (const xcb_query_colors_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_colors_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_colors_reply_t *
- xcb_query_colors_reply (xcb_connection_t *c,
- xcb_query_colors_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_lookup_color_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_lookup_color_cookie_t
- xcb_lookup_color (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t name_len,
- const char *name);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_lookup_color_cookie_t
- xcb_lookup_color_unchecked (xcb_connection_t *c,
- xcb_colormap_t cmap,
- uint16_t name_len,
- const char *name);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_lookup_color_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_lookup_color_reply_t *
- xcb_lookup_color_reply (xcb_connection_t *c,
- xcb_lookup_color_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_cursor_checked (xcb_connection_t *c,
- xcb_cursor_t cid,
- xcb_pixmap_t source,
- xcb_pixmap_t mask,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue,
- uint16_t x,
- uint16_t y);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_create_cursor (xcb_connection_t *c,
- xcb_cursor_t cid,
- xcb_pixmap_t source,
- xcb_pixmap_t mask,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue,
- uint16_t x,
- uint16_t y);
- /**
- * @brief create cursor
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`.
- * @param source_font In which font to look for the cursor glyph.
- * @param mask_font In which font to look for the mask glyph.
- * @param source_char The glyph of \a source_font to use.
- * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define
- * which source pixels are displayed. All pixels which are set to 0 are not
- * displayed.
- * @param fore_red The red value of the foreground color.
- * @param fore_green The green value of the foreground color.
- * @param fore_blue The blue value of the foreground color.
- * @param back_red The red value of the background color.
- * @param back_green The green value of the background color.
- * @param back_blue The blue value of the background color.
- * @return A cookie
- *
- * Creates a cursor from a font glyph. X provides a set of standard cursor shapes
- * in a special font named cursor. Applications are encouraged to use this
- * interface for their cursors because the font can be customized for the
- * individual display type.
- *
- * All pixels which are set to 1 in the source will use the foreground color (as
- * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0
- * will use the background color (as specified by \a back_red, \a back_green and
- * \a back_blue).
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_create_glyph_cursor_checked (xcb_connection_t *c,
- xcb_cursor_t cid,
- xcb_font_t source_font,
- xcb_font_t mask_font,
- uint16_t source_char,
- uint16_t mask_char,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue);
- /**
- * @brief create cursor
- *
- * @param c The connection
- * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`.
- * @param source_font In which font to look for the cursor glyph.
- * @param mask_font In which font to look for the mask glyph.
- * @param source_char The glyph of \a source_font to use.
- * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define
- * which source pixels are displayed. All pixels which are set to 0 are not
- * displayed.
- * @param fore_red The red value of the foreground color.
- * @param fore_green The green value of the foreground color.
- * @param fore_blue The blue value of the foreground color.
- * @param back_red The red value of the background color.
- * @param back_green The green value of the background color.
- * @param back_blue The blue value of the background color.
- * @return A cookie
- *
- * Creates a cursor from a font glyph. X provides a set of standard cursor shapes
- * in a special font named cursor. Applications are encouraged to use this
- * interface for their cursors because the font can be customized for the
- * individual display type.
- *
- * All pixels which are set to 1 in the source will use the foreground color (as
- * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0
- * will use the background color (as specified by \a back_red, \a back_green and
- * \a back_blue).
- *
- */
- xcb_void_cookie_t
- xcb_create_glyph_cursor (xcb_connection_t *c,
- xcb_cursor_t cid,
- xcb_font_t source_font,
- xcb_font_t mask_font,
- uint16_t source_char,
- uint16_t mask_char,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue);
- /**
- * @brief Deletes a cursor
- *
- * @param c The connection
- * @param cursor The cursor to destroy.
- * @return A cookie
- *
- * Deletes the association between the cursor resource ID and the specified
- * cursor. The cursor is freed when no other resource references it.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_free_cursor_checked (xcb_connection_t *c,
- xcb_cursor_t cursor);
- /**
- * @brief Deletes a cursor
- *
- * @param c The connection
- * @param cursor The cursor to destroy.
- * @return A cookie
- *
- * Deletes the association between the cursor resource ID and the specified
- * cursor. The cursor is freed when no other resource references it.
- *
- */
- xcb_void_cookie_t
- xcb_free_cursor (xcb_connection_t *c,
- xcb_cursor_t cursor);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_recolor_cursor_checked (xcb_connection_t *c,
- xcb_cursor_t cursor,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_recolor_cursor (xcb_connection_t *c,
- xcb_cursor_t cursor,
- uint16_t fore_red,
- uint16_t fore_green,
- uint16_t fore_blue,
- uint16_t back_red,
- uint16_t back_green,
- uint16_t back_blue);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_query_best_size_cookie_t
- xcb_query_best_size (xcb_connection_t *c,
- uint8_t _class,
- xcb_drawable_t drawable,
- uint16_t width,
- uint16_t height);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_best_size_cookie_t
- xcb_query_best_size_unchecked (xcb_connection_t *c,
- uint8_t _class,
- xcb_drawable_t drawable,
- uint16_t width,
- uint16_t height);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_best_size_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_best_size_reply_t *
- xcb_query_best_size_reply (xcb_connection_t *c,
- xcb_query_best_size_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_query_extension_sizeof (const void *_buffer);
- /**
- * @brief check if extension is present
- *
- * @param c The connection
- * @param name_len The length of \a name in bytes.
- * @param name The name of the extension to query, for example "RANDR". This is case
- * sensitive!
- * @return A cookie
- *
- * Determines if the specified extension is present on this X11 server.
- *
- * Every extension has a unique `major_opcode` to identify requests, the minor
- * opcodes and request formats are extension-specific. If the extension provides
- * events and errors, the `first_event` and `first_error` fields in the reply are
- * set accordingly.
- *
- * There should rarely be a need to use this request directly, XCB provides the
- * `xcb_get_extension_data` function instead.
- *
- */
- xcb_query_extension_cookie_t
- xcb_query_extension (xcb_connection_t *c,
- uint16_t name_len,
- const char *name);
- /**
- * @brief check if extension is present
- *
- * @param c The connection
- * @param name_len The length of \a name in bytes.
- * @param name The name of the extension to query, for example "RANDR". This is case
- * sensitive!
- * @return A cookie
- *
- * Determines if the specified extension is present on this X11 server.
- *
- * Every extension has a unique `major_opcode` to identify requests, the minor
- * opcodes and request formats are extension-specific. If the extension provides
- * events and errors, the `first_event` and `first_error` fields in the reply are
- * set accordingly.
- *
- * There should rarely be a need to use this request directly, XCB provides the
- * `xcb_get_extension_data` function instead.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_query_extension_cookie_t
- xcb_query_extension_unchecked (xcb_connection_t *c,
- uint16_t name_len,
- const char *name);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_query_extension_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_query_extension_reply_t *
- xcb_query_extension_reply (xcb_connection_t *c,
- xcb_query_extension_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_list_extensions_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_list_extensions_cookie_t
- xcb_list_extensions (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_extensions_cookie_t
- xcb_list_extensions_unchecked (xcb_connection_t *c);
- int
- xcb_list_extensions_names_length (const xcb_list_extensions_reply_t *R);
- xcb_str_iterator_t
- xcb_list_extensions_names_iterator (const xcb_list_extensions_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_extensions_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_extensions_reply_t *
- xcb_list_extensions_reply (xcb_connection_t *c,
- xcb_list_extensions_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_change_keyboard_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_keyboard_mapping_checked (xcb_connection_t *c,
- uint8_t keycode_count,
- xcb_keycode_t first_keycode,
- uint8_t keysyms_per_keycode,
- const xcb_keysym_t *keysyms);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_keyboard_mapping (xcb_connection_t *c,
- uint8_t keycode_count,
- xcb_keycode_t first_keycode,
- uint8_t keysyms_per_keycode,
- const xcb_keysym_t *keysyms);
- xcb_keysym_t *
- xcb_change_keyboard_mapping_keysyms (const xcb_change_keyboard_mapping_request_t *R);
- int
- xcb_change_keyboard_mapping_keysyms_length (const xcb_change_keyboard_mapping_request_t *R);
- xcb_generic_iterator_t
- xcb_change_keyboard_mapping_keysyms_end (const xcb_change_keyboard_mapping_request_t *R);
- int
- xcb_get_keyboard_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_keyboard_mapping_cookie_t
- xcb_get_keyboard_mapping (xcb_connection_t *c,
- xcb_keycode_t first_keycode,
- uint8_t count);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_keyboard_mapping_cookie_t
- xcb_get_keyboard_mapping_unchecked (xcb_connection_t *c,
- xcb_keycode_t first_keycode,
- uint8_t count);
- xcb_keysym_t *
- xcb_get_keyboard_mapping_keysyms (const xcb_get_keyboard_mapping_reply_t *R);
- int
- xcb_get_keyboard_mapping_keysyms_length (const xcb_get_keyboard_mapping_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_keyboard_mapping_keysyms_end (const xcb_get_keyboard_mapping_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_keyboard_mapping_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_keyboard_mapping_reply_t *
- xcb_get_keyboard_mapping_reply (xcb_connection_t *c,
- xcb_get_keyboard_mapping_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_change_keyboard_control_value_list_serialize (void **_buffer,
- uint32_t value_mask,
- const xcb_change_keyboard_control_value_list_t *_aux);
- int
- xcb_change_keyboard_control_value_list_unpack (const void *_buffer,
- uint32_t value_mask,
- xcb_change_keyboard_control_value_list_t *_aux);
- int
- xcb_change_keyboard_control_value_list_sizeof (const void *_buffer,
- uint32_t value_mask);
- int
- xcb_change_keyboard_control_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_keyboard_control_checked (xcb_connection_t *c,
- uint32_t value_mask,
- const void *value_list);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_keyboard_control (xcb_connection_t *c,
- uint32_t value_mask,
- const void *value_list);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_keyboard_control_aux_checked (xcb_connection_t *c,
- uint32_t value_mask,
- const xcb_change_keyboard_control_value_list_t *value_list);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_keyboard_control_aux (xcb_connection_t *c,
- uint32_t value_mask,
- const xcb_change_keyboard_control_value_list_t *value_list);
- void *
- xcb_change_keyboard_control_value_list (const xcb_change_keyboard_control_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_keyboard_control_cookie_t
- xcb_get_keyboard_control (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_keyboard_control_cookie_t
- xcb_get_keyboard_control_unchecked (xcb_connection_t *c);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_keyboard_control_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_keyboard_control_reply_t *
- xcb_get_keyboard_control_reply (xcb_connection_t *c,
- xcb_get_keyboard_control_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_bell_checked (xcb_connection_t *c,
- int8_t percent);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_bell (xcb_connection_t *c,
- int8_t percent);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_pointer_control_checked (xcb_connection_t *c,
- int16_t acceleration_numerator,
- int16_t acceleration_denominator,
- int16_t threshold,
- uint8_t do_acceleration,
- uint8_t do_threshold);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_pointer_control (xcb_connection_t *c,
- int16_t acceleration_numerator,
- int16_t acceleration_denominator,
- int16_t threshold,
- uint8_t do_acceleration,
- uint8_t do_threshold);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_pointer_control_cookie_t
- xcb_get_pointer_control (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_pointer_control_cookie_t
- xcb_get_pointer_control_unchecked (xcb_connection_t *c);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_pointer_control_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_pointer_control_reply_t *
- xcb_get_pointer_control_reply (xcb_connection_t *c,
- xcb_get_pointer_control_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_screen_saver_checked (xcb_connection_t *c,
- int16_t timeout,
- int16_t interval,
- uint8_t prefer_blanking,
- uint8_t allow_exposures);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_screen_saver (xcb_connection_t *c,
- int16_t timeout,
- int16_t interval,
- uint8_t prefer_blanking,
- uint8_t allow_exposures);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_screen_saver_cookie_t
- xcb_get_screen_saver (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_screen_saver_cookie_t
- xcb_get_screen_saver_unchecked (xcb_connection_t *c);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_screen_saver_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_screen_saver_reply_t *
- xcb_get_screen_saver_reply (xcb_connection_t *c,
- xcb_get_screen_saver_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_change_hosts_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_change_hosts_checked (xcb_connection_t *c,
- uint8_t mode,
- uint8_t family,
- uint16_t address_len,
- const uint8_t *address);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_change_hosts (xcb_connection_t *c,
- uint8_t mode,
- uint8_t family,
- uint16_t address_len,
- const uint8_t *address);
- uint8_t *
- xcb_change_hosts_address (const xcb_change_hosts_request_t *R);
- int
- xcb_change_hosts_address_length (const xcb_change_hosts_request_t *R);
- xcb_generic_iterator_t
- xcb_change_hosts_address_end (const xcb_change_hosts_request_t *R);
- int
- xcb_host_sizeof (const void *_buffer);
- uint8_t *
- xcb_host_address (const xcb_host_t *R);
- int
- xcb_host_address_length (const xcb_host_t *R);
- xcb_generic_iterator_t
- xcb_host_address_end (const xcb_host_t *R);
- /**
- * Get the next element of the iterator
- * @param i Pointer to a xcb_host_iterator_t
- *
- * Get the next element in the iterator. The member rem is
- * decreased by one. The member data points to the next
- * element. The member index is increased by sizeof(xcb_host_t)
- */
- void
- xcb_host_next (xcb_host_iterator_t *i);
- /**
- * Return the iterator pointing to the last element
- * @param i An xcb_host_iterator_t
- * @return The iterator pointing to the last element
- *
- * Set the current element in the iterator to the last element.
- * The member rem is set to 0. The member data points to the
- * last element.
- */
- xcb_generic_iterator_t
- xcb_host_end (xcb_host_iterator_t i);
- int
- xcb_list_hosts_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_list_hosts_cookie_t
- xcb_list_hosts (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_list_hosts_cookie_t
- xcb_list_hosts_unchecked (xcb_connection_t *c);
- int
- xcb_list_hosts_hosts_length (const xcb_list_hosts_reply_t *R);
- xcb_host_iterator_t
- xcb_list_hosts_hosts_iterator (const xcb_list_hosts_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_list_hosts_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_list_hosts_reply_t *
- xcb_list_hosts_reply (xcb_connection_t *c,
- xcb_list_hosts_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_access_control_checked (xcb_connection_t *c,
- uint8_t mode);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_access_control (xcb_connection_t *c,
- uint8_t mode);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_set_close_down_mode_checked (xcb_connection_t *c,
- uint8_t mode);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_set_close_down_mode (xcb_connection_t *c,
- uint8_t mode);
- /**
- * @brief kills a client
- *
- * @param c The connection
- * @param resource Any resource belonging to the client (for example a Window), used to identify
- * the client connection.
- * \n
- * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients
- * that have terminated in `RetainTemporary` (TODO) are destroyed.
- * @return A cookie
- *
- * Forces a close down of the client that created the specified \a resource.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_kill_client_checked (xcb_connection_t *c,
- uint32_t resource);
- /**
- * @brief kills a client
- *
- * @param c The connection
- * @param resource Any resource belonging to the client (for example a Window), used to identify
- * the client connection.
- * \n
- * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients
- * that have terminated in `RetainTemporary` (TODO) are destroyed.
- * @return A cookie
- *
- * Forces a close down of the client that created the specified \a resource.
- *
- */
- xcb_void_cookie_t
- xcb_kill_client (xcb_connection_t *c,
- uint32_t resource);
- int
- xcb_rotate_properties_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_rotate_properties_checked (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t atoms_len,
- int16_t delta,
- const xcb_atom_t *atoms);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_rotate_properties (xcb_connection_t *c,
- xcb_window_t window,
- uint16_t atoms_len,
- int16_t delta,
- const xcb_atom_t *atoms);
- xcb_atom_t *
- xcb_rotate_properties_atoms (const xcb_rotate_properties_request_t *R);
- int
- xcb_rotate_properties_atoms_length (const xcb_rotate_properties_request_t *R);
- xcb_generic_iterator_t
- xcb_rotate_properties_atoms_end (const xcb_rotate_properties_request_t *R);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_force_screen_saver_checked (xcb_connection_t *c,
- uint8_t mode);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_force_screen_saver (xcb_connection_t *c,
- uint8_t mode);
- int
- xcb_set_pointer_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_set_pointer_mapping_cookie_t
- xcb_set_pointer_mapping (xcb_connection_t *c,
- uint8_t map_len,
- const uint8_t *map);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_set_pointer_mapping_cookie_t
- xcb_set_pointer_mapping_unchecked (xcb_connection_t *c,
- uint8_t map_len,
- const uint8_t *map);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_set_pointer_mapping_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_set_pointer_mapping_reply_t *
- xcb_set_pointer_mapping_reply (xcb_connection_t *c,
- xcb_set_pointer_mapping_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_get_pointer_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_pointer_mapping_cookie_t
- xcb_get_pointer_mapping (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_pointer_mapping_cookie_t
- xcb_get_pointer_mapping_unchecked (xcb_connection_t *c);
- uint8_t *
- xcb_get_pointer_mapping_map (const xcb_get_pointer_mapping_reply_t *R);
- int
- xcb_get_pointer_mapping_map_length (const xcb_get_pointer_mapping_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_pointer_mapping_map_end (const xcb_get_pointer_mapping_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_pointer_mapping_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_pointer_mapping_reply_t *
- xcb_get_pointer_mapping_reply (xcb_connection_t *c,
- xcb_get_pointer_mapping_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_set_modifier_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_set_modifier_mapping_cookie_t
- xcb_set_modifier_mapping (xcb_connection_t *c,
- uint8_t keycodes_per_modifier,
- const xcb_keycode_t *keycodes);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_set_modifier_mapping_cookie_t
- xcb_set_modifier_mapping_unchecked (xcb_connection_t *c,
- uint8_t keycodes_per_modifier,
- const xcb_keycode_t *keycodes);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_set_modifier_mapping_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_set_modifier_mapping_reply_t *
- xcb_set_modifier_mapping_reply (xcb_connection_t *c,
- xcb_set_modifier_mapping_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- int
- xcb_get_modifier_mapping_sizeof (const void *_buffer);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_get_modifier_mapping_cookie_t
- xcb_get_modifier_mapping (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will cause
- * a reply to be generated. Any returned error will be
- * placed in the event queue.
- */
- xcb_get_modifier_mapping_cookie_t
- xcb_get_modifier_mapping_unchecked (xcb_connection_t *c);
- xcb_keycode_t *
- xcb_get_modifier_mapping_keycodes (const xcb_get_modifier_mapping_reply_t *R);
- int
- xcb_get_modifier_mapping_keycodes_length (const xcb_get_modifier_mapping_reply_t *R);
- xcb_generic_iterator_t
- xcb_get_modifier_mapping_keycodes_end (const xcb_get_modifier_mapping_reply_t *R);
- /**
- * Return the reply
- * @param c The connection
- * @param cookie The cookie
- * @param e The xcb_generic_error_t supplied
- *
- * Returns the reply of the request asked by
- *
- * The parameter @p e supplied to this function must be NULL if
- * xcb_get_modifier_mapping_unchecked(). is used.
- * Otherwise, it stores the error if any.
- *
- * The returned value must be freed by the caller using free().
- */
- xcb_get_modifier_mapping_reply_t *
- xcb_get_modifier_mapping_reply (xcb_connection_t *c,
- xcb_get_modifier_mapping_cookie_t cookie /**< */,
- xcb_generic_error_t **e);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- * This form can be used only if the request will not cause
- * a reply to be generated. Any returned error will be
- * saved for handling by xcb_request_check().
- */
- xcb_void_cookie_t
- xcb_no_operation_checked (xcb_connection_t *c);
- /**
- *
- * @param c The connection
- * @return A cookie
- *
- * Delivers a request to the X server.
- *
- */
- xcb_void_cookie_t
- xcb_no_operation (xcb_connection_t *c);
- #ifdef __cplusplus
- }
- #endif
- #endif
- /**
- * @}
- */
|