xinput.h 298 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569
  1. /*
  2. * This file generated automatically from xinput.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_Input_API XCB Input API
  7. * @brief Input XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __XINPUT_H
  11. #define __XINPUT_H
  12. #include "xcb.h"
  13. #include "xfixes.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #define XCB_INPUT_MAJOR_VERSION 2
  18. #define XCB_INPUT_MINOR_VERSION 3
  19. extern xcb_extension_t xcb_input_id;
  20. typedef uint32_t xcb_input_event_class_t;
  21. /**
  22. * @brief xcb_input_event_class_iterator_t
  23. **/
  24. typedef struct xcb_input_event_class_iterator_t {
  25. xcb_input_event_class_t *data;
  26. int rem;
  27. int index;
  28. } xcb_input_event_class_iterator_t;
  29. typedef uint8_t xcb_input_key_code_t;
  30. /**
  31. * @brief xcb_input_key_code_iterator_t
  32. **/
  33. typedef struct xcb_input_key_code_iterator_t {
  34. xcb_input_key_code_t *data;
  35. int rem;
  36. int index;
  37. } xcb_input_key_code_iterator_t;
  38. typedef uint16_t xcb_input_device_id_t;
  39. /**
  40. * @brief xcb_input_device_id_iterator_t
  41. **/
  42. typedef struct xcb_input_device_id_iterator_t {
  43. xcb_input_device_id_t *data;
  44. int rem;
  45. int index;
  46. } xcb_input_device_id_iterator_t;
  47. typedef int32_t xcb_input_fp1616_t;
  48. /**
  49. * @brief xcb_input_fp1616_iterator_t
  50. **/
  51. typedef struct xcb_input_fp1616_iterator_t {
  52. xcb_input_fp1616_t *data;
  53. int rem;
  54. int index;
  55. } xcb_input_fp1616_iterator_t;
  56. /**
  57. * @brief xcb_input_fp3232_t
  58. **/
  59. typedef struct xcb_input_fp3232_t {
  60. int32_t integral;
  61. uint32_t frac;
  62. } xcb_input_fp3232_t;
  63. /**
  64. * @brief xcb_input_fp3232_iterator_t
  65. **/
  66. typedef struct xcb_input_fp3232_iterator_t {
  67. xcb_input_fp3232_t *data;
  68. int rem;
  69. int index;
  70. } xcb_input_fp3232_iterator_t;
  71. /**
  72. * @brief xcb_input_get_extension_version_cookie_t
  73. **/
  74. typedef struct xcb_input_get_extension_version_cookie_t {
  75. unsigned int sequence;
  76. } xcb_input_get_extension_version_cookie_t;
  77. /** Opcode for xcb_input_get_extension_version. */
  78. #define XCB_INPUT_GET_EXTENSION_VERSION 1
  79. /**
  80. * @brief xcb_input_get_extension_version_request_t
  81. **/
  82. typedef struct xcb_input_get_extension_version_request_t {
  83. uint8_t major_opcode;
  84. uint8_t minor_opcode;
  85. uint16_t length;
  86. uint16_t name_len;
  87. uint8_t pad0[2];
  88. } xcb_input_get_extension_version_request_t;
  89. /**
  90. * @brief xcb_input_get_extension_version_reply_t
  91. **/
  92. typedef struct xcb_input_get_extension_version_reply_t {
  93. uint8_t response_type;
  94. uint8_t xi_reply_type;
  95. uint16_t sequence;
  96. uint32_t length;
  97. uint16_t server_major;
  98. uint16_t server_minor;
  99. uint8_t present;
  100. uint8_t pad0[19];
  101. } xcb_input_get_extension_version_reply_t;
  102. typedef enum xcb_input_device_use_t {
  103. XCB_INPUT_DEVICE_USE_IS_X_POINTER = 0,
  104. XCB_INPUT_DEVICE_USE_IS_X_KEYBOARD = 1,
  105. XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_DEVICE = 2,
  106. XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_KEYBOARD = 3,
  107. XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_POINTER = 4
  108. } xcb_input_device_use_t;
  109. typedef enum xcb_input_input_class_t {
  110. XCB_INPUT_INPUT_CLASS_KEY = 0,
  111. XCB_INPUT_INPUT_CLASS_BUTTON = 1,
  112. XCB_INPUT_INPUT_CLASS_VALUATOR = 2,
  113. XCB_INPUT_INPUT_CLASS_FEEDBACK = 3,
  114. XCB_INPUT_INPUT_CLASS_PROXIMITY = 4,
  115. XCB_INPUT_INPUT_CLASS_FOCUS = 5,
  116. XCB_INPUT_INPUT_CLASS_OTHER = 6
  117. } xcb_input_input_class_t;
  118. typedef enum xcb_input_valuator_mode_t {
  119. XCB_INPUT_VALUATOR_MODE_RELATIVE = 0,
  120. XCB_INPUT_VALUATOR_MODE_ABSOLUTE = 1
  121. } xcb_input_valuator_mode_t;
  122. /**
  123. * @brief xcb_input_device_info_t
  124. **/
  125. typedef struct xcb_input_device_info_t {
  126. xcb_atom_t device_type;
  127. uint8_t device_id;
  128. uint8_t num_class_info;
  129. uint8_t device_use;
  130. uint8_t pad0;
  131. } xcb_input_device_info_t;
  132. /**
  133. * @brief xcb_input_device_info_iterator_t
  134. **/
  135. typedef struct xcb_input_device_info_iterator_t {
  136. xcb_input_device_info_t *data;
  137. int rem;
  138. int index;
  139. } xcb_input_device_info_iterator_t;
  140. /**
  141. * @brief xcb_input_key_info_t
  142. **/
  143. typedef struct xcb_input_key_info_t {
  144. uint8_t class_id;
  145. uint8_t len;
  146. xcb_input_key_code_t min_keycode;
  147. xcb_input_key_code_t max_keycode;
  148. uint16_t num_keys;
  149. uint8_t pad0[2];
  150. } xcb_input_key_info_t;
  151. /**
  152. * @brief xcb_input_key_info_iterator_t
  153. **/
  154. typedef struct xcb_input_key_info_iterator_t {
  155. xcb_input_key_info_t *data;
  156. int rem;
  157. int index;
  158. } xcb_input_key_info_iterator_t;
  159. /**
  160. * @brief xcb_input_button_info_t
  161. **/
  162. typedef struct xcb_input_button_info_t {
  163. uint8_t class_id;
  164. uint8_t len;
  165. uint16_t num_buttons;
  166. } xcb_input_button_info_t;
  167. /**
  168. * @brief xcb_input_button_info_iterator_t
  169. **/
  170. typedef struct xcb_input_button_info_iterator_t {
  171. xcb_input_button_info_t *data;
  172. int rem;
  173. int index;
  174. } xcb_input_button_info_iterator_t;
  175. /**
  176. * @brief xcb_input_axis_info_t
  177. **/
  178. typedef struct xcb_input_axis_info_t {
  179. uint32_t resolution;
  180. int32_t minimum;
  181. int32_t maximum;
  182. } xcb_input_axis_info_t;
  183. /**
  184. * @brief xcb_input_axis_info_iterator_t
  185. **/
  186. typedef struct xcb_input_axis_info_iterator_t {
  187. xcb_input_axis_info_t *data;
  188. int rem;
  189. int index;
  190. } xcb_input_axis_info_iterator_t;
  191. /**
  192. * @brief xcb_input_valuator_info_t
  193. **/
  194. typedef struct xcb_input_valuator_info_t {
  195. uint8_t class_id;
  196. uint8_t len;
  197. uint8_t axes_len;
  198. uint8_t mode;
  199. uint32_t motion_size;
  200. } xcb_input_valuator_info_t;
  201. /**
  202. * @brief xcb_input_valuator_info_iterator_t
  203. **/
  204. typedef struct xcb_input_valuator_info_iterator_t {
  205. xcb_input_valuator_info_t *data;
  206. int rem;
  207. int index;
  208. } xcb_input_valuator_info_iterator_t;
  209. /**
  210. * @brief xcb_input_input_info_info_t
  211. **/
  212. typedef struct xcb_input_input_info_info_t {
  213. struct {
  214. xcb_input_key_code_t min_keycode;
  215. xcb_input_key_code_t max_keycode;
  216. uint16_t num_keys;
  217. uint8_t pad0[2];
  218. } key;
  219. struct {
  220. uint16_t num_buttons;
  221. } button;
  222. struct {
  223. uint8_t axes_len;
  224. uint8_t mode;
  225. uint32_t motion_size;
  226. xcb_input_axis_info_t *axes;
  227. } valuator;
  228. } xcb_input_input_info_info_t;
  229. /**
  230. * @brief xcb_input_input_info_t
  231. **/
  232. typedef struct xcb_input_input_info_t {
  233. uint8_t class_id;
  234. uint8_t len;
  235. } xcb_input_input_info_t;
  236. void *
  237. xcb_input_input_info_info (const xcb_input_input_info_t *R);
  238. /**
  239. * @brief xcb_input_input_info_iterator_t
  240. **/
  241. typedef struct xcb_input_input_info_iterator_t {
  242. xcb_input_input_info_t *data;
  243. int rem;
  244. int index;
  245. } xcb_input_input_info_iterator_t;
  246. /**
  247. * @brief xcb_input_device_name_t
  248. **/
  249. typedef struct xcb_input_device_name_t {
  250. uint8_t len;
  251. } xcb_input_device_name_t;
  252. /**
  253. * @brief xcb_input_device_name_iterator_t
  254. **/
  255. typedef struct xcb_input_device_name_iterator_t {
  256. xcb_input_device_name_t *data;
  257. int rem;
  258. int index;
  259. } xcb_input_device_name_iterator_t;
  260. /**
  261. * @brief xcb_input_list_input_devices_cookie_t
  262. **/
  263. typedef struct xcb_input_list_input_devices_cookie_t {
  264. unsigned int sequence;
  265. } xcb_input_list_input_devices_cookie_t;
  266. /** Opcode for xcb_input_list_input_devices. */
  267. #define XCB_INPUT_LIST_INPUT_DEVICES 2
  268. /**
  269. * @brief xcb_input_list_input_devices_request_t
  270. **/
  271. typedef struct xcb_input_list_input_devices_request_t {
  272. uint8_t major_opcode;
  273. uint8_t minor_opcode;
  274. uint16_t length;
  275. } xcb_input_list_input_devices_request_t;
  276. /**
  277. * @brief xcb_input_list_input_devices_reply_t
  278. **/
  279. typedef struct xcb_input_list_input_devices_reply_t {
  280. uint8_t response_type;
  281. uint8_t xi_reply_type;
  282. uint16_t sequence;
  283. uint32_t length;
  284. uint8_t devices_len;
  285. uint8_t pad0[23];
  286. } xcb_input_list_input_devices_reply_t;
  287. typedef uint8_t xcb_input_event_type_base_t;
  288. /**
  289. * @brief xcb_input_event_type_base_iterator_t
  290. **/
  291. typedef struct xcb_input_event_type_base_iterator_t {
  292. xcb_input_event_type_base_t *data;
  293. int rem;
  294. int index;
  295. } xcb_input_event_type_base_iterator_t;
  296. /**
  297. * @brief xcb_input_input_class_info_t
  298. **/
  299. typedef struct xcb_input_input_class_info_t {
  300. uint8_t class_id;
  301. xcb_input_event_type_base_t event_type_base;
  302. } xcb_input_input_class_info_t;
  303. /**
  304. * @brief xcb_input_input_class_info_iterator_t
  305. **/
  306. typedef struct xcb_input_input_class_info_iterator_t {
  307. xcb_input_input_class_info_t *data;
  308. int rem;
  309. int index;
  310. } xcb_input_input_class_info_iterator_t;
  311. /**
  312. * @brief xcb_input_open_device_cookie_t
  313. **/
  314. typedef struct xcb_input_open_device_cookie_t {
  315. unsigned int sequence;
  316. } xcb_input_open_device_cookie_t;
  317. /** Opcode for xcb_input_open_device. */
  318. #define XCB_INPUT_OPEN_DEVICE 3
  319. /**
  320. * @brief xcb_input_open_device_request_t
  321. **/
  322. typedef struct xcb_input_open_device_request_t {
  323. uint8_t major_opcode;
  324. uint8_t minor_opcode;
  325. uint16_t length;
  326. uint8_t device_id;
  327. uint8_t pad0[3];
  328. } xcb_input_open_device_request_t;
  329. /**
  330. * @brief xcb_input_open_device_reply_t
  331. **/
  332. typedef struct xcb_input_open_device_reply_t {
  333. uint8_t response_type;
  334. uint8_t xi_reply_type;
  335. uint16_t sequence;
  336. uint32_t length;
  337. uint8_t num_classes;
  338. uint8_t pad0[23];
  339. } xcb_input_open_device_reply_t;
  340. /** Opcode for xcb_input_close_device. */
  341. #define XCB_INPUT_CLOSE_DEVICE 4
  342. /**
  343. * @brief xcb_input_close_device_request_t
  344. **/
  345. typedef struct xcb_input_close_device_request_t {
  346. uint8_t major_opcode;
  347. uint8_t minor_opcode;
  348. uint16_t length;
  349. uint8_t device_id;
  350. uint8_t pad0[3];
  351. } xcb_input_close_device_request_t;
  352. /**
  353. * @brief xcb_input_set_device_mode_cookie_t
  354. **/
  355. typedef struct xcb_input_set_device_mode_cookie_t {
  356. unsigned int sequence;
  357. } xcb_input_set_device_mode_cookie_t;
  358. /** Opcode for xcb_input_set_device_mode. */
  359. #define XCB_INPUT_SET_DEVICE_MODE 5
  360. /**
  361. * @brief xcb_input_set_device_mode_request_t
  362. **/
  363. typedef struct xcb_input_set_device_mode_request_t {
  364. uint8_t major_opcode;
  365. uint8_t minor_opcode;
  366. uint16_t length;
  367. uint8_t device_id;
  368. uint8_t mode;
  369. uint8_t pad0[2];
  370. } xcb_input_set_device_mode_request_t;
  371. /**
  372. * @brief xcb_input_set_device_mode_reply_t
  373. **/
  374. typedef struct xcb_input_set_device_mode_reply_t {
  375. uint8_t response_type;
  376. uint8_t xi_reply_type;
  377. uint16_t sequence;
  378. uint32_t length;
  379. uint8_t status;
  380. uint8_t pad0[23];
  381. } xcb_input_set_device_mode_reply_t;
  382. /** Opcode for xcb_input_select_extension_event. */
  383. #define XCB_INPUT_SELECT_EXTENSION_EVENT 6
  384. /**
  385. * @brief xcb_input_select_extension_event_request_t
  386. **/
  387. typedef struct xcb_input_select_extension_event_request_t {
  388. uint8_t major_opcode;
  389. uint8_t minor_opcode;
  390. uint16_t length;
  391. xcb_window_t window;
  392. uint16_t num_classes;
  393. uint8_t pad0[2];
  394. } xcb_input_select_extension_event_request_t;
  395. /**
  396. * @brief xcb_input_get_selected_extension_events_cookie_t
  397. **/
  398. typedef struct xcb_input_get_selected_extension_events_cookie_t {
  399. unsigned int sequence;
  400. } xcb_input_get_selected_extension_events_cookie_t;
  401. /** Opcode for xcb_input_get_selected_extension_events. */
  402. #define XCB_INPUT_GET_SELECTED_EXTENSION_EVENTS 7
  403. /**
  404. * @brief xcb_input_get_selected_extension_events_request_t
  405. **/
  406. typedef struct xcb_input_get_selected_extension_events_request_t {
  407. uint8_t major_opcode;
  408. uint8_t minor_opcode;
  409. uint16_t length;
  410. xcb_window_t window;
  411. } xcb_input_get_selected_extension_events_request_t;
  412. /**
  413. * @brief xcb_input_get_selected_extension_events_reply_t
  414. **/
  415. typedef struct xcb_input_get_selected_extension_events_reply_t {
  416. uint8_t response_type;
  417. uint8_t xi_reply_type;
  418. uint16_t sequence;
  419. uint32_t length;
  420. uint16_t num_this_classes;
  421. uint16_t num_all_classes;
  422. uint8_t pad0[20];
  423. } xcb_input_get_selected_extension_events_reply_t;
  424. typedef enum xcb_input_propagate_mode_t {
  425. XCB_INPUT_PROPAGATE_MODE_ADD_TO_LIST = 0,
  426. XCB_INPUT_PROPAGATE_MODE_DELETE_FROM_LIST = 1
  427. } xcb_input_propagate_mode_t;
  428. /** Opcode for xcb_input_change_device_dont_propagate_list. */
  429. #define XCB_INPUT_CHANGE_DEVICE_DONT_PROPAGATE_LIST 8
  430. /**
  431. * @brief xcb_input_change_device_dont_propagate_list_request_t
  432. **/
  433. typedef struct xcb_input_change_device_dont_propagate_list_request_t {
  434. uint8_t major_opcode;
  435. uint8_t minor_opcode;
  436. uint16_t length;
  437. xcb_window_t window;
  438. uint16_t num_classes;
  439. uint8_t mode;
  440. uint8_t pad0;
  441. } xcb_input_change_device_dont_propagate_list_request_t;
  442. /**
  443. * @brief xcb_input_get_device_dont_propagate_list_cookie_t
  444. **/
  445. typedef struct xcb_input_get_device_dont_propagate_list_cookie_t {
  446. unsigned int sequence;
  447. } xcb_input_get_device_dont_propagate_list_cookie_t;
  448. /** Opcode for xcb_input_get_device_dont_propagate_list. */
  449. #define XCB_INPUT_GET_DEVICE_DONT_PROPAGATE_LIST 9
  450. /**
  451. * @brief xcb_input_get_device_dont_propagate_list_request_t
  452. **/
  453. typedef struct xcb_input_get_device_dont_propagate_list_request_t {
  454. uint8_t major_opcode;
  455. uint8_t minor_opcode;
  456. uint16_t length;
  457. xcb_window_t window;
  458. } xcb_input_get_device_dont_propagate_list_request_t;
  459. /**
  460. * @brief xcb_input_get_device_dont_propagate_list_reply_t
  461. **/
  462. typedef struct xcb_input_get_device_dont_propagate_list_reply_t {
  463. uint8_t response_type;
  464. uint8_t xi_reply_type;
  465. uint16_t sequence;
  466. uint32_t length;
  467. uint16_t num_classes;
  468. uint8_t pad0[22];
  469. } xcb_input_get_device_dont_propagate_list_reply_t;
  470. /**
  471. * @brief xcb_input_device_time_coord_t
  472. **/
  473. typedef struct xcb_input_device_time_coord_t {
  474. xcb_timestamp_t time;
  475. } xcb_input_device_time_coord_t;
  476. /**
  477. * @brief xcb_input_device_time_coord_iterator_t
  478. **/
  479. typedef struct xcb_input_device_time_coord_iterator_t {
  480. xcb_input_device_time_coord_t *data;
  481. int rem;
  482. int index;
  483. uint8_t num_axes; /**< */
  484. } xcb_input_device_time_coord_iterator_t;
  485. /**
  486. * @brief xcb_input_get_device_motion_events_cookie_t
  487. **/
  488. typedef struct xcb_input_get_device_motion_events_cookie_t {
  489. unsigned int sequence;
  490. } xcb_input_get_device_motion_events_cookie_t;
  491. /** Opcode for xcb_input_get_device_motion_events. */
  492. #define XCB_INPUT_GET_DEVICE_MOTION_EVENTS 10
  493. /**
  494. * @brief xcb_input_get_device_motion_events_request_t
  495. **/
  496. typedef struct xcb_input_get_device_motion_events_request_t {
  497. uint8_t major_opcode;
  498. uint8_t minor_opcode;
  499. uint16_t length;
  500. xcb_timestamp_t start;
  501. xcb_timestamp_t stop;
  502. uint8_t device_id;
  503. uint8_t pad0[3];
  504. } xcb_input_get_device_motion_events_request_t;
  505. /**
  506. * @brief xcb_input_get_device_motion_events_reply_t
  507. **/
  508. typedef struct xcb_input_get_device_motion_events_reply_t {
  509. uint8_t response_type;
  510. uint8_t xi_reply_type;
  511. uint16_t sequence;
  512. uint32_t length;
  513. uint32_t num_events;
  514. uint8_t num_axes;
  515. uint8_t device_mode;
  516. uint8_t pad0[18];
  517. } xcb_input_get_device_motion_events_reply_t;
  518. /**
  519. * @brief xcb_input_change_keyboard_device_cookie_t
  520. **/
  521. typedef struct xcb_input_change_keyboard_device_cookie_t {
  522. unsigned int sequence;
  523. } xcb_input_change_keyboard_device_cookie_t;
  524. /** Opcode for xcb_input_change_keyboard_device. */
  525. #define XCB_INPUT_CHANGE_KEYBOARD_DEVICE 11
  526. /**
  527. * @brief xcb_input_change_keyboard_device_request_t
  528. **/
  529. typedef struct xcb_input_change_keyboard_device_request_t {
  530. uint8_t major_opcode;
  531. uint8_t minor_opcode;
  532. uint16_t length;
  533. uint8_t device_id;
  534. uint8_t pad0[3];
  535. } xcb_input_change_keyboard_device_request_t;
  536. /**
  537. * @brief xcb_input_change_keyboard_device_reply_t
  538. **/
  539. typedef struct xcb_input_change_keyboard_device_reply_t {
  540. uint8_t response_type;
  541. uint8_t xi_reply_type;
  542. uint16_t sequence;
  543. uint32_t length;
  544. uint8_t status;
  545. uint8_t pad0[23];
  546. } xcb_input_change_keyboard_device_reply_t;
  547. /**
  548. * @brief xcb_input_change_pointer_device_cookie_t
  549. **/
  550. typedef struct xcb_input_change_pointer_device_cookie_t {
  551. unsigned int sequence;
  552. } xcb_input_change_pointer_device_cookie_t;
  553. /** Opcode for xcb_input_change_pointer_device. */
  554. #define XCB_INPUT_CHANGE_POINTER_DEVICE 12
  555. /**
  556. * @brief xcb_input_change_pointer_device_request_t
  557. **/
  558. typedef struct xcb_input_change_pointer_device_request_t {
  559. uint8_t major_opcode;
  560. uint8_t minor_opcode;
  561. uint16_t length;
  562. uint8_t x_axis;
  563. uint8_t y_axis;
  564. uint8_t device_id;
  565. uint8_t pad0;
  566. } xcb_input_change_pointer_device_request_t;
  567. /**
  568. * @brief xcb_input_change_pointer_device_reply_t
  569. **/
  570. typedef struct xcb_input_change_pointer_device_reply_t {
  571. uint8_t response_type;
  572. uint8_t xi_reply_type;
  573. uint16_t sequence;
  574. uint32_t length;
  575. uint8_t status;
  576. uint8_t pad0[23];
  577. } xcb_input_change_pointer_device_reply_t;
  578. /**
  579. * @brief xcb_input_grab_device_cookie_t
  580. **/
  581. typedef struct xcb_input_grab_device_cookie_t {
  582. unsigned int sequence;
  583. } xcb_input_grab_device_cookie_t;
  584. /** Opcode for xcb_input_grab_device. */
  585. #define XCB_INPUT_GRAB_DEVICE 13
  586. /**
  587. * @brief xcb_input_grab_device_request_t
  588. **/
  589. typedef struct xcb_input_grab_device_request_t {
  590. uint8_t major_opcode;
  591. uint8_t minor_opcode;
  592. uint16_t length;
  593. xcb_window_t grab_window;
  594. xcb_timestamp_t time;
  595. uint16_t num_classes;
  596. uint8_t this_device_mode;
  597. uint8_t other_device_mode;
  598. uint8_t owner_events;
  599. uint8_t device_id;
  600. uint8_t pad0[2];
  601. } xcb_input_grab_device_request_t;
  602. /**
  603. * @brief xcb_input_grab_device_reply_t
  604. **/
  605. typedef struct xcb_input_grab_device_reply_t {
  606. uint8_t response_type;
  607. uint8_t xi_reply_type;
  608. uint16_t sequence;
  609. uint32_t length;
  610. uint8_t status;
  611. uint8_t pad0[23];
  612. } xcb_input_grab_device_reply_t;
  613. /** Opcode for xcb_input_ungrab_device. */
  614. #define XCB_INPUT_UNGRAB_DEVICE 14
  615. /**
  616. * @brief xcb_input_ungrab_device_request_t
  617. **/
  618. typedef struct xcb_input_ungrab_device_request_t {
  619. uint8_t major_opcode;
  620. uint8_t minor_opcode;
  621. uint16_t length;
  622. xcb_timestamp_t time;
  623. uint8_t device_id;
  624. uint8_t pad0[3];
  625. } xcb_input_ungrab_device_request_t;
  626. typedef enum xcb_input_modifier_device_t {
  627. XCB_INPUT_MODIFIER_DEVICE_USE_X_KEYBOARD = 255
  628. } xcb_input_modifier_device_t;
  629. /** Opcode for xcb_input_grab_device_key. */
  630. #define XCB_INPUT_GRAB_DEVICE_KEY 15
  631. /**
  632. * @brief xcb_input_grab_device_key_request_t
  633. **/
  634. typedef struct xcb_input_grab_device_key_request_t {
  635. uint8_t major_opcode;
  636. uint8_t minor_opcode;
  637. uint16_t length;
  638. xcb_window_t grab_window;
  639. uint16_t num_classes;
  640. uint16_t modifiers;
  641. uint8_t modifier_device;
  642. uint8_t grabbed_device;
  643. uint8_t key;
  644. uint8_t this_device_mode;
  645. uint8_t other_device_mode;
  646. uint8_t owner_events;
  647. uint8_t pad0[2];
  648. } xcb_input_grab_device_key_request_t;
  649. /** Opcode for xcb_input_ungrab_device_key. */
  650. #define XCB_INPUT_UNGRAB_DEVICE_KEY 16
  651. /**
  652. * @brief xcb_input_ungrab_device_key_request_t
  653. **/
  654. typedef struct xcb_input_ungrab_device_key_request_t {
  655. uint8_t major_opcode;
  656. uint8_t minor_opcode;
  657. uint16_t length;
  658. xcb_window_t grabWindow;
  659. uint16_t modifiers;
  660. uint8_t modifier_device;
  661. uint8_t key;
  662. uint8_t grabbed_device;
  663. } xcb_input_ungrab_device_key_request_t;
  664. /** Opcode for xcb_input_grab_device_button. */
  665. #define XCB_INPUT_GRAB_DEVICE_BUTTON 17
  666. /**
  667. * @brief xcb_input_grab_device_button_request_t
  668. **/
  669. typedef struct xcb_input_grab_device_button_request_t {
  670. uint8_t major_opcode;
  671. uint8_t minor_opcode;
  672. uint16_t length;
  673. xcb_window_t grab_window;
  674. uint8_t grabbed_device;
  675. uint8_t modifier_device;
  676. uint16_t num_classes;
  677. uint16_t modifiers;
  678. uint8_t this_device_mode;
  679. uint8_t other_device_mode;
  680. uint8_t button;
  681. uint8_t owner_events;
  682. uint8_t pad0[2];
  683. } xcb_input_grab_device_button_request_t;
  684. /** Opcode for xcb_input_ungrab_device_button. */
  685. #define XCB_INPUT_UNGRAB_DEVICE_BUTTON 18
  686. /**
  687. * @brief xcb_input_ungrab_device_button_request_t
  688. **/
  689. typedef struct xcb_input_ungrab_device_button_request_t {
  690. uint8_t major_opcode;
  691. uint8_t minor_opcode;
  692. uint16_t length;
  693. xcb_window_t grab_window;
  694. uint16_t modifiers;
  695. uint8_t modifier_device;
  696. uint8_t button;
  697. uint8_t grabbed_device;
  698. uint8_t pad0[3];
  699. } xcb_input_ungrab_device_button_request_t;
  700. typedef enum xcb_input_device_input_mode_t {
  701. XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_THIS_DEVICE = 0,
  702. XCB_INPUT_DEVICE_INPUT_MODE_SYNC_THIS_DEVICE = 1,
  703. XCB_INPUT_DEVICE_INPUT_MODE_REPLAY_THIS_DEVICE = 2,
  704. XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_OTHER_DEVICES = 3,
  705. XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_ALL = 4,
  706. XCB_INPUT_DEVICE_INPUT_MODE_SYNC_ALL = 5
  707. } xcb_input_device_input_mode_t;
  708. /** Opcode for xcb_input_allow_device_events. */
  709. #define XCB_INPUT_ALLOW_DEVICE_EVENTS 19
  710. /**
  711. * @brief xcb_input_allow_device_events_request_t
  712. **/
  713. typedef struct xcb_input_allow_device_events_request_t {
  714. uint8_t major_opcode;
  715. uint8_t minor_opcode;
  716. uint16_t length;
  717. xcb_timestamp_t time;
  718. uint8_t mode;
  719. uint8_t device_id;
  720. uint8_t pad0[2];
  721. } xcb_input_allow_device_events_request_t;
  722. /**
  723. * @brief xcb_input_get_device_focus_cookie_t
  724. **/
  725. typedef struct xcb_input_get_device_focus_cookie_t {
  726. unsigned int sequence;
  727. } xcb_input_get_device_focus_cookie_t;
  728. /** Opcode for xcb_input_get_device_focus. */
  729. #define XCB_INPUT_GET_DEVICE_FOCUS 20
  730. /**
  731. * @brief xcb_input_get_device_focus_request_t
  732. **/
  733. typedef struct xcb_input_get_device_focus_request_t {
  734. uint8_t major_opcode;
  735. uint8_t minor_opcode;
  736. uint16_t length;
  737. uint8_t device_id;
  738. uint8_t pad0[3];
  739. } xcb_input_get_device_focus_request_t;
  740. /**
  741. * @brief xcb_input_get_device_focus_reply_t
  742. **/
  743. typedef struct xcb_input_get_device_focus_reply_t {
  744. uint8_t response_type;
  745. uint8_t xi_reply_type;
  746. uint16_t sequence;
  747. uint32_t length;
  748. xcb_window_t focus;
  749. xcb_timestamp_t time;
  750. uint8_t revert_to;
  751. uint8_t pad0[15];
  752. } xcb_input_get_device_focus_reply_t;
  753. /** Opcode for xcb_input_set_device_focus. */
  754. #define XCB_INPUT_SET_DEVICE_FOCUS 21
  755. /**
  756. * @brief xcb_input_set_device_focus_request_t
  757. **/
  758. typedef struct xcb_input_set_device_focus_request_t {
  759. uint8_t major_opcode;
  760. uint8_t minor_opcode;
  761. uint16_t length;
  762. xcb_window_t focus;
  763. xcb_timestamp_t time;
  764. uint8_t revert_to;
  765. uint8_t device_id;
  766. uint8_t pad0[2];
  767. } xcb_input_set_device_focus_request_t;
  768. typedef enum xcb_input_feedback_class_t {
  769. XCB_INPUT_FEEDBACK_CLASS_KEYBOARD = 0,
  770. XCB_INPUT_FEEDBACK_CLASS_POINTER = 1,
  771. XCB_INPUT_FEEDBACK_CLASS_STRING = 2,
  772. XCB_INPUT_FEEDBACK_CLASS_INTEGER = 3,
  773. XCB_INPUT_FEEDBACK_CLASS_LED = 4,
  774. XCB_INPUT_FEEDBACK_CLASS_BELL = 5
  775. } xcb_input_feedback_class_t;
  776. /**
  777. * @brief xcb_input_kbd_feedback_state_t
  778. **/
  779. typedef struct xcb_input_kbd_feedback_state_t {
  780. uint8_t class_id;
  781. uint8_t feedback_id;
  782. uint16_t len;
  783. uint16_t pitch;
  784. uint16_t duration;
  785. uint32_t led_mask;
  786. uint32_t led_values;
  787. uint8_t global_auto_repeat;
  788. uint8_t click;
  789. uint8_t percent;
  790. uint8_t pad0;
  791. uint8_t auto_repeats[32];
  792. } xcb_input_kbd_feedback_state_t;
  793. /**
  794. * @brief xcb_input_kbd_feedback_state_iterator_t
  795. **/
  796. typedef struct xcb_input_kbd_feedback_state_iterator_t {
  797. xcb_input_kbd_feedback_state_t *data;
  798. int rem;
  799. int index;
  800. } xcb_input_kbd_feedback_state_iterator_t;
  801. /**
  802. * @brief xcb_input_ptr_feedback_state_t
  803. **/
  804. typedef struct xcb_input_ptr_feedback_state_t {
  805. uint8_t class_id;
  806. uint8_t feedback_id;
  807. uint16_t len;
  808. uint8_t pad0[2];
  809. uint16_t accel_num;
  810. uint16_t accel_denom;
  811. uint16_t threshold;
  812. } xcb_input_ptr_feedback_state_t;
  813. /**
  814. * @brief xcb_input_ptr_feedback_state_iterator_t
  815. **/
  816. typedef struct xcb_input_ptr_feedback_state_iterator_t {
  817. xcb_input_ptr_feedback_state_t *data;
  818. int rem;
  819. int index;
  820. } xcb_input_ptr_feedback_state_iterator_t;
  821. /**
  822. * @brief xcb_input_integer_feedback_state_t
  823. **/
  824. typedef struct xcb_input_integer_feedback_state_t {
  825. uint8_t class_id;
  826. uint8_t feedback_id;
  827. uint16_t len;
  828. uint32_t resolution;
  829. int32_t min_value;
  830. int32_t max_value;
  831. } xcb_input_integer_feedback_state_t;
  832. /**
  833. * @brief xcb_input_integer_feedback_state_iterator_t
  834. **/
  835. typedef struct xcb_input_integer_feedback_state_iterator_t {
  836. xcb_input_integer_feedback_state_t *data;
  837. int rem;
  838. int index;
  839. } xcb_input_integer_feedback_state_iterator_t;
  840. /**
  841. * @brief xcb_input_string_feedback_state_t
  842. **/
  843. typedef struct xcb_input_string_feedback_state_t {
  844. uint8_t class_id;
  845. uint8_t feedback_id;
  846. uint16_t len;
  847. uint16_t max_symbols;
  848. uint16_t num_keysyms;
  849. } xcb_input_string_feedback_state_t;
  850. /**
  851. * @brief xcb_input_string_feedback_state_iterator_t
  852. **/
  853. typedef struct xcb_input_string_feedback_state_iterator_t {
  854. xcb_input_string_feedback_state_t *data;
  855. int rem;
  856. int index;
  857. } xcb_input_string_feedback_state_iterator_t;
  858. /**
  859. * @brief xcb_input_bell_feedback_state_t
  860. **/
  861. typedef struct xcb_input_bell_feedback_state_t {
  862. uint8_t class_id;
  863. uint8_t feedback_id;
  864. uint16_t len;
  865. uint8_t percent;
  866. uint8_t pad0[3];
  867. uint16_t pitch;
  868. uint16_t duration;
  869. } xcb_input_bell_feedback_state_t;
  870. /**
  871. * @brief xcb_input_bell_feedback_state_iterator_t
  872. **/
  873. typedef struct xcb_input_bell_feedback_state_iterator_t {
  874. xcb_input_bell_feedback_state_t *data;
  875. int rem;
  876. int index;
  877. } xcb_input_bell_feedback_state_iterator_t;
  878. /**
  879. * @brief xcb_input_led_feedback_state_t
  880. **/
  881. typedef struct xcb_input_led_feedback_state_t {
  882. uint8_t class_id;
  883. uint8_t feedback_id;
  884. uint16_t len;
  885. uint32_t led_mask;
  886. uint32_t led_values;
  887. } xcb_input_led_feedback_state_t;
  888. /**
  889. * @brief xcb_input_led_feedback_state_iterator_t
  890. **/
  891. typedef struct xcb_input_led_feedback_state_iterator_t {
  892. xcb_input_led_feedback_state_t *data;
  893. int rem;
  894. int index;
  895. } xcb_input_led_feedback_state_iterator_t;
  896. /**
  897. * @brief xcb_input_feedback_state_data_t
  898. **/
  899. typedef struct xcb_input_feedback_state_data_t {
  900. struct {
  901. uint16_t pitch;
  902. uint16_t duration;
  903. uint32_t led_mask;
  904. uint32_t led_values;
  905. uint8_t global_auto_repeat;
  906. uint8_t click;
  907. uint8_t percent;
  908. uint8_t pad0;
  909. uint8_t auto_repeats[32];
  910. } keyboard;
  911. struct {
  912. uint8_t pad1[2];
  913. uint16_t accel_num;
  914. uint16_t accel_denom;
  915. uint16_t threshold;
  916. } pointer;
  917. struct {
  918. uint16_t max_symbols;
  919. uint16_t num_keysyms;
  920. xcb_keysym_t *keysyms;
  921. } string;
  922. struct {
  923. uint32_t resolution;
  924. int32_t min_value;
  925. int32_t max_value;
  926. } integer;
  927. struct {
  928. uint32_t led_mask;
  929. uint32_t led_values;
  930. } led;
  931. struct {
  932. uint8_t percent;
  933. uint8_t pad2[3];
  934. uint16_t pitch;
  935. uint16_t duration;
  936. } bell;
  937. } xcb_input_feedback_state_data_t;
  938. /**
  939. * @brief xcb_input_feedback_state_t
  940. **/
  941. typedef struct xcb_input_feedback_state_t {
  942. uint8_t class_id;
  943. uint8_t feedback_id;
  944. uint16_t len;
  945. } xcb_input_feedback_state_t;
  946. void *
  947. xcb_input_feedback_state_data (const xcb_input_feedback_state_t *R);
  948. /**
  949. * @brief xcb_input_feedback_state_iterator_t
  950. **/
  951. typedef struct xcb_input_feedback_state_iterator_t {
  952. xcb_input_feedback_state_t *data;
  953. int rem;
  954. int index;
  955. } xcb_input_feedback_state_iterator_t;
  956. /**
  957. * @brief xcb_input_get_feedback_control_cookie_t
  958. **/
  959. typedef struct xcb_input_get_feedback_control_cookie_t {
  960. unsigned int sequence;
  961. } xcb_input_get_feedback_control_cookie_t;
  962. /** Opcode for xcb_input_get_feedback_control. */
  963. #define XCB_INPUT_GET_FEEDBACK_CONTROL 22
  964. /**
  965. * @brief xcb_input_get_feedback_control_request_t
  966. **/
  967. typedef struct xcb_input_get_feedback_control_request_t {
  968. uint8_t major_opcode;
  969. uint8_t minor_opcode;
  970. uint16_t length;
  971. uint8_t device_id;
  972. uint8_t pad0[3];
  973. } xcb_input_get_feedback_control_request_t;
  974. /**
  975. * @brief xcb_input_get_feedback_control_reply_t
  976. **/
  977. typedef struct xcb_input_get_feedback_control_reply_t {
  978. uint8_t response_type;
  979. uint8_t xi_reply_type;
  980. uint16_t sequence;
  981. uint32_t length;
  982. uint16_t num_feedbacks;
  983. uint8_t pad0[22];
  984. } xcb_input_get_feedback_control_reply_t;
  985. /**
  986. * @brief xcb_input_kbd_feedback_ctl_t
  987. **/
  988. typedef struct xcb_input_kbd_feedback_ctl_t {
  989. uint8_t class_id;
  990. uint8_t feedback_id;
  991. uint16_t len;
  992. xcb_input_key_code_t key;
  993. uint8_t auto_repeat_mode;
  994. int8_t key_click_percent;
  995. int8_t bell_percent;
  996. int16_t bell_pitch;
  997. int16_t bell_duration;
  998. uint32_t led_mask;
  999. uint32_t led_values;
  1000. } xcb_input_kbd_feedback_ctl_t;
  1001. /**
  1002. * @brief xcb_input_kbd_feedback_ctl_iterator_t
  1003. **/
  1004. typedef struct xcb_input_kbd_feedback_ctl_iterator_t {
  1005. xcb_input_kbd_feedback_ctl_t *data;
  1006. int rem;
  1007. int index;
  1008. } xcb_input_kbd_feedback_ctl_iterator_t;
  1009. /**
  1010. * @brief xcb_input_ptr_feedback_ctl_t
  1011. **/
  1012. typedef struct xcb_input_ptr_feedback_ctl_t {
  1013. uint8_t class_id;
  1014. uint8_t feedback_id;
  1015. uint16_t len;
  1016. uint8_t pad0[2];
  1017. int16_t num;
  1018. int16_t denom;
  1019. int16_t threshold;
  1020. } xcb_input_ptr_feedback_ctl_t;
  1021. /**
  1022. * @brief xcb_input_ptr_feedback_ctl_iterator_t
  1023. **/
  1024. typedef struct xcb_input_ptr_feedback_ctl_iterator_t {
  1025. xcb_input_ptr_feedback_ctl_t *data;
  1026. int rem;
  1027. int index;
  1028. } xcb_input_ptr_feedback_ctl_iterator_t;
  1029. /**
  1030. * @brief xcb_input_integer_feedback_ctl_t
  1031. **/
  1032. typedef struct xcb_input_integer_feedback_ctl_t {
  1033. uint8_t class_id;
  1034. uint8_t feedback_id;
  1035. uint16_t len;
  1036. int32_t int_to_display;
  1037. } xcb_input_integer_feedback_ctl_t;
  1038. /**
  1039. * @brief xcb_input_integer_feedback_ctl_iterator_t
  1040. **/
  1041. typedef struct xcb_input_integer_feedback_ctl_iterator_t {
  1042. xcb_input_integer_feedback_ctl_t *data;
  1043. int rem;
  1044. int index;
  1045. } xcb_input_integer_feedback_ctl_iterator_t;
  1046. /**
  1047. * @brief xcb_input_string_feedback_ctl_t
  1048. **/
  1049. typedef struct xcb_input_string_feedback_ctl_t {
  1050. uint8_t class_id;
  1051. uint8_t feedback_id;
  1052. uint16_t len;
  1053. uint8_t pad0[2];
  1054. uint16_t num_keysyms;
  1055. } xcb_input_string_feedback_ctl_t;
  1056. /**
  1057. * @brief xcb_input_string_feedback_ctl_iterator_t
  1058. **/
  1059. typedef struct xcb_input_string_feedback_ctl_iterator_t {
  1060. xcb_input_string_feedback_ctl_t *data;
  1061. int rem;
  1062. int index;
  1063. } xcb_input_string_feedback_ctl_iterator_t;
  1064. /**
  1065. * @brief xcb_input_bell_feedback_ctl_t
  1066. **/
  1067. typedef struct xcb_input_bell_feedback_ctl_t {
  1068. uint8_t class_id;
  1069. uint8_t feedback_id;
  1070. uint16_t len;
  1071. int8_t percent;
  1072. uint8_t pad0[3];
  1073. int16_t pitch;
  1074. int16_t duration;
  1075. } xcb_input_bell_feedback_ctl_t;
  1076. /**
  1077. * @brief xcb_input_bell_feedback_ctl_iterator_t
  1078. **/
  1079. typedef struct xcb_input_bell_feedback_ctl_iterator_t {
  1080. xcb_input_bell_feedback_ctl_t *data;
  1081. int rem;
  1082. int index;
  1083. } xcb_input_bell_feedback_ctl_iterator_t;
  1084. /**
  1085. * @brief xcb_input_led_feedback_ctl_t
  1086. **/
  1087. typedef struct xcb_input_led_feedback_ctl_t {
  1088. uint8_t class_id;
  1089. uint8_t feedback_id;
  1090. uint16_t len;
  1091. uint32_t led_mask;
  1092. uint32_t led_values;
  1093. } xcb_input_led_feedback_ctl_t;
  1094. /**
  1095. * @brief xcb_input_led_feedback_ctl_iterator_t
  1096. **/
  1097. typedef struct xcb_input_led_feedback_ctl_iterator_t {
  1098. xcb_input_led_feedback_ctl_t *data;
  1099. int rem;
  1100. int index;
  1101. } xcb_input_led_feedback_ctl_iterator_t;
  1102. /**
  1103. * @brief xcb_input_feedback_ctl_data_t
  1104. **/
  1105. typedef struct xcb_input_feedback_ctl_data_t {
  1106. struct {
  1107. xcb_input_key_code_t key;
  1108. uint8_t auto_repeat_mode;
  1109. int8_t key_click_percent;
  1110. int8_t bell_percent;
  1111. int16_t bell_pitch;
  1112. int16_t bell_duration;
  1113. uint32_t led_mask;
  1114. uint32_t led_values;
  1115. } keyboard;
  1116. struct {
  1117. uint8_t pad0[2];
  1118. int16_t num;
  1119. int16_t denom;
  1120. int16_t threshold;
  1121. } pointer;
  1122. struct {
  1123. uint8_t pad1[2];
  1124. uint16_t num_keysyms;
  1125. xcb_keysym_t *keysyms;
  1126. } string;
  1127. struct {
  1128. int32_t int_to_display;
  1129. } integer;
  1130. struct {
  1131. uint32_t led_mask;
  1132. uint32_t led_values;
  1133. } led;
  1134. struct {
  1135. int8_t percent;
  1136. uint8_t pad2[3];
  1137. int16_t pitch;
  1138. int16_t duration;
  1139. } bell;
  1140. } xcb_input_feedback_ctl_data_t;
  1141. /**
  1142. * @brief xcb_input_feedback_ctl_t
  1143. **/
  1144. typedef struct xcb_input_feedback_ctl_t {
  1145. uint8_t class_id;
  1146. uint8_t feedback_id;
  1147. uint16_t len;
  1148. } xcb_input_feedback_ctl_t;
  1149. void *
  1150. xcb_input_feedback_ctl_data (const xcb_input_feedback_ctl_t *R);
  1151. /**
  1152. * @brief xcb_input_feedback_ctl_iterator_t
  1153. **/
  1154. typedef struct xcb_input_feedback_ctl_iterator_t {
  1155. xcb_input_feedback_ctl_t *data;
  1156. int rem;
  1157. int index;
  1158. } xcb_input_feedback_ctl_iterator_t;
  1159. typedef enum xcb_input_change_feedback_control_mask_t {
  1160. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_KEY_CLICK_PERCENT = 1,
  1161. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_PERCENT = 2,
  1162. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_PITCH = 4,
  1163. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_DURATION = 8,
  1164. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_LED = 16,
  1165. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_LED_MODE = 32,
  1166. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_KEY = 64,
  1167. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_AUTO_REPEAT_MODE = 128,
  1168. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_STRING = 1,
  1169. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_INTEGER = 1,
  1170. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_ACCEL_NUM = 1,
  1171. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_ACCEL_DENOM = 2,
  1172. XCB_INPUT_CHANGE_FEEDBACK_CONTROL_MASK_THRESHOLD = 4
  1173. } xcb_input_change_feedback_control_mask_t;
  1174. /** Opcode for xcb_input_change_feedback_control. */
  1175. #define XCB_INPUT_CHANGE_FEEDBACK_CONTROL 23
  1176. /**
  1177. * @brief xcb_input_change_feedback_control_request_t
  1178. **/
  1179. typedef struct xcb_input_change_feedback_control_request_t {
  1180. uint8_t major_opcode;
  1181. uint8_t minor_opcode;
  1182. uint16_t length;
  1183. uint32_t mask;
  1184. uint8_t device_id;
  1185. uint8_t feedback_id;
  1186. uint8_t pad0[2];
  1187. } xcb_input_change_feedback_control_request_t;
  1188. /**
  1189. * @brief xcb_input_get_device_key_mapping_cookie_t
  1190. **/
  1191. typedef struct xcb_input_get_device_key_mapping_cookie_t {
  1192. unsigned int sequence;
  1193. } xcb_input_get_device_key_mapping_cookie_t;
  1194. /** Opcode for xcb_input_get_device_key_mapping. */
  1195. #define XCB_INPUT_GET_DEVICE_KEY_MAPPING 24
  1196. /**
  1197. * @brief xcb_input_get_device_key_mapping_request_t
  1198. **/
  1199. typedef struct xcb_input_get_device_key_mapping_request_t {
  1200. uint8_t major_opcode;
  1201. uint8_t minor_opcode;
  1202. uint16_t length;
  1203. uint8_t device_id;
  1204. xcb_input_key_code_t first_keycode;
  1205. uint8_t count;
  1206. uint8_t pad0;
  1207. } xcb_input_get_device_key_mapping_request_t;
  1208. /**
  1209. * @brief xcb_input_get_device_key_mapping_reply_t
  1210. **/
  1211. typedef struct xcb_input_get_device_key_mapping_reply_t {
  1212. uint8_t response_type;
  1213. uint8_t xi_reply_type;
  1214. uint16_t sequence;
  1215. uint32_t length;
  1216. uint8_t keysyms_per_keycode;
  1217. uint8_t pad0[23];
  1218. } xcb_input_get_device_key_mapping_reply_t;
  1219. /** Opcode for xcb_input_change_device_key_mapping. */
  1220. #define XCB_INPUT_CHANGE_DEVICE_KEY_MAPPING 25
  1221. /**
  1222. * @brief xcb_input_change_device_key_mapping_request_t
  1223. **/
  1224. typedef struct xcb_input_change_device_key_mapping_request_t {
  1225. uint8_t major_opcode;
  1226. uint8_t minor_opcode;
  1227. uint16_t length;
  1228. uint8_t device_id;
  1229. xcb_input_key_code_t first_keycode;
  1230. uint8_t keysyms_per_keycode;
  1231. uint8_t keycode_count;
  1232. } xcb_input_change_device_key_mapping_request_t;
  1233. /**
  1234. * @brief xcb_input_get_device_modifier_mapping_cookie_t
  1235. **/
  1236. typedef struct xcb_input_get_device_modifier_mapping_cookie_t {
  1237. unsigned int sequence;
  1238. } xcb_input_get_device_modifier_mapping_cookie_t;
  1239. /** Opcode for xcb_input_get_device_modifier_mapping. */
  1240. #define XCB_INPUT_GET_DEVICE_MODIFIER_MAPPING 26
  1241. /**
  1242. * @brief xcb_input_get_device_modifier_mapping_request_t
  1243. **/
  1244. typedef struct xcb_input_get_device_modifier_mapping_request_t {
  1245. uint8_t major_opcode;
  1246. uint8_t minor_opcode;
  1247. uint16_t length;
  1248. uint8_t device_id;
  1249. uint8_t pad0[3];
  1250. } xcb_input_get_device_modifier_mapping_request_t;
  1251. /**
  1252. * @brief xcb_input_get_device_modifier_mapping_reply_t
  1253. **/
  1254. typedef struct xcb_input_get_device_modifier_mapping_reply_t {
  1255. uint8_t response_type;
  1256. uint8_t xi_reply_type;
  1257. uint16_t sequence;
  1258. uint32_t length;
  1259. uint8_t keycodes_per_modifier;
  1260. uint8_t pad0[23];
  1261. } xcb_input_get_device_modifier_mapping_reply_t;
  1262. /**
  1263. * @brief xcb_input_set_device_modifier_mapping_cookie_t
  1264. **/
  1265. typedef struct xcb_input_set_device_modifier_mapping_cookie_t {
  1266. unsigned int sequence;
  1267. } xcb_input_set_device_modifier_mapping_cookie_t;
  1268. /** Opcode for xcb_input_set_device_modifier_mapping. */
  1269. #define XCB_INPUT_SET_DEVICE_MODIFIER_MAPPING 27
  1270. /**
  1271. * @brief xcb_input_set_device_modifier_mapping_request_t
  1272. **/
  1273. typedef struct xcb_input_set_device_modifier_mapping_request_t {
  1274. uint8_t major_opcode;
  1275. uint8_t minor_opcode;
  1276. uint16_t length;
  1277. uint8_t device_id;
  1278. uint8_t keycodes_per_modifier;
  1279. uint8_t pad0[2];
  1280. } xcb_input_set_device_modifier_mapping_request_t;
  1281. /**
  1282. * @brief xcb_input_set_device_modifier_mapping_reply_t
  1283. **/
  1284. typedef struct xcb_input_set_device_modifier_mapping_reply_t {
  1285. uint8_t response_type;
  1286. uint8_t xi_reply_type;
  1287. uint16_t sequence;
  1288. uint32_t length;
  1289. uint8_t status;
  1290. uint8_t pad0[23];
  1291. } xcb_input_set_device_modifier_mapping_reply_t;
  1292. /**
  1293. * @brief xcb_input_get_device_button_mapping_cookie_t
  1294. **/
  1295. typedef struct xcb_input_get_device_button_mapping_cookie_t {
  1296. unsigned int sequence;
  1297. } xcb_input_get_device_button_mapping_cookie_t;
  1298. /** Opcode for xcb_input_get_device_button_mapping. */
  1299. #define XCB_INPUT_GET_DEVICE_BUTTON_MAPPING 28
  1300. /**
  1301. * @brief xcb_input_get_device_button_mapping_request_t
  1302. **/
  1303. typedef struct xcb_input_get_device_button_mapping_request_t {
  1304. uint8_t major_opcode;
  1305. uint8_t minor_opcode;
  1306. uint16_t length;
  1307. uint8_t device_id;
  1308. uint8_t pad0[3];
  1309. } xcb_input_get_device_button_mapping_request_t;
  1310. /**
  1311. * @brief xcb_input_get_device_button_mapping_reply_t
  1312. **/
  1313. typedef struct xcb_input_get_device_button_mapping_reply_t {
  1314. uint8_t response_type;
  1315. uint8_t xi_reply_type;
  1316. uint16_t sequence;
  1317. uint32_t length;
  1318. uint8_t map_size;
  1319. uint8_t pad0[23];
  1320. } xcb_input_get_device_button_mapping_reply_t;
  1321. /**
  1322. * @brief xcb_input_set_device_button_mapping_cookie_t
  1323. **/
  1324. typedef struct xcb_input_set_device_button_mapping_cookie_t {
  1325. unsigned int sequence;
  1326. } xcb_input_set_device_button_mapping_cookie_t;
  1327. /** Opcode for xcb_input_set_device_button_mapping. */
  1328. #define XCB_INPUT_SET_DEVICE_BUTTON_MAPPING 29
  1329. /**
  1330. * @brief xcb_input_set_device_button_mapping_request_t
  1331. **/
  1332. typedef struct xcb_input_set_device_button_mapping_request_t {
  1333. uint8_t major_opcode;
  1334. uint8_t minor_opcode;
  1335. uint16_t length;
  1336. uint8_t device_id;
  1337. uint8_t map_size;
  1338. uint8_t pad0[2];
  1339. } xcb_input_set_device_button_mapping_request_t;
  1340. /**
  1341. * @brief xcb_input_set_device_button_mapping_reply_t
  1342. **/
  1343. typedef struct xcb_input_set_device_button_mapping_reply_t {
  1344. uint8_t response_type;
  1345. uint8_t xi_reply_type;
  1346. uint16_t sequence;
  1347. uint32_t length;
  1348. uint8_t status;
  1349. uint8_t pad0[23];
  1350. } xcb_input_set_device_button_mapping_reply_t;
  1351. /**
  1352. * @brief xcb_input_key_state_t
  1353. **/
  1354. typedef struct xcb_input_key_state_t {
  1355. uint8_t class_id;
  1356. uint8_t len;
  1357. uint8_t num_keys;
  1358. uint8_t pad0;
  1359. uint8_t keys[32];
  1360. } xcb_input_key_state_t;
  1361. /**
  1362. * @brief xcb_input_key_state_iterator_t
  1363. **/
  1364. typedef struct xcb_input_key_state_iterator_t {
  1365. xcb_input_key_state_t *data;
  1366. int rem;
  1367. int index;
  1368. } xcb_input_key_state_iterator_t;
  1369. /**
  1370. * @brief xcb_input_button_state_t
  1371. **/
  1372. typedef struct xcb_input_button_state_t {
  1373. uint8_t class_id;
  1374. uint8_t len;
  1375. uint8_t num_buttons;
  1376. uint8_t pad0;
  1377. uint8_t buttons[32];
  1378. } xcb_input_button_state_t;
  1379. /**
  1380. * @brief xcb_input_button_state_iterator_t
  1381. **/
  1382. typedef struct xcb_input_button_state_iterator_t {
  1383. xcb_input_button_state_t *data;
  1384. int rem;
  1385. int index;
  1386. } xcb_input_button_state_iterator_t;
  1387. typedef enum xcb_input_valuator_state_mode_mask_t {
  1388. XCB_INPUT_VALUATOR_STATE_MODE_MASK_DEVICE_MODE_ABSOLUTE = 1,
  1389. XCB_INPUT_VALUATOR_STATE_MODE_MASK_OUT_OF_PROXIMITY = 2
  1390. } xcb_input_valuator_state_mode_mask_t;
  1391. /**
  1392. * @brief xcb_input_valuator_state_t
  1393. **/
  1394. typedef struct xcb_input_valuator_state_t {
  1395. uint8_t class_id;
  1396. uint8_t len;
  1397. uint8_t num_valuators;
  1398. uint8_t mode;
  1399. } xcb_input_valuator_state_t;
  1400. /**
  1401. * @brief xcb_input_valuator_state_iterator_t
  1402. **/
  1403. typedef struct xcb_input_valuator_state_iterator_t {
  1404. xcb_input_valuator_state_t *data;
  1405. int rem;
  1406. int index;
  1407. } xcb_input_valuator_state_iterator_t;
  1408. /**
  1409. * @brief xcb_input_input_state_data_t
  1410. **/
  1411. typedef struct xcb_input_input_state_data_t {
  1412. struct {
  1413. uint8_t num_keys;
  1414. uint8_t pad0;
  1415. uint8_t keys[32];
  1416. } key;
  1417. struct {
  1418. uint8_t num_buttons;
  1419. uint8_t pad1;
  1420. uint8_t buttons[32];
  1421. } button;
  1422. struct {
  1423. uint8_t num_valuators;
  1424. uint8_t mode;
  1425. int32_t *valuators;
  1426. } valuator;
  1427. } xcb_input_input_state_data_t;
  1428. /**
  1429. * @brief xcb_input_input_state_t
  1430. **/
  1431. typedef struct xcb_input_input_state_t {
  1432. uint8_t class_id;
  1433. uint8_t len;
  1434. } xcb_input_input_state_t;
  1435. void *
  1436. xcb_input_input_state_data (const xcb_input_input_state_t *R);
  1437. /**
  1438. * @brief xcb_input_input_state_iterator_t
  1439. **/
  1440. typedef struct xcb_input_input_state_iterator_t {
  1441. xcb_input_input_state_t *data;
  1442. int rem;
  1443. int index;
  1444. } xcb_input_input_state_iterator_t;
  1445. /**
  1446. * @brief xcb_input_query_device_state_cookie_t
  1447. **/
  1448. typedef struct xcb_input_query_device_state_cookie_t {
  1449. unsigned int sequence;
  1450. } xcb_input_query_device_state_cookie_t;
  1451. /** Opcode for xcb_input_query_device_state. */
  1452. #define XCB_INPUT_QUERY_DEVICE_STATE 30
  1453. /**
  1454. * @brief xcb_input_query_device_state_request_t
  1455. **/
  1456. typedef struct xcb_input_query_device_state_request_t {
  1457. uint8_t major_opcode;
  1458. uint8_t minor_opcode;
  1459. uint16_t length;
  1460. uint8_t device_id;
  1461. uint8_t pad0[3];
  1462. } xcb_input_query_device_state_request_t;
  1463. /**
  1464. * @brief xcb_input_query_device_state_reply_t
  1465. **/
  1466. typedef struct xcb_input_query_device_state_reply_t {
  1467. uint8_t response_type;
  1468. uint8_t xi_reply_type;
  1469. uint16_t sequence;
  1470. uint32_t length;
  1471. uint8_t num_classes;
  1472. uint8_t pad0[23];
  1473. } xcb_input_query_device_state_reply_t;
  1474. /** Opcode for xcb_input_device_bell. */
  1475. #define XCB_INPUT_DEVICE_BELL 32
  1476. /**
  1477. * @brief xcb_input_device_bell_request_t
  1478. **/
  1479. typedef struct xcb_input_device_bell_request_t {
  1480. uint8_t major_opcode;
  1481. uint8_t minor_opcode;
  1482. uint16_t length;
  1483. uint8_t device_id;
  1484. uint8_t feedback_id;
  1485. uint8_t feedback_class;
  1486. int8_t percent;
  1487. } xcb_input_device_bell_request_t;
  1488. /**
  1489. * @brief xcb_input_set_device_valuators_cookie_t
  1490. **/
  1491. typedef struct xcb_input_set_device_valuators_cookie_t {
  1492. unsigned int sequence;
  1493. } xcb_input_set_device_valuators_cookie_t;
  1494. /** Opcode for xcb_input_set_device_valuators. */
  1495. #define XCB_INPUT_SET_DEVICE_VALUATORS 33
  1496. /**
  1497. * @brief xcb_input_set_device_valuators_request_t
  1498. **/
  1499. typedef struct xcb_input_set_device_valuators_request_t {
  1500. uint8_t major_opcode;
  1501. uint8_t minor_opcode;
  1502. uint16_t length;
  1503. uint8_t device_id;
  1504. uint8_t first_valuator;
  1505. uint8_t num_valuators;
  1506. uint8_t pad0;
  1507. } xcb_input_set_device_valuators_request_t;
  1508. /**
  1509. * @brief xcb_input_set_device_valuators_reply_t
  1510. **/
  1511. typedef struct xcb_input_set_device_valuators_reply_t {
  1512. uint8_t response_type;
  1513. uint8_t xi_reply_type;
  1514. uint16_t sequence;
  1515. uint32_t length;
  1516. uint8_t status;
  1517. uint8_t pad0[23];
  1518. } xcb_input_set_device_valuators_reply_t;
  1519. typedef enum xcb_input_device_control_t {
  1520. XCB_INPUT_DEVICE_CONTROL_RESOLUTION = 1,
  1521. XCB_INPUT_DEVICE_CONTROL_ABS_CALIB = 2,
  1522. XCB_INPUT_DEVICE_CONTROL_CORE = 3,
  1523. XCB_INPUT_DEVICE_CONTROL_ENABLE = 4,
  1524. XCB_INPUT_DEVICE_CONTROL_ABS_AREA = 5
  1525. } xcb_input_device_control_t;
  1526. /**
  1527. * @brief xcb_input_device_resolution_state_t
  1528. **/
  1529. typedef struct xcb_input_device_resolution_state_t {
  1530. uint16_t control_id;
  1531. uint16_t len;
  1532. uint32_t num_valuators;
  1533. } xcb_input_device_resolution_state_t;
  1534. /**
  1535. * @brief xcb_input_device_resolution_state_iterator_t
  1536. **/
  1537. typedef struct xcb_input_device_resolution_state_iterator_t {
  1538. xcb_input_device_resolution_state_t *data;
  1539. int rem;
  1540. int index;
  1541. } xcb_input_device_resolution_state_iterator_t;
  1542. /**
  1543. * @brief xcb_input_device_abs_calib_state_t
  1544. **/
  1545. typedef struct xcb_input_device_abs_calib_state_t {
  1546. uint16_t control_id;
  1547. uint16_t len;
  1548. int32_t min_x;
  1549. int32_t max_x;
  1550. int32_t min_y;
  1551. int32_t max_y;
  1552. uint32_t flip_x;
  1553. uint32_t flip_y;
  1554. uint32_t rotation;
  1555. uint32_t button_threshold;
  1556. } xcb_input_device_abs_calib_state_t;
  1557. /**
  1558. * @brief xcb_input_device_abs_calib_state_iterator_t
  1559. **/
  1560. typedef struct xcb_input_device_abs_calib_state_iterator_t {
  1561. xcb_input_device_abs_calib_state_t *data;
  1562. int rem;
  1563. int index;
  1564. } xcb_input_device_abs_calib_state_iterator_t;
  1565. /**
  1566. * @brief xcb_input_device_abs_area_state_t
  1567. **/
  1568. typedef struct xcb_input_device_abs_area_state_t {
  1569. uint16_t control_id;
  1570. uint16_t len;
  1571. uint32_t offset_x;
  1572. uint32_t offset_y;
  1573. uint32_t width;
  1574. uint32_t height;
  1575. uint32_t screen;
  1576. uint32_t following;
  1577. } xcb_input_device_abs_area_state_t;
  1578. /**
  1579. * @brief xcb_input_device_abs_area_state_iterator_t
  1580. **/
  1581. typedef struct xcb_input_device_abs_area_state_iterator_t {
  1582. xcb_input_device_abs_area_state_t *data;
  1583. int rem;
  1584. int index;
  1585. } xcb_input_device_abs_area_state_iterator_t;
  1586. /**
  1587. * @brief xcb_input_device_core_state_t
  1588. **/
  1589. typedef struct xcb_input_device_core_state_t {
  1590. uint16_t control_id;
  1591. uint16_t len;
  1592. uint8_t status;
  1593. uint8_t iscore;
  1594. uint8_t pad0[2];
  1595. } xcb_input_device_core_state_t;
  1596. /**
  1597. * @brief xcb_input_device_core_state_iterator_t
  1598. **/
  1599. typedef struct xcb_input_device_core_state_iterator_t {
  1600. xcb_input_device_core_state_t *data;
  1601. int rem;
  1602. int index;
  1603. } xcb_input_device_core_state_iterator_t;
  1604. /**
  1605. * @brief xcb_input_device_enable_state_t
  1606. **/
  1607. typedef struct xcb_input_device_enable_state_t {
  1608. uint16_t control_id;
  1609. uint16_t len;
  1610. uint8_t enable;
  1611. uint8_t pad0[3];
  1612. } xcb_input_device_enable_state_t;
  1613. /**
  1614. * @brief xcb_input_device_enable_state_iterator_t
  1615. **/
  1616. typedef struct xcb_input_device_enable_state_iterator_t {
  1617. xcb_input_device_enable_state_t *data;
  1618. int rem;
  1619. int index;
  1620. } xcb_input_device_enable_state_iterator_t;
  1621. /**
  1622. * @brief xcb_input_device_state_data_t
  1623. **/
  1624. typedef struct xcb_input_device_state_data_t {
  1625. struct {
  1626. uint32_t num_valuators;
  1627. uint32_t *resolution_values;
  1628. uint32_t *resolution_min;
  1629. uint32_t *resolution_max;
  1630. } resolution;
  1631. struct {
  1632. int32_t min_x;
  1633. int32_t max_x;
  1634. int32_t min_y;
  1635. int32_t max_y;
  1636. uint32_t flip_x;
  1637. uint32_t flip_y;
  1638. uint32_t rotation;
  1639. uint32_t button_threshold;
  1640. } abs_calib;
  1641. struct {
  1642. uint8_t status;
  1643. uint8_t iscore;
  1644. uint8_t pad0[2];
  1645. } core;
  1646. struct {
  1647. uint8_t enable;
  1648. uint8_t pad1[3];
  1649. } enable;
  1650. struct {
  1651. uint32_t offset_x;
  1652. uint32_t offset_y;
  1653. uint32_t width;
  1654. uint32_t height;
  1655. uint32_t screen;
  1656. uint32_t following;
  1657. } abs_area;
  1658. } xcb_input_device_state_data_t;
  1659. /**
  1660. * @brief xcb_input_device_state_t
  1661. **/
  1662. typedef struct xcb_input_device_state_t {
  1663. uint16_t control_id;
  1664. uint16_t len;
  1665. } xcb_input_device_state_t;
  1666. void *
  1667. xcb_input_device_state_data (const xcb_input_device_state_t *R);
  1668. /**
  1669. * @brief xcb_input_device_state_iterator_t
  1670. **/
  1671. typedef struct xcb_input_device_state_iterator_t {
  1672. xcb_input_device_state_t *data;
  1673. int rem;
  1674. int index;
  1675. } xcb_input_device_state_iterator_t;
  1676. /**
  1677. * @brief xcb_input_get_device_control_cookie_t
  1678. **/
  1679. typedef struct xcb_input_get_device_control_cookie_t {
  1680. unsigned int sequence;
  1681. } xcb_input_get_device_control_cookie_t;
  1682. /** Opcode for xcb_input_get_device_control. */
  1683. #define XCB_INPUT_GET_DEVICE_CONTROL 34
  1684. /**
  1685. * @brief xcb_input_get_device_control_request_t
  1686. **/
  1687. typedef struct xcb_input_get_device_control_request_t {
  1688. uint8_t major_opcode;
  1689. uint8_t minor_opcode;
  1690. uint16_t length;
  1691. uint16_t control_id;
  1692. uint8_t device_id;
  1693. uint8_t pad0;
  1694. } xcb_input_get_device_control_request_t;
  1695. /**
  1696. * @brief xcb_input_get_device_control_reply_t
  1697. **/
  1698. typedef struct xcb_input_get_device_control_reply_t {
  1699. uint8_t response_type;
  1700. uint8_t xi_reply_type;
  1701. uint16_t sequence;
  1702. uint32_t length;
  1703. uint8_t status;
  1704. uint8_t pad0[23];
  1705. } xcb_input_get_device_control_reply_t;
  1706. /**
  1707. * @brief xcb_input_device_resolution_ctl_t
  1708. **/
  1709. typedef struct xcb_input_device_resolution_ctl_t {
  1710. uint16_t control_id;
  1711. uint16_t len;
  1712. uint8_t first_valuator;
  1713. uint8_t num_valuators;
  1714. uint8_t pad0[2];
  1715. } xcb_input_device_resolution_ctl_t;
  1716. /**
  1717. * @brief xcb_input_device_resolution_ctl_iterator_t
  1718. **/
  1719. typedef struct xcb_input_device_resolution_ctl_iterator_t {
  1720. xcb_input_device_resolution_ctl_t *data;
  1721. int rem;
  1722. int index;
  1723. } xcb_input_device_resolution_ctl_iterator_t;
  1724. /**
  1725. * @brief xcb_input_device_abs_calib_ctl_t
  1726. **/
  1727. typedef struct xcb_input_device_abs_calib_ctl_t {
  1728. uint16_t control_id;
  1729. uint16_t len;
  1730. int32_t min_x;
  1731. int32_t max_x;
  1732. int32_t min_y;
  1733. int32_t max_y;
  1734. uint32_t flip_x;
  1735. uint32_t flip_y;
  1736. uint32_t rotation;
  1737. uint32_t button_threshold;
  1738. } xcb_input_device_abs_calib_ctl_t;
  1739. /**
  1740. * @brief xcb_input_device_abs_calib_ctl_iterator_t
  1741. **/
  1742. typedef struct xcb_input_device_abs_calib_ctl_iterator_t {
  1743. xcb_input_device_abs_calib_ctl_t *data;
  1744. int rem;
  1745. int index;
  1746. } xcb_input_device_abs_calib_ctl_iterator_t;
  1747. /**
  1748. * @brief xcb_input_device_abs_area_ctrl_t
  1749. **/
  1750. typedef struct xcb_input_device_abs_area_ctrl_t {
  1751. uint16_t control_id;
  1752. uint16_t len;
  1753. uint32_t offset_x;
  1754. uint32_t offset_y;
  1755. int32_t width;
  1756. int32_t height;
  1757. int32_t screen;
  1758. uint32_t following;
  1759. } xcb_input_device_abs_area_ctrl_t;
  1760. /**
  1761. * @brief xcb_input_device_abs_area_ctrl_iterator_t
  1762. **/
  1763. typedef struct xcb_input_device_abs_area_ctrl_iterator_t {
  1764. xcb_input_device_abs_area_ctrl_t *data;
  1765. int rem;
  1766. int index;
  1767. } xcb_input_device_abs_area_ctrl_iterator_t;
  1768. /**
  1769. * @brief xcb_input_device_core_ctrl_t
  1770. **/
  1771. typedef struct xcb_input_device_core_ctrl_t {
  1772. uint16_t control_id;
  1773. uint16_t len;
  1774. uint8_t status;
  1775. uint8_t pad0[3];
  1776. } xcb_input_device_core_ctrl_t;
  1777. /**
  1778. * @brief xcb_input_device_core_ctrl_iterator_t
  1779. **/
  1780. typedef struct xcb_input_device_core_ctrl_iterator_t {
  1781. xcb_input_device_core_ctrl_t *data;
  1782. int rem;
  1783. int index;
  1784. } xcb_input_device_core_ctrl_iterator_t;
  1785. /**
  1786. * @brief xcb_input_device_enable_ctrl_t
  1787. **/
  1788. typedef struct xcb_input_device_enable_ctrl_t {
  1789. uint16_t control_id;
  1790. uint16_t len;
  1791. uint8_t enable;
  1792. uint8_t pad0[3];
  1793. } xcb_input_device_enable_ctrl_t;
  1794. /**
  1795. * @brief xcb_input_device_enable_ctrl_iterator_t
  1796. **/
  1797. typedef struct xcb_input_device_enable_ctrl_iterator_t {
  1798. xcb_input_device_enable_ctrl_t *data;
  1799. int rem;
  1800. int index;
  1801. } xcb_input_device_enable_ctrl_iterator_t;
  1802. /**
  1803. * @brief xcb_input_device_ctl_data_t
  1804. **/
  1805. typedef struct xcb_input_device_ctl_data_t {
  1806. struct {
  1807. uint8_t first_valuator;
  1808. uint8_t num_valuators;
  1809. uint8_t pad0[2];
  1810. uint32_t *resolution_values;
  1811. } resolution;
  1812. struct {
  1813. int32_t min_x;
  1814. int32_t max_x;
  1815. int32_t min_y;
  1816. int32_t max_y;
  1817. uint32_t flip_x;
  1818. uint32_t flip_y;
  1819. uint32_t rotation;
  1820. uint32_t button_threshold;
  1821. } abs_calib;
  1822. struct {
  1823. uint8_t status;
  1824. uint8_t pad1[3];
  1825. } core;
  1826. struct {
  1827. uint8_t enable;
  1828. uint8_t pad2[3];
  1829. } enable;
  1830. struct {
  1831. uint32_t offset_x;
  1832. uint32_t offset_y;
  1833. int32_t width;
  1834. int32_t height;
  1835. int32_t screen;
  1836. uint32_t following;
  1837. } abs_area;
  1838. } xcb_input_device_ctl_data_t;
  1839. /**
  1840. * @brief xcb_input_device_ctl_t
  1841. **/
  1842. typedef struct xcb_input_device_ctl_t {
  1843. uint16_t control_id;
  1844. uint16_t len;
  1845. } xcb_input_device_ctl_t;
  1846. void *
  1847. xcb_input_device_ctl_data (const xcb_input_device_ctl_t *R);
  1848. /**
  1849. * @brief xcb_input_device_ctl_iterator_t
  1850. **/
  1851. typedef struct xcb_input_device_ctl_iterator_t {
  1852. xcb_input_device_ctl_t *data;
  1853. int rem;
  1854. int index;
  1855. } xcb_input_device_ctl_iterator_t;
  1856. /**
  1857. * @brief xcb_input_change_device_control_cookie_t
  1858. **/
  1859. typedef struct xcb_input_change_device_control_cookie_t {
  1860. unsigned int sequence;
  1861. } xcb_input_change_device_control_cookie_t;
  1862. /** Opcode for xcb_input_change_device_control. */
  1863. #define XCB_INPUT_CHANGE_DEVICE_CONTROL 35
  1864. /**
  1865. * @brief xcb_input_change_device_control_request_t
  1866. **/
  1867. typedef struct xcb_input_change_device_control_request_t {
  1868. uint8_t major_opcode;
  1869. uint8_t minor_opcode;
  1870. uint16_t length;
  1871. uint16_t control_id;
  1872. uint8_t device_id;
  1873. uint8_t pad0;
  1874. } xcb_input_change_device_control_request_t;
  1875. /**
  1876. * @brief xcb_input_change_device_control_reply_t
  1877. **/
  1878. typedef struct xcb_input_change_device_control_reply_t {
  1879. uint8_t response_type;
  1880. uint8_t xi_reply_type;
  1881. uint16_t sequence;
  1882. uint32_t length;
  1883. uint8_t status;
  1884. uint8_t pad0[23];
  1885. } xcb_input_change_device_control_reply_t;
  1886. /**
  1887. * @brief xcb_input_list_device_properties_cookie_t
  1888. **/
  1889. typedef struct xcb_input_list_device_properties_cookie_t {
  1890. unsigned int sequence;
  1891. } xcb_input_list_device_properties_cookie_t;
  1892. /** Opcode for xcb_input_list_device_properties. */
  1893. #define XCB_INPUT_LIST_DEVICE_PROPERTIES 36
  1894. /**
  1895. * @brief xcb_input_list_device_properties_request_t
  1896. **/
  1897. typedef struct xcb_input_list_device_properties_request_t {
  1898. uint8_t major_opcode;
  1899. uint8_t minor_opcode;
  1900. uint16_t length;
  1901. uint8_t device_id;
  1902. uint8_t pad0[3];
  1903. } xcb_input_list_device_properties_request_t;
  1904. /**
  1905. * @brief xcb_input_list_device_properties_reply_t
  1906. **/
  1907. typedef struct xcb_input_list_device_properties_reply_t {
  1908. uint8_t response_type;
  1909. uint8_t xi_reply_type;
  1910. uint16_t sequence;
  1911. uint32_t length;
  1912. uint16_t num_atoms;
  1913. uint8_t pad0[22];
  1914. } xcb_input_list_device_properties_reply_t;
  1915. typedef enum xcb_input_property_format_t {
  1916. XCB_INPUT_PROPERTY_FORMAT_8_BITS = 8,
  1917. XCB_INPUT_PROPERTY_FORMAT_16_BITS = 16,
  1918. XCB_INPUT_PROPERTY_FORMAT_32_BITS = 32
  1919. } xcb_input_property_format_t;
  1920. /**
  1921. * @brief xcb_input_change_device_property_items_t
  1922. **/
  1923. typedef struct xcb_input_change_device_property_items_t {
  1924. uint8_t *data8;
  1925. uint16_t *data16;
  1926. uint32_t *data32;
  1927. } xcb_input_change_device_property_items_t;
  1928. /** Opcode for xcb_input_change_device_property. */
  1929. #define XCB_INPUT_CHANGE_DEVICE_PROPERTY 37
  1930. /**
  1931. * @brief xcb_input_change_device_property_request_t
  1932. **/
  1933. typedef struct xcb_input_change_device_property_request_t {
  1934. uint8_t major_opcode;
  1935. uint8_t minor_opcode;
  1936. uint16_t length;
  1937. xcb_atom_t property;
  1938. xcb_atom_t type;
  1939. uint8_t device_id;
  1940. uint8_t format;
  1941. uint8_t mode;
  1942. uint8_t pad0;
  1943. uint32_t num_items;
  1944. } xcb_input_change_device_property_request_t;
  1945. /** Opcode for xcb_input_delete_device_property. */
  1946. #define XCB_INPUT_DELETE_DEVICE_PROPERTY 38
  1947. /**
  1948. * @brief xcb_input_delete_device_property_request_t
  1949. **/
  1950. typedef struct xcb_input_delete_device_property_request_t {
  1951. uint8_t major_opcode;
  1952. uint8_t minor_opcode;
  1953. uint16_t length;
  1954. xcb_atom_t property;
  1955. uint8_t device_id;
  1956. uint8_t pad0[3];
  1957. } xcb_input_delete_device_property_request_t;
  1958. /**
  1959. * @brief xcb_input_get_device_property_cookie_t
  1960. **/
  1961. typedef struct xcb_input_get_device_property_cookie_t {
  1962. unsigned int sequence;
  1963. } xcb_input_get_device_property_cookie_t;
  1964. /** Opcode for xcb_input_get_device_property. */
  1965. #define XCB_INPUT_GET_DEVICE_PROPERTY 39
  1966. /**
  1967. * @brief xcb_input_get_device_property_request_t
  1968. **/
  1969. typedef struct xcb_input_get_device_property_request_t {
  1970. uint8_t major_opcode;
  1971. uint8_t minor_opcode;
  1972. uint16_t length;
  1973. xcb_atom_t property;
  1974. xcb_atom_t type;
  1975. uint32_t offset;
  1976. uint32_t len;
  1977. uint8_t device_id;
  1978. uint8_t _delete;
  1979. uint8_t pad0[2];
  1980. } xcb_input_get_device_property_request_t;
  1981. /**
  1982. * @brief xcb_input_get_device_property_items_t
  1983. **/
  1984. typedef struct xcb_input_get_device_property_items_t {
  1985. uint8_t *data8;
  1986. uint16_t *data16;
  1987. uint32_t *data32;
  1988. } xcb_input_get_device_property_items_t;
  1989. /**
  1990. * @brief xcb_input_get_device_property_reply_t
  1991. **/
  1992. typedef struct xcb_input_get_device_property_reply_t {
  1993. uint8_t response_type;
  1994. uint8_t xi_reply_type;
  1995. uint16_t sequence;
  1996. uint32_t length;
  1997. xcb_atom_t type;
  1998. uint32_t bytes_after;
  1999. uint32_t num_items;
  2000. uint8_t format;
  2001. uint8_t device_id;
  2002. uint8_t pad0[10];
  2003. } xcb_input_get_device_property_reply_t;
  2004. typedef enum xcb_input_device_t {
  2005. XCB_INPUT_DEVICE_ALL = 0,
  2006. XCB_INPUT_DEVICE_ALL_MASTER = 1
  2007. } xcb_input_device_t;
  2008. /**
  2009. * @brief xcb_input_group_info_t
  2010. **/
  2011. typedef struct xcb_input_group_info_t {
  2012. uint8_t base;
  2013. uint8_t latched;
  2014. uint8_t locked;
  2015. uint8_t effective;
  2016. } xcb_input_group_info_t;
  2017. /**
  2018. * @brief xcb_input_group_info_iterator_t
  2019. **/
  2020. typedef struct xcb_input_group_info_iterator_t {
  2021. xcb_input_group_info_t *data;
  2022. int rem;
  2023. int index;
  2024. } xcb_input_group_info_iterator_t;
  2025. /**
  2026. * @brief xcb_input_modifier_info_t
  2027. **/
  2028. typedef struct xcb_input_modifier_info_t {
  2029. uint32_t base;
  2030. uint32_t latched;
  2031. uint32_t locked;
  2032. uint32_t effective;
  2033. } xcb_input_modifier_info_t;
  2034. /**
  2035. * @brief xcb_input_modifier_info_iterator_t
  2036. **/
  2037. typedef struct xcb_input_modifier_info_iterator_t {
  2038. xcb_input_modifier_info_t *data;
  2039. int rem;
  2040. int index;
  2041. } xcb_input_modifier_info_iterator_t;
  2042. /**
  2043. * @brief xcb_input_xi_query_pointer_cookie_t
  2044. **/
  2045. typedef struct xcb_input_xi_query_pointer_cookie_t {
  2046. unsigned int sequence;
  2047. } xcb_input_xi_query_pointer_cookie_t;
  2048. /** Opcode for xcb_input_xi_query_pointer. */
  2049. #define XCB_INPUT_XI_QUERY_POINTER 40
  2050. /**
  2051. * @brief xcb_input_xi_query_pointer_request_t
  2052. **/
  2053. typedef struct xcb_input_xi_query_pointer_request_t {
  2054. uint8_t major_opcode;
  2055. uint8_t minor_opcode;
  2056. uint16_t length;
  2057. xcb_window_t window;
  2058. xcb_input_device_id_t deviceid;
  2059. uint8_t pad0[2];
  2060. } xcb_input_xi_query_pointer_request_t;
  2061. /**
  2062. * @brief xcb_input_xi_query_pointer_reply_t
  2063. **/
  2064. typedef struct xcb_input_xi_query_pointer_reply_t {
  2065. uint8_t response_type;
  2066. uint8_t pad0;
  2067. uint16_t sequence;
  2068. uint32_t length;
  2069. xcb_window_t root;
  2070. xcb_window_t child;
  2071. xcb_input_fp1616_t root_x;
  2072. xcb_input_fp1616_t root_y;
  2073. xcb_input_fp1616_t win_x;
  2074. xcb_input_fp1616_t win_y;
  2075. uint8_t same_screen;
  2076. uint8_t pad1;
  2077. uint16_t buttons_len;
  2078. xcb_input_modifier_info_t mods;
  2079. xcb_input_group_info_t group;
  2080. } xcb_input_xi_query_pointer_reply_t;
  2081. /** Opcode for xcb_input_xi_warp_pointer. */
  2082. #define XCB_INPUT_XI_WARP_POINTER 41
  2083. /**
  2084. * @brief xcb_input_xi_warp_pointer_request_t
  2085. **/
  2086. typedef struct xcb_input_xi_warp_pointer_request_t {
  2087. uint8_t major_opcode;
  2088. uint8_t minor_opcode;
  2089. uint16_t length;
  2090. xcb_window_t src_win;
  2091. xcb_window_t dst_win;
  2092. xcb_input_fp1616_t src_x;
  2093. xcb_input_fp1616_t src_y;
  2094. uint16_t src_width;
  2095. uint16_t src_height;
  2096. xcb_input_fp1616_t dst_x;
  2097. xcb_input_fp1616_t dst_y;
  2098. xcb_input_device_id_t deviceid;
  2099. uint8_t pad0[2];
  2100. } xcb_input_xi_warp_pointer_request_t;
  2101. /** Opcode for xcb_input_xi_change_cursor. */
  2102. #define XCB_INPUT_XI_CHANGE_CURSOR 42
  2103. /**
  2104. * @brief xcb_input_xi_change_cursor_request_t
  2105. **/
  2106. typedef struct xcb_input_xi_change_cursor_request_t {
  2107. uint8_t major_opcode;
  2108. uint8_t minor_opcode;
  2109. uint16_t length;
  2110. xcb_window_t window;
  2111. xcb_cursor_t cursor;
  2112. xcb_input_device_id_t deviceid;
  2113. uint8_t pad0[2];
  2114. } xcb_input_xi_change_cursor_request_t;
  2115. typedef enum xcb_input_hierarchy_change_type_t {
  2116. XCB_INPUT_HIERARCHY_CHANGE_TYPE_ADD_MASTER = 1,
  2117. XCB_INPUT_HIERARCHY_CHANGE_TYPE_REMOVE_MASTER = 2,
  2118. XCB_INPUT_HIERARCHY_CHANGE_TYPE_ATTACH_SLAVE = 3,
  2119. XCB_INPUT_HIERARCHY_CHANGE_TYPE_DETACH_SLAVE = 4
  2120. } xcb_input_hierarchy_change_type_t;
  2121. typedef enum xcb_input_change_mode_t {
  2122. XCB_INPUT_CHANGE_MODE_ATTACH = 1,
  2123. XCB_INPUT_CHANGE_MODE_FLOAT = 2
  2124. } xcb_input_change_mode_t;
  2125. /**
  2126. * @brief xcb_input_add_master_t
  2127. **/
  2128. typedef struct xcb_input_add_master_t {
  2129. uint16_t type;
  2130. uint16_t len;
  2131. uint16_t name_len;
  2132. uint8_t send_core;
  2133. uint8_t enable;
  2134. } xcb_input_add_master_t;
  2135. /**
  2136. * @brief xcb_input_add_master_iterator_t
  2137. **/
  2138. typedef struct xcb_input_add_master_iterator_t {
  2139. xcb_input_add_master_t *data;
  2140. int rem;
  2141. int index;
  2142. } xcb_input_add_master_iterator_t;
  2143. /**
  2144. * @brief xcb_input_remove_master_t
  2145. **/
  2146. typedef struct xcb_input_remove_master_t {
  2147. uint16_t type;
  2148. uint16_t len;
  2149. xcb_input_device_id_t deviceid;
  2150. uint8_t return_mode;
  2151. uint8_t pad0;
  2152. xcb_input_device_id_t return_pointer;
  2153. xcb_input_device_id_t return_keyboard;
  2154. } xcb_input_remove_master_t;
  2155. /**
  2156. * @brief xcb_input_remove_master_iterator_t
  2157. **/
  2158. typedef struct xcb_input_remove_master_iterator_t {
  2159. xcb_input_remove_master_t *data;
  2160. int rem;
  2161. int index;
  2162. } xcb_input_remove_master_iterator_t;
  2163. /**
  2164. * @brief xcb_input_attach_slave_t
  2165. **/
  2166. typedef struct xcb_input_attach_slave_t {
  2167. uint16_t type;
  2168. uint16_t len;
  2169. xcb_input_device_id_t deviceid;
  2170. xcb_input_device_id_t master;
  2171. } xcb_input_attach_slave_t;
  2172. /**
  2173. * @brief xcb_input_attach_slave_iterator_t
  2174. **/
  2175. typedef struct xcb_input_attach_slave_iterator_t {
  2176. xcb_input_attach_slave_t *data;
  2177. int rem;
  2178. int index;
  2179. } xcb_input_attach_slave_iterator_t;
  2180. /**
  2181. * @brief xcb_input_detach_slave_t
  2182. **/
  2183. typedef struct xcb_input_detach_slave_t {
  2184. uint16_t type;
  2185. uint16_t len;
  2186. xcb_input_device_id_t deviceid;
  2187. uint8_t pad0[2];
  2188. } xcb_input_detach_slave_t;
  2189. /**
  2190. * @brief xcb_input_detach_slave_iterator_t
  2191. **/
  2192. typedef struct xcb_input_detach_slave_iterator_t {
  2193. xcb_input_detach_slave_t *data;
  2194. int rem;
  2195. int index;
  2196. } xcb_input_detach_slave_iterator_t;
  2197. /**
  2198. * @brief xcb_input_hierarchy_change_data_t
  2199. **/
  2200. typedef struct xcb_input_hierarchy_change_data_t {
  2201. struct {
  2202. uint16_t name_len;
  2203. uint8_t send_core;
  2204. uint8_t enable;
  2205. char *name;
  2206. } add_master;
  2207. struct {
  2208. xcb_input_device_id_t deviceid;
  2209. uint8_t return_mode;
  2210. uint8_t pad1;
  2211. xcb_input_device_id_t return_pointer;
  2212. xcb_input_device_id_t return_keyboard;
  2213. } remove_master;
  2214. struct {
  2215. xcb_input_device_id_t deviceid;
  2216. xcb_input_device_id_t master;
  2217. } attach_slave;
  2218. struct {
  2219. xcb_input_device_id_t deviceid;
  2220. uint8_t pad2[2];
  2221. } detach_slave;
  2222. } xcb_input_hierarchy_change_data_t;
  2223. /**
  2224. * @brief xcb_input_hierarchy_change_t
  2225. **/
  2226. typedef struct xcb_input_hierarchy_change_t {
  2227. uint16_t type;
  2228. uint16_t len;
  2229. } xcb_input_hierarchy_change_t;
  2230. void *
  2231. xcb_input_hierarchy_change_data (const xcb_input_hierarchy_change_t *R);
  2232. /**
  2233. * @brief xcb_input_hierarchy_change_iterator_t
  2234. **/
  2235. typedef struct xcb_input_hierarchy_change_iterator_t {
  2236. xcb_input_hierarchy_change_t *data;
  2237. int rem;
  2238. int index;
  2239. } xcb_input_hierarchy_change_iterator_t;
  2240. /** Opcode for xcb_input_xi_change_hierarchy. */
  2241. #define XCB_INPUT_XI_CHANGE_HIERARCHY 43
  2242. /**
  2243. * @brief xcb_input_xi_change_hierarchy_request_t
  2244. **/
  2245. typedef struct xcb_input_xi_change_hierarchy_request_t {
  2246. uint8_t major_opcode;
  2247. uint8_t minor_opcode;
  2248. uint16_t length;
  2249. uint8_t num_changes;
  2250. uint8_t pad0[3];
  2251. } xcb_input_xi_change_hierarchy_request_t;
  2252. /** Opcode for xcb_input_xi_set_client_pointer. */
  2253. #define XCB_INPUT_XI_SET_CLIENT_POINTER 44
  2254. /**
  2255. * @brief xcb_input_xi_set_client_pointer_request_t
  2256. **/
  2257. typedef struct xcb_input_xi_set_client_pointer_request_t {
  2258. uint8_t major_opcode;
  2259. uint8_t minor_opcode;
  2260. uint16_t length;
  2261. xcb_window_t window;
  2262. xcb_input_device_id_t deviceid;
  2263. uint8_t pad0[2];
  2264. } xcb_input_xi_set_client_pointer_request_t;
  2265. /**
  2266. * @brief xcb_input_xi_get_client_pointer_cookie_t
  2267. **/
  2268. typedef struct xcb_input_xi_get_client_pointer_cookie_t {
  2269. unsigned int sequence;
  2270. } xcb_input_xi_get_client_pointer_cookie_t;
  2271. /** Opcode for xcb_input_xi_get_client_pointer. */
  2272. #define XCB_INPUT_XI_GET_CLIENT_POINTER 45
  2273. /**
  2274. * @brief xcb_input_xi_get_client_pointer_request_t
  2275. **/
  2276. typedef struct xcb_input_xi_get_client_pointer_request_t {
  2277. uint8_t major_opcode;
  2278. uint8_t minor_opcode;
  2279. uint16_t length;
  2280. xcb_window_t window;
  2281. } xcb_input_xi_get_client_pointer_request_t;
  2282. /**
  2283. * @brief xcb_input_xi_get_client_pointer_reply_t
  2284. **/
  2285. typedef struct xcb_input_xi_get_client_pointer_reply_t {
  2286. uint8_t response_type;
  2287. uint8_t pad0;
  2288. uint16_t sequence;
  2289. uint32_t length;
  2290. uint8_t set;
  2291. uint8_t pad1;
  2292. xcb_input_device_id_t deviceid;
  2293. uint8_t pad2[20];
  2294. } xcb_input_xi_get_client_pointer_reply_t;
  2295. typedef enum xcb_input_xi_event_mask_t {
  2296. XCB_INPUT_XI_EVENT_MASK_DEVICE_CHANGED = 2,
  2297. XCB_INPUT_XI_EVENT_MASK_KEY_PRESS = 4,
  2298. XCB_INPUT_XI_EVENT_MASK_KEY_RELEASE = 8,
  2299. XCB_INPUT_XI_EVENT_MASK_BUTTON_PRESS = 16,
  2300. XCB_INPUT_XI_EVENT_MASK_BUTTON_RELEASE = 32,
  2301. XCB_INPUT_XI_EVENT_MASK_MOTION = 64,
  2302. XCB_INPUT_XI_EVENT_MASK_ENTER = 128,
  2303. XCB_INPUT_XI_EVENT_MASK_LEAVE = 256,
  2304. XCB_INPUT_XI_EVENT_MASK_FOCUS_IN = 512,
  2305. XCB_INPUT_XI_EVENT_MASK_FOCUS_OUT = 1024,
  2306. XCB_INPUT_XI_EVENT_MASK_HIERARCHY = 2048,
  2307. XCB_INPUT_XI_EVENT_MASK_PROPERTY = 4096,
  2308. XCB_INPUT_XI_EVENT_MASK_RAW_KEY_PRESS = 8192,
  2309. XCB_INPUT_XI_EVENT_MASK_RAW_KEY_RELEASE = 16384,
  2310. XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_PRESS = 32768,
  2311. XCB_INPUT_XI_EVENT_MASK_RAW_BUTTON_RELEASE = 65536,
  2312. XCB_INPUT_XI_EVENT_MASK_RAW_MOTION = 131072,
  2313. XCB_INPUT_XI_EVENT_MASK_TOUCH_BEGIN = 262144,
  2314. XCB_INPUT_XI_EVENT_MASK_TOUCH_UPDATE = 524288,
  2315. XCB_INPUT_XI_EVENT_MASK_TOUCH_END = 1048576,
  2316. XCB_INPUT_XI_EVENT_MASK_TOUCH_OWNERSHIP = 2097152,
  2317. XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_BEGIN = 4194304,
  2318. XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_UPDATE = 8388608,
  2319. XCB_INPUT_XI_EVENT_MASK_RAW_TOUCH_END = 16777216,
  2320. XCB_INPUT_XI_EVENT_MASK_BARRIER_HIT = 33554432,
  2321. XCB_INPUT_XI_EVENT_MASK_BARRIER_LEAVE = 67108864
  2322. } xcb_input_xi_event_mask_t;
  2323. /**
  2324. * @brief xcb_input_event_mask_t
  2325. **/
  2326. typedef struct xcb_input_event_mask_t {
  2327. xcb_input_device_id_t deviceid;
  2328. uint16_t mask_len;
  2329. } xcb_input_event_mask_t;
  2330. /**
  2331. * @brief xcb_input_event_mask_iterator_t
  2332. **/
  2333. typedef struct xcb_input_event_mask_iterator_t {
  2334. xcb_input_event_mask_t *data;
  2335. int rem;
  2336. int index;
  2337. } xcb_input_event_mask_iterator_t;
  2338. /** Opcode for xcb_input_xi_select_events. */
  2339. #define XCB_INPUT_XI_SELECT_EVENTS 46
  2340. /**
  2341. * @brief xcb_input_xi_select_events_request_t
  2342. **/
  2343. typedef struct xcb_input_xi_select_events_request_t {
  2344. uint8_t major_opcode;
  2345. uint8_t minor_opcode;
  2346. uint16_t length;
  2347. xcb_window_t window;
  2348. uint16_t num_mask;
  2349. uint8_t pad0[2];
  2350. } xcb_input_xi_select_events_request_t;
  2351. /**
  2352. * @brief xcb_input_xi_query_version_cookie_t
  2353. **/
  2354. typedef struct xcb_input_xi_query_version_cookie_t {
  2355. unsigned int sequence;
  2356. } xcb_input_xi_query_version_cookie_t;
  2357. /** Opcode for xcb_input_xi_query_version. */
  2358. #define XCB_INPUT_XI_QUERY_VERSION 47
  2359. /**
  2360. * @brief xcb_input_xi_query_version_request_t
  2361. **/
  2362. typedef struct xcb_input_xi_query_version_request_t {
  2363. uint8_t major_opcode;
  2364. uint8_t minor_opcode;
  2365. uint16_t length;
  2366. uint16_t major_version;
  2367. uint16_t minor_version;
  2368. } xcb_input_xi_query_version_request_t;
  2369. /**
  2370. * @brief xcb_input_xi_query_version_reply_t
  2371. **/
  2372. typedef struct xcb_input_xi_query_version_reply_t {
  2373. uint8_t response_type;
  2374. uint8_t pad0;
  2375. uint16_t sequence;
  2376. uint32_t length;
  2377. uint16_t major_version;
  2378. uint16_t minor_version;
  2379. uint8_t pad1[20];
  2380. } xcb_input_xi_query_version_reply_t;
  2381. typedef enum xcb_input_device_class_type_t {
  2382. XCB_INPUT_DEVICE_CLASS_TYPE_KEY = 0,
  2383. XCB_INPUT_DEVICE_CLASS_TYPE_BUTTON = 1,
  2384. XCB_INPUT_DEVICE_CLASS_TYPE_VALUATOR = 2,
  2385. XCB_INPUT_DEVICE_CLASS_TYPE_SCROLL = 3,
  2386. XCB_INPUT_DEVICE_CLASS_TYPE_TOUCH = 8
  2387. } xcb_input_device_class_type_t;
  2388. typedef enum xcb_input_device_type_t {
  2389. XCB_INPUT_DEVICE_TYPE_MASTER_POINTER = 1,
  2390. XCB_INPUT_DEVICE_TYPE_MASTER_KEYBOARD = 2,
  2391. XCB_INPUT_DEVICE_TYPE_SLAVE_POINTER = 3,
  2392. XCB_INPUT_DEVICE_TYPE_SLAVE_KEYBOARD = 4,
  2393. XCB_INPUT_DEVICE_TYPE_FLOATING_SLAVE = 5
  2394. } xcb_input_device_type_t;
  2395. typedef enum xcb_input_scroll_flags_t {
  2396. XCB_INPUT_SCROLL_FLAGS_NO_EMULATION = 1,
  2397. XCB_INPUT_SCROLL_FLAGS_PREFERRED = 2
  2398. } xcb_input_scroll_flags_t;
  2399. typedef enum xcb_input_scroll_type_t {
  2400. XCB_INPUT_SCROLL_TYPE_VERTICAL = 1,
  2401. XCB_INPUT_SCROLL_TYPE_HORIZONTAL = 2
  2402. } xcb_input_scroll_type_t;
  2403. typedef enum xcb_input_touch_mode_t {
  2404. XCB_INPUT_TOUCH_MODE_DIRECT = 1,
  2405. XCB_INPUT_TOUCH_MODE_DEPENDENT = 2
  2406. } xcb_input_touch_mode_t;
  2407. /**
  2408. * @brief xcb_input_button_class_t
  2409. **/
  2410. typedef struct xcb_input_button_class_t {
  2411. uint16_t type;
  2412. uint16_t len;
  2413. xcb_input_device_id_t sourceid;
  2414. uint16_t num_buttons;
  2415. } xcb_input_button_class_t;
  2416. /**
  2417. * @brief xcb_input_button_class_iterator_t
  2418. **/
  2419. typedef struct xcb_input_button_class_iterator_t {
  2420. xcb_input_button_class_t *data;
  2421. int rem;
  2422. int index;
  2423. } xcb_input_button_class_iterator_t;
  2424. /**
  2425. * @brief xcb_input_key_class_t
  2426. **/
  2427. typedef struct xcb_input_key_class_t {
  2428. uint16_t type;
  2429. uint16_t len;
  2430. xcb_input_device_id_t sourceid;
  2431. uint16_t num_keys;
  2432. } xcb_input_key_class_t;
  2433. /**
  2434. * @brief xcb_input_key_class_iterator_t
  2435. **/
  2436. typedef struct xcb_input_key_class_iterator_t {
  2437. xcb_input_key_class_t *data;
  2438. int rem;
  2439. int index;
  2440. } xcb_input_key_class_iterator_t;
  2441. /**
  2442. * @brief xcb_input_scroll_class_t
  2443. **/
  2444. typedef struct xcb_input_scroll_class_t {
  2445. uint16_t type;
  2446. uint16_t len;
  2447. xcb_input_device_id_t sourceid;
  2448. uint16_t number;
  2449. uint16_t scroll_type;
  2450. uint8_t pad0[2];
  2451. uint32_t flags;
  2452. xcb_input_fp3232_t increment;
  2453. } xcb_input_scroll_class_t;
  2454. /**
  2455. * @brief xcb_input_scroll_class_iterator_t
  2456. **/
  2457. typedef struct xcb_input_scroll_class_iterator_t {
  2458. xcb_input_scroll_class_t *data;
  2459. int rem;
  2460. int index;
  2461. } xcb_input_scroll_class_iterator_t;
  2462. /**
  2463. * @brief xcb_input_touch_class_t
  2464. **/
  2465. typedef struct xcb_input_touch_class_t {
  2466. uint16_t type;
  2467. uint16_t len;
  2468. xcb_input_device_id_t sourceid;
  2469. uint8_t mode;
  2470. uint8_t num_touches;
  2471. } xcb_input_touch_class_t;
  2472. /**
  2473. * @brief xcb_input_touch_class_iterator_t
  2474. **/
  2475. typedef struct xcb_input_touch_class_iterator_t {
  2476. xcb_input_touch_class_t *data;
  2477. int rem;
  2478. int index;
  2479. } xcb_input_touch_class_iterator_t;
  2480. /**
  2481. * @brief xcb_input_valuator_class_t
  2482. **/
  2483. typedef struct xcb_input_valuator_class_t {
  2484. uint16_t type;
  2485. uint16_t len;
  2486. xcb_input_device_id_t sourceid;
  2487. uint16_t number;
  2488. xcb_atom_t label;
  2489. xcb_input_fp3232_t min;
  2490. xcb_input_fp3232_t max;
  2491. xcb_input_fp3232_t value;
  2492. uint32_t resolution;
  2493. uint8_t mode;
  2494. uint8_t pad0[3];
  2495. } xcb_input_valuator_class_t;
  2496. /**
  2497. * @brief xcb_input_valuator_class_iterator_t
  2498. **/
  2499. typedef struct xcb_input_valuator_class_iterator_t {
  2500. xcb_input_valuator_class_t *data;
  2501. int rem;
  2502. int index;
  2503. } xcb_input_valuator_class_iterator_t;
  2504. /**
  2505. * @brief xcb_input_device_class_data_t
  2506. **/
  2507. typedef struct xcb_input_device_class_data_t {
  2508. struct {
  2509. uint16_t num_keys;
  2510. uint32_t *keys;
  2511. } key;
  2512. struct {
  2513. uint16_t num_buttons;
  2514. uint32_t *state;
  2515. xcb_atom_t *labels;
  2516. } button;
  2517. struct {
  2518. uint16_t number;
  2519. xcb_atom_t label;
  2520. xcb_input_fp3232_t min;
  2521. xcb_input_fp3232_t max;
  2522. xcb_input_fp3232_t value;
  2523. uint32_t resolution;
  2524. uint8_t mode;
  2525. uint8_t pad0[3];
  2526. } valuator;
  2527. struct {
  2528. uint16_t number;
  2529. uint16_t scroll_type;
  2530. uint8_t pad1[2];
  2531. uint32_t flags;
  2532. xcb_input_fp3232_t increment;
  2533. } scroll;
  2534. struct {
  2535. uint8_t mode;
  2536. uint8_t num_touches;
  2537. } touch;
  2538. } xcb_input_device_class_data_t;
  2539. /**
  2540. * @brief xcb_input_device_class_t
  2541. **/
  2542. typedef struct xcb_input_device_class_t {
  2543. uint16_t type;
  2544. uint16_t len;
  2545. xcb_input_device_id_t sourceid;
  2546. } xcb_input_device_class_t;
  2547. void *
  2548. xcb_input_device_class_data (const xcb_input_device_class_t *R);
  2549. /**
  2550. * @brief xcb_input_device_class_iterator_t
  2551. **/
  2552. typedef struct xcb_input_device_class_iterator_t {
  2553. xcb_input_device_class_t *data;
  2554. int rem;
  2555. int index;
  2556. } xcb_input_device_class_iterator_t;
  2557. /**
  2558. * @brief xcb_input_xi_device_info_t
  2559. **/
  2560. typedef struct xcb_input_xi_device_info_t {
  2561. xcb_input_device_id_t deviceid;
  2562. uint16_t type;
  2563. xcb_input_device_id_t attachment;
  2564. uint16_t num_classes;
  2565. uint16_t name_len;
  2566. uint8_t enabled;
  2567. uint8_t pad0;
  2568. } xcb_input_xi_device_info_t;
  2569. /**
  2570. * @brief xcb_input_xi_device_info_iterator_t
  2571. **/
  2572. typedef struct xcb_input_xi_device_info_iterator_t {
  2573. xcb_input_xi_device_info_t *data;
  2574. int rem;
  2575. int index;
  2576. } xcb_input_xi_device_info_iterator_t;
  2577. /**
  2578. * @brief xcb_input_xi_query_device_cookie_t
  2579. **/
  2580. typedef struct xcb_input_xi_query_device_cookie_t {
  2581. unsigned int sequence;
  2582. } xcb_input_xi_query_device_cookie_t;
  2583. /** Opcode for xcb_input_xi_query_device. */
  2584. #define XCB_INPUT_XI_QUERY_DEVICE 48
  2585. /**
  2586. * @brief xcb_input_xi_query_device_request_t
  2587. **/
  2588. typedef struct xcb_input_xi_query_device_request_t {
  2589. uint8_t major_opcode;
  2590. uint8_t minor_opcode;
  2591. uint16_t length;
  2592. xcb_input_device_id_t deviceid;
  2593. uint8_t pad0[2];
  2594. } xcb_input_xi_query_device_request_t;
  2595. /**
  2596. * @brief xcb_input_xi_query_device_reply_t
  2597. **/
  2598. typedef struct xcb_input_xi_query_device_reply_t {
  2599. uint8_t response_type;
  2600. uint8_t pad0;
  2601. uint16_t sequence;
  2602. uint32_t length;
  2603. uint16_t num_infos;
  2604. uint8_t pad1[22];
  2605. } xcb_input_xi_query_device_reply_t;
  2606. /** Opcode for xcb_input_xi_set_focus. */
  2607. #define XCB_INPUT_XI_SET_FOCUS 49
  2608. /**
  2609. * @brief xcb_input_xi_set_focus_request_t
  2610. **/
  2611. typedef struct xcb_input_xi_set_focus_request_t {
  2612. uint8_t major_opcode;
  2613. uint8_t minor_opcode;
  2614. uint16_t length;
  2615. xcb_window_t window;
  2616. xcb_timestamp_t time;
  2617. xcb_input_device_id_t deviceid;
  2618. uint8_t pad0[2];
  2619. } xcb_input_xi_set_focus_request_t;
  2620. /**
  2621. * @brief xcb_input_xi_get_focus_cookie_t
  2622. **/
  2623. typedef struct xcb_input_xi_get_focus_cookie_t {
  2624. unsigned int sequence;
  2625. } xcb_input_xi_get_focus_cookie_t;
  2626. /** Opcode for xcb_input_xi_get_focus. */
  2627. #define XCB_INPUT_XI_GET_FOCUS 50
  2628. /**
  2629. * @brief xcb_input_xi_get_focus_request_t
  2630. **/
  2631. typedef struct xcb_input_xi_get_focus_request_t {
  2632. uint8_t major_opcode;
  2633. uint8_t minor_opcode;
  2634. uint16_t length;
  2635. xcb_input_device_id_t deviceid;
  2636. uint8_t pad0[2];
  2637. } xcb_input_xi_get_focus_request_t;
  2638. /**
  2639. * @brief xcb_input_xi_get_focus_reply_t
  2640. **/
  2641. typedef struct xcb_input_xi_get_focus_reply_t {
  2642. uint8_t response_type;
  2643. uint8_t pad0;
  2644. uint16_t sequence;
  2645. uint32_t length;
  2646. xcb_window_t focus;
  2647. uint8_t pad1[20];
  2648. } xcb_input_xi_get_focus_reply_t;
  2649. typedef enum xcb_input_grab_owner_t {
  2650. XCB_INPUT_GRAB_OWNER_NO_OWNER = 0,
  2651. XCB_INPUT_GRAB_OWNER_OWNER = 1
  2652. } xcb_input_grab_owner_t;
  2653. /**
  2654. * @brief xcb_input_xi_grab_device_cookie_t
  2655. **/
  2656. typedef struct xcb_input_xi_grab_device_cookie_t {
  2657. unsigned int sequence;
  2658. } xcb_input_xi_grab_device_cookie_t;
  2659. /** Opcode for xcb_input_xi_grab_device. */
  2660. #define XCB_INPUT_XI_GRAB_DEVICE 51
  2661. /**
  2662. * @brief xcb_input_xi_grab_device_request_t
  2663. **/
  2664. typedef struct xcb_input_xi_grab_device_request_t {
  2665. uint8_t major_opcode;
  2666. uint8_t minor_opcode;
  2667. uint16_t length;
  2668. xcb_window_t window;
  2669. xcb_timestamp_t time;
  2670. xcb_cursor_t cursor;
  2671. xcb_input_device_id_t deviceid;
  2672. uint8_t mode;
  2673. uint8_t paired_device_mode;
  2674. uint8_t owner_events;
  2675. uint8_t pad0;
  2676. uint16_t mask_len;
  2677. } xcb_input_xi_grab_device_request_t;
  2678. /**
  2679. * @brief xcb_input_xi_grab_device_reply_t
  2680. **/
  2681. typedef struct xcb_input_xi_grab_device_reply_t {
  2682. uint8_t response_type;
  2683. uint8_t pad0;
  2684. uint16_t sequence;
  2685. uint32_t length;
  2686. uint8_t status;
  2687. uint8_t pad1[23];
  2688. } xcb_input_xi_grab_device_reply_t;
  2689. /** Opcode for xcb_input_xi_ungrab_device. */
  2690. #define XCB_INPUT_XI_UNGRAB_DEVICE 52
  2691. /**
  2692. * @brief xcb_input_xi_ungrab_device_request_t
  2693. **/
  2694. typedef struct xcb_input_xi_ungrab_device_request_t {
  2695. uint8_t major_opcode;
  2696. uint8_t minor_opcode;
  2697. uint16_t length;
  2698. xcb_timestamp_t time;
  2699. xcb_input_device_id_t deviceid;
  2700. uint8_t pad0[2];
  2701. } xcb_input_xi_ungrab_device_request_t;
  2702. typedef enum xcb_input_event_mode_t {
  2703. XCB_INPUT_EVENT_MODE_ASYNC_DEVICE = 0,
  2704. XCB_INPUT_EVENT_MODE_SYNC_DEVICE = 1,
  2705. XCB_INPUT_EVENT_MODE_REPLAY_DEVICE = 2,
  2706. XCB_INPUT_EVENT_MODE_ASYNC_PAIRED_DEVICE = 3,
  2707. XCB_INPUT_EVENT_MODE_ASYNC_PAIR = 4,
  2708. XCB_INPUT_EVENT_MODE_SYNC_PAIR = 5,
  2709. XCB_INPUT_EVENT_MODE_ACCEPT_TOUCH = 6,
  2710. XCB_INPUT_EVENT_MODE_REJECT_TOUCH = 7
  2711. } xcb_input_event_mode_t;
  2712. /** Opcode for xcb_input_xi_allow_events. */
  2713. #define XCB_INPUT_XI_ALLOW_EVENTS 53
  2714. /**
  2715. * @brief xcb_input_xi_allow_events_request_t
  2716. **/
  2717. typedef struct xcb_input_xi_allow_events_request_t {
  2718. uint8_t major_opcode;
  2719. uint8_t minor_opcode;
  2720. uint16_t length;
  2721. xcb_timestamp_t time;
  2722. xcb_input_device_id_t deviceid;
  2723. uint8_t event_mode;
  2724. uint8_t pad0;
  2725. uint32_t touchid;
  2726. xcb_window_t grab_window;
  2727. } xcb_input_xi_allow_events_request_t;
  2728. typedef enum xcb_input_grab_mode_22_t {
  2729. XCB_INPUT_GRAB_MODE_22_SYNC = 0,
  2730. XCB_INPUT_GRAB_MODE_22_ASYNC = 1,
  2731. XCB_INPUT_GRAB_MODE_22_TOUCH = 2
  2732. } xcb_input_grab_mode_22_t;
  2733. typedef enum xcb_input_grab_type_t {
  2734. XCB_INPUT_GRAB_TYPE_BUTTON = 0,
  2735. XCB_INPUT_GRAB_TYPE_KEYCODE = 1,
  2736. XCB_INPUT_GRAB_TYPE_ENTER = 2,
  2737. XCB_INPUT_GRAB_TYPE_FOCUS_IN = 3,
  2738. XCB_INPUT_GRAB_TYPE_TOUCH_BEGIN = 4
  2739. } xcb_input_grab_type_t;
  2740. typedef enum xcb_input_modifier_mask_t {
  2741. XCB_INPUT_MODIFIER_MASK_ANY = 2147483648
  2742. } xcb_input_modifier_mask_t;
  2743. /**
  2744. * @brief xcb_input_grab_modifier_info_t
  2745. **/
  2746. typedef struct xcb_input_grab_modifier_info_t {
  2747. uint32_t modifiers;
  2748. uint8_t status;
  2749. uint8_t pad0[3];
  2750. } xcb_input_grab_modifier_info_t;
  2751. /**
  2752. * @brief xcb_input_grab_modifier_info_iterator_t
  2753. **/
  2754. typedef struct xcb_input_grab_modifier_info_iterator_t {
  2755. xcb_input_grab_modifier_info_t *data;
  2756. int rem;
  2757. int index;
  2758. } xcb_input_grab_modifier_info_iterator_t;
  2759. /**
  2760. * @brief xcb_input_xi_passive_grab_device_cookie_t
  2761. **/
  2762. typedef struct xcb_input_xi_passive_grab_device_cookie_t {
  2763. unsigned int sequence;
  2764. } xcb_input_xi_passive_grab_device_cookie_t;
  2765. /** Opcode for xcb_input_xi_passive_grab_device. */
  2766. #define XCB_INPUT_XI_PASSIVE_GRAB_DEVICE 54
  2767. /**
  2768. * @brief xcb_input_xi_passive_grab_device_request_t
  2769. **/
  2770. typedef struct xcb_input_xi_passive_grab_device_request_t {
  2771. uint8_t major_opcode;
  2772. uint8_t minor_opcode;
  2773. uint16_t length;
  2774. xcb_timestamp_t time;
  2775. xcb_window_t grab_window;
  2776. xcb_cursor_t cursor;
  2777. uint32_t detail;
  2778. xcb_input_device_id_t deviceid;
  2779. uint16_t num_modifiers;
  2780. uint16_t mask_len;
  2781. uint8_t grab_type;
  2782. uint8_t grab_mode;
  2783. uint8_t paired_device_mode;
  2784. uint8_t owner_events;
  2785. uint8_t pad0[2];
  2786. } xcb_input_xi_passive_grab_device_request_t;
  2787. /**
  2788. * @brief xcb_input_xi_passive_grab_device_reply_t
  2789. **/
  2790. typedef struct xcb_input_xi_passive_grab_device_reply_t {
  2791. uint8_t response_type;
  2792. uint8_t pad0;
  2793. uint16_t sequence;
  2794. uint32_t length;
  2795. uint16_t num_modifiers;
  2796. uint8_t pad1[22];
  2797. } xcb_input_xi_passive_grab_device_reply_t;
  2798. /** Opcode for xcb_input_xi_passive_ungrab_device. */
  2799. #define XCB_INPUT_XI_PASSIVE_UNGRAB_DEVICE 55
  2800. /**
  2801. * @brief xcb_input_xi_passive_ungrab_device_request_t
  2802. **/
  2803. typedef struct xcb_input_xi_passive_ungrab_device_request_t {
  2804. uint8_t major_opcode;
  2805. uint8_t minor_opcode;
  2806. uint16_t length;
  2807. xcb_window_t grab_window;
  2808. uint32_t detail;
  2809. xcb_input_device_id_t deviceid;
  2810. uint16_t num_modifiers;
  2811. uint8_t grab_type;
  2812. uint8_t pad0[3];
  2813. } xcb_input_xi_passive_ungrab_device_request_t;
  2814. /**
  2815. * @brief xcb_input_xi_list_properties_cookie_t
  2816. **/
  2817. typedef struct xcb_input_xi_list_properties_cookie_t {
  2818. unsigned int sequence;
  2819. } xcb_input_xi_list_properties_cookie_t;
  2820. /** Opcode for xcb_input_xi_list_properties. */
  2821. #define XCB_INPUT_XI_LIST_PROPERTIES 56
  2822. /**
  2823. * @brief xcb_input_xi_list_properties_request_t
  2824. **/
  2825. typedef struct xcb_input_xi_list_properties_request_t {
  2826. uint8_t major_opcode;
  2827. uint8_t minor_opcode;
  2828. uint16_t length;
  2829. xcb_input_device_id_t deviceid;
  2830. uint8_t pad0[2];
  2831. } xcb_input_xi_list_properties_request_t;
  2832. /**
  2833. * @brief xcb_input_xi_list_properties_reply_t
  2834. **/
  2835. typedef struct xcb_input_xi_list_properties_reply_t {
  2836. uint8_t response_type;
  2837. uint8_t pad0;
  2838. uint16_t sequence;
  2839. uint32_t length;
  2840. uint16_t num_properties;
  2841. uint8_t pad1[22];
  2842. } xcb_input_xi_list_properties_reply_t;
  2843. /**
  2844. * @brief xcb_input_xi_change_property_items_t
  2845. **/
  2846. typedef struct xcb_input_xi_change_property_items_t {
  2847. uint8_t *data8;
  2848. uint16_t *data16;
  2849. uint32_t *data32;
  2850. } xcb_input_xi_change_property_items_t;
  2851. /** Opcode for xcb_input_xi_change_property. */
  2852. #define XCB_INPUT_XI_CHANGE_PROPERTY 57
  2853. /**
  2854. * @brief xcb_input_xi_change_property_request_t
  2855. **/
  2856. typedef struct xcb_input_xi_change_property_request_t {
  2857. uint8_t major_opcode;
  2858. uint8_t minor_opcode;
  2859. uint16_t length;
  2860. xcb_input_device_id_t deviceid;
  2861. uint8_t mode;
  2862. uint8_t format;
  2863. xcb_atom_t property;
  2864. xcb_atom_t type;
  2865. uint32_t num_items;
  2866. } xcb_input_xi_change_property_request_t;
  2867. /** Opcode for xcb_input_xi_delete_property. */
  2868. #define XCB_INPUT_XI_DELETE_PROPERTY 58
  2869. /**
  2870. * @brief xcb_input_xi_delete_property_request_t
  2871. **/
  2872. typedef struct xcb_input_xi_delete_property_request_t {
  2873. uint8_t major_opcode;
  2874. uint8_t minor_opcode;
  2875. uint16_t length;
  2876. xcb_input_device_id_t deviceid;
  2877. uint8_t pad0[2];
  2878. xcb_atom_t property;
  2879. } xcb_input_xi_delete_property_request_t;
  2880. /**
  2881. * @brief xcb_input_xi_get_property_cookie_t
  2882. **/
  2883. typedef struct xcb_input_xi_get_property_cookie_t {
  2884. unsigned int sequence;
  2885. } xcb_input_xi_get_property_cookie_t;
  2886. /** Opcode for xcb_input_xi_get_property. */
  2887. #define XCB_INPUT_XI_GET_PROPERTY 59
  2888. /**
  2889. * @brief xcb_input_xi_get_property_request_t
  2890. **/
  2891. typedef struct xcb_input_xi_get_property_request_t {
  2892. uint8_t major_opcode;
  2893. uint8_t minor_opcode;
  2894. uint16_t length;
  2895. xcb_input_device_id_t deviceid;
  2896. uint8_t _delete;
  2897. uint8_t pad0;
  2898. xcb_atom_t property;
  2899. xcb_atom_t type;
  2900. uint32_t offset;
  2901. uint32_t len;
  2902. } xcb_input_xi_get_property_request_t;
  2903. /**
  2904. * @brief xcb_input_xi_get_property_items_t
  2905. **/
  2906. typedef struct xcb_input_xi_get_property_items_t {
  2907. uint8_t *data8;
  2908. uint16_t *data16;
  2909. uint32_t *data32;
  2910. } xcb_input_xi_get_property_items_t;
  2911. /**
  2912. * @brief xcb_input_xi_get_property_reply_t
  2913. **/
  2914. typedef struct xcb_input_xi_get_property_reply_t {
  2915. uint8_t response_type;
  2916. uint8_t pad0;
  2917. uint16_t sequence;
  2918. uint32_t length;
  2919. xcb_atom_t type;
  2920. uint32_t bytes_after;
  2921. uint32_t num_items;
  2922. uint8_t format;
  2923. uint8_t pad1[11];
  2924. } xcb_input_xi_get_property_reply_t;
  2925. /**
  2926. * @brief xcb_input_xi_get_selected_events_cookie_t
  2927. **/
  2928. typedef struct xcb_input_xi_get_selected_events_cookie_t {
  2929. unsigned int sequence;
  2930. } xcb_input_xi_get_selected_events_cookie_t;
  2931. /** Opcode for xcb_input_xi_get_selected_events. */
  2932. #define XCB_INPUT_XI_GET_SELECTED_EVENTS 60
  2933. /**
  2934. * @brief xcb_input_xi_get_selected_events_request_t
  2935. **/
  2936. typedef struct xcb_input_xi_get_selected_events_request_t {
  2937. uint8_t major_opcode;
  2938. uint8_t minor_opcode;
  2939. uint16_t length;
  2940. xcb_window_t window;
  2941. } xcb_input_xi_get_selected_events_request_t;
  2942. /**
  2943. * @brief xcb_input_xi_get_selected_events_reply_t
  2944. **/
  2945. typedef struct xcb_input_xi_get_selected_events_reply_t {
  2946. uint8_t response_type;
  2947. uint8_t pad0;
  2948. uint16_t sequence;
  2949. uint32_t length;
  2950. uint16_t num_masks;
  2951. uint8_t pad1[22];
  2952. } xcb_input_xi_get_selected_events_reply_t;
  2953. /**
  2954. * @brief xcb_input_barrier_release_pointer_info_t
  2955. **/
  2956. typedef struct xcb_input_barrier_release_pointer_info_t {
  2957. xcb_input_device_id_t deviceid;
  2958. uint8_t pad0[2];
  2959. xcb_xfixes_barrier_t barrier;
  2960. uint32_t eventid;
  2961. } xcb_input_barrier_release_pointer_info_t;
  2962. /**
  2963. * @brief xcb_input_barrier_release_pointer_info_iterator_t
  2964. **/
  2965. typedef struct xcb_input_barrier_release_pointer_info_iterator_t {
  2966. xcb_input_barrier_release_pointer_info_t *data;
  2967. int rem;
  2968. int index;
  2969. } xcb_input_barrier_release_pointer_info_iterator_t;
  2970. /** Opcode for xcb_input_xi_barrier_release_pointer. */
  2971. #define XCB_INPUT_XI_BARRIER_RELEASE_POINTER 61
  2972. /**
  2973. * @brief xcb_input_xi_barrier_release_pointer_request_t
  2974. **/
  2975. typedef struct xcb_input_xi_barrier_release_pointer_request_t {
  2976. uint8_t major_opcode;
  2977. uint8_t minor_opcode;
  2978. uint16_t length;
  2979. uint32_t num_barriers;
  2980. } xcb_input_xi_barrier_release_pointer_request_t;
  2981. /** Opcode for xcb_input_device_valuator. */
  2982. #define XCB_INPUT_DEVICE_VALUATOR 0
  2983. /**
  2984. * @brief xcb_input_device_valuator_event_t
  2985. **/
  2986. typedef struct xcb_input_device_valuator_event_t {
  2987. uint8_t response_type;
  2988. uint8_t device_id;
  2989. uint16_t sequence;
  2990. uint16_t device_state;
  2991. uint8_t num_valuators;
  2992. uint8_t first_valuator;
  2993. int32_t valuators[6];
  2994. } xcb_input_device_valuator_event_t;
  2995. typedef enum xcb_input_more_events_mask_t {
  2996. XCB_INPUT_MORE_EVENTS_MASK_MORE_EVENTS = 128
  2997. } xcb_input_more_events_mask_t;
  2998. /** Opcode for xcb_input_device_key_press. */
  2999. #define XCB_INPUT_DEVICE_KEY_PRESS 1
  3000. /**
  3001. * @brief xcb_input_device_key_press_event_t
  3002. **/
  3003. typedef struct xcb_input_device_key_press_event_t {
  3004. uint8_t response_type;
  3005. uint8_t detail;
  3006. uint16_t sequence;
  3007. xcb_timestamp_t time;
  3008. xcb_window_t root;
  3009. xcb_window_t event;
  3010. xcb_window_t child;
  3011. int16_t root_x;
  3012. int16_t root_y;
  3013. int16_t event_x;
  3014. int16_t event_y;
  3015. uint16_t state;
  3016. uint8_t same_screen;
  3017. uint8_t device_id;
  3018. } xcb_input_device_key_press_event_t;
  3019. /** Opcode for xcb_input_device_key_release. */
  3020. #define XCB_INPUT_DEVICE_KEY_RELEASE 2
  3021. typedef xcb_input_device_key_press_event_t xcb_input_device_key_release_event_t;
  3022. /** Opcode for xcb_input_device_button_press. */
  3023. #define XCB_INPUT_DEVICE_BUTTON_PRESS 3
  3024. typedef xcb_input_device_key_press_event_t xcb_input_device_button_press_event_t;
  3025. /** Opcode for xcb_input_device_button_release. */
  3026. #define XCB_INPUT_DEVICE_BUTTON_RELEASE 4
  3027. typedef xcb_input_device_key_press_event_t xcb_input_device_button_release_event_t;
  3028. /** Opcode for xcb_input_device_motion_notify. */
  3029. #define XCB_INPUT_DEVICE_MOTION_NOTIFY 5
  3030. typedef xcb_input_device_key_press_event_t xcb_input_device_motion_notify_event_t;
  3031. /** Opcode for xcb_input_device_focus_in. */
  3032. #define XCB_INPUT_DEVICE_FOCUS_IN 6
  3033. /**
  3034. * @brief xcb_input_device_focus_in_event_t
  3035. **/
  3036. typedef struct xcb_input_device_focus_in_event_t {
  3037. uint8_t response_type;
  3038. uint8_t detail;
  3039. uint16_t sequence;
  3040. xcb_timestamp_t time;
  3041. xcb_window_t window;
  3042. uint8_t mode;
  3043. uint8_t device_id;
  3044. uint8_t pad0[18];
  3045. } xcb_input_device_focus_in_event_t;
  3046. /** Opcode for xcb_input_device_focus_out. */
  3047. #define XCB_INPUT_DEVICE_FOCUS_OUT 7
  3048. typedef xcb_input_device_focus_in_event_t xcb_input_device_focus_out_event_t;
  3049. /** Opcode for xcb_input_proximity_in. */
  3050. #define XCB_INPUT_PROXIMITY_IN 8
  3051. typedef xcb_input_device_key_press_event_t xcb_input_proximity_in_event_t;
  3052. /** Opcode for xcb_input_proximity_out. */
  3053. #define XCB_INPUT_PROXIMITY_OUT 9
  3054. typedef xcb_input_device_key_press_event_t xcb_input_proximity_out_event_t;
  3055. typedef enum xcb_input_classes_reported_mask_t {
  3056. XCB_INPUT_CLASSES_REPORTED_MASK_OUT_OF_PROXIMITY = 128,
  3057. XCB_INPUT_CLASSES_REPORTED_MASK_DEVICE_MODE_ABSOLUTE = 64,
  3058. XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_VALUATORS = 4,
  3059. XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_BUTTONS = 2,
  3060. XCB_INPUT_CLASSES_REPORTED_MASK_REPORTING_KEYS = 1
  3061. } xcb_input_classes_reported_mask_t;
  3062. /** Opcode for xcb_input_device_state_notify. */
  3063. #define XCB_INPUT_DEVICE_STATE_NOTIFY 10
  3064. /**
  3065. * @brief xcb_input_device_state_notify_event_t
  3066. **/
  3067. typedef struct xcb_input_device_state_notify_event_t {
  3068. uint8_t response_type;
  3069. uint8_t device_id;
  3070. uint16_t sequence;
  3071. xcb_timestamp_t time;
  3072. uint8_t num_keys;
  3073. uint8_t num_buttons;
  3074. uint8_t num_valuators;
  3075. uint8_t classes_reported;
  3076. uint8_t buttons[4];
  3077. uint8_t keys[4];
  3078. uint32_t valuators[3];
  3079. } xcb_input_device_state_notify_event_t;
  3080. /** Opcode for xcb_input_device_mapping_notify. */
  3081. #define XCB_INPUT_DEVICE_MAPPING_NOTIFY 11
  3082. /**
  3083. * @brief xcb_input_device_mapping_notify_event_t
  3084. **/
  3085. typedef struct xcb_input_device_mapping_notify_event_t {
  3086. uint8_t response_type;
  3087. uint8_t device_id;
  3088. uint16_t sequence;
  3089. uint8_t request;
  3090. xcb_input_key_code_t first_keycode;
  3091. uint8_t count;
  3092. uint8_t pad0;
  3093. xcb_timestamp_t time;
  3094. uint8_t pad1[20];
  3095. } xcb_input_device_mapping_notify_event_t;
  3096. typedef enum xcb_input_change_device_t {
  3097. XCB_INPUT_CHANGE_DEVICE_NEW_POINTER = 0,
  3098. XCB_INPUT_CHANGE_DEVICE_NEW_KEYBOARD = 1
  3099. } xcb_input_change_device_t;
  3100. /** Opcode for xcb_input_change_device_notify. */
  3101. #define XCB_INPUT_CHANGE_DEVICE_NOTIFY 12
  3102. /**
  3103. * @brief xcb_input_change_device_notify_event_t
  3104. **/
  3105. typedef struct xcb_input_change_device_notify_event_t {
  3106. uint8_t response_type;
  3107. uint8_t device_id;
  3108. uint16_t sequence;
  3109. xcb_timestamp_t time;
  3110. uint8_t request;
  3111. uint8_t pad0[23];
  3112. } xcb_input_change_device_notify_event_t;
  3113. /** Opcode for xcb_input_device_key_state_notify. */
  3114. #define XCB_INPUT_DEVICE_KEY_STATE_NOTIFY 13
  3115. /**
  3116. * @brief xcb_input_device_key_state_notify_event_t
  3117. **/
  3118. typedef struct xcb_input_device_key_state_notify_event_t {
  3119. uint8_t response_type;
  3120. uint8_t device_id;
  3121. uint16_t sequence;
  3122. uint8_t keys[28];
  3123. } xcb_input_device_key_state_notify_event_t;
  3124. /** Opcode for xcb_input_device_button_state_notify. */
  3125. #define XCB_INPUT_DEVICE_BUTTON_STATE_NOTIFY 14
  3126. /**
  3127. * @brief xcb_input_device_button_state_notify_event_t
  3128. **/
  3129. typedef struct xcb_input_device_button_state_notify_event_t {
  3130. uint8_t response_type;
  3131. uint8_t device_id;
  3132. uint16_t sequence;
  3133. uint8_t buttons[28];
  3134. } xcb_input_device_button_state_notify_event_t;
  3135. typedef enum xcb_input_device_change_t {
  3136. XCB_INPUT_DEVICE_CHANGE_ADDED = 0,
  3137. XCB_INPUT_DEVICE_CHANGE_REMOVED = 1,
  3138. XCB_INPUT_DEVICE_CHANGE_ENABLED = 2,
  3139. XCB_INPUT_DEVICE_CHANGE_DISABLED = 3,
  3140. XCB_INPUT_DEVICE_CHANGE_UNRECOVERABLE = 4,
  3141. XCB_INPUT_DEVICE_CHANGE_CONTROL_CHANGED = 5
  3142. } xcb_input_device_change_t;
  3143. /** Opcode for xcb_input_device_presence_notify. */
  3144. #define XCB_INPUT_DEVICE_PRESENCE_NOTIFY 15
  3145. /**
  3146. * @brief xcb_input_device_presence_notify_event_t
  3147. **/
  3148. typedef struct xcb_input_device_presence_notify_event_t {
  3149. uint8_t response_type;
  3150. uint8_t pad0;
  3151. uint16_t sequence;
  3152. xcb_timestamp_t time;
  3153. uint8_t devchange;
  3154. uint8_t device_id;
  3155. uint16_t control;
  3156. uint8_t pad1[20];
  3157. } xcb_input_device_presence_notify_event_t;
  3158. /** Opcode for xcb_input_device_property_notify. */
  3159. #define XCB_INPUT_DEVICE_PROPERTY_NOTIFY 16
  3160. /**
  3161. * @brief xcb_input_device_property_notify_event_t
  3162. **/
  3163. typedef struct xcb_input_device_property_notify_event_t {
  3164. uint8_t response_type;
  3165. uint8_t state;
  3166. uint16_t sequence;
  3167. xcb_timestamp_t time;
  3168. xcb_atom_t property;
  3169. uint8_t pad0[19];
  3170. uint8_t device_id;
  3171. } xcb_input_device_property_notify_event_t;
  3172. typedef enum xcb_input_change_reason_t {
  3173. XCB_INPUT_CHANGE_REASON_SLAVE_SWITCH = 1,
  3174. XCB_INPUT_CHANGE_REASON_DEVICE_CHANGE = 2
  3175. } xcb_input_change_reason_t;
  3176. /** Opcode for xcb_input_device_changed. */
  3177. #define XCB_INPUT_DEVICE_CHANGED 1
  3178. /**
  3179. * @brief xcb_input_device_changed_event_t
  3180. **/
  3181. typedef struct xcb_input_device_changed_event_t {
  3182. uint8_t response_type;
  3183. uint8_t extension;
  3184. uint16_t sequence;
  3185. uint32_t length;
  3186. uint16_t event_type;
  3187. xcb_input_device_id_t deviceid;
  3188. xcb_timestamp_t time;
  3189. uint16_t num_classes;
  3190. xcb_input_device_id_t sourceid;
  3191. uint8_t reason;
  3192. uint8_t pad0[11];
  3193. uint32_t full_sequence;
  3194. } xcb_input_device_changed_event_t;
  3195. typedef enum xcb_input_key_event_flags_t {
  3196. XCB_INPUT_KEY_EVENT_FLAGS_KEY_REPEAT = 65536
  3197. } xcb_input_key_event_flags_t;
  3198. /** Opcode for xcb_input_key_press. */
  3199. #define XCB_INPUT_KEY_PRESS 2
  3200. /**
  3201. * @brief xcb_input_key_press_event_t
  3202. **/
  3203. typedef struct xcb_input_key_press_event_t {
  3204. uint8_t response_type;
  3205. uint8_t extension;
  3206. uint16_t sequence;
  3207. uint32_t length;
  3208. uint16_t event_type;
  3209. xcb_input_device_id_t deviceid;
  3210. xcb_timestamp_t time;
  3211. uint32_t detail;
  3212. xcb_window_t root;
  3213. xcb_window_t event;
  3214. xcb_window_t child;
  3215. uint32_t full_sequence;
  3216. xcb_input_fp1616_t root_x;
  3217. xcb_input_fp1616_t root_y;
  3218. xcb_input_fp1616_t event_x;
  3219. xcb_input_fp1616_t event_y;
  3220. uint16_t buttons_len;
  3221. uint16_t valuators_len;
  3222. xcb_input_device_id_t sourceid;
  3223. uint8_t pad0[2];
  3224. uint32_t flags;
  3225. xcb_input_modifier_info_t mods;
  3226. xcb_input_group_info_t group;
  3227. } xcb_input_key_press_event_t;
  3228. /** Opcode for xcb_input_key_release. */
  3229. #define XCB_INPUT_KEY_RELEASE 3
  3230. typedef xcb_input_key_press_event_t xcb_input_key_release_event_t;
  3231. typedef enum xcb_input_pointer_event_flags_t {
  3232. XCB_INPUT_POINTER_EVENT_FLAGS_POINTER_EMULATED = 65536
  3233. } xcb_input_pointer_event_flags_t;
  3234. /** Opcode for xcb_input_button_press. */
  3235. #define XCB_INPUT_BUTTON_PRESS 4
  3236. /**
  3237. * @brief xcb_input_button_press_event_t
  3238. **/
  3239. typedef struct xcb_input_button_press_event_t {
  3240. uint8_t response_type;
  3241. uint8_t extension;
  3242. uint16_t sequence;
  3243. uint32_t length;
  3244. uint16_t event_type;
  3245. xcb_input_device_id_t deviceid;
  3246. xcb_timestamp_t time;
  3247. uint32_t detail;
  3248. xcb_window_t root;
  3249. xcb_window_t event;
  3250. xcb_window_t child;
  3251. uint32_t full_sequence;
  3252. xcb_input_fp1616_t root_x;
  3253. xcb_input_fp1616_t root_y;
  3254. xcb_input_fp1616_t event_x;
  3255. xcb_input_fp1616_t event_y;
  3256. uint16_t buttons_len;
  3257. uint16_t valuators_len;
  3258. xcb_input_device_id_t sourceid;
  3259. uint8_t pad0[2];
  3260. uint32_t flags;
  3261. xcb_input_modifier_info_t mods;
  3262. xcb_input_group_info_t group;
  3263. } xcb_input_button_press_event_t;
  3264. /** Opcode for xcb_input_button_release. */
  3265. #define XCB_INPUT_BUTTON_RELEASE 5
  3266. typedef xcb_input_button_press_event_t xcb_input_button_release_event_t;
  3267. /** Opcode for xcb_input_motion. */
  3268. #define XCB_INPUT_MOTION 6
  3269. typedef xcb_input_button_press_event_t xcb_input_motion_event_t;
  3270. typedef enum xcb_input_notify_mode_t {
  3271. XCB_INPUT_NOTIFY_MODE_NORMAL = 0,
  3272. XCB_INPUT_NOTIFY_MODE_GRAB = 1,
  3273. XCB_INPUT_NOTIFY_MODE_UNGRAB = 2,
  3274. XCB_INPUT_NOTIFY_MODE_WHILE_GRABBED = 3,
  3275. XCB_INPUT_NOTIFY_MODE_PASSIVE_GRAB = 4,
  3276. XCB_INPUT_NOTIFY_MODE_PASSIVE_UNGRAB = 5
  3277. } xcb_input_notify_mode_t;
  3278. typedef enum xcb_input_notify_detail_t {
  3279. XCB_INPUT_NOTIFY_DETAIL_ANCESTOR = 0,
  3280. XCB_INPUT_NOTIFY_DETAIL_VIRTUAL = 1,
  3281. XCB_INPUT_NOTIFY_DETAIL_INFERIOR = 2,
  3282. XCB_INPUT_NOTIFY_DETAIL_NONLINEAR = 3,
  3283. XCB_INPUT_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
  3284. XCB_INPUT_NOTIFY_DETAIL_POINTER = 5,
  3285. XCB_INPUT_NOTIFY_DETAIL_POINTER_ROOT = 6,
  3286. XCB_INPUT_NOTIFY_DETAIL_NONE = 7
  3287. } xcb_input_notify_detail_t;
  3288. /** Opcode for xcb_input_enter. */
  3289. #define XCB_INPUT_ENTER 7
  3290. /**
  3291. * @brief xcb_input_enter_event_t
  3292. **/
  3293. typedef struct xcb_input_enter_event_t {
  3294. uint8_t response_type;
  3295. uint8_t extension;
  3296. uint16_t sequence;
  3297. uint32_t length;
  3298. uint16_t event_type;
  3299. xcb_input_device_id_t deviceid;
  3300. xcb_timestamp_t time;
  3301. xcb_input_device_id_t sourceid;
  3302. uint8_t mode;
  3303. uint8_t detail;
  3304. xcb_window_t root;
  3305. xcb_window_t event;
  3306. xcb_window_t child;
  3307. uint32_t full_sequence;
  3308. xcb_input_fp1616_t root_x;
  3309. xcb_input_fp1616_t root_y;
  3310. xcb_input_fp1616_t event_x;
  3311. xcb_input_fp1616_t event_y;
  3312. uint8_t same_screen;
  3313. uint8_t focus;
  3314. uint16_t buttons_len;
  3315. xcb_input_modifier_info_t mods;
  3316. xcb_input_group_info_t group;
  3317. } xcb_input_enter_event_t;
  3318. /** Opcode for xcb_input_leave. */
  3319. #define XCB_INPUT_LEAVE 8
  3320. typedef xcb_input_enter_event_t xcb_input_leave_event_t;
  3321. /** Opcode for xcb_input_focus_in. */
  3322. #define XCB_INPUT_FOCUS_IN 9
  3323. typedef xcb_input_enter_event_t xcb_input_focus_in_event_t;
  3324. /** Opcode for xcb_input_focus_out. */
  3325. #define XCB_INPUT_FOCUS_OUT 10
  3326. typedef xcb_input_enter_event_t xcb_input_focus_out_event_t;
  3327. typedef enum xcb_input_hierarchy_mask_t {
  3328. XCB_INPUT_HIERARCHY_MASK_MASTER_ADDED = 1,
  3329. XCB_INPUT_HIERARCHY_MASK_MASTER_REMOVED = 2,
  3330. XCB_INPUT_HIERARCHY_MASK_SLAVE_ADDED = 4,
  3331. XCB_INPUT_HIERARCHY_MASK_SLAVE_REMOVED = 8,
  3332. XCB_INPUT_HIERARCHY_MASK_SLAVE_ATTACHED = 16,
  3333. XCB_INPUT_HIERARCHY_MASK_SLAVE_DETACHED = 32,
  3334. XCB_INPUT_HIERARCHY_MASK_DEVICE_ENABLED = 64,
  3335. XCB_INPUT_HIERARCHY_MASK_DEVICE_DISABLED = 128
  3336. } xcb_input_hierarchy_mask_t;
  3337. /**
  3338. * @brief xcb_input_hierarchy_info_t
  3339. **/
  3340. typedef struct xcb_input_hierarchy_info_t {
  3341. xcb_input_device_id_t deviceid;
  3342. xcb_input_device_id_t attachment;
  3343. uint8_t type;
  3344. uint8_t enabled;
  3345. uint8_t pad0[2];
  3346. uint32_t flags;
  3347. } xcb_input_hierarchy_info_t;
  3348. /**
  3349. * @brief xcb_input_hierarchy_info_iterator_t
  3350. **/
  3351. typedef struct xcb_input_hierarchy_info_iterator_t {
  3352. xcb_input_hierarchy_info_t *data;
  3353. int rem;
  3354. int index;
  3355. } xcb_input_hierarchy_info_iterator_t;
  3356. /** Opcode for xcb_input_hierarchy. */
  3357. #define XCB_INPUT_HIERARCHY 11
  3358. /**
  3359. * @brief xcb_input_hierarchy_event_t
  3360. **/
  3361. typedef struct xcb_input_hierarchy_event_t {
  3362. uint8_t response_type;
  3363. uint8_t extension;
  3364. uint16_t sequence;
  3365. uint32_t length;
  3366. uint16_t event_type;
  3367. xcb_input_device_id_t deviceid;
  3368. xcb_timestamp_t time;
  3369. uint32_t flags;
  3370. uint16_t num_infos;
  3371. uint8_t pad0[10];
  3372. uint32_t full_sequence;
  3373. } xcb_input_hierarchy_event_t;
  3374. typedef enum xcb_input_property_flag_t {
  3375. XCB_INPUT_PROPERTY_FLAG_DELETED = 0,
  3376. XCB_INPUT_PROPERTY_FLAG_CREATED = 1,
  3377. XCB_INPUT_PROPERTY_FLAG_MODIFIED = 2
  3378. } xcb_input_property_flag_t;
  3379. /** Opcode for xcb_input_property. */
  3380. #define XCB_INPUT_PROPERTY 12
  3381. /**
  3382. * @brief xcb_input_property_event_t
  3383. **/
  3384. typedef struct xcb_input_property_event_t {
  3385. uint8_t response_type;
  3386. uint8_t extension;
  3387. uint16_t sequence;
  3388. uint32_t length;
  3389. uint16_t event_type;
  3390. xcb_input_device_id_t deviceid;
  3391. xcb_timestamp_t time;
  3392. xcb_atom_t property;
  3393. uint8_t what;
  3394. uint8_t pad0[11];
  3395. uint32_t full_sequence;
  3396. } xcb_input_property_event_t;
  3397. /** Opcode for xcb_input_raw_key_press. */
  3398. #define XCB_INPUT_RAW_KEY_PRESS 13
  3399. /**
  3400. * @brief xcb_input_raw_key_press_event_t
  3401. **/
  3402. typedef struct xcb_input_raw_key_press_event_t {
  3403. uint8_t response_type;
  3404. uint8_t extension;
  3405. uint16_t sequence;
  3406. uint32_t length;
  3407. uint16_t event_type;
  3408. xcb_input_device_id_t deviceid;
  3409. xcb_timestamp_t time;
  3410. uint32_t detail;
  3411. xcb_input_device_id_t sourceid;
  3412. uint16_t valuators_len;
  3413. uint32_t flags;
  3414. uint8_t pad0[4];
  3415. uint32_t full_sequence;
  3416. } xcb_input_raw_key_press_event_t;
  3417. /** Opcode for xcb_input_raw_key_release. */
  3418. #define XCB_INPUT_RAW_KEY_RELEASE 14
  3419. typedef xcb_input_raw_key_press_event_t xcb_input_raw_key_release_event_t;
  3420. /** Opcode for xcb_input_raw_button_press. */
  3421. #define XCB_INPUT_RAW_BUTTON_PRESS 15
  3422. /**
  3423. * @brief xcb_input_raw_button_press_event_t
  3424. **/
  3425. typedef struct xcb_input_raw_button_press_event_t {
  3426. uint8_t response_type;
  3427. uint8_t extension;
  3428. uint16_t sequence;
  3429. uint32_t length;
  3430. uint16_t event_type;
  3431. xcb_input_device_id_t deviceid;
  3432. xcb_timestamp_t time;
  3433. uint32_t detail;
  3434. xcb_input_device_id_t sourceid;
  3435. uint16_t valuators_len;
  3436. uint32_t flags;
  3437. uint8_t pad0[4];
  3438. uint32_t full_sequence;
  3439. } xcb_input_raw_button_press_event_t;
  3440. /** Opcode for xcb_input_raw_button_release. */
  3441. #define XCB_INPUT_RAW_BUTTON_RELEASE 16
  3442. typedef xcb_input_raw_button_press_event_t xcb_input_raw_button_release_event_t;
  3443. /** Opcode for xcb_input_raw_motion. */
  3444. #define XCB_INPUT_RAW_MOTION 17
  3445. typedef xcb_input_raw_button_press_event_t xcb_input_raw_motion_event_t;
  3446. typedef enum xcb_input_touch_event_flags_t {
  3447. XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_PENDING_END = 65536,
  3448. XCB_INPUT_TOUCH_EVENT_FLAGS_TOUCH_EMULATING_POINTER = 131072
  3449. } xcb_input_touch_event_flags_t;
  3450. /** Opcode for xcb_input_touch_begin. */
  3451. #define XCB_INPUT_TOUCH_BEGIN 18
  3452. /**
  3453. * @brief xcb_input_touch_begin_event_t
  3454. **/
  3455. typedef struct xcb_input_touch_begin_event_t {
  3456. uint8_t response_type;
  3457. uint8_t extension;
  3458. uint16_t sequence;
  3459. uint32_t length;
  3460. uint16_t event_type;
  3461. xcb_input_device_id_t deviceid;
  3462. xcb_timestamp_t time;
  3463. uint32_t detail;
  3464. xcb_window_t root;
  3465. xcb_window_t event;
  3466. xcb_window_t child;
  3467. uint32_t full_sequence;
  3468. xcb_input_fp1616_t root_x;
  3469. xcb_input_fp1616_t root_y;
  3470. xcb_input_fp1616_t event_x;
  3471. xcb_input_fp1616_t event_y;
  3472. uint16_t buttons_len;
  3473. uint16_t valuators_len;
  3474. xcb_input_device_id_t sourceid;
  3475. uint8_t pad0[2];
  3476. uint32_t flags;
  3477. xcb_input_modifier_info_t mods;
  3478. xcb_input_group_info_t group;
  3479. } xcb_input_touch_begin_event_t;
  3480. /** Opcode for xcb_input_touch_update. */
  3481. #define XCB_INPUT_TOUCH_UPDATE 19
  3482. typedef xcb_input_touch_begin_event_t xcb_input_touch_update_event_t;
  3483. /** Opcode for xcb_input_touch_end. */
  3484. #define XCB_INPUT_TOUCH_END 20
  3485. typedef xcb_input_touch_begin_event_t xcb_input_touch_end_event_t;
  3486. typedef enum xcb_input_touch_ownership_flags_t {
  3487. XCB_INPUT_TOUCH_OWNERSHIP_FLAGS_NONE = 0
  3488. } xcb_input_touch_ownership_flags_t;
  3489. /** Opcode for xcb_input_touch_ownership. */
  3490. #define XCB_INPUT_TOUCH_OWNERSHIP 21
  3491. /**
  3492. * @brief xcb_input_touch_ownership_event_t
  3493. **/
  3494. typedef struct xcb_input_touch_ownership_event_t {
  3495. uint8_t response_type;
  3496. uint8_t extension;
  3497. uint16_t sequence;
  3498. uint32_t length;
  3499. uint16_t event_type;
  3500. xcb_input_device_id_t deviceid;
  3501. xcb_timestamp_t time;
  3502. uint32_t touchid;
  3503. xcb_window_t root;
  3504. xcb_window_t event;
  3505. xcb_window_t child;
  3506. uint32_t full_sequence;
  3507. xcb_input_device_id_t sourceid;
  3508. uint8_t pad0[2];
  3509. uint32_t flags;
  3510. uint8_t pad1[8];
  3511. } xcb_input_touch_ownership_event_t;
  3512. /** Opcode for xcb_input_raw_touch_begin. */
  3513. #define XCB_INPUT_RAW_TOUCH_BEGIN 22
  3514. /**
  3515. * @brief xcb_input_raw_touch_begin_event_t
  3516. **/
  3517. typedef struct xcb_input_raw_touch_begin_event_t {
  3518. uint8_t response_type;
  3519. uint8_t extension;
  3520. uint16_t sequence;
  3521. uint32_t length;
  3522. uint16_t event_type;
  3523. xcb_input_device_id_t deviceid;
  3524. xcb_timestamp_t time;
  3525. uint32_t detail;
  3526. xcb_input_device_id_t sourceid;
  3527. uint16_t valuators_len;
  3528. uint32_t flags;
  3529. uint8_t pad0[4];
  3530. uint32_t full_sequence;
  3531. } xcb_input_raw_touch_begin_event_t;
  3532. /** Opcode for xcb_input_raw_touch_update. */
  3533. #define XCB_INPUT_RAW_TOUCH_UPDATE 23
  3534. typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_update_event_t;
  3535. /** Opcode for xcb_input_raw_touch_end. */
  3536. #define XCB_INPUT_RAW_TOUCH_END 24
  3537. typedef xcb_input_raw_touch_begin_event_t xcb_input_raw_touch_end_event_t;
  3538. typedef enum xcb_input_barrier_flags_t {
  3539. XCB_INPUT_BARRIER_FLAGS_POINTER_RELEASED = 1,
  3540. XCB_INPUT_BARRIER_FLAGS_DEVICE_IS_GRABBED = 2
  3541. } xcb_input_barrier_flags_t;
  3542. /** Opcode for xcb_input_barrier_hit. */
  3543. #define XCB_INPUT_BARRIER_HIT 25
  3544. /**
  3545. * @brief xcb_input_barrier_hit_event_t
  3546. **/
  3547. typedef struct xcb_input_barrier_hit_event_t {
  3548. uint8_t response_type;
  3549. uint8_t extension;
  3550. uint16_t sequence;
  3551. uint32_t length;
  3552. uint16_t event_type;
  3553. xcb_input_device_id_t deviceid;
  3554. xcb_timestamp_t time;
  3555. uint32_t eventid;
  3556. xcb_window_t root;
  3557. xcb_window_t event;
  3558. xcb_xfixes_barrier_t barrier;
  3559. uint32_t full_sequence;
  3560. uint32_t dtime;
  3561. uint32_t flags;
  3562. xcb_input_device_id_t sourceid;
  3563. uint8_t pad0[2];
  3564. xcb_input_fp1616_t root_x;
  3565. xcb_input_fp1616_t root_y;
  3566. xcb_input_fp3232_t dx;
  3567. xcb_input_fp3232_t dy;
  3568. } xcb_input_barrier_hit_event_t;
  3569. /** Opcode for xcb_input_barrier_leave. */
  3570. #define XCB_INPUT_BARRIER_LEAVE 26
  3571. typedef xcb_input_barrier_hit_event_t xcb_input_barrier_leave_event_t;
  3572. /**
  3573. * @brief xcb_input_event_for_send_t
  3574. **/
  3575. typedef union xcb_input_event_for_send_t {
  3576. xcb_input_device_valuator_event_t device_valuator;
  3577. xcb_input_device_key_press_event_t device_key_press;
  3578. xcb_input_device_key_release_event_t device_key_release;
  3579. xcb_input_device_button_press_event_t device_button_press;
  3580. xcb_input_device_button_release_event_t device_button_release;
  3581. xcb_input_device_motion_notify_event_t device_motion_notify;
  3582. xcb_input_device_focus_in_event_t device_focus_in;
  3583. xcb_input_device_focus_out_event_t device_focus_out;
  3584. xcb_input_proximity_in_event_t proximity_in;
  3585. xcb_input_proximity_out_event_t proximity_out;
  3586. xcb_input_device_state_notify_event_t device_state_notify;
  3587. xcb_input_device_mapping_notify_event_t device_mapping_notify;
  3588. xcb_input_change_device_notify_event_t change_device_notify;
  3589. xcb_input_device_key_state_notify_event_t device_key_state_notify;
  3590. xcb_input_device_button_state_notify_event_t device_button_state_notify;
  3591. xcb_input_device_presence_notify_event_t device_presence_notify;
  3592. xcb_raw_generic_event_t event_header;
  3593. } xcb_input_event_for_send_t;
  3594. /**
  3595. * @brief xcb_input_event_for_send_iterator_t
  3596. **/
  3597. typedef struct xcb_input_event_for_send_iterator_t {
  3598. xcb_input_event_for_send_t *data;
  3599. int rem;
  3600. int index;
  3601. } xcb_input_event_for_send_iterator_t;
  3602. /** Opcode for xcb_input_send_extension_event. */
  3603. #define XCB_INPUT_SEND_EXTENSION_EVENT 31
  3604. /**
  3605. * @brief xcb_input_send_extension_event_request_t
  3606. **/
  3607. typedef struct xcb_input_send_extension_event_request_t {
  3608. uint8_t major_opcode;
  3609. uint8_t minor_opcode;
  3610. uint16_t length;
  3611. xcb_window_t destination;
  3612. uint8_t device_id;
  3613. uint8_t propagate;
  3614. uint16_t num_classes;
  3615. uint8_t num_events;
  3616. uint8_t pad0[3];
  3617. } xcb_input_send_extension_event_request_t;
  3618. /** Opcode for xcb_input_device. */
  3619. #define XCB_INPUT_DEVICE 0
  3620. /**
  3621. * @brief xcb_input_device_error_t
  3622. **/
  3623. typedef struct xcb_input_device_error_t {
  3624. uint8_t response_type;
  3625. uint8_t error_code;
  3626. uint16_t sequence;
  3627. } xcb_input_device_error_t;
  3628. /** Opcode for xcb_input_event. */
  3629. #define XCB_INPUT_EVENT 1
  3630. /**
  3631. * @brief xcb_input_event_error_t
  3632. **/
  3633. typedef struct xcb_input_event_error_t {
  3634. uint8_t response_type;
  3635. uint8_t error_code;
  3636. uint16_t sequence;
  3637. } xcb_input_event_error_t;
  3638. /** Opcode for xcb_input_mode. */
  3639. #define XCB_INPUT_MODE 2
  3640. /**
  3641. * @brief xcb_input_mode_error_t
  3642. **/
  3643. typedef struct xcb_input_mode_error_t {
  3644. uint8_t response_type;
  3645. uint8_t error_code;
  3646. uint16_t sequence;
  3647. } xcb_input_mode_error_t;
  3648. /** Opcode for xcb_input_device_busy. */
  3649. #define XCB_INPUT_DEVICE_BUSY 3
  3650. /**
  3651. * @brief xcb_input_device_busy_error_t
  3652. **/
  3653. typedef struct xcb_input_device_busy_error_t {
  3654. uint8_t response_type;
  3655. uint8_t error_code;
  3656. uint16_t sequence;
  3657. } xcb_input_device_busy_error_t;
  3658. /** Opcode for xcb_input_class. */
  3659. #define XCB_INPUT_CLASS 4
  3660. /**
  3661. * @brief xcb_input_class_error_t
  3662. **/
  3663. typedef struct xcb_input_class_error_t {
  3664. uint8_t response_type;
  3665. uint8_t error_code;
  3666. uint16_t sequence;
  3667. } xcb_input_class_error_t;
  3668. /**
  3669. * Get the next element of the iterator
  3670. * @param i Pointer to a xcb_input_event_class_iterator_t
  3671. *
  3672. * Get the next element in the iterator. The member rem is
  3673. * decreased by one. The member data points to the next
  3674. * element. The member index is increased by sizeof(xcb_input_event_class_t)
  3675. */
  3676. void
  3677. xcb_input_event_class_next (xcb_input_event_class_iterator_t *i);
  3678. /**
  3679. * Return the iterator pointing to the last element
  3680. * @param i An xcb_input_event_class_iterator_t
  3681. * @return The iterator pointing to the last element
  3682. *
  3683. * Set the current element in the iterator to the last element.
  3684. * The member rem is set to 0. The member data points to the
  3685. * last element.
  3686. */
  3687. xcb_generic_iterator_t
  3688. xcb_input_event_class_end (xcb_input_event_class_iterator_t i);
  3689. /**
  3690. * Get the next element of the iterator
  3691. * @param i Pointer to a xcb_input_key_code_iterator_t
  3692. *
  3693. * Get the next element in the iterator. The member rem is
  3694. * decreased by one. The member data points to the next
  3695. * element. The member index is increased by sizeof(xcb_input_key_code_t)
  3696. */
  3697. void
  3698. xcb_input_key_code_next (xcb_input_key_code_iterator_t *i);
  3699. /**
  3700. * Return the iterator pointing to the last element
  3701. * @param i An xcb_input_key_code_iterator_t
  3702. * @return The iterator pointing to the last element
  3703. *
  3704. * Set the current element in the iterator to the last element.
  3705. * The member rem is set to 0. The member data points to the
  3706. * last element.
  3707. */
  3708. xcb_generic_iterator_t
  3709. xcb_input_key_code_end (xcb_input_key_code_iterator_t i);
  3710. /**
  3711. * Get the next element of the iterator
  3712. * @param i Pointer to a xcb_input_device_id_iterator_t
  3713. *
  3714. * Get the next element in the iterator. The member rem is
  3715. * decreased by one. The member data points to the next
  3716. * element. The member index is increased by sizeof(xcb_input_device_id_t)
  3717. */
  3718. void
  3719. xcb_input_device_id_next (xcb_input_device_id_iterator_t *i);
  3720. /**
  3721. * Return the iterator pointing to the last element
  3722. * @param i An xcb_input_device_id_iterator_t
  3723. * @return The iterator pointing to the last element
  3724. *
  3725. * Set the current element in the iterator to the last element.
  3726. * The member rem is set to 0. The member data points to the
  3727. * last element.
  3728. */
  3729. xcb_generic_iterator_t
  3730. xcb_input_device_id_end (xcb_input_device_id_iterator_t i);
  3731. /**
  3732. * Get the next element of the iterator
  3733. * @param i Pointer to a xcb_input_fp1616_iterator_t
  3734. *
  3735. * Get the next element in the iterator. The member rem is
  3736. * decreased by one. The member data points to the next
  3737. * element. The member index is increased by sizeof(xcb_input_fp1616_t)
  3738. */
  3739. void
  3740. xcb_input_fp1616_next (xcb_input_fp1616_iterator_t *i);
  3741. /**
  3742. * Return the iterator pointing to the last element
  3743. * @param i An xcb_input_fp1616_iterator_t
  3744. * @return The iterator pointing to the last element
  3745. *
  3746. * Set the current element in the iterator to the last element.
  3747. * The member rem is set to 0. The member data points to the
  3748. * last element.
  3749. */
  3750. xcb_generic_iterator_t
  3751. xcb_input_fp1616_end (xcb_input_fp1616_iterator_t i);
  3752. /**
  3753. * Get the next element of the iterator
  3754. * @param i Pointer to a xcb_input_fp3232_iterator_t
  3755. *
  3756. * Get the next element in the iterator. The member rem is
  3757. * decreased by one. The member data points to the next
  3758. * element. The member index is increased by sizeof(xcb_input_fp3232_t)
  3759. */
  3760. void
  3761. xcb_input_fp3232_next (xcb_input_fp3232_iterator_t *i);
  3762. /**
  3763. * Return the iterator pointing to the last element
  3764. * @param i An xcb_input_fp3232_iterator_t
  3765. * @return The iterator pointing to the last element
  3766. *
  3767. * Set the current element in the iterator to the last element.
  3768. * The member rem is set to 0. The member data points to the
  3769. * last element.
  3770. */
  3771. xcb_generic_iterator_t
  3772. xcb_input_fp3232_end (xcb_input_fp3232_iterator_t i);
  3773. int
  3774. xcb_input_get_extension_version_sizeof (const void *_buffer);
  3775. /**
  3776. *
  3777. * @param c The connection
  3778. * @return A cookie
  3779. *
  3780. * Delivers a request to the X server.
  3781. *
  3782. */
  3783. xcb_input_get_extension_version_cookie_t
  3784. xcb_input_get_extension_version (xcb_connection_t *c,
  3785. uint16_t name_len,
  3786. const char *name);
  3787. /**
  3788. *
  3789. * @param c The connection
  3790. * @return A cookie
  3791. *
  3792. * Delivers a request to the X server.
  3793. *
  3794. * This form can be used only if the request will cause
  3795. * a reply to be generated. Any returned error will be
  3796. * placed in the event queue.
  3797. */
  3798. xcb_input_get_extension_version_cookie_t
  3799. xcb_input_get_extension_version_unchecked (xcb_connection_t *c,
  3800. uint16_t name_len,
  3801. const char *name);
  3802. /**
  3803. * Return the reply
  3804. * @param c The connection
  3805. * @param cookie The cookie
  3806. * @param e The xcb_generic_error_t supplied
  3807. *
  3808. * Returns the reply of the request asked by
  3809. *
  3810. * The parameter @p e supplied to this function must be NULL if
  3811. * xcb_input_get_extension_version_unchecked(). is used.
  3812. * Otherwise, it stores the error if any.
  3813. *
  3814. * The returned value must be freed by the caller using free().
  3815. */
  3816. xcb_input_get_extension_version_reply_t *
  3817. xcb_input_get_extension_version_reply (xcb_connection_t *c,
  3818. xcb_input_get_extension_version_cookie_t cookie /**< */,
  3819. xcb_generic_error_t **e);
  3820. /**
  3821. * Get the next element of the iterator
  3822. * @param i Pointer to a xcb_input_device_info_iterator_t
  3823. *
  3824. * Get the next element in the iterator. The member rem is
  3825. * decreased by one. The member data points to the next
  3826. * element. The member index is increased by sizeof(xcb_input_device_info_t)
  3827. */
  3828. void
  3829. xcb_input_device_info_next (xcb_input_device_info_iterator_t *i);
  3830. /**
  3831. * Return the iterator pointing to the last element
  3832. * @param i An xcb_input_device_info_iterator_t
  3833. * @return The iterator pointing to the last element
  3834. *
  3835. * Set the current element in the iterator to the last element.
  3836. * The member rem is set to 0. The member data points to the
  3837. * last element.
  3838. */
  3839. xcb_generic_iterator_t
  3840. xcb_input_device_info_end (xcb_input_device_info_iterator_t i);
  3841. /**
  3842. * Get the next element of the iterator
  3843. * @param i Pointer to a xcb_input_key_info_iterator_t
  3844. *
  3845. * Get the next element in the iterator. The member rem is
  3846. * decreased by one. The member data points to the next
  3847. * element. The member index is increased by sizeof(xcb_input_key_info_t)
  3848. */
  3849. void
  3850. xcb_input_key_info_next (xcb_input_key_info_iterator_t *i);
  3851. /**
  3852. * Return the iterator pointing to the last element
  3853. * @param i An xcb_input_key_info_iterator_t
  3854. * @return The iterator pointing to the last element
  3855. *
  3856. * Set the current element in the iterator to the last element.
  3857. * The member rem is set to 0. The member data points to the
  3858. * last element.
  3859. */
  3860. xcb_generic_iterator_t
  3861. xcb_input_key_info_end (xcb_input_key_info_iterator_t i);
  3862. /**
  3863. * Get the next element of the iterator
  3864. * @param i Pointer to a xcb_input_button_info_iterator_t
  3865. *
  3866. * Get the next element in the iterator. The member rem is
  3867. * decreased by one. The member data points to the next
  3868. * element. The member index is increased by sizeof(xcb_input_button_info_t)
  3869. */
  3870. void
  3871. xcb_input_button_info_next (xcb_input_button_info_iterator_t *i);
  3872. /**
  3873. * Return the iterator pointing to the last element
  3874. * @param i An xcb_input_button_info_iterator_t
  3875. * @return The iterator pointing to the last element
  3876. *
  3877. * Set the current element in the iterator to the last element.
  3878. * The member rem is set to 0. The member data points to the
  3879. * last element.
  3880. */
  3881. xcb_generic_iterator_t
  3882. xcb_input_button_info_end (xcb_input_button_info_iterator_t i);
  3883. /**
  3884. * Get the next element of the iterator
  3885. * @param i Pointer to a xcb_input_axis_info_iterator_t
  3886. *
  3887. * Get the next element in the iterator. The member rem is
  3888. * decreased by one. The member data points to the next
  3889. * element. The member index is increased by sizeof(xcb_input_axis_info_t)
  3890. */
  3891. void
  3892. xcb_input_axis_info_next (xcb_input_axis_info_iterator_t *i);
  3893. /**
  3894. * Return the iterator pointing to the last element
  3895. * @param i An xcb_input_axis_info_iterator_t
  3896. * @return The iterator pointing to the last element
  3897. *
  3898. * Set the current element in the iterator to the last element.
  3899. * The member rem is set to 0. The member data points to the
  3900. * last element.
  3901. */
  3902. xcb_generic_iterator_t
  3903. xcb_input_axis_info_end (xcb_input_axis_info_iterator_t i);
  3904. int
  3905. xcb_input_valuator_info_sizeof (const void *_buffer);
  3906. xcb_input_axis_info_t *
  3907. xcb_input_valuator_info_axes (const xcb_input_valuator_info_t *R);
  3908. int
  3909. xcb_input_valuator_info_axes_length (const xcb_input_valuator_info_t *R);
  3910. xcb_input_axis_info_iterator_t
  3911. xcb_input_valuator_info_axes_iterator (const xcb_input_valuator_info_t *R);
  3912. /**
  3913. * Get the next element of the iterator
  3914. * @param i Pointer to a xcb_input_valuator_info_iterator_t
  3915. *
  3916. * Get the next element in the iterator. The member rem is
  3917. * decreased by one. The member data points to the next
  3918. * element. The member index is increased by sizeof(xcb_input_valuator_info_t)
  3919. */
  3920. void
  3921. xcb_input_valuator_info_next (xcb_input_valuator_info_iterator_t *i);
  3922. /**
  3923. * Return the iterator pointing to the last element
  3924. * @param i An xcb_input_valuator_info_iterator_t
  3925. * @return The iterator pointing to the last element
  3926. *
  3927. * Set the current element in the iterator to the last element.
  3928. * The member rem is set to 0. The member data points to the
  3929. * last element.
  3930. */
  3931. xcb_generic_iterator_t
  3932. xcb_input_valuator_info_end (xcb_input_valuator_info_iterator_t i);
  3933. xcb_input_axis_info_t *
  3934. xcb_input_input_info_info_valuator_axes (const xcb_input_input_info_info_t *S);
  3935. int
  3936. xcb_input_input_info_info_valuator_axes_length (const xcb_input_input_info_t *R,
  3937. const xcb_input_input_info_info_t *S);
  3938. xcb_input_axis_info_iterator_t
  3939. xcb_input_input_info_info_valuator_axes_iterator (const xcb_input_input_info_t *R,
  3940. const xcb_input_input_info_info_t *S);
  3941. int
  3942. xcb_input_input_info_info_serialize (void **_buffer,
  3943. uint8_t class_id,
  3944. const xcb_input_input_info_info_t *_aux);
  3945. int
  3946. xcb_input_input_info_info_unpack (const void *_buffer,
  3947. uint8_t class_id,
  3948. xcb_input_input_info_info_t *_aux);
  3949. int
  3950. xcb_input_input_info_info_sizeof (const void *_buffer,
  3951. uint8_t class_id);
  3952. int
  3953. xcb_input_input_info_sizeof (const void *_buffer);
  3954. /**
  3955. * Get the next element of the iterator
  3956. * @param i Pointer to a xcb_input_input_info_iterator_t
  3957. *
  3958. * Get the next element in the iterator. The member rem is
  3959. * decreased by one. The member data points to the next
  3960. * element. The member index is increased by sizeof(xcb_input_input_info_t)
  3961. */
  3962. void
  3963. xcb_input_input_info_next (xcb_input_input_info_iterator_t *i);
  3964. /**
  3965. * Return the iterator pointing to the last element
  3966. * @param i An xcb_input_input_info_iterator_t
  3967. * @return The iterator pointing to the last element
  3968. *
  3969. * Set the current element in the iterator to the last element.
  3970. * The member rem is set to 0. The member data points to the
  3971. * last element.
  3972. */
  3973. xcb_generic_iterator_t
  3974. xcb_input_input_info_end (xcb_input_input_info_iterator_t i);
  3975. int
  3976. xcb_input_device_name_sizeof (const void *_buffer);
  3977. char *
  3978. xcb_input_device_name_string (const xcb_input_device_name_t *R);
  3979. int
  3980. xcb_input_device_name_string_length (const xcb_input_device_name_t *R);
  3981. xcb_generic_iterator_t
  3982. xcb_input_device_name_string_end (const xcb_input_device_name_t *R);
  3983. /**
  3984. * Get the next element of the iterator
  3985. * @param i Pointer to a xcb_input_device_name_iterator_t
  3986. *
  3987. * Get the next element in the iterator. The member rem is
  3988. * decreased by one. The member data points to the next
  3989. * element. The member index is increased by sizeof(xcb_input_device_name_t)
  3990. */
  3991. void
  3992. xcb_input_device_name_next (xcb_input_device_name_iterator_t *i);
  3993. /**
  3994. * Return the iterator pointing to the last element
  3995. * @param i An xcb_input_device_name_iterator_t
  3996. * @return The iterator pointing to the last element
  3997. *
  3998. * Set the current element in the iterator to the last element.
  3999. * The member rem is set to 0. The member data points to the
  4000. * last element.
  4001. */
  4002. xcb_generic_iterator_t
  4003. xcb_input_device_name_end (xcb_input_device_name_iterator_t i);
  4004. int
  4005. xcb_input_list_input_devices_sizeof (const void *_buffer);
  4006. /**
  4007. *
  4008. * @param c The connection
  4009. * @return A cookie
  4010. *
  4011. * Delivers a request to the X server.
  4012. *
  4013. */
  4014. xcb_input_list_input_devices_cookie_t
  4015. xcb_input_list_input_devices (xcb_connection_t *c);
  4016. /**
  4017. *
  4018. * @param c The connection
  4019. * @return A cookie
  4020. *
  4021. * Delivers a request to the X server.
  4022. *
  4023. * This form can be used only if the request will cause
  4024. * a reply to be generated. Any returned error will be
  4025. * placed in the event queue.
  4026. */
  4027. xcb_input_list_input_devices_cookie_t
  4028. xcb_input_list_input_devices_unchecked (xcb_connection_t *c);
  4029. xcb_input_device_info_t *
  4030. xcb_input_list_input_devices_devices (const xcb_input_list_input_devices_reply_t *R);
  4031. int
  4032. xcb_input_list_input_devices_devices_length (const xcb_input_list_input_devices_reply_t *R);
  4033. xcb_input_device_info_iterator_t
  4034. xcb_input_list_input_devices_devices_iterator (const xcb_input_list_input_devices_reply_t *R);
  4035. int
  4036. xcb_input_list_input_devices_infos_length (const xcb_input_list_input_devices_reply_t *R);
  4037. xcb_input_input_info_iterator_t
  4038. xcb_input_list_input_devices_infos_iterator (const xcb_input_list_input_devices_reply_t *R);
  4039. int
  4040. xcb_input_list_input_devices_names_length (const xcb_input_list_input_devices_reply_t *R);
  4041. xcb_str_iterator_t
  4042. xcb_input_list_input_devices_names_iterator (const xcb_input_list_input_devices_reply_t *R);
  4043. /**
  4044. * Return the reply
  4045. * @param c The connection
  4046. * @param cookie The cookie
  4047. * @param e The xcb_generic_error_t supplied
  4048. *
  4049. * Returns the reply of the request asked by
  4050. *
  4051. * The parameter @p e supplied to this function must be NULL if
  4052. * xcb_input_list_input_devices_unchecked(). is used.
  4053. * Otherwise, it stores the error if any.
  4054. *
  4055. * The returned value must be freed by the caller using free().
  4056. */
  4057. xcb_input_list_input_devices_reply_t *
  4058. xcb_input_list_input_devices_reply (xcb_connection_t *c,
  4059. xcb_input_list_input_devices_cookie_t cookie /**< */,
  4060. xcb_generic_error_t **e);
  4061. /**
  4062. * Get the next element of the iterator
  4063. * @param i Pointer to a xcb_input_event_type_base_iterator_t
  4064. *
  4065. * Get the next element in the iterator. The member rem is
  4066. * decreased by one. The member data points to the next
  4067. * element. The member index is increased by sizeof(xcb_input_event_type_base_t)
  4068. */
  4069. void
  4070. xcb_input_event_type_base_next (xcb_input_event_type_base_iterator_t *i);
  4071. /**
  4072. * Return the iterator pointing to the last element
  4073. * @param i An xcb_input_event_type_base_iterator_t
  4074. * @return The iterator pointing to the last element
  4075. *
  4076. * Set the current element in the iterator to the last element.
  4077. * The member rem is set to 0. The member data points to the
  4078. * last element.
  4079. */
  4080. xcb_generic_iterator_t
  4081. xcb_input_event_type_base_end (xcb_input_event_type_base_iterator_t i);
  4082. /**
  4083. * Get the next element of the iterator
  4084. * @param i Pointer to a xcb_input_input_class_info_iterator_t
  4085. *
  4086. * Get the next element in the iterator. The member rem is
  4087. * decreased by one. The member data points to the next
  4088. * element. The member index is increased by sizeof(xcb_input_input_class_info_t)
  4089. */
  4090. void
  4091. xcb_input_input_class_info_next (xcb_input_input_class_info_iterator_t *i);
  4092. /**
  4093. * Return the iterator pointing to the last element
  4094. * @param i An xcb_input_input_class_info_iterator_t
  4095. * @return The iterator pointing to the last element
  4096. *
  4097. * Set the current element in the iterator to the last element.
  4098. * The member rem is set to 0. The member data points to the
  4099. * last element.
  4100. */
  4101. xcb_generic_iterator_t
  4102. xcb_input_input_class_info_end (xcb_input_input_class_info_iterator_t i);
  4103. int
  4104. xcb_input_open_device_sizeof (const void *_buffer);
  4105. /**
  4106. *
  4107. * @param c The connection
  4108. * @return A cookie
  4109. *
  4110. * Delivers a request to the X server.
  4111. *
  4112. */
  4113. xcb_input_open_device_cookie_t
  4114. xcb_input_open_device (xcb_connection_t *c,
  4115. uint8_t device_id);
  4116. /**
  4117. *
  4118. * @param c The connection
  4119. * @return A cookie
  4120. *
  4121. * Delivers a request to the X server.
  4122. *
  4123. * This form can be used only if the request will cause
  4124. * a reply to be generated. Any returned error will be
  4125. * placed in the event queue.
  4126. */
  4127. xcb_input_open_device_cookie_t
  4128. xcb_input_open_device_unchecked (xcb_connection_t *c,
  4129. uint8_t device_id);
  4130. xcb_input_input_class_info_t *
  4131. xcb_input_open_device_class_info (const xcb_input_open_device_reply_t *R);
  4132. int
  4133. xcb_input_open_device_class_info_length (const xcb_input_open_device_reply_t *R);
  4134. xcb_input_input_class_info_iterator_t
  4135. xcb_input_open_device_class_info_iterator (const xcb_input_open_device_reply_t *R);
  4136. /**
  4137. * Return the reply
  4138. * @param c The connection
  4139. * @param cookie The cookie
  4140. * @param e The xcb_generic_error_t supplied
  4141. *
  4142. * Returns the reply of the request asked by
  4143. *
  4144. * The parameter @p e supplied to this function must be NULL if
  4145. * xcb_input_open_device_unchecked(). is used.
  4146. * Otherwise, it stores the error if any.
  4147. *
  4148. * The returned value must be freed by the caller using free().
  4149. */
  4150. xcb_input_open_device_reply_t *
  4151. xcb_input_open_device_reply (xcb_connection_t *c,
  4152. xcb_input_open_device_cookie_t cookie /**< */,
  4153. xcb_generic_error_t **e);
  4154. /**
  4155. *
  4156. * @param c The connection
  4157. * @return A cookie
  4158. *
  4159. * Delivers a request to the X server.
  4160. *
  4161. * This form can be used only if the request will not cause
  4162. * a reply to be generated. Any returned error will be
  4163. * saved for handling by xcb_request_check().
  4164. */
  4165. xcb_void_cookie_t
  4166. xcb_input_close_device_checked (xcb_connection_t *c,
  4167. uint8_t device_id);
  4168. /**
  4169. *
  4170. * @param c The connection
  4171. * @return A cookie
  4172. *
  4173. * Delivers a request to the X server.
  4174. *
  4175. */
  4176. xcb_void_cookie_t
  4177. xcb_input_close_device (xcb_connection_t *c,
  4178. uint8_t device_id);
  4179. /**
  4180. *
  4181. * @param c The connection
  4182. * @return A cookie
  4183. *
  4184. * Delivers a request to the X server.
  4185. *
  4186. */
  4187. xcb_input_set_device_mode_cookie_t
  4188. xcb_input_set_device_mode (xcb_connection_t *c,
  4189. uint8_t device_id,
  4190. uint8_t mode);
  4191. /**
  4192. *
  4193. * @param c The connection
  4194. * @return A cookie
  4195. *
  4196. * Delivers a request to the X server.
  4197. *
  4198. * This form can be used only if the request will cause
  4199. * a reply to be generated. Any returned error will be
  4200. * placed in the event queue.
  4201. */
  4202. xcb_input_set_device_mode_cookie_t
  4203. xcb_input_set_device_mode_unchecked (xcb_connection_t *c,
  4204. uint8_t device_id,
  4205. uint8_t mode);
  4206. /**
  4207. * Return the reply
  4208. * @param c The connection
  4209. * @param cookie The cookie
  4210. * @param e The xcb_generic_error_t supplied
  4211. *
  4212. * Returns the reply of the request asked by
  4213. *
  4214. * The parameter @p e supplied to this function must be NULL if
  4215. * xcb_input_set_device_mode_unchecked(). is used.
  4216. * Otherwise, it stores the error if any.
  4217. *
  4218. * The returned value must be freed by the caller using free().
  4219. */
  4220. xcb_input_set_device_mode_reply_t *
  4221. xcb_input_set_device_mode_reply (xcb_connection_t *c,
  4222. xcb_input_set_device_mode_cookie_t cookie /**< */,
  4223. xcb_generic_error_t **e);
  4224. int
  4225. xcb_input_select_extension_event_sizeof (const void *_buffer);
  4226. /**
  4227. *
  4228. * @param c The connection
  4229. * @return A cookie
  4230. *
  4231. * Delivers a request to the X server.
  4232. *
  4233. * This form can be used only if the request will not cause
  4234. * a reply to be generated. Any returned error will be
  4235. * saved for handling by xcb_request_check().
  4236. */
  4237. xcb_void_cookie_t
  4238. xcb_input_select_extension_event_checked (xcb_connection_t *c,
  4239. xcb_window_t window,
  4240. uint16_t num_classes,
  4241. const xcb_input_event_class_t *classes);
  4242. /**
  4243. *
  4244. * @param c The connection
  4245. * @return A cookie
  4246. *
  4247. * Delivers a request to the X server.
  4248. *
  4249. */
  4250. xcb_void_cookie_t
  4251. xcb_input_select_extension_event (xcb_connection_t *c,
  4252. xcb_window_t window,
  4253. uint16_t num_classes,
  4254. const xcb_input_event_class_t *classes);
  4255. xcb_input_event_class_t *
  4256. xcb_input_select_extension_event_classes (const xcb_input_select_extension_event_request_t *R);
  4257. int
  4258. xcb_input_select_extension_event_classes_length (const xcb_input_select_extension_event_request_t *R);
  4259. xcb_generic_iterator_t
  4260. xcb_input_select_extension_event_classes_end (const xcb_input_select_extension_event_request_t *R);
  4261. int
  4262. xcb_input_get_selected_extension_events_sizeof (const void *_buffer);
  4263. /**
  4264. *
  4265. * @param c The connection
  4266. * @return A cookie
  4267. *
  4268. * Delivers a request to the X server.
  4269. *
  4270. */
  4271. xcb_input_get_selected_extension_events_cookie_t
  4272. xcb_input_get_selected_extension_events (xcb_connection_t *c,
  4273. xcb_window_t window);
  4274. /**
  4275. *
  4276. * @param c The connection
  4277. * @return A cookie
  4278. *
  4279. * Delivers a request to the X server.
  4280. *
  4281. * This form can be used only if the request will cause
  4282. * a reply to be generated. Any returned error will be
  4283. * placed in the event queue.
  4284. */
  4285. xcb_input_get_selected_extension_events_cookie_t
  4286. xcb_input_get_selected_extension_events_unchecked (xcb_connection_t *c,
  4287. xcb_window_t window);
  4288. xcb_input_event_class_t *
  4289. xcb_input_get_selected_extension_events_this_classes (const xcb_input_get_selected_extension_events_reply_t *R);
  4290. int
  4291. xcb_input_get_selected_extension_events_this_classes_length (const xcb_input_get_selected_extension_events_reply_t *R);
  4292. xcb_generic_iterator_t
  4293. xcb_input_get_selected_extension_events_this_classes_end (const xcb_input_get_selected_extension_events_reply_t *R);
  4294. xcb_input_event_class_t *
  4295. xcb_input_get_selected_extension_events_all_classes (const xcb_input_get_selected_extension_events_reply_t *R);
  4296. int
  4297. xcb_input_get_selected_extension_events_all_classes_length (const xcb_input_get_selected_extension_events_reply_t *R);
  4298. xcb_generic_iterator_t
  4299. xcb_input_get_selected_extension_events_all_classes_end (const xcb_input_get_selected_extension_events_reply_t *R);
  4300. /**
  4301. * Return the reply
  4302. * @param c The connection
  4303. * @param cookie The cookie
  4304. * @param e The xcb_generic_error_t supplied
  4305. *
  4306. * Returns the reply of the request asked by
  4307. *
  4308. * The parameter @p e supplied to this function must be NULL if
  4309. * xcb_input_get_selected_extension_events_unchecked(). is used.
  4310. * Otherwise, it stores the error if any.
  4311. *
  4312. * The returned value must be freed by the caller using free().
  4313. */
  4314. xcb_input_get_selected_extension_events_reply_t *
  4315. xcb_input_get_selected_extension_events_reply (xcb_connection_t *c,
  4316. xcb_input_get_selected_extension_events_cookie_t cookie /**< */,
  4317. xcb_generic_error_t **e);
  4318. int
  4319. xcb_input_change_device_dont_propagate_list_sizeof (const void *_buffer);
  4320. /**
  4321. *
  4322. * @param c The connection
  4323. * @return A cookie
  4324. *
  4325. * Delivers a request to the X server.
  4326. *
  4327. * This form can be used only if the request will not cause
  4328. * a reply to be generated. Any returned error will be
  4329. * saved for handling by xcb_request_check().
  4330. */
  4331. xcb_void_cookie_t
  4332. xcb_input_change_device_dont_propagate_list_checked (xcb_connection_t *c,
  4333. xcb_window_t window,
  4334. uint16_t num_classes,
  4335. uint8_t mode,
  4336. const xcb_input_event_class_t *classes);
  4337. /**
  4338. *
  4339. * @param c The connection
  4340. * @return A cookie
  4341. *
  4342. * Delivers a request to the X server.
  4343. *
  4344. */
  4345. xcb_void_cookie_t
  4346. xcb_input_change_device_dont_propagate_list (xcb_connection_t *c,
  4347. xcb_window_t window,
  4348. uint16_t num_classes,
  4349. uint8_t mode,
  4350. const xcb_input_event_class_t *classes);
  4351. xcb_input_event_class_t *
  4352. xcb_input_change_device_dont_propagate_list_classes (const xcb_input_change_device_dont_propagate_list_request_t *R);
  4353. int
  4354. xcb_input_change_device_dont_propagate_list_classes_length (const xcb_input_change_device_dont_propagate_list_request_t *R);
  4355. xcb_generic_iterator_t
  4356. xcb_input_change_device_dont_propagate_list_classes_end (const xcb_input_change_device_dont_propagate_list_request_t *R);
  4357. int
  4358. xcb_input_get_device_dont_propagate_list_sizeof (const void *_buffer);
  4359. /**
  4360. *
  4361. * @param c The connection
  4362. * @return A cookie
  4363. *
  4364. * Delivers a request to the X server.
  4365. *
  4366. */
  4367. xcb_input_get_device_dont_propagate_list_cookie_t
  4368. xcb_input_get_device_dont_propagate_list (xcb_connection_t *c,
  4369. xcb_window_t window);
  4370. /**
  4371. *
  4372. * @param c The connection
  4373. * @return A cookie
  4374. *
  4375. * Delivers a request to the X server.
  4376. *
  4377. * This form can be used only if the request will cause
  4378. * a reply to be generated. Any returned error will be
  4379. * placed in the event queue.
  4380. */
  4381. xcb_input_get_device_dont_propagate_list_cookie_t
  4382. xcb_input_get_device_dont_propagate_list_unchecked (xcb_connection_t *c,
  4383. xcb_window_t window);
  4384. xcb_input_event_class_t *
  4385. xcb_input_get_device_dont_propagate_list_classes (const xcb_input_get_device_dont_propagate_list_reply_t *R);
  4386. int
  4387. xcb_input_get_device_dont_propagate_list_classes_length (const xcb_input_get_device_dont_propagate_list_reply_t *R);
  4388. xcb_generic_iterator_t
  4389. xcb_input_get_device_dont_propagate_list_classes_end (const xcb_input_get_device_dont_propagate_list_reply_t *R);
  4390. /**
  4391. * Return the reply
  4392. * @param c The connection
  4393. * @param cookie The cookie
  4394. * @param e The xcb_generic_error_t supplied
  4395. *
  4396. * Returns the reply of the request asked by
  4397. *
  4398. * The parameter @p e supplied to this function must be NULL if
  4399. * xcb_input_get_device_dont_propagate_list_unchecked(). is used.
  4400. * Otherwise, it stores the error if any.
  4401. *
  4402. * The returned value must be freed by the caller using free().
  4403. */
  4404. xcb_input_get_device_dont_propagate_list_reply_t *
  4405. xcb_input_get_device_dont_propagate_list_reply (xcb_connection_t *c,
  4406. xcb_input_get_device_dont_propagate_list_cookie_t cookie /**< */,
  4407. xcb_generic_error_t **e);
  4408. int
  4409. xcb_input_device_time_coord_sizeof (const void *_buffer,
  4410. uint8_t num_axes);
  4411. int32_t *
  4412. xcb_input_device_time_coord_axisvalues (const xcb_input_device_time_coord_t *R);
  4413. int
  4414. xcb_input_device_time_coord_axisvalues_length (const xcb_input_device_time_coord_t *R,
  4415. uint8_t num_axes);
  4416. xcb_generic_iterator_t
  4417. xcb_input_device_time_coord_axisvalues_end (const xcb_input_device_time_coord_t *R,
  4418. uint8_t num_axes);
  4419. /**
  4420. * Get the next element of the iterator
  4421. * @param i Pointer to a xcb_input_device_time_coord_iterator_t
  4422. *
  4423. * Get the next element in the iterator. The member rem is
  4424. * decreased by one. The member data points to the next
  4425. * element. The member index is increased by sizeof(xcb_input_device_time_coord_t)
  4426. */
  4427. void
  4428. xcb_input_device_time_coord_next (xcb_input_device_time_coord_iterator_t *i);
  4429. /**
  4430. * Return the iterator pointing to the last element
  4431. * @param i An xcb_input_device_time_coord_iterator_t
  4432. * @return The iterator pointing to the last element
  4433. *
  4434. * Set the current element in the iterator to the last element.
  4435. * The member rem is set to 0. The member data points to the
  4436. * last element.
  4437. */
  4438. xcb_generic_iterator_t
  4439. xcb_input_device_time_coord_end (xcb_input_device_time_coord_iterator_t i);
  4440. int
  4441. xcb_input_get_device_motion_events_sizeof (const void *_buffer);
  4442. /**
  4443. *
  4444. * @param c The connection
  4445. * @return A cookie
  4446. *
  4447. * Delivers a request to the X server.
  4448. *
  4449. */
  4450. xcb_input_get_device_motion_events_cookie_t
  4451. xcb_input_get_device_motion_events (xcb_connection_t *c,
  4452. xcb_timestamp_t start,
  4453. xcb_timestamp_t stop,
  4454. uint8_t device_id);
  4455. /**
  4456. *
  4457. * @param c The connection
  4458. * @return A cookie
  4459. *
  4460. * Delivers a request to the X server.
  4461. *
  4462. * This form can be used only if the request will cause
  4463. * a reply to be generated. Any returned error will be
  4464. * placed in the event queue.
  4465. */
  4466. xcb_input_get_device_motion_events_cookie_t
  4467. xcb_input_get_device_motion_events_unchecked (xcb_connection_t *c,
  4468. xcb_timestamp_t start,
  4469. xcb_timestamp_t stop,
  4470. uint8_t device_id);
  4471. int
  4472. xcb_input_get_device_motion_events_events_length (const xcb_input_get_device_motion_events_reply_t *R);
  4473. xcb_input_device_time_coord_iterator_t
  4474. xcb_input_get_device_motion_events_events_iterator (const xcb_input_get_device_motion_events_reply_t *R);
  4475. /**
  4476. * Return the reply
  4477. * @param c The connection
  4478. * @param cookie The cookie
  4479. * @param e The xcb_generic_error_t supplied
  4480. *
  4481. * Returns the reply of the request asked by
  4482. *
  4483. * The parameter @p e supplied to this function must be NULL if
  4484. * xcb_input_get_device_motion_events_unchecked(). is used.
  4485. * Otherwise, it stores the error if any.
  4486. *
  4487. * The returned value must be freed by the caller using free().
  4488. */
  4489. xcb_input_get_device_motion_events_reply_t *
  4490. xcb_input_get_device_motion_events_reply (xcb_connection_t *c,
  4491. xcb_input_get_device_motion_events_cookie_t cookie /**< */,
  4492. xcb_generic_error_t **e);
  4493. /**
  4494. *
  4495. * @param c The connection
  4496. * @return A cookie
  4497. *
  4498. * Delivers a request to the X server.
  4499. *
  4500. */
  4501. xcb_input_change_keyboard_device_cookie_t
  4502. xcb_input_change_keyboard_device (xcb_connection_t *c,
  4503. uint8_t device_id);
  4504. /**
  4505. *
  4506. * @param c The connection
  4507. * @return A cookie
  4508. *
  4509. * Delivers a request to the X server.
  4510. *
  4511. * This form can be used only if the request will cause
  4512. * a reply to be generated. Any returned error will be
  4513. * placed in the event queue.
  4514. */
  4515. xcb_input_change_keyboard_device_cookie_t
  4516. xcb_input_change_keyboard_device_unchecked (xcb_connection_t *c,
  4517. uint8_t device_id);
  4518. /**
  4519. * Return the reply
  4520. * @param c The connection
  4521. * @param cookie The cookie
  4522. * @param e The xcb_generic_error_t supplied
  4523. *
  4524. * Returns the reply of the request asked by
  4525. *
  4526. * The parameter @p e supplied to this function must be NULL if
  4527. * xcb_input_change_keyboard_device_unchecked(). is used.
  4528. * Otherwise, it stores the error if any.
  4529. *
  4530. * The returned value must be freed by the caller using free().
  4531. */
  4532. xcb_input_change_keyboard_device_reply_t *
  4533. xcb_input_change_keyboard_device_reply (xcb_connection_t *c,
  4534. xcb_input_change_keyboard_device_cookie_t cookie /**< */,
  4535. xcb_generic_error_t **e);
  4536. /**
  4537. *
  4538. * @param c The connection
  4539. * @return A cookie
  4540. *
  4541. * Delivers a request to the X server.
  4542. *
  4543. */
  4544. xcb_input_change_pointer_device_cookie_t
  4545. xcb_input_change_pointer_device (xcb_connection_t *c,
  4546. uint8_t x_axis,
  4547. uint8_t y_axis,
  4548. uint8_t device_id);
  4549. /**
  4550. *
  4551. * @param c The connection
  4552. * @return A cookie
  4553. *
  4554. * Delivers a request to the X server.
  4555. *
  4556. * This form can be used only if the request will cause
  4557. * a reply to be generated. Any returned error will be
  4558. * placed in the event queue.
  4559. */
  4560. xcb_input_change_pointer_device_cookie_t
  4561. xcb_input_change_pointer_device_unchecked (xcb_connection_t *c,
  4562. uint8_t x_axis,
  4563. uint8_t y_axis,
  4564. uint8_t device_id);
  4565. /**
  4566. * Return the reply
  4567. * @param c The connection
  4568. * @param cookie The cookie
  4569. * @param e The xcb_generic_error_t supplied
  4570. *
  4571. * Returns the reply of the request asked by
  4572. *
  4573. * The parameter @p e supplied to this function must be NULL if
  4574. * xcb_input_change_pointer_device_unchecked(). is used.
  4575. * Otherwise, it stores the error if any.
  4576. *
  4577. * The returned value must be freed by the caller using free().
  4578. */
  4579. xcb_input_change_pointer_device_reply_t *
  4580. xcb_input_change_pointer_device_reply (xcb_connection_t *c,
  4581. xcb_input_change_pointer_device_cookie_t cookie /**< */,
  4582. xcb_generic_error_t **e);
  4583. int
  4584. xcb_input_grab_device_sizeof (const void *_buffer);
  4585. /**
  4586. *
  4587. * @param c The connection
  4588. * @return A cookie
  4589. *
  4590. * Delivers a request to the X server.
  4591. *
  4592. */
  4593. xcb_input_grab_device_cookie_t
  4594. xcb_input_grab_device (xcb_connection_t *c,
  4595. xcb_window_t grab_window,
  4596. xcb_timestamp_t time,
  4597. uint16_t num_classes,
  4598. uint8_t this_device_mode,
  4599. uint8_t other_device_mode,
  4600. uint8_t owner_events,
  4601. uint8_t device_id,
  4602. const xcb_input_event_class_t *classes);
  4603. /**
  4604. *
  4605. * @param c The connection
  4606. * @return A cookie
  4607. *
  4608. * Delivers a request to the X server.
  4609. *
  4610. * This form can be used only if the request will cause
  4611. * a reply to be generated. Any returned error will be
  4612. * placed in the event queue.
  4613. */
  4614. xcb_input_grab_device_cookie_t
  4615. xcb_input_grab_device_unchecked (xcb_connection_t *c,
  4616. xcb_window_t grab_window,
  4617. xcb_timestamp_t time,
  4618. uint16_t num_classes,
  4619. uint8_t this_device_mode,
  4620. uint8_t other_device_mode,
  4621. uint8_t owner_events,
  4622. uint8_t device_id,
  4623. const xcb_input_event_class_t *classes);
  4624. /**
  4625. * Return the reply
  4626. * @param c The connection
  4627. * @param cookie The cookie
  4628. * @param e The xcb_generic_error_t supplied
  4629. *
  4630. * Returns the reply of the request asked by
  4631. *
  4632. * The parameter @p e supplied to this function must be NULL if
  4633. * xcb_input_grab_device_unchecked(). is used.
  4634. * Otherwise, it stores the error if any.
  4635. *
  4636. * The returned value must be freed by the caller using free().
  4637. */
  4638. xcb_input_grab_device_reply_t *
  4639. xcb_input_grab_device_reply (xcb_connection_t *c,
  4640. xcb_input_grab_device_cookie_t cookie /**< */,
  4641. xcb_generic_error_t **e);
  4642. /**
  4643. *
  4644. * @param c The connection
  4645. * @return A cookie
  4646. *
  4647. * Delivers a request to the X server.
  4648. *
  4649. * This form can be used only if the request will not cause
  4650. * a reply to be generated. Any returned error will be
  4651. * saved for handling by xcb_request_check().
  4652. */
  4653. xcb_void_cookie_t
  4654. xcb_input_ungrab_device_checked (xcb_connection_t *c,
  4655. xcb_timestamp_t time,
  4656. uint8_t device_id);
  4657. /**
  4658. *
  4659. * @param c The connection
  4660. * @return A cookie
  4661. *
  4662. * Delivers a request to the X server.
  4663. *
  4664. */
  4665. xcb_void_cookie_t
  4666. xcb_input_ungrab_device (xcb_connection_t *c,
  4667. xcb_timestamp_t time,
  4668. uint8_t device_id);
  4669. int
  4670. xcb_input_grab_device_key_sizeof (const void *_buffer);
  4671. /**
  4672. *
  4673. * @param c The connection
  4674. * @return A cookie
  4675. *
  4676. * Delivers a request to the X server.
  4677. *
  4678. * This form can be used only if the request will not cause
  4679. * a reply to be generated. Any returned error will be
  4680. * saved for handling by xcb_request_check().
  4681. */
  4682. xcb_void_cookie_t
  4683. xcb_input_grab_device_key_checked (xcb_connection_t *c,
  4684. xcb_window_t grab_window,
  4685. uint16_t num_classes,
  4686. uint16_t modifiers,
  4687. uint8_t modifier_device,
  4688. uint8_t grabbed_device,
  4689. uint8_t key,
  4690. uint8_t this_device_mode,
  4691. uint8_t other_device_mode,
  4692. uint8_t owner_events,
  4693. const xcb_input_event_class_t *classes);
  4694. /**
  4695. *
  4696. * @param c The connection
  4697. * @return A cookie
  4698. *
  4699. * Delivers a request to the X server.
  4700. *
  4701. */
  4702. xcb_void_cookie_t
  4703. xcb_input_grab_device_key (xcb_connection_t *c,
  4704. xcb_window_t grab_window,
  4705. uint16_t num_classes,
  4706. uint16_t modifiers,
  4707. uint8_t modifier_device,
  4708. uint8_t grabbed_device,
  4709. uint8_t key,
  4710. uint8_t this_device_mode,
  4711. uint8_t other_device_mode,
  4712. uint8_t owner_events,
  4713. const xcb_input_event_class_t *classes);
  4714. xcb_input_event_class_t *
  4715. xcb_input_grab_device_key_classes (const xcb_input_grab_device_key_request_t *R);
  4716. int
  4717. xcb_input_grab_device_key_classes_length (const xcb_input_grab_device_key_request_t *R);
  4718. xcb_generic_iterator_t
  4719. xcb_input_grab_device_key_classes_end (const xcb_input_grab_device_key_request_t *R);
  4720. /**
  4721. *
  4722. * @param c The connection
  4723. * @return A cookie
  4724. *
  4725. * Delivers a request to the X server.
  4726. *
  4727. * This form can be used only if the request will not cause
  4728. * a reply to be generated. Any returned error will be
  4729. * saved for handling by xcb_request_check().
  4730. */
  4731. xcb_void_cookie_t
  4732. xcb_input_ungrab_device_key_checked (xcb_connection_t *c,
  4733. xcb_window_t grabWindow,
  4734. uint16_t modifiers,
  4735. uint8_t modifier_device,
  4736. uint8_t key,
  4737. uint8_t grabbed_device);
  4738. /**
  4739. *
  4740. * @param c The connection
  4741. * @return A cookie
  4742. *
  4743. * Delivers a request to the X server.
  4744. *
  4745. */
  4746. xcb_void_cookie_t
  4747. xcb_input_ungrab_device_key (xcb_connection_t *c,
  4748. xcb_window_t grabWindow,
  4749. uint16_t modifiers,
  4750. uint8_t modifier_device,
  4751. uint8_t key,
  4752. uint8_t grabbed_device);
  4753. int
  4754. xcb_input_grab_device_button_sizeof (const void *_buffer);
  4755. /**
  4756. *
  4757. * @param c The connection
  4758. * @return A cookie
  4759. *
  4760. * Delivers a request to the X server.
  4761. *
  4762. * This form can be used only if the request will not cause
  4763. * a reply to be generated. Any returned error will be
  4764. * saved for handling by xcb_request_check().
  4765. */
  4766. xcb_void_cookie_t
  4767. xcb_input_grab_device_button_checked (xcb_connection_t *c,
  4768. xcb_window_t grab_window,
  4769. uint8_t grabbed_device,
  4770. uint8_t modifier_device,
  4771. uint16_t num_classes,
  4772. uint16_t modifiers,
  4773. uint8_t this_device_mode,
  4774. uint8_t other_device_mode,
  4775. uint8_t button,
  4776. uint8_t owner_events,
  4777. const xcb_input_event_class_t *classes);
  4778. /**
  4779. *
  4780. * @param c The connection
  4781. * @return A cookie
  4782. *
  4783. * Delivers a request to the X server.
  4784. *
  4785. */
  4786. xcb_void_cookie_t
  4787. xcb_input_grab_device_button (xcb_connection_t *c,
  4788. xcb_window_t grab_window,
  4789. uint8_t grabbed_device,
  4790. uint8_t modifier_device,
  4791. uint16_t num_classes,
  4792. uint16_t modifiers,
  4793. uint8_t this_device_mode,
  4794. uint8_t other_device_mode,
  4795. uint8_t button,
  4796. uint8_t owner_events,
  4797. const xcb_input_event_class_t *classes);
  4798. xcb_input_event_class_t *
  4799. xcb_input_grab_device_button_classes (const xcb_input_grab_device_button_request_t *R);
  4800. int
  4801. xcb_input_grab_device_button_classes_length (const xcb_input_grab_device_button_request_t *R);
  4802. xcb_generic_iterator_t
  4803. xcb_input_grab_device_button_classes_end (const xcb_input_grab_device_button_request_t *R);
  4804. /**
  4805. *
  4806. * @param c The connection
  4807. * @return A cookie
  4808. *
  4809. * Delivers a request to the X server.
  4810. *
  4811. * This form can be used only if the request will not cause
  4812. * a reply to be generated. Any returned error will be
  4813. * saved for handling by xcb_request_check().
  4814. */
  4815. xcb_void_cookie_t
  4816. xcb_input_ungrab_device_button_checked (xcb_connection_t *c,
  4817. xcb_window_t grab_window,
  4818. uint16_t modifiers,
  4819. uint8_t modifier_device,
  4820. uint8_t button,
  4821. uint8_t grabbed_device);
  4822. /**
  4823. *
  4824. * @param c The connection
  4825. * @return A cookie
  4826. *
  4827. * Delivers a request to the X server.
  4828. *
  4829. */
  4830. xcb_void_cookie_t
  4831. xcb_input_ungrab_device_button (xcb_connection_t *c,
  4832. xcb_window_t grab_window,
  4833. uint16_t modifiers,
  4834. uint8_t modifier_device,
  4835. uint8_t button,
  4836. uint8_t grabbed_device);
  4837. /**
  4838. *
  4839. * @param c The connection
  4840. * @return A cookie
  4841. *
  4842. * Delivers a request to the X server.
  4843. *
  4844. * This form can be used only if the request will not cause
  4845. * a reply to be generated. Any returned error will be
  4846. * saved for handling by xcb_request_check().
  4847. */
  4848. xcb_void_cookie_t
  4849. xcb_input_allow_device_events_checked (xcb_connection_t *c,
  4850. xcb_timestamp_t time,
  4851. uint8_t mode,
  4852. uint8_t device_id);
  4853. /**
  4854. *
  4855. * @param c The connection
  4856. * @return A cookie
  4857. *
  4858. * Delivers a request to the X server.
  4859. *
  4860. */
  4861. xcb_void_cookie_t
  4862. xcb_input_allow_device_events (xcb_connection_t *c,
  4863. xcb_timestamp_t time,
  4864. uint8_t mode,
  4865. uint8_t device_id);
  4866. /**
  4867. *
  4868. * @param c The connection
  4869. * @return A cookie
  4870. *
  4871. * Delivers a request to the X server.
  4872. *
  4873. */
  4874. xcb_input_get_device_focus_cookie_t
  4875. xcb_input_get_device_focus (xcb_connection_t *c,
  4876. uint8_t device_id);
  4877. /**
  4878. *
  4879. * @param c The connection
  4880. * @return A cookie
  4881. *
  4882. * Delivers a request to the X server.
  4883. *
  4884. * This form can be used only if the request will cause
  4885. * a reply to be generated. Any returned error will be
  4886. * placed in the event queue.
  4887. */
  4888. xcb_input_get_device_focus_cookie_t
  4889. xcb_input_get_device_focus_unchecked (xcb_connection_t *c,
  4890. uint8_t device_id);
  4891. /**
  4892. * Return the reply
  4893. * @param c The connection
  4894. * @param cookie The cookie
  4895. * @param e The xcb_generic_error_t supplied
  4896. *
  4897. * Returns the reply of the request asked by
  4898. *
  4899. * The parameter @p e supplied to this function must be NULL if
  4900. * xcb_input_get_device_focus_unchecked(). is used.
  4901. * Otherwise, it stores the error if any.
  4902. *
  4903. * The returned value must be freed by the caller using free().
  4904. */
  4905. xcb_input_get_device_focus_reply_t *
  4906. xcb_input_get_device_focus_reply (xcb_connection_t *c,
  4907. xcb_input_get_device_focus_cookie_t cookie /**< */,
  4908. xcb_generic_error_t **e);
  4909. /**
  4910. *
  4911. * @param c The connection
  4912. * @return A cookie
  4913. *
  4914. * Delivers a request to the X server.
  4915. *
  4916. * This form can be used only if the request will not cause
  4917. * a reply to be generated. Any returned error will be
  4918. * saved for handling by xcb_request_check().
  4919. */
  4920. xcb_void_cookie_t
  4921. xcb_input_set_device_focus_checked (xcb_connection_t *c,
  4922. xcb_window_t focus,
  4923. xcb_timestamp_t time,
  4924. uint8_t revert_to,
  4925. uint8_t device_id);
  4926. /**
  4927. *
  4928. * @param c The connection
  4929. * @return A cookie
  4930. *
  4931. * Delivers a request to the X server.
  4932. *
  4933. */
  4934. xcb_void_cookie_t
  4935. xcb_input_set_device_focus (xcb_connection_t *c,
  4936. xcb_window_t focus,
  4937. xcb_timestamp_t time,
  4938. uint8_t revert_to,
  4939. uint8_t device_id);
  4940. /**
  4941. * Get the next element of the iterator
  4942. * @param i Pointer to a xcb_input_kbd_feedback_state_iterator_t
  4943. *
  4944. * Get the next element in the iterator. The member rem is
  4945. * decreased by one. The member data points to the next
  4946. * element. The member index is increased by sizeof(xcb_input_kbd_feedback_state_t)
  4947. */
  4948. void
  4949. xcb_input_kbd_feedback_state_next (xcb_input_kbd_feedback_state_iterator_t *i);
  4950. /**
  4951. * Return the iterator pointing to the last element
  4952. * @param i An xcb_input_kbd_feedback_state_iterator_t
  4953. * @return The iterator pointing to the last element
  4954. *
  4955. * Set the current element in the iterator to the last element.
  4956. * The member rem is set to 0. The member data points to the
  4957. * last element.
  4958. */
  4959. xcb_generic_iterator_t
  4960. xcb_input_kbd_feedback_state_end (xcb_input_kbd_feedback_state_iterator_t i);
  4961. /**
  4962. * Get the next element of the iterator
  4963. * @param i Pointer to a xcb_input_ptr_feedback_state_iterator_t
  4964. *
  4965. * Get the next element in the iterator. The member rem is
  4966. * decreased by one. The member data points to the next
  4967. * element. The member index is increased by sizeof(xcb_input_ptr_feedback_state_t)
  4968. */
  4969. void
  4970. xcb_input_ptr_feedback_state_next (xcb_input_ptr_feedback_state_iterator_t *i);
  4971. /**
  4972. * Return the iterator pointing to the last element
  4973. * @param i An xcb_input_ptr_feedback_state_iterator_t
  4974. * @return The iterator pointing to the last element
  4975. *
  4976. * Set the current element in the iterator to the last element.
  4977. * The member rem is set to 0. The member data points to the
  4978. * last element.
  4979. */
  4980. xcb_generic_iterator_t
  4981. xcb_input_ptr_feedback_state_end (xcb_input_ptr_feedback_state_iterator_t i);
  4982. /**
  4983. * Get the next element of the iterator
  4984. * @param i Pointer to a xcb_input_integer_feedback_state_iterator_t
  4985. *
  4986. * Get the next element in the iterator. The member rem is
  4987. * decreased by one. The member data points to the next
  4988. * element. The member index is increased by sizeof(xcb_input_integer_feedback_state_t)
  4989. */
  4990. void
  4991. xcb_input_integer_feedback_state_next (xcb_input_integer_feedback_state_iterator_t *i);
  4992. /**
  4993. * Return the iterator pointing to the last element
  4994. * @param i An xcb_input_integer_feedback_state_iterator_t
  4995. * @return The iterator pointing to the last element
  4996. *
  4997. * Set the current element in the iterator to the last element.
  4998. * The member rem is set to 0. The member data points to the
  4999. * last element.
  5000. */
  5001. xcb_generic_iterator_t
  5002. xcb_input_integer_feedback_state_end (xcb_input_integer_feedback_state_iterator_t i);
  5003. int
  5004. xcb_input_string_feedback_state_sizeof (const void *_buffer);
  5005. xcb_keysym_t *
  5006. xcb_input_string_feedback_state_keysyms (const xcb_input_string_feedback_state_t *R);
  5007. int
  5008. xcb_input_string_feedback_state_keysyms_length (const xcb_input_string_feedback_state_t *R);
  5009. xcb_generic_iterator_t
  5010. xcb_input_string_feedback_state_keysyms_end (const xcb_input_string_feedback_state_t *R);
  5011. /**
  5012. * Get the next element of the iterator
  5013. * @param i Pointer to a xcb_input_string_feedback_state_iterator_t
  5014. *
  5015. * Get the next element in the iterator. The member rem is
  5016. * decreased by one. The member data points to the next
  5017. * element. The member index is increased by sizeof(xcb_input_string_feedback_state_t)
  5018. */
  5019. void
  5020. xcb_input_string_feedback_state_next (xcb_input_string_feedback_state_iterator_t *i);
  5021. /**
  5022. * Return the iterator pointing to the last element
  5023. * @param i An xcb_input_string_feedback_state_iterator_t
  5024. * @return The iterator pointing to the last element
  5025. *
  5026. * Set the current element in the iterator to the last element.
  5027. * The member rem is set to 0. The member data points to the
  5028. * last element.
  5029. */
  5030. xcb_generic_iterator_t
  5031. xcb_input_string_feedback_state_end (xcb_input_string_feedback_state_iterator_t i);
  5032. /**
  5033. * Get the next element of the iterator
  5034. * @param i Pointer to a xcb_input_bell_feedback_state_iterator_t
  5035. *
  5036. * Get the next element in the iterator. The member rem is
  5037. * decreased by one. The member data points to the next
  5038. * element. The member index is increased by sizeof(xcb_input_bell_feedback_state_t)
  5039. */
  5040. void
  5041. xcb_input_bell_feedback_state_next (xcb_input_bell_feedback_state_iterator_t *i);
  5042. /**
  5043. * Return the iterator pointing to the last element
  5044. * @param i An xcb_input_bell_feedback_state_iterator_t
  5045. * @return The iterator pointing to the last element
  5046. *
  5047. * Set the current element in the iterator to the last element.
  5048. * The member rem is set to 0. The member data points to the
  5049. * last element.
  5050. */
  5051. xcb_generic_iterator_t
  5052. xcb_input_bell_feedback_state_end (xcb_input_bell_feedback_state_iterator_t i);
  5053. /**
  5054. * Get the next element of the iterator
  5055. * @param i Pointer to a xcb_input_led_feedback_state_iterator_t
  5056. *
  5057. * Get the next element in the iterator. The member rem is
  5058. * decreased by one. The member data points to the next
  5059. * element. The member index is increased by sizeof(xcb_input_led_feedback_state_t)
  5060. */
  5061. void
  5062. xcb_input_led_feedback_state_next (xcb_input_led_feedback_state_iterator_t *i);
  5063. /**
  5064. * Return the iterator pointing to the last element
  5065. * @param i An xcb_input_led_feedback_state_iterator_t
  5066. * @return The iterator pointing to the last element
  5067. *
  5068. * Set the current element in the iterator to the last element.
  5069. * The member rem is set to 0. The member data points to the
  5070. * last element.
  5071. */
  5072. xcb_generic_iterator_t
  5073. xcb_input_led_feedback_state_end (xcb_input_led_feedback_state_iterator_t i);
  5074. xcb_keysym_t *
  5075. xcb_input_feedback_state_data_string_keysyms (const xcb_input_feedback_state_data_t *S);
  5076. int
  5077. xcb_input_feedback_state_data_string_keysyms_length (const xcb_input_feedback_state_t *R,
  5078. const xcb_input_feedback_state_data_t *S);
  5079. xcb_generic_iterator_t
  5080. xcb_input_feedback_state_data_string_keysyms_end (const xcb_input_feedback_state_t *R,
  5081. const xcb_input_feedback_state_data_t *S);
  5082. int
  5083. xcb_input_feedback_state_data_serialize (void **_buffer,
  5084. uint8_t class_id,
  5085. const xcb_input_feedback_state_data_t *_aux);
  5086. int
  5087. xcb_input_feedback_state_data_unpack (const void *_buffer,
  5088. uint8_t class_id,
  5089. xcb_input_feedback_state_data_t *_aux);
  5090. int
  5091. xcb_input_feedback_state_data_sizeof (const void *_buffer,
  5092. uint8_t class_id);
  5093. int
  5094. xcb_input_feedback_state_sizeof (const void *_buffer);
  5095. /**
  5096. * Get the next element of the iterator
  5097. * @param i Pointer to a xcb_input_feedback_state_iterator_t
  5098. *
  5099. * Get the next element in the iterator. The member rem is
  5100. * decreased by one. The member data points to the next
  5101. * element. The member index is increased by sizeof(xcb_input_feedback_state_t)
  5102. */
  5103. void
  5104. xcb_input_feedback_state_next (xcb_input_feedback_state_iterator_t *i);
  5105. /**
  5106. * Return the iterator pointing to the last element
  5107. * @param i An xcb_input_feedback_state_iterator_t
  5108. * @return The iterator pointing to the last element
  5109. *
  5110. * Set the current element in the iterator to the last element.
  5111. * The member rem is set to 0. The member data points to the
  5112. * last element.
  5113. */
  5114. xcb_generic_iterator_t
  5115. xcb_input_feedback_state_end (xcb_input_feedback_state_iterator_t i);
  5116. int
  5117. xcb_input_get_feedback_control_sizeof (const void *_buffer);
  5118. /**
  5119. *
  5120. * @param c The connection
  5121. * @return A cookie
  5122. *
  5123. * Delivers a request to the X server.
  5124. *
  5125. */
  5126. xcb_input_get_feedback_control_cookie_t
  5127. xcb_input_get_feedback_control (xcb_connection_t *c,
  5128. uint8_t device_id);
  5129. /**
  5130. *
  5131. * @param c The connection
  5132. * @return A cookie
  5133. *
  5134. * Delivers a request to the X server.
  5135. *
  5136. * This form can be used only if the request will cause
  5137. * a reply to be generated. Any returned error will be
  5138. * placed in the event queue.
  5139. */
  5140. xcb_input_get_feedback_control_cookie_t
  5141. xcb_input_get_feedback_control_unchecked (xcb_connection_t *c,
  5142. uint8_t device_id);
  5143. int
  5144. xcb_input_get_feedback_control_feedbacks_length (const xcb_input_get_feedback_control_reply_t *R);
  5145. xcb_input_feedback_state_iterator_t
  5146. xcb_input_get_feedback_control_feedbacks_iterator (const xcb_input_get_feedback_control_reply_t *R);
  5147. /**
  5148. * Return the reply
  5149. * @param c The connection
  5150. * @param cookie The cookie
  5151. * @param e The xcb_generic_error_t supplied
  5152. *
  5153. * Returns the reply of the request asked by
  5154. *
  5155. * The parameter @p e supplied to this function must be NULL if
  5156. * xcb_input_get_feedback_control_unchecked(). is used.
  5157. * Otherwise, it stores the error if any.
  5158. *
  5159. * The returned value must be freed by the caller using free().
  5160. */
  5161. xcb_input_get_feedback_control_reply_t *
  5162. xcb_input_get_feedback_control_reply (xcb_connection_t *c,
  5163. xcb_input_get_feedback_control_cookie_t cookie /**< */,
  5164. xcb_generic_error_t **e);
  5165. /**
  5166. * Get the next element of the iterator
  5167. * @param i Pointer to a xcb_input_kbd_feedback_ctl_iterator_t
  5168. *
  5169. * Get the next element in the iterator. The member rem is
  5170. * decreased by one. The member data points to the next
  5171. * element. The member index is increased by sizeof(xcb_input_kbd_feedback_ctl_t)
  5172. */
  5173. void
  5174. xcb_input_kbd_feedback_ctl_next (xcb_input_kbd_feedback_ctl_iterator_t *i);
  5175. /**
  5176. * Return the iterator pointing to the last element
  5177. * @param i An xcb_input_kbd_feedback_ctl_iterator_t
  5178. * @return The iterator pointing to the last element
  5179. *
  5180. * Set the current element in the iterator to the last element.
  5181. * The member rem is set to 0. The member data points to the
  5182. * last element.
  5183. */
  5184. xcb_generic_iterator_t
  5185. xcb_input_kbd_feedback_ctl_end (xcb_input_kbd_feedback_ctl_iterator_t i);
  5186. /**
  5187. * Get the next element of the iterator
  5188. * @param i Pointer to a xcb_input_ptr_feedback_ctl_iterator_t
  5189. *
  5190. * Get the next element in the iterator. The member rem is
  5191. * decreased by one. The member data points to the next
  5192. * element. The member index is increased by sizeof(xcb_input_ptr_feedback_ctl_t)
  5193. */
  5194. void
  5195. xcb_input_ptr_feedback_ctl_next (xcb_input_ptr_feedback_ctl_iterator_t *i);
  5196. /**
  5197. * Return the iterator pointing to the last element
  5198. * @param i An xcb_input_ptr_feedback_ctl_iterator_t
  5199. * @return The iterator pointing to the last element
  5200. *
  5201. * Set the current element in the iterator to the last element.
  5202. * The member rem is set to 0. The member data points to the
  5203. * last element.
  5204. */
  5205. xcb_generic_iterator_t
  5206. xcb_input_ptr_feedback_ctl_end (xcb_input_ptr_feedback_ctl_iterator_t i);
  5207. /**
  5208. * Get the next element of the iterator
  5209. * @param i Pointer to a xcb_input_integer_feedback_ctl_iterator_t
  5210. *
  5211. * Get the next element in the iterator. The member rem is
  5212. * decreased by one. The member data points to the next
  5213. * element. The member index is increased by sizeof(xcb_input_integer_feedback_ctl_t)
  5214. */
  5215. void
  5216. xcb_input_integer_feedback_ctl_next (xcb_input_integer_feedback_ctl_iterator_t *i);
  5217. /**
  5218. * Return the iterator pointing to the last element
  5219. * @param i An xcb_input_integer_feedback_ctl_iterator_t
  5220. * @return The iterator pointing to the last element
  5221. *
  5222. * Set the current element in the iterator to the last element.
  5223. * The member rem is set to 0. The member data points to the
  5224. * last element.
  5225. */
  5226. xcb_generic_iterator_t
  5227. xcb_input_integer_feedback_ctl_end (xcb_input_integer_feedback_ctl_iterator_t i);
  5228. int
  5229. xcb_input_string_feedback_ctl_sizeof (const void *_buffer);
  5230. xcb_keysym_t *
  5231. xcb_input_string_feedback_ctl_keysyms (const xcb_input_string_feedback_ctl_t *R);
  5232. int
  5233. xcb_input_string_feedback_ctl_keysyms_length (const xcb_input_string_feedback_ctl_t *R);
  5234. xcb_generic_iterator_t
  5235. xcb_input_string_feedback_ctl_keysyms_end (const xcb_input_string_feedback_ctl_t *R);
  5236. /**
  5237. * Get the next element of the iterator
  5238. * @param i Pointer to a xcb_input_string_feedback_ctl_iterator_t
  5239. *
  5240. * Get the next element in the iterator. The member rem is
  5241. * decreased by one. The member data points to the next
  5242. * element. The member index is increased by sizeof(xcb_input_string_feedback_ctl_t)
  5243. */
  5244. void
  5245. xcb_input_string_feedback_ctl_next (xcb_input_string_feedback_ctl_iterator_t *i);
  5246. /**
  5247. * Return the iterator pointing to the last element
  5248. * @param i An xcb_input_string_feedback_ctl_iterator_t
  5249. * @return The iterator pointing to the last element
  5250. *
  5251. * Set the current element in the iterator to the last element.
  5252. * The member rem is set to 0. The member data points to the
  5253. * last element.
  5254. */
  5255. xcb_generic_iterator_t
  5256. xcb_input_string_feedback_ctl_end (xcb_input_string_feedback_ctl_iterator_t i);
  5257. /**
  5258. * Get the next element of the iterator
  5259. * @param i Pointer to a xcb_input_bell_feedback_ctl_iterator_t
  5260. *
  5261. * Get the next element in the iterator. The member rem is
  5262. * decreased by one. The member data points to the next
  5263. * element. The member index is increased by sizeof(xcb_input_bell_feedback_ctl_t)
  5264. */
  5265. void
  5266. xcb_input_bell_feedback_ctl_next (xcb_input_bell_feedback_ctl_iterator_t *i);
  5267. /**
  5268. * Return the iterator pointing to the last element
  5269. * @param i An xcb_input_bell_feedback_ctl_iterator_t
  5270. * @return The iterator pointing to the last element
  5271. *
  5272. * Set the current element in the iterator to the last element.
  5273. * The member rem is set to 0. The member data points to the
  5274. * last element.
  5275. */
  5276. xcb_generic_iterator_t
  5277. xcb_input_bell_feedback_ctl_end (xcb_input_bell_feedback_ctl_iterator_t i);
  5278. /**
  5279. * Get the next element of the iterator
  5280. * @param i Pointer to a xcb_input_led_feedback_ctl_iterator_t
  5281. *
  5282. * Get the next element in the iterator. The member rem is
  5283. * decreased by one. The member data points to the next
  5284. * element. The member index is increased by sizeof(xcb_input_led_feedback_ctl_t)
  5285. */
  5286. void
  5287. xcb_input_led_feedback_ctl_next (xcb_input_led_feedback_ctl_iterator_t *i);
  5288. /**
  5289. * Return the iterator pointing to the last element
  5290. * @param i An xcb_input_led_feedback_ctl_iterator_t
  5291. * @return The iterator pointing to the last element
  5292. *
  5293. * Set the current element in the iterator to the last element.
  5294. * The member rem is set to 0. The member data points to the
  5295. * last element.
  5296. */
  5297. xcb_generic_iterator_t
  5298. xcb_input_led_feedback_ctl_end (xcb_input_led_feedback_ctl_iterator_t i);
  5299. xcb_keysym_t *
  5300. xcb_input_feedback_ctl_data_string_keysyms (const xcb_input_feedback_ctl_data_t *S);
  5301. int
  5302. xcb_input_feedback_ctl_data_string_keysyms_length (const xcb_input_feedback_ctl_t *R,
  5303. const xcb_input_feedback_ctl_data_t *S);
  5304. xcb_generic_iterator_t
  5305. xcb_input_feedback_ctl_data_string_keysyms_end (const xcb_input_feedback_ctl_t *R,
  5306. const xcb_input_feedback_ctl_data_t *S);
  5307. int
  5308. xcb_input_feedback_ctl_data_serialize (void **_buffer,
  5309. uint8_t class_id,
  5310. const xcb_input_feedback_ctl_data_t *_aux);
  5311. int
  5312. xcb_input_feedback_ctl_data_unpack (const void *_buffer,
  5313. uint8_t class_id,
  5314. xcb_input_feedback_ctl_data_t *_aux);
  5315. int
  5316. xcb_input_feedback_ctl_data_sizeof (const void *_buffer,
  5317. uint8_t class_id);
  5318. int
  5319. xcb_input_feedback_ctl_sizeof (const void *_buffer);
  5320. /**
  5321. * Get the next element of the iterator
  5322. * @param i Pointer to a xcb_input_feedback_ctl_iterator_t
  5323. *
  5324. * Get the next element in the iterator. The member rem is
  5325. * decreased by one. The member data points to the next
  5326. * element. The member index is increased by sizeof(xcb_input_feedback_ctl_t)
  5327. */
  5328. void
  5329. xcb_input_feedback_ctl_next (xcb_input_feedback_ctl_iterator_t *i);
  5330. /**
  5331. * Return the iterator pointing to the last element
  5332. * @param i An xcb_input_feedback_ctl_iterator_t
  5333. * @return The iterator pointing to the last element
  5334. *
  5335. * Set the current element in the iterator to the last element.
  5336. * The member rem is set to 0. The member data points to the
  5337. * last element.
  5338. */
  5339. xcb_generic_iterator_t
  5340. xcb_input_feedback_ctl_end (xcb_input_feedback_ctl_iterator_t i);
  5341. int
  5342. xcb_input_change_feedback_control_sizeof (const void *_buffer);
  5343. /**
  5344. *
  5345. * @param c The connection
  5346. * @return A cookie
  5347. *
  5348. * Delivers a request to the X server.
  5349. *
  5350. * This form can be used only if the request will not cause
  5351. * a reply to be generated. Any returned error will be
  5352. * saved for handling by xcb_request_check().
  5353. */
  5354. xcb_void_cookie_t
  5355. xcb_input_change_feedback_control_checked (xcb_connection_t *c,
  5356. uint32_t mask,
  5357. uint8_t device_id,
  5358. uint8_t feedback_id,
  5359. xcb_input_feedback_ctl_t *feedback);
  5360. /**
  5361. *
  5362. * @param c The connection
  5363. * @return A cookie
  5364. *
  5365. * Delivers a request to the X server.
  5366. *
  5367. */
  5368. xcb_void_cookie_t
  5369. xcb_input_change_feedback_control (xcb_connection_t *c,
  5370. uint32_t mask,
  5371. uint8_t device_id,
  5372. uint8_t feedback_id,
  5373. xcb_input_feedback_ctl_t *feedback);
  5374. xcb_input_feedback_ctl_t *
  5375. xcb_input_change_feedback_control_feedback (const xcb_input_change_feedback_control_request_t *R);
  5376. int
  5377. xcb_input_get_device_key_mapping_sizeof (const void *_buffer);
  5378. /**
  5379. *
  5380. * @param c The connection
  5381. * @return A cookie
  5382. *
  5383. * Delivers a request to the X server.
  5384. *
  5385. */
  5386. xcb_input_get_device_key_mapping_cookie_t
  5387. xcb_input_get_device_key_mapping (xcb_connection_t *c,
  5388. uint8_t device_id,
  5389. xcb_input_key_code_t first_keycode,
  5390. uint8_t count);
  5391. /**
  5392. *
  5393. * @param c The connection
  5394. * @return A cookie
  5395. *
  5396. * Delivers a request to the X server.
  5397. *
  5398. * This form can be used only if the request will cause
  5399. * a reply to be generated. Any returned error will be
  5400. * placed in the event queue.
  5401. */
  5402. xcb_input_get_device_key_mapping_cookie_t
  5403. xcb_input_get_device_key_mapping_unchecked (xcb_connection_t *c,
  5404. uint8_t device_id,
  5405. xcb_input_key_code_t first_keycode,
  5406. uint8_t count);
  5407. xcb_keysym_t *
  5408. xcb_input_get_device_key_mapping_keysyms (const xcb_input_get_device_key_mapping_reply_t *R);
  5409. int
  5410. xcb_input_get_device_key_mapping_keysyms_length (const xcb_input_get_device_key_mapping_reply_t *R);
  5411. xcb_generic_iterator_t
  5412. xcb_input_get_device_key_mapping_keysyms_end (const xcb_input_get_device_key_mapping_reply_t *R);
  5413. /**
  5414. * Return the reply
  5415. * @param c The connection
  5416. * @param cookie The cookie
  5417. * @param e The xcb_generic_error_t supplied
  5418. *
  5419. * Returns the reply of the request asked by
  5420. *
  5421. * The parameter @p e supplied to this function must be NULL if
  5422. * xcb_input_get_device_key_mapping_unchecked(). is used.
  5423. * Otherwise, it stores the error if any.
  5424. *
  5425. * The returned value must be freed by the caller using free().
  5426. */
  5427. xcb_input_get_device_key_mapping_reply_t *
  5428. xcb_input_get_device_key_mapping_reply (xcb_connection_t *c,
  5429. xcb_input_get_device_key_mapping_cookie_t cookie /**< */,
  5430. xcb_generic_error_t **e);
  5431. int
  5432. xcb_input_change_device_key_mapping_sizeof (const void *_buffer);
  5433. /**
  5434. *
  5435. * @param c The connection
  5436. * @return A cookie
  5437. *
  5438. * Delivers a request to the X server.
  5439. *
  5440. * This form can be used only if the request will not cause
  5441. * a reply to be generated. Any returned error will be
  5442. * saved for handling by xcb_request_check().
  5443. */
  5444. xcb_void_cookie_t
  5445. xcb_input_change_device_key_mapping_checked (xcb_connection_t *c,
  5446. uint8_t device_id,
  5447. xcb_input_key_code_t first_keycode,
  5448. uint8_t keysyms_per_keycode,
  5449. uint8_t keycode_count,
  5450. const xcb_keysym_t *keysyms);
  5451. /**
  5452. *
  5453. * @param c The connection
  5454. * @return A cookie
  5455. *
  5456. * Delivers a request to the X server.
  5457. *
  5458. */
  5459. xcb_void_cookie_t
  5460. xcb_input_change_device_key_mapping (xcb_connection_t *c,
  5461. uint8_t device_id,
  5462. xcb_input_key_code_t first_keycode,
  5463. uint8_t keysyms_per_keycode,
  5464. uint8_t keycode_count,
  5465. const xcb_keysym_t *keysyms);
  5466. xcb_keysym_t *
  5467. xcb_input_change_device_key_mapping_keysyms (const xcb_input_change_device_key_mapping_request_t *R);
  5468. int
  5469. xcb_input_change_device_key_mapping_keysyms_length (const xcb_input_change_device_key_mapping_request_t *R);
  5470. xcb_generic_iterator_t
  5471. xcb_input_change_device_key_mapping_keysyms_end (const xcb_input_change_device_key_mapping_request_t *R);
  5472. int
  5473. xcb_input_get_device_modifier_mapping_sizeof (const void *_buffer);
  5474. /**
  5475. *
  5476. * @param c The connection
  5477. * @return A cookie
  5478. *
  5479. * Delivers a request to the X server.
  5480. *
  5481. */
  5482. xcb_input_get_device_modifier_mapping_cookie_t
  5483. xcb_input_get_device_modifier_mapping (xcb_connection_t *c,
  5484. uint8_t device_id);
  5485. /**
  5486. *
  5487. * @param c The connection
  5488. * @return A cookie
  5489. *
  5490. * Delivers a request to the X server.
  5491. *
  5492. * This form can be used only if the request will cause
  5493. * a reply to be generated. Any returned error will be
  5494. * placed in the event queue.
  5495. */
  5496. xcb_input_get_device_modifier_mapping_cookie_t
  5497. xcb_input_get_device_modifier_mapping_unchecked (xcb_connection_t *c,
  5498. uint8_t device_id);
  5499. uint8_t *
  5500. xcb_input_get_device_modifier_mapping_keymaps (const xcb_input_get_device_modifier_mapping_reply_t *R);
  5501. int
  5502. xcb_input_get_device_modifier_mapping_keymaps_length (const xcb_input_get_device_modifier_mapping_reply_t *R);
  5503. xcb_generic_iterator_t
  5504. xcb_input_get_device_modifier_mapping_keymaps_end (const xcb_input_get_device_modifier_mapping_reply_t *R);
  5505. /**
  5506. * Return the reply
  5507. * @param c The connection
  5508. * @param cookie The cookie
  5509. * @param e The xcb_generic_error_t supplied
  5510. *
  5511. * Returns the reply of the request asked by
  5512. *
  5513. * The parameter @p e supplied to this function must be NULL if
  5514. * xcb_input_get_device_modifier_mapping_unchecked(). is used.
  5515. * Otherwise, it stores the error if any.
  5516. *
  5517. * The returned value must be freed by the caller using free().
  5518. */
  5519. xcb_input_get_device_modifier_mapping_reply_t *
  5520. xcb_input_get_device_modifier_mapping_reply (xcb_connection_t *c,
  5521. xcb_input_get_device_modifier_mapping_cookie_t cookie /**< */,
  5522. xcb_generic_error_t **e);
  5523. int
  5524. xcb_input_set_device_modifier_mapping_sizeof (const void *_buffer);
  5525. /**
  5526. *
  5527. * @param c The connection
  5528. * @return A cookie
  5529. *
  5530. * Delivers a request to the X server.
  5531. *
  5532. */
  5533. xcb_input_set_device_modifier_mapping_cookie_t
  5534. xcb_input_set_device_modifier_mapping (xcb_connection_t *c,
  5535. uint8_t device_id,
  5536. uint8_t keycodes_per_modifier,
  5537. const uint8_t *keymaps);
  5538. /**
  5539. *
  5540. * @param c The connection
  5541. * @return A cookie
  5542. *
  5543. * Delivers a request to the X server.
  5544. *
  5545. * This form can be used only if the request will cause
  5546. * a reply to be generated. Any returned error will be
  5547. * placed in the event queue.
  5548. */
  5549. xcb_input_set_device_modifier_mapping_cookie_t
  5550. xcb_input_set_device_modifier_mapping_unchecked (xcb_connection_t *c,
  5551. uint8_t device_id,
  5552. uint8_t keycodes_per_modifier,
  5553. const uint8_t *keymaps);
  5554. /**
  5555. * Return the reply
  5556. * @param c The connection
  5557. * @param cookie The cookie
  5558. * @param e The xcb_generic_error_t supplied
  5559. *
  5560. * Returns the reply of the request asked by
  5561. *
  5562. * The parameter @p e supplied to this function must be NULL if
  5563. * xcb_input_set_device_modifier_mapping_unchecked(). is used.
  5564. * Otherwise, it stores the error if any.
  5565. *
  5566. * The returned value must be freed by the caller using free().
  5567. */
  5568. xcb_input_set_device_modifier_mapping_reply_t *
  5569. xcb_input_set_device_modifier_mapping_reply (xcb_connection_t *c,
  5570. xcb_input_set_device_modifier_mapping_cookie_t cookie /**< */,
  5571. xcb_generic_error_t **e);
  5572. int
  5573. xcb_input_get_device_button_mapping_sizeof (const void *_buffer);
  5574. /**
  5575. *
  5576. * @param c The connection
  5577. * @return A cookie
  5578. *
  5579. * Delivers a request to the X server.
  5580. *
  5581. */
  5582. xcb_input_get_device_button_mapping_cookie_t
  5583. xcb_input_get_device_button_mapping (xcb_connection_t *c,
  5584. uint8_t device_id);
  5585. /**
  5586. *
  5587. * @param c The connection
  5588. * @return A cookie
  5589. *
  5590. * Delivers a request to the X server.
  5591. *
  5592. * This form can be used only if the request will cause
  5593. * a reply to be generated. Any returned error will be
  5594. * placed in the event queue.
  5595. */
  5596. xcb_input_get_device_button_mapping_cookie_t
  5597. xcb_input_get_device_button_mapping_unchecked (xcb_connection_t *c,
  5598. uint8_t device_id);
  5599. uint8_t *
  5600. xcb_input_get_device_button_mapping_map (const xcb_input_get_device_button_mapping_reply_t *R);
  5601. int
  5602. xcb_input_get_device_button_mapping_map_length (const xcb_input_get_device_button_mapping_reply_t *R);
  5603. xcb_generic_iterator_t
  5604. xcb_input_get_device_button_mapping_map_end (const xcb_input_get_device_button_mapping_reply_t *R);
  5605. /**
  5606. * Return the reply
  5607. * @param c The connection
  5608. * @param cookie The cookie
  5609. * @param e The xcb_generic_error_t supplied
  5610. *
  5611. * Returns the reply of the request asked by
  5612. *
  5613. * The parameter @p e supplied to this function must be NULL if
  5614. * xcb_input_get_device_button_mapping_unchecked(). is used.
  5615. * Otherwise, it stores the error if any.
  5616. *
  5617. * The returned value must be freed by the caller using free().
  5618. */
  5619. xcb_input_get_device_button_mapping_reply_t *
  5620. xcb_input_get_device_button_mapping_reply (xcb_connection_t *c,
  5621. xcb_input_get_device_button_mapping_cookie_t cookie /**< */,
  5622. xcb_generic_error_t **e);
  5623. int
  5624. xcb_input_set_device_button_mapping_sizeof (const void *_buffer);
  5625. /**
  5626. *
  5627. * @param c The connection
  5628. * @return A cookie
  5629. *
  5630. * Delivers a request to the X server.
  5631. *
  5632. */
  5633. xcb_input_set_device_button_mapping_cookie_t
  5634. xcb_input_set_device_button_mapping (xcb_connection_t *c,
  5635. uint8_t device_id,
  5636. uint8_t map_size,
  5637. const uint8_t *map);
  5638. /**
  5639. *
  5640. * @param c The connection
  5641. * @return A cookie
  5642. *
  5643. * Delivers a request to the X server.
  5644. *
  5645. * This form can be used only if the request will cause
  5646. * a reply to be generated. Any returned error will be
  5647. * placed in the event queue.
  5648. */
  5649. xcb_input_set_device_button_mapping_cookie_t
  5650. xcb_input_set_device_button_mapping_unchecked (xcb_connection_t *c,
  5651. uint8_t device_id,
  5652. uint8_t map_size,
  5653. const uint8_t *map);
  5654. /**
  5655. * Return the reply
  5656. * @param c The connection
  5657. * @param cookie The cookie
  5658. * @param e The xcb_generic_error_t supplied
  5659. *
  5660. * Returns the reply of the request asked by
  5661. *
  5662. * The parameter @p e supplied to this function must be NULL if
  5663. * xcb_input_set_device_button_mapping_unchecked(). is used.
  5664. * Otherwise, it stores the error if any.
  5665. *
  5666. * The returned value must be freed by the caller using free().
  5667. */
  5668. xcb_input_set_device_button_mapping_reply_t *
  5669. xcb_input_set_device_button_mapping_reply (xcb_connection_t *c,
  5670. xcb_input_set_device_button_mapping_cookie_t cookie /**< */,
  5671. xcb_generic_error_t **e);
  5672. /**
  5673. * Get the next element of the iterator
  5674. * @param i Pointer to a xcb_input_key_state_iterator_t
  5675. *
  5676. * Get the next element in the iterator. The member rem is
  5677. * decreased by one. The member data points to the next
  5678. * element. The member index is increased by sizeof(xcb_input_key_state_t)
  5679. */
  5680. void
  5681. xcb_input_key_state_next (xcb_input_key_state_iterator_t *i);
  5682. /**
  5683. * Return the iterator pointing to the last element
  5684. * @param i An xcb_input_key_state_iterator_t
  5685. * @return The iterator pointing to the last element
  5686. *
  5687. * Set the current element in the iterator to the last element.
  5688. * The member rem is set to 0. The member data points to the
  5689. * last element.
  5690. */
  5691. xcb_generic_iterator_t
  5692. xcb_input_key_state_end (xcb_input_key_state_iterator_t i);
  5693. /**
  5694. * Get the next element of the iterator
  5695. * @param i Pointer to a xcb_input_button_state_iterator_t
  5696. *
  5697. * Get the next element in the iterator. The member rem is
  5698. * decreased by one. The member data points to the next
  5699. * element. The member index is increased by sizeof(xcb_input_button_state_t)
  5700. */
  5701. void
  5702. xcb_input_button_state_next (xcb_input_button_state_iterator_t *i);
  5703. /**
  5704. * Return the iterator pointing to the last element
  5705. * @param i An xcb_input_button_state_iterator_t
  5706. * @return The iterator pointing to the last element
  5707. *
  5708. * Set the current element in the iterator to the last element.
  5709. * The member rem is set to 0. The member data points to the
  5710. * last element.
  5711. */
  5712. xcb_generic_iterator_t
  5713. xcb_input_button_state_end (xcb_input_button_state_iterator_t i);
  5714. int
  5715. xcb_input_valuator_state_sizeof (const void *_buffer);
  5716. int32_t *
  5717. xcb_input_valuator_state_valuators (const xcb_input_valuator_state_t *R);
  5718. int
  5719. xcb_input_valuator_state_valuators_length (const xcb_input_valuator_state_t *R);
  5720. xcb_generic_iterator_t
  5721. xcb_input_valuator_state_valuators_end (const xcb_input_valuator_state_t *R);
  5722. /**
  5723. * Get the next element of the iterator
  5724. * @param i Pointer to a xcb_input_valuator_state_iterator_t
  5725. *
  5726. * Get the next element in the iterator. The member rem is
  5727. * decreased by one. The member data points to the next
  5728. * element. The member index is increased by sizeof(xcb_input_valuator_state_t)
  5729. */
  5730. void
  5731. xcb_input_valuator_state_next (xcb_input_valuator_state_iterator_t *i);
  5732. /**
  5733. * Return the iterator pointing to the last element
  5734. * @param i An xcb_input_valuator_state_iterator_t
  5735. * @return The iterator pointing to the last element
  5736. *
  5737. * Set the current element in the iterator to the last element.
  5738. * The member rem is set to 0. The member data points to the
  5739. * last element.
  5740. */
  5741. xcb_generic_iterator_t
  5742. xcb_input_valuator_state_end (xcb_input_valuator_state_iterator_t i);
  5743. int32_t *
  5744. xcb_input_input_state_data_valuator_valuators (const xcb_input_input_state_data_t *S);
  5745. int
  5746. xcb_input_input_state_data_valuator_valuators_length (const xcb_input_input_state_t *R,
  5747. const xcb_input_input_state_data_t *S);
  5748. xcb_generic_iterator_t
  5749. xcb_input_input_state_data_valuator_valuators_end (const xcb_input_input_state_t *R,
  5750. const xcb_input_input_state_data_t *S);
  5751. int
  5752. xcb_input_input_state_data_serialize (void **_buffer,
  5753. uint8_t class_id,
  5754. const xcb_input_input_state_data_t *_aux);
  5755. int
  5756. xcb_input_input_state_data_unpack (const void *_buffer,
  5757. uint8_t class_id,
  5758. xcb_input_input_state_data_t *_aux);
  5759. int
  5760. xcb_input_input_state_data_sizeof (const void *_buffer,
  5761. uint8_t class_id);
  5762. int
  5763. xcb_input_input_state_sizeof (const void *_buffer);
  5764. /**
  5765. * Get the next element of the iterator
  5766. * @param i Pointer to a xcb_input_input_state_iterator_t
  5767. *
  5768. * Get the next element in the iterator. The member rem is
  5769. * decreased by one. The member data points to the next
  5770. * element. The member index is increased by sizeof(xcb_input_input_state_t)
  5771. */
  5772. void
  5773. xcb_input_input_state_next (xcb_input_input_state_iterator_t *i);
  5774. /**
  5775. * Return the iterator pointing to the last element
  5776. * @param i An xcb_input_input_state_iterator_t
  5777. * @return The iterator pointing to the last element
  5778. *
  5779. * Set the current element in the iterator to the last element.
  5780. * The member rem is set to 0. The member data points to the
  5781. * last element.
  5782. */
  5783. xcb_generic_iterator_t
  5784. xcb_input_input_state_end (xcb_input_input_state_iterator_t i);
  5785. int
  5786. xcb_input_query_device_state_sizeof (const void *_buffer);
  5787. /**
  5788. *
  5789. * @param c The connection
  5790. * @return A cookie
  5791. *
  5792. * Delivers a request to the X server.
  5793. *
  5794. */
  5795. xcb_input_query_device_state_cookie_t
  5796. xcb_input_query_device_state (xcb_connection_t *c,
  5797. uint8_t device_id);
  5798. /**
  5799. *
  5800. * @param c The connection
  5801. * @return A cookie
  5802. *
  5803. * Delivers a request to the X server.
  5804. *
  5805. * This form can be used only if the request will cause
  5806. * a reply to be generated. Any returned error will be
  5807. * placed in the event queue.
  5808. */
  5809. xcb_input_query_device_state_cookie_t
  5810. xcb_input_query_device_state_unchecked (xcb_connection_t *c,
  5811. uint8_t device_id);
  5812. int
  5813. xcb_input_query_device_state_classes_length (const xcb_input_query_device_state_reply_t *R);
  5814. xcb_input_input_state_iterator_t
  5815. xcb_input_query_device_state_classes_iterator (const xcb_input_query_device_state_reply_t *R);
  5816. /**
  5817. * Return the reply
  5818. * @param c The connection
  5819. * @param cookie The cookie
  5820. * @param e The xcb_generic_error_t supplied
  5821. *
  5822. * Returns the reply of the request asked by
  5823. *
  5824. * The parameter @p e supplied to this function must be NULL if
  5825. * xcb_input_query_device_state_unchecked(). is used.
  5826. * Otherwise, it stores the error if any.
  5827. *
  5828. * The returned value must be freed by the caller using free().
  5829. */
  5830. xcb_input_query_device_state_reply_t *
  5831. xcb_input_query_device_state_reply (xcb_connection_t *c,
  5832. xcb_input_query_device_state_cookie_t cookie /**< */,
  5833. xcb_generic_error_t **e);
  5834. /**
  5835. *
  5836. * @param c The connection
  5837. * @return A cookie
  5838. *
  5839. * Delivers a request to the X server.
  5840. *
  5841. * This form can be used only if the request will not cause
  5842. * a reply to be generated. Any returned error will be
  5843. * saved for handling by xcb_request_check().
  5844. */
  5845. xcb_void_cookie_t
  5846. xcb_input_device_bell_checked (xcb_connection_t *c,
  5847. uint8_t device_id,
  5848. uint8_t feedback_id,
  5849. uint8_t feedback_class,
  5850. int8_t percent);
  5851. /**
  5852. *
  5853. * @param c The connection
  5854. * @return A cookie
  5855. *
  5856. * Delivers a request to the X server.
  5857. *
  5858. */
  5859. xcb_void_cookie_t
  5860. xcb_input_device_bell (xcb_connection_t *c,
  5861. uint8_t device_id,
  5862. uint8_t feedback_id,
  5863. uint8_t feedback_class,
  5864. int8_t percent);
  5865. int
  5866. xcb_input_set_device_valuators_sizeof (const void *_buffer);
  5867. /**
  5868. *
  5869. * @param c The connection
  5870. * @return A cookie
  5871. *
  5872. * Delivers a request to the X server.
  5873. *
  5874. */
  5875. xcb_input_set_device_valuators_cookie_t
  5876. xcb_input_set_device_valuators (xcb_connection_t *c,
  5877. uint8_t device_id,
  5878. uint8_t first_valuator,
  5879. uint8_t num_valuators,
  5880. const int32_t *valuators);
  5881. /**
  5882. *
  5883. * @param c The connection
  5884. * @return A cookie
  5885. *
  5886. * Delivers a request to the X server.
  5887. *
  5888. * This form can be used only if the request will cause
  5889. * a reply to be generated. Any returned error will be
  5890. * placed in the event queue.
  5891. */
  5892. xcb_input_set_device_valuators_cookie_t
  5893. xcb_input_set_device_valuators_unchecked (xcb_connection_t *c,
  5894. uint8_t device_id,
  5895. uint8_t first_valuator,
  5896. uint8_t num_valuators,
  5897. const int32_t *valuators);
  5898. /**
  5899. * Return the reply
  5900. * @param c The connection
  5901. * @param cookie The cookie
  5902. * @param e The xcb_generic_error_t supplied
  5903. *
  5904. * Returns the reply of the request asked by
  5905. *
  5906. * The parameter @p e supplied to this function must be NULL if
  5907. * xcb_input_set_device_valuators_unchecked(). is used.
  5908. * Otherwise, it stores the error if any.
  5909. *
  5910. * The returned value must be freed by the caller using free().
  5911. */
  5912. xcb_input_set_device_valuators_reply_t *
  5913. xcb_input_set_device_valuators_reply (xcb_connection_t *c,
  5914. xcb_input_set_device_valuators_cookie_t cookie /**< */,
  5915. xcb_generic_error_t **e);
  5916. int
  5917. xcb_input_device_resolution_state_sizeof (const void *_buffer);
  5918. uint32_t *
  5919. xcb_input_device_resolution_state_resolution_values (const xcb_input_device_resolution_state_t *R);
  5920. int
  5921. xcb_input_device_resolution_state_resolution_values_length (const xcb_input_device_resolution_state_t *R);
  5922. xcb_generic_iterator_t
  5923. xcb_input_device_resolution_state_resolution_values_end (const xcb_input_device_resolution_state_t *R);
  5924. uint32_t *
  5925. xcb_input_device_resolution_state_resolution_min (const xcb_input_device_resolution_state_t *R);
  5926. int
  5927. xcb_input_device_resolution_state_resolution_min_length (const xcb_input_device_resolution_state_t *R);
  5928. xcb_generic_iterator_t
  5929. xcb_input_device_resolution_state_resolution_min_end (const xcb_input_device_resolution_state_t *R);
  5930. uint32_t *
  5931. xcb_input_device_resolution_state_resolution_max (const xcb_input_device_resolution_state_t *R);
  5932. int
  5933. xcb_input_device_resolution_state_resolution_max_length (const xcb_input_device_resolution_state_t *R);
  5934. xcb_generic_iterator_t
  5935. xcb_input_device_resolution_state_resolution_max_end (const xcb_input_device_resolution_state_t *R);
  5936. /**
  5937. * Get the next element of the iterator
  5938. * @param i Pointer to a xcb_input_device_resolution_state_iterator_t
  5939. *
  5940. * Get the next element in the iterator. The member rem is
  5941. * decreased by one. The member data points to the next
  5942. * element. The member index is increased by sizeof(xcb_input_device_resolution_state_t)
  5943. */
  5944. void
  5945. xcb_input_device_resolution_state_next (xcb_input_device_resolution_state_iterator_t *i);
  5946. /**
  5947. * Return the iterator pointing to the last element
  5948. * @param i An xcb_input_device_resolution_state_iterator_t
  5949. * @return The iterator pointing to the last element
  5950. *
  5951. * Set the current element in the iterator to the last element.
  5952. * The member rem is set to 0. The member data points to the
  5953. * last element.
  5954. */
  5955. xcb_generic_iterator_t
  5956. xcb_input_device_resolution_state_end (xcb_input_device_resolution_state_iterator_t i);
  5957. /**
  5958. * Get the next element of the iterator
  5959. * @param i Pointer to a xcb_input_device_abs_calib_state_iterator_t
  5960. *
  5961. * Get the next element in the iterator. The member rem is
  5962. * decreased by one. The member data points to the next
  5963. * element. The member index is increased by sizeof(xcb_input_device_abs_calib_state_t)
  5964. */
  5965. void
  5966. xcb_input_device_abs_calib_state_next (xcb_input_device_abs_calib_state_iterator_t *i);
  5967. /**
  5968. * Return the iterator pointing to the last element
  5969. * @param i An xcb_input_device_abs_calib_state_iterator_t
  5970. * @return The iterator pointing to the last element
  5971. *
  5972. * Set the current element in the iterator to the last element.
  5973. * The member rem is set to 0. The member data points to the
  5974. * last element.
  5975. */
  5976. xcb_generic_iterator_t
  5977. xcb_input_device_abs_calib_state_end (xcb_input_device_abs_calib_state_iterator_t i);
  5978. /**
  5979. * Get the next element of the iterator
  5980. * @param i Pointer to a xcb_input_device_abs_area_state_iterator_t
  5981. *
  5982. * Get the next element in the iterator. The member rem is
  5983. * decreased by one. The member data points to the next
  5984. * element. The member index is increased by sizeof(xcb_input_device_abs_area_state_t)
  5985. */
  5986. void
  5987. xcb_input_device_abs_area_state_next (xcb_input_device_abs_area_state_iterator_t *i);
  5988. /**
  5989. * Return the iterator pointing to the last element
  5990. * @param i An xcb_input_device_abs_area_state_iterator_t
  5991. * @return The iterator pointing to the last element
  5992. *
  5993. * Set the current element in the iterator to the last element.
  5994. * The member rem is set to 0. The member data points to the
  5995. * last element.
  5996. */
  5997. xcb_generic_iterator_t
  5998. xcb_input_device_abs_area_state_end (xcb_input_device_abs_area_state_iterator_t i);
  5999. /**
  6000. * Get the next element of the iterator
  6001. * @param i Pointer to a xcb_input_device_core_state_iterator_t
  6002. *
  6003. * Get the next element in the iterator. The member rem is
  6004. * decreased by one. The member data points to the next
  6005. * element. The member index is increased by sizeof(xcb_input_device_core_state_t)
  6006. */
  6007. void
  6008. xcb_input_device_core_state_next (xcb_input_device_core_state_iterator_t *i);
  6009. /**
  6010. * Return the iterator pointing to the last element
  6011. * @param i An xcb_input_device_core_state_iterator_t
  6012. * @return The iterator pointing to the last element
  6013. *
  6014. * Set the current element in the iterator to the last element.
  6015. * The member rem is set to 0. The member data points to the
  6016. * last element.
  6017. */
  6018. xcb_generic_iterator_t
  6019. xcb_input_device_core_state_end (xcb_input_device_core_state_iterator_t i);
  6020. /**
  6021. * Get the next element of the iterator
  6022. * @param i Pointer to a xcb_input_device_enable_state_iterator_t
  6023. *
  6024. * Get the next element in the iterator. The member rem is
  6025. * decreased by one. The member data points to the next
  6026. * element. The member index is increased by sizeof(xcb_input_device_enable_state_t)
  6027. */
  6028. void
  6029. xcb_input_device_enable_state_next (xcb_input_device_enable_state_iterator_t *i);
  6030. /**
  6031. * Return the iterator pointing to the last element
  6032. * @param i An xcb_input_device_enable_state_iterator_t
  6033. * @return The iterator pointing to the last element
  6034. *
  6035. * Set the current element in the iterator to the last element.
  6036. * The member rem is set to 0. The member data points to the
  6037. * last element.
  6038. */
  6039. xcb_generic_iterator_t
  6040. xcb_input_device_enable_state_end (xcb_input_device_enable_state_iterator_t i);
  6041. uint32_t *
  6042. xcb_input_device_state_data_resolution_resolution_values (const xcb_input_device_state_data_t *S);
  6043. int
  6044. xcb_input_device_state_data_resolution_resolution_values_length (const xcb_input_device_state_t *R,
  6045. const xcb_input_device_state_data_t *S);
  6046. xcb_generic_iterator_t
  6047. xcb_input_device_state_data_resolution_resolution_values_end (const xcb_input_device_state_t *R,
  6048. const xcb_input_device_state_data_t *S);
  6049. uint32_t *
  6050. xcb_input_device_state_data_resolution_resolution_min (const xcb_input_device_state_data_t *S);
  6051. int
  6052. xcb_input_device_state_data_resolution_resolution_min_length (const xcb_input_device_state_t *R,
  6053. const xcb_input_device_state_data_t *S);
  6054. xcb_generic_iterator_t
  6055. xcb_input_device_state_data_resolution_resolution_min_end (const xcb_input_device_state_t *R,
  6056. const xcb_input_device_state_data_t *S);
  6057. uint32_t *
  6058. xcb_input_device_state_data_resolution_resolution_max (const xcb_input_device_state_data_t *S);
  6059. int
  6060. xcb_input_device_state_data_resolution_resolution_max_length (const xcb_input_device_state_t *R,
  6061. const xcb_input_device_state_data_t *S);
  6062. xcb_generic_iterator_t
  6063. xcb_input_device_state_data_resolution_resolution_max_end (const xcb_input_device_state_t *R,
  6064. const xcb_input_device_state_data_t *S);
  6065. int
  6066. xcb_input_device_state_data_serialize (void **_buffer,
  6067. uint16_t control_id,
  6068. const xcb_input_device_state_data_t *_aux);
  6069. int
  6070. xcb_input_device_state_data_unpack (const void *_buffer,
  6071. uint16_t control_id,
  6072. xcb_input_device_state_data_t *_aux);
  6073. int
  6074. xcb_input_device_state_data_sizeof (const void *_buffer,
  6075. uint16_t control_id);
  6076. int
  6077. xcb_input_device_state_sizeof (const void *_buffer);
  6078. /**
  6079. * Get the next element of the iterator
  6080. * @param i Pointer to a xcb_input_device_state_iterator_t
  6081. *
  6082. * Get the next element in the iterator. The member rem is
  6083. * decreased by one. The member data points to the next
  6084. * element. The member index is increased by sizeof(xcb_input_device_state_t)
  6085. */
  6086. void
  6087. xcb_input_device_state_next (xcb_input_device_state_iterator_t *i);
  6088. /**
  6089. * Return the iterator pointing to the last element
  6090. * @param i An xcb_input_device_state_iterator_t
  6091. * @return The iterator pointing to the last element
  6092. *
  6093. * Set the current element in the iterator to the last element.
  6094. * The member rem is set to 0. The member data points to the
  6095. * last element.
  6096. */
  6097. xcb_generic_iterator_t
  6098. xcb_input_device_state_end (xcb_input_device_state_iterator_t i);
  6099. int
  6100. xcb_input_get_device_control_sizeof (const void *_buffer);
  6101. /**
  6102. *
  6103. * @param c The connection
  6104. * @return A cookie
  6105. *
  6106. * Delivers a request to the X server.
  6107. *
  6108. */
  6109. xcb_input_get_device_control_cookie_t
  6110. xcb_input_get_device_control (xcb_connection_t *c,
  6111. uint16_t control_id,
  6112. uint8_t device_id);
  6113. /**
  6114. *
  6115. * @param c The connection
  6116. * @return A cookie
  6117. *
  6118. * Delivers a request to the X server.
  6119. *
  6120. * This form can be used only if the request will cause
  6121. * a reply to be generated. Any returned error will be
  6122. * placed in the event queue.
  6123. */
  6124. xcb_input_get_device_control_cookie_t
  6125. xcb_input_get_device_control_unchecked (xcb_connection_t *c,
  6126. uint16_t control_id,
  6127. uint8_t device_id);
  6128. xcb_input_device_state_t *
  6129. xcb_input_get_device_control_control (const xcb_input_get_device_control_reply_t *R);
  6130. /**
  6131. * Return the reply
  6132. * @param c The connection
  6133. * @param cookie The cookie
  6134. * @param e The xcb_generic_error_t supplied
  6135. *
  6136. * Returns the reply of the request asked by
  6137. *
  6138. * The parameter @p e supplied to this function must be NULL if
  6139. * xcb_input_get_device_control_unchecked(). is used.
  6140. * Otherwise, it stores the error if any.
  6141. *
  6142. * The returned value must be freed by the caller using free().
  6143. */
  6144. xcb_input_get_device_control_reply_t *
  6145. xcb_input_get_device_control_reply (xcb_connection_t *c,
  6146. xcb_input_get_device_control_cookie_t cookie /**< */,
  6147. xcb_generic_error_t **e);
  6148. int
  6149. xcb_input_device_resolution_ctl_sizeof (const void *_buffer);
  6150. uint32_t *
  6151. xcb_input_device_resolution_ctl_resolution_values (const xcb_input_device_resolution_ctl_t *R);
  6152. int
  6153. xcb_input_device_resolution_ctl_resolution_values_length (const xcb_input_device_resolution_ctl_t *R);
  6154. xcb_generic_iterator_t
  6155. xcb_input_device_resolution_ctl_resolution_values_end (const xcb_input_device_resolution_ctl_t *R);
  6156. /**
  6157. * Get the next element of the iterator
  6158. * @param i Pointer to a xcb_input_device_resolution_ctl_iterator_t
  6159. *
  6160. * Get the next element in the iterator. The member rem is
  6161. * decreased by one. The member data points to the next
  6162. * element. The member index is increased by sizeof(xcb_input_device_resolution_ctl_t)
  6163. */
  6164. void
  6165. xcb_input_device_resolution_ctl_next (xcb_input_device_resolution_ctl_iterator_t *i);
  6166. /**
  6167. * Return the iterator pointing to the last element
  6168. * @param i An xcb_input_device_resolution_ctl_iterator_t
  6169. * @return The iterator pointing to the last element
  6170. *
  6171. * Set the current element in the iterator to the last element.
  6172. * The member rem is set to 0. The member data points to the
  6173. * last element.
  6174. */
  6175. xcb_generic_iterator_t
  6176. xcb_input_device_resolution_ctl_end (xcb_input_device_resolution_ctl_iterator_t i);
  6177. /**
  6178. * Get the next element of the iterator
  6179. * @param i Pointer to a xcb_input_device_abs_calib_ctl_iterator_t
  6180. *
  6181. * Get the next element in the iterator. The member rem is
  6182. * decreased by one. The member data points to the next
  6183. * element. The member index is increased by sizeof(xcb_input_device_abs_calib_ctl_t)
  6184. */
  6185. void
  6186. xcb_input_device_abs_calib_ctl_next (xcb_input_device_abs_calib_ctl_iterator_t *i);
  6187. /**
  6188. * Return the iterator pointing to the last element
  6189. * @param i An xcb_input_device_abs_calib_ctl_iterator_t
  6190. * @return The iterator pointing to the last element
  6191. *
  6192. * Set the current element in the iterator to the last element.
  6193. * The member rem is set to 0. The member data points to the
  6194. * last element.
  6195. */
  6196. xcb_generic_iterator_t
  6197. xcb_input_device_abs_calib_ctl_end (xcb_input_device_abs_calib_ctl_iterator_t i);
  6198. /**
  6199. * Get the next element of the iterator
  6200. * @param i Pointer to a xcb_input_device_abs_area_ctrl_iterator_t
  6201. *
  6202. * Get the next element in the iterator. The member rem is
  6203. * decreased by one. The member data points to the next
  6204. * element. The member index is increased by sizeof(xcb_input_device_abs_area_ctrl_t)
  6205. */
  6206. void
  6207. xcb_input_device_abs_area_ctrl_next (xcb_input_device_abs_area_ctrl_iterator_t *i);
  6208. /**
  6209. * Return the iterator pointing to the last element
  6210. * @param i An xcb_input_device_abs_area_ctrl_iterator_t
  6211. * @return The iterator pointing to the last element
  6212. *
  6213. * Set the current element in the iterator to the last element.
  6214. * The member rem is set to 0. The member data points to the
  6215. * last element.
  6216. */
  6217. xcb_generic_iterator_t
  6218. xcb_input_device_abs_area_ctrl_end (xcb_input_device_abs_area_ctrl_iterator_t i);
  6219. /**
  6220. * Get the next element of the iterator
  6221. * @param i Pointer to a xcb_input_device_core_ctrl_iterator_t
  6222. *
  6223. * Get the next element in the iterator. The member rem is
  6224. * decreased by one. The member data points to the next
  6225. * element. The member index is increased by sizeof(xcb_input_device_core_ctrl_t)
  6226. */
  6227. void
  6228. xcb_input_device_core_ctrl_next (xcb_input_device_core_ctrl_iterator_t *i);
  6229. /**
  6230. * Return the iterator pointing to the last element
  6231. * @param i An xcb_input_device_core_ctrl_iterator_t
  6232. * @return The iterator pointing to the last element
  6233. *
  6234. * Set the current element in the iterator to the last element.
  6235. * The member rem is set to 0. The member data points to the
  6236. * last element.
  6237. */
  6238. xcb_generic_iterator_t
  6239. xcb_input_device_core_ctrl_end (xcb_input_device_core_ctrl_iterator_t i);
  6240. /**
  6241. * Get the next element of the iterator
  6242. * @param i Pointer to a xcb_input_device_enable_ctrl_iterator_t
  6243. *
  6244. * Get the next element in the iterator. The member rem is
  6245. * decreased by one. The member data points to the next
  6246. * element. The member index is increased by sizeof(xcb_input_device_enable_ctrl_t)
  6247. */
  6248. void
  6249. xcb_input_device_enable_ctrl_next (xcb_input_device_enable_ctrl_iterator_t *i);
  6250. /**
  6251. * Return the iterator pointing to the last element
  6252. * @param i An xcb_input_device_enable_ctrl_iterator_t
  6253. * @return The iterator pointing to the last element
  6254. *
  6255. * Set the current element in the iterator to the last element.
  6256. * The member rem is set to 0. The member data points to the
  6257. * last element.
  6258. */
  6259. xcb_generic_iterator_t
  6260. xcb_input_device_enable_ctrl_end (xcb_input_device_enable_ctrl_iterator_t i);
  6261. uint32_t *
  6262. xcb_input_device_ctl_data_resolution_resolution_values (const xcb_input_device_ctl_data_t *S);
  6263. int
  6264. xcb_input_device_ctl_data_resolution_resolution_values_length (const xcb_input_device_ctl_t *R,
  6265. const xcb_input_device_ctl_data_t *S);
  6266. xcb_generic_iterator_t
  6267. xcb_input_device_ctl_data_resolution_resolution_values_end (const xcb_input_device_ctl_t *R,
  6268. const xcb_input_device_ctl_data_t *S);
  6269. int
  6270. xcb_input_device_ctl_data_serialize (void **_buffer,
  6271. uint16_t control_id,
  6272. const xcb_input_device_ctl_data_t *_aux);
  6273. int
  6274. xcb_input_device_ctl_data_unpack (const void *_buffer,
  6275. uint16_t control_id,
  6276. xcb_input_device_ctl_data_t *_aux);
  6277. int
  6278. xcb_input_device_ctl_data_sizeof (const void *_buffer,
  6279. uint16_t control_id);
  6280. int
  6281. xcb_input_device_ctl_sizeof (const void *_buffer);
  6282. /**
  6283. * Get the next element of the iterator
  6284. * @param i Pointer to a xcb_input_device_ctl_iterator_t
  6285. *
  6286. * Get the next element in the iterator. The member rem is
  6287. * decreased by one. The member data points to the next
  6288. * element. The member index is increased by sizeof(xcb_input_device_ctl_t)
  6289. */
  6290. void
  6291. xcb_input_device_ctl_next (xcb_input_device_ctl_iterator_t *i);
  6292. /**
  6293. * Return the iterator pointing to the last element
  6294. * @param i An xcb_input_device_ctl_iterator_t
  6295. * @return The iterator pointing to the last element
  6296. *
  6297. * Set the current element in the iterator to the last element.
  6298. * The member rem is set to 0. The member data points to the
  6299. * last element.
  6300. */
  6301. xcb_generic_iterator_t
  6302. xcb_input_device_ctl_end (xcb_input_device_ctl_iterator_t i);
  6303. int
  6304. xcb_input_change_device_control_sizeof (const void *_buffer);
  6305. /**
  6306. *
  6307. * @param c The connection
  6308. * @return A cookie
  6309. *
  6310. * Delivers a request to the X server.
  6311. *
  6312. */
  6313. xcb_input_change_device_control_cookie_t
  6314. xcb_input_change_device_control (xcb_connection_t *c,
  6315. uint16_t control_id,
  6316. uint8_t device_id,
  6317. xcb_input_device_ctl_t *control);
  6318. /**
  6319. *
  6320. * @param c The connection
  6321. * @return A cookie
  6322. *
  6323. * Delivers a request to the X server.
  6324. *
  6325. * This form can be used only if the request will cause
  6326. * a reply to be generated. Any returned error will be
  6327. * placed in the event queue.
  6328. */
  6329. xcb_input_change_device_control_cookie_t
  6330. xcb_input_change_device_control_unchecked (xcb_connection_t *c,
  6331. uint16_t control_id,
  6332. uint8_t device_id,
  6333. xcb_input_device_ctl_t *control);
  6334. /**
  6335. * Return the reply
  6336. * @param c The connection
  6337. * @param cookie The cookie
  6338. * @param e The xcb_generic_error_t supplied
  6339. *
  6340. * Returns the reply of the request asked by
  6341. *
  6342. * The parameter @p e supplied to this function must be NULL if
  6343. * xcb_input_change_device_control_unchecked(). is used.
  6344. * Otherwise, it stores the error if any.
  6345. *
  6346. * The returned value must be freed by the caller using free().
  6347. */
  6348. xcb_input_change_device_control_reply_t *
  6349. xcb_input_change_device_control_reply (xcb_connection_t *c,
  6350. xcb_input_change_device_control_cookie_t cookie /**< */,
  6351. xcb_generic_error_t **e);
  6352. int
  6353. xcb_input_list_device_properties_sizeof (const void *_buffer);
  6354. /**
  6355. *
  6356. * @param c The connection
  6357. * @return A cookie
  6358. *
  6359. * Delivers a request to the X server.
  6360. *
  6361. */
  6362. xcb_input_list_device_properties_cookie_t
  6363. xcb_input_list_device_properties (xcb_connection_t *c,
  6364. uint8_t device_id);
  6365. /**
  6366. *
  6367. * @param c The connection
  6368. * @return A cookie
  6369. *
  6370. * Delivers a request to the X server.
  6371. *
  6372. * This form can be used only if the request will cause
  6373. * a reply to be generated. Any returned error will be
  6374. * placed in the event queue.
  6375. */
  6376. xcb_input_list_device_properties_cookie_t
  6377. xcb_input_list_device_properties_unchecked (xcb_connection_t *c,
  6378. uint8_t device_id);
  6379. xcb_atom_t *
  6380. xcb_input_list_device_properties_atoms (const xcb_input_list_device_properties_reply_t *R);
  6381. int
  6382. xcb_input_list_device_properties_atoms_length (const xcb_input_list_device_properties_reply_t *R);
  6383. xcb_generic_iterator_t
  6384. xcb_input_list_device_properties_atoms_end (const xcb_input_list_device_properties_reply_t *R);
  6385. /**
  6386. * Return the reply
  6387. * @param c The connection
  6388. * @param cookie The cookie
  6389. * @param e The xcb_generic_error_t supplied
  6390. *
  6391. * Returns the reply of the request asked by
  6392. *
  6393. * The parameter @p e supplied to this function must be NULL if
  6394. * xcb_input_list_device_properties_unchecked(). is used.
  6395. * Otherwise, it stores the error if any.
  6396. *
  6397. * The returned value must be freed by the caller using free().
  6398. */
  6399. xcb_input_list_device_properties_reply_t *
  6400. xcb_input_list_device_properties_reply (xcb_connection_t *c,
  6401. xcb_input_list_device_properties_cookie_t cookie /**< */,
  6402. xcb_generic_error_t **e);
  6403. uint8_t *
  6404. xcb_input_change_device_property_items_data_8 (const xcb_input_change_device_property_items_t *S);
  6405. int
  6406. xcb_input_change_device_property_items_data_8_length (const xcb_input_change_device_property_request_t *R,
  6407. const xcb_input_change_device_property_items_t *S);
  6408. xcb_generic_iterator_t
  6409. xcb_input_change_device_property_items_data_8_end (const xcb_input_change_device_property_request_t *R,
  6410. const xcb_input_change_device_property_items_t *S);
  6411. uint16_t *
  6412. xcb_input_change_device_property_items_data_16 (const xcb_input_change_device_property_items_t *S);
  6413. int
  6414. xcb_input_change_device_property_items_data_16_length (const xcb_input_change_device_property_request_t *R,
  6415. const xcb_input_change_device_property_items_t *S);
  6416. xcb_generic_iterator_t
  6417. xcb_input_change_device_property_items_data_16_end (const xcb_input_change_device_property_request_t *R,
  6418. const xcb_input_change_device_property_items_t *S);
  6419. uint32_t *
  6420. xcb_input_change_device_property_items_data_32 (const xcb_input_change_device_property_items_t *S);
  6421. int
  6422. xcb_input_change_device_property_items_data_32_length (const xcb_input_change_device_property_request_t *R,
  6423. const xcb_input_change_device_property_items_t *S);
  6424. xcb_generic_iterator_t
  6425. xcb_input_change_device_property_items_data_32_end (const xcb_input_change_device_property_request_t *R,
  6426. const xcb_input_change_device_property_items_t *S);
  6427. int
  6428. xcb_input_change_device_property_items_serialize (void **_buffer,
  6429. uint32_t num_items,
  6430. uint8_t format,
  6431. const xcb_input_change_device_property_items_t *_aux);
  6432. int
  6433. xcb_input_change_device_property_items_unpack (const void *_buffer,
  6434. uint32_t num_items,
  6435. uint8_t format,
  6436. xcb_input_change_device_property_items_t *_aux);
  6437. int
  6438. xcb_input_change_device_property_items_sizeof (const void *_buffer,
  6439. uint32_t num_items,
  6440. uint8_t format);
  6441. int
  6442. xcb_input_change_device_property_sizeof (const void *_buffer);
  6443. /**
  6444. *
  6445. * @param c The connection
  6446. * @return A cookie
  6447. *
  6448. * Delivers a request to the X server.
  6449. *
  6450. * This form can be used only if the request will not cause
  6451. * a reply to be generated. Any returned error will be
  6452. * saved for handling by xcb_request_check().
  6453. */
  6454. xcb_void_cookie_t
  6455. xcb_input_change_device_property_checked (xcb_connection_t *c,
  6456. xcb_atom_t property,
  6457. xcb_atom_t type,
  6458. uint8_t device_id,
  6459. uint8_t format,
  6460. uint8_t mode,
  6461. uint32_t num_items,
  6462. const void *items);
  6463. /**
  6464. *
  6465. * @param c The connection
  6466. * @return A cookie
  6467. *
  6468. * Delivers a request to the X server.
  6469. *
  6470. */
  6471. xcb_void_cookie_t
  6472. xcb_input_change_device_property (xcb_connection_t *c,
  6473. xcb_atom_t property,
  6474. xcb_atom_t type,
  6475. uint8_t device_id,
  6476. uint8_t format,
  6477. uint8_t mode,
  6478. uint32_t num_items,
  6479. const void *items);
  6480. /**
  6481. *
  6482. * @param c The connection
  6483. * @return A cookie
  6484. *
  6485. * Delivers a request to the X server.
  6486. *
  6487. * This form can be used only if the request will not cause
  6488. * a reply to be generated. Any returned error will be
  6489. * saved for handling by xcb_request_check().
  6490. */
  6491. xcb_void_cookie_t
  6492. xcb_input_change_device_property_aux_checked (xcb_connection_t *c,
  6493. xcb_atom_t property,
  6494. xcb_atom_t type,
  6495. uint8_t device_id,
  6496. uint8_t format,
  6497. uint8_t mode,
  6498. uint32_t num_items,
  6499. const xcb_input_change_device_property_items_t *items);
  6500. /**
  6501. *
  6502. * @param c The connection
  6503. * @return A cookie
  6504. *
  6505. * Delivers a request to the X server.
  6506. *
  6507. */
  6508. xcb_void_cookie_t
  6509. xcb_input_change_device_property_aux (xcb_connection_t *c,
  6510. xcb_atom_t property,
  6511. xcb_atom_t type,
  6512. uint8_t device_id,
  6513. uint8_t format,
  6514. uint8_t mode,
  6515. uint32_t num_items,
  6516. const xcb_input_change_device_property_items_t *items);
  6517. void *
  6518. xcb_input_change_device_property_items (const xcb_input_change_device_property_request_t *R);
  6519. /**
  6520. *
  6521. * @param c The connection
  6522. * @return A cookie
  6523. *
  6524. * Delivers a request to the X server.
  6525. *
  6526. * This form can be used only if the request will not cause
  6527. * a reply to be generated. Any returned error will be
  6528. * saved for handling by xcb_request_check().
  6529. */
  6530. xcb_void_cookie_t
  6531. xcb_input_delete_device_property_checked (xcb_connection_t *c,
  6532. xcb_atom_t property,
  6533. uint8_t device_id);
  6534. /**
  6535. *
  6536. * @param c The connection
  6537. * @return A cookie
  6538. *
  6539. * Delivers a request to the X server.
  6540. *
  6541. */
  6542. xcb_void_cookie_t
  6543. xcb_input_delete_device_property (xcb_connection_t *c,
  6544. xcb_atom_t property,
  6545. uint8_t device_id);
  6546. uint8_t *
  6547. xcb_input_get_device_property_items_data_8 (const xcb_input_get_device_property_items_t *S);
  6548. int
  6549. xcb_input_get_device_property_items_data_8_length (const xcb_input_get_device_property_reply_t *R,
  6550. const xcb_input_get_device_property_items_t *S);
  6551. xcb_generic_iterator_t
  6552. xcb_input_get_device_property_items_data_8_end (const xcb_input_get_device_property_reply_t *R,
  6553. const xcb_input_get_device_property_items_t *S);
  6554. uint16_t *
  6555. xcb_input_get_device_property_items_data_16 (const xcb_input_get_device_property_items_t *S);
  6556. int
  6557. xcb_input_get_device_property_items_data_16_length (const xcb_input_get_device_property_reply_t *R,
  6558. const xcb_input_get_device_property_items_t *S);
  6559. xcb_generic_iterator_t
  6560. xcb_input_get_device_property_items_data_16_end (const xcb_input_get_device_property_reply_t *R,
  6561. const xcb_input_get_device_property_items_t *S);
  6562. uint32_t *
  6563. xcb_input_get_device_property_items_data_32 (const xcb_input_get_device_property_items_t *S);
  6564. int
  6565. xcb_input_get_device_property_items_data_32_length (const xcb_input_get_device_property_reply_t *R,
  6566. const xcb_input_get_device_property_items_t *S);
  6567. xcb_generic_iterator_t
  6568. xcb_input_get_device_property_items_data_32_end (const xcb_input_get_device_property_reply_t *R,
  6569. const xcb_input_get_device_property_items_t *S);
  6570. int
  6571. xcb_input_get_device_property_items_serialize (void **_buffer,
  6572. uint32_t num_items,
  6573. uint8_t format,
  6574. const xcb_input_get_device_property_items_t *_aux);
  6575. int
  6576. xcb_input_get_device_property_items_unpack (const void *_buffer,
  6577. uint32_t num_items,
  6578. uint8_t format,
  6579. xcb_input_get_device_property_items_t *_aux);
  6580. int
  6581. xcb_input_get_device_property_items_sizeof (const void *_buffer,
  6582. uint32_t num_items,
  6583. uint8_t format);
  6584. int
  6585. xcb_input_get_device_property_sizeof (const void *_buffer);
  6586. /**
  6587. *
  6588. * @param c The connection
  6589. * @return A cookie
  6590. *
  6591. * Delivers a request to the X server.
  6592. *
  6593. */
  6594. xcb_input_get_device_property_cookie_t
  6595. xcb_input_get_device_property (xcb_connection_t *c,
  6596. xcb_atom_t property,
  6597. xcb_atom_t type,
  6598. uint32_t offset,
  6599. uint32_t len,
  6600. uint8_t device_id,
  6601. uint8_t _delete);
  6602. /**
  6603. *
  6604. * @param c The connection
  6605. * @return A cookie
  6606. *
  6607. * Delivers a request to the X server.
  6608. *
  6609. * This form can be used only if the request will cause
  6610. * a reply to be generated. Any returned error will be
  6611. * placed in the event queue.
  6612. */
  6613. xcb_input_get_device_property_cookie_t
  6614. xcb_input_get_device_property_unchecked (xcb_connection_t *c,
  6615. xcb_atom_t property,
  6616. xcb_atom_t type,
  6617. uint32_t offset,
  6618. uint32_t len,
  6619. uint8_t device_id,
  6620. uint8_t _delete);
  6621. void *
  6622. xcb_input_get_device_property_items (const xcb_input_get_device_property_reply_t *R);
  6623. /**
  6624. * Return the reply
  6625. * @param c The connection
  6626. * @param cookie The cookie
  6627. * @param e The xcb_generic_error_t supplied
  6628. *
  6629. * Returns the reply of the request asked by
  6630. *
  6631. * The parameter @p e supplied to this function must be NULL if
  6632. * xcb_input_get_device_property_unchecked(). is used.
  6633. * Otherwise, it stores the error if any.
  6634. *
  6635. * The returned value must be freed by the caller using free().
  6636. */
  6637. xcb_input_get_device_property_reply_t *
  6638. xcb_input_get_device_property_reply (xcb_connection_t *c,
  6639. xcb_input_get_device_property_cookie_t cookie /**< */,
  6640. xcb_generic_error_t **e);
  6641. /**
  6642. * Get the next element of the iterator
  6643. * @param i Pointer to a xcb_input_group_info_iterator_t
  6644. *
  6645. * Get the next element in the iterator. The member rem is
  6646. * decreased by one. The member data points to the next
  6647. * element. The member index is increased by sizeof(xcb_input_group_info_t)
  6648. */
  6649. void
  6650. xcb_input_group_info_next (xcb_input_group_info_iterator_t *i);
  6651. /**
  6652. * Return the iterator pointing to the last element
  6653. * @param i An xcb_input_group_info_iterator_t
  6654. * @return The iterator pointing to the last element
  6655. *
  6656. * Set the current element in the iterator to the last element.
  6657. * The member rem is set to 0. The member data points to the
  6658. * last element.
  6659. */
  6660. xcb_generic_iterator_t
  6661. xcb_input_group_info_end (xcb_input_group_info_iterator_t i);
  6662. /**
  6663. * Get the next element of the iterator
  6664. * @param i Pointer to a xcb_input_modifier_info_iterator_t
  6665. *
  6666. * Get the next element in the iterator. The member rem is
  6667. * decreased by one. The member data points to the next
  6668. * element. The member index is increased by sizeof(xcb_input_modifier_info_t)
  6669. */
  6670. void
  6671. xcb_input_modifier_info_next (xcb_input_modifier_info_iterator_t *i);
  6672. /**
  6673. * Return the iterator pointing to the last element
  6674. * @param i An xcb_input_modifier_info_iterator_t
  6675. * @return The iterator pointing to the last element
  6676. *
  6677. * Set the current element in the iterator to the last element.
  6678. * The member rem is set to 0. The member data points to the
  6679. * last element.
  6680. */
  6681. xcb_generic_iterator_t
  6682. xcb_input_modifier_info_end (xcb_input_modifier_info_iterator_t i);
  6683. int
  6684. xcb_input_xi_query_pointer_sizeof (const void *_buffer);
  6685. /**
  6686. *
  6687. * @param c The connection
  6688. * @return A cookie
  6689. *
  6690. * Delivers a request to the X server.
  6691. *
  6692. */
  6693. xcb_input_xi_query_pointer_cookie_t
  6694. xcb_input_xi_query_pointer (xcb_connection_t *c,
  6695. xcb_window_t window,
  6696. xcb_input_device_id_t deviceid);
  6697. /**
  6698. *
  6699. * @param c The connection
  6700. * @return A cookie
  6701. *
  6702. * Delivers a request to the X server.
  6703. *
  6704. * This form can be used only if the request will cause
  6705. * a reply to be generated. Any returned error will be
  6706. * placed in the event queue.
  6707. */
  6708. xcb_input_xi_query_pointer_cookie_t
  6709. xcb_input_xi_query_pointer_unchecked (xcb_connection_t *c,
  6710. xcb_window_t window,
  6711. xcb_input_device_id_t deviceid);
  6712. uint32_t *
  6713. xcb_input_xi_query_pointer_buttons (const xcb_input_xi_query_pointer_reply_t *R);
  6714. int
  6715. xcb_input_xi_query_pointer_buttons_length (const xcb_input_xi_query_pointer_reply_t *R);
  6716. xcb_generic_iterator_t
  6717. xcb_input_xi_query_pointer_buttons_end (const xcb_input_xi_query_pointer_reply_t *R);
  6718. /**
  6719. * Return the reply
  6720. * @param c The connection
  6721. * @param cookie The cookie
  6722. * @param e The xcb_generic_error_t supplied
  6723. *
  6724. * Returns the reply of the request asked by
  6725. *
  6726. * The parameter @p e supplied to this function must be NULL if
  6727. * xcb_input_xi_query_pointer_unchecked(). is used.
  6728. * Otherwise, it stores the error if any.
  6729. *
  6730. * The returned value must be freed by the caller using free().
  6731. */
  6732. xcb_input_xi_query_pointer_reply_t *
  6733. xcb_input_xi_query_pointer_reply (xcb_connection_t *c,
  6734. xcb_input_xi_query_pointer_cookie_t cookie /**< */,
  6735. xcb_generic_error_t **e);
  6736. /**
  6737. *
  6738. * @param c The connection
  6739. * @return A cookie
  6740. *
  6741. * Delivers a request to the X server.
  6742. *
  6743. * This form can be used only if the request will not cause
  6744. * a reply to be generated. Any returned error will be
  6745. * saved for handling by xcb_request_check().
  6746. */
  6747. xcb_void_cookie_t
  6748. xcb_input_xi_warp_pointer_checked (xcb_connection_t *c,
  6749. xcb_window_t src_win,
  6750. xcb_window_t dst_win,
  6751. xcb_input_fp1616_t src_x,
  6752. xcb_input_fp1616_t src_y,
  6753. uint16_t src_width,
  6754. uint16_t src_height,
  6755. xcb_input_fp1616_t dst_x,
  6756. xcb_input_fp1616_t dst_y,
  6757. xcb_input_device_id_t deviceid);
  6758. /**
  6759. *
  6760. * @param c The connection
  6761. * @return A cookie
  6762. *
  6763. * Delivers a request to the X server.
  6764. *
  6765. */
  6766. xcb_void_cookie_t
  6767. xcb_input_xi_warp_pointer (xcb_connection_t *c,
  6768. xcb_window_t src_win,
  6769. xcb_window_t dst_win,
  6770. xcb_input_fp1616_t src_x,
  6771. xcb_input_fp1616_t src_y,
  6772. uint16_t src_width,
  6773. uint16_t src_height,
  6774. xcb_input_fp1616_t dst_x,
  6775. xcb_input_fp1616_t dst_y,
  6776. xcb_input_device_id_t deviceid);
  6777. /**
  6778. *
  6779. * @param c The connection
  6780. * @return A cookie
  6781. *
  6782. * Delivers a request to the X server.
  6783. *
  6784. * This form can be used only if the request will not cause
  6785. * a reply to be generated. Any returned error will be
  6786. * saved for handling by xcb_request_check().
  6787. */
  6788. xcb_void_cookie_t
  6789. xcb_input_xi_change_cursor_checked (xcb_connection_t *c,
  6790. xcb_window_t window,
  6791. xcb_cursor_t cursor,
  6792. xcb_input_device_id_t deviceid);
  6793. /**
  6794. *
  6795. * @param c The connection
  6796. * @return A cookie
  6797. *
  6798. * Delivers a request to the X server.
  6799. *
  6800. */
  6801. xcb_void_cookie_t
  6802. xcb_input_xi_change_cursor (xcb_connection_t *c,
  6803. xcb_window_t window,
  6804. xcb_cursor_t cursor,
  6805. xcb_input_device_id_t deviceid);
  6806. int
  6807. xcb_input_add_master_sizeof (const void *_buffer);
  6808. char *
  6809. xcb_input_add_master_name (const xcb_input_add_master_t *R);
  6810. int
  6811. xcb_input_add_master_name_length (const xcb_input_add_master_t *R);
  6812. xcb_generic_iterator_t
  6813. xcb_input_add_master_name_end (const xcb_input_add_master_t *R);
  6814. /**
  6815. * Get the next element of the iterator
  6816. * @param i Pointer to a xcb_input_add_master_iterator_t
  6817. *
  6818. * Get the next element in the iterator. The member rem is
  6819. * decreased by one. The member data points to the next
  6820. * element. The member index is increased by sizeof(xcb_input_add_master_t)
  6821. */
  6822. void
  6823. xcb_input_add_master_next (xcb_input_add_master_iterator_t *i);
  6824. /**
  6825. * Return the iterator pointing to the last element
  6826. * @param i An xcb_input_add_master_iterator_t
  6827. * @return The iterator pointing to the last element
  6828. *
  6829. * Set the current element in the iterator to the last element.
  6830. * The member rem is set to 0. The member data points to the
  6831. * last element.
  6832. */
  6833. xcb_generic_iterator_t
  6834. xcb_input_add_master_end (xcb_input_add_master_iterator_t i);
  6835. /**
  6836. * Get the next element of the iterator
  6837. * @param i Pointer to a xcb_input_remove_master_iterator_t
  6838. *
  6839. * Get the next element in the iterator. The member rem is
  6840. * decreased by one. The member data points to the next
  6841. * element. The member index is increased by sizeof(xcb_input_remove_master_t)
  6842. */
  6843. void
  6844. xcb_input_remove_master_next (xcb_input_remove_master_iterator_t *i);
  6845. /**
  6846. * Return the iterator pointing to the last element
  6847. * @param i An xcb_input_remove_master_iterator_t
  6848. * @return The iterator pointing to the last element
  6849. *
  6850. * Set the current element in the iterator to the last element.
  6851. * The member rem is set to 0. The member data points to the
  6852. * last element.
  6853. */
  6854. xcb_generic_iterator_t
  6855. xcb_input_remove_master_end (xcb_input_remove_master_iterator_t i);
  6856. /**
  6857. * Get the next element of the iterator
  6858. * @param i Pointer to a xcb_input_attach_slave_iterator_t
  6859. *
  6860. * Get the next element in the iterator. The member rem is
  6861. * decreased by one. The member data points to the next
  6862. * element. The member index is increased by sizeof(xcb_input_attach_slave_t)
  6863. */
  6864. void
  6865. xcb_input_attach_slave_next (xcb_input_attach_slave_iterator_t *i);
  6866. /**
  6867. * Return the iterator pointing to the last element
  6868. * @param i An xcb_input_attach_slave_iterator_t
  6869. * @return The iterator pointing to the last element
  6870. *
  6871. * Set the current element in the iterator to the last element.
  6872. * The member rem is set to 0. The member data points to the
  6873. * last element.
  6874. */
  6875. xcb_generic_iterator_t
  6876. xcb_input_attach_slave_end (xcb_input_attach_slave_iterator_t i);
  6877. /**
  6878. * Get the next element of the iterator
  6879. * @param i Pointer to a xcb_input_detach_slave_iterator_t
  6880. *
  6881. * Get the next element in the iterator. The member rem is
  6882. * decreased by one. The member data points to the next
  6883. * element. The member index is increased by sizeof(xcb_input_detach_slave_t)
  6884. */
  6885. void
  6886. xcb_input_detach_slave_next (xcb_input_detach_slave_iterator_t *i);
  6887. /**
  6888. * Return the iterator pointing to the last element
  6889. * @param i An xcb_input_detach_slave_iterator_t
  6890. * @return The iterator pointing to the last element
  6891. *
  6892. * Set the current element in the iterator to the last element.
  6893. * The member rem is set to 0. The member data points to the
  6894. * last element.
  6895. */
  6896. xcb_generic_iterator_t
  6897. xcb_input_detach_slave_end (xcb_input_detach_slave_iterator_t i);
  6898. char *
  6899. xcb_input_hierarchy_change_data_add_master_name (const xcb_input_hierarchy_change_data_t *S);
  6900. int
  6901. xcb_input_hierarchy_change_data_add_master_name_length (const xcb_input_hierarchy_change_t *R,
  6902. const xcb_input_hierarchy_change_data_t *S);
  6903. xcb_generic_iterator_t
  6904. xcb_input_hierarchy_change_data_add_master_name_end (const xcb_input_hierarchy_change_t *R,
  6905. const xcb_input_hierarchy_change_data_t *S);
  6906. int
  6907. xcb_input_hierarchy_change_data_serialize (void **_buffer,
  6908. uint16_t type,
  6909. const xcb_input_hierarchy_change_data_t *_aux);
  6910. int
  6911. xcb_input_hierarchy_change_data_unpack (const void *_buffer,
  6912. uint16_t type,
  6913. xcb_input_hierarchy_change_data_t *_aux);
  6914. int
  6915. xcb_input_hierarchy_change_data_sizeof (const void *_buffer,
  6916. uint16_t type);
  6917. int
  6918. xcb_input_hierarchy_change_sizeof (const void *_buffer);
  6919. /**
  6920. * Get the next element of the iterator
  6921. * @param i Pointer to a xcb_input_hierarchy_change_iterator_t
  6922. *
  6923. * Get the next element in the iterator. The member rem is
  6924. * decreased by one. The member data points to the next
  6925. * element. The member index is increased by sizeof(xcb_input_hierarchy_change_t)
  6926. */
  6927. void
  6928. xcb_input_hierarchy_change_next (xcb_input_hierarchy_change_iterator_t *i);
  6929. /**
  6930. * Return the iterator pointing to the last element
  6931. * @param i An xcb_input_hierarchy_change_iterator_t
  6932. * @return The iterator pointing to the last element
  6933. *
  6934. * Set the current element in the iterator to the last element.
  6935. * The member rem is set to 0. The member data points to the
  6936. * last element.
  6937. */
  6938. xcb_generic_iterator_t
  6939. xcb_input_hierarchy_change_end (xcb_input_hierarchy_change_iterator_t i);
  6940. int
  6941. xcb_input_xi_change_hierarchy_sizeof (const void *_buffer);
  6942. /**
  6943. *
  6944. * @param c The connection
  6945. * @return A cookie
  6946. *
  6947. * Delivers a request to the X server.
  6948. *
  6949. * This form can be used only if the request will not cause
  6950. * a reply to be generated. Any returned error will be
  6951. * saved for handling by xcb_request_check().
  6952. */
  6953. xcb_void_cookie_t
  6954. xcb_input_xi_change_hierarchy_checked (xcb_connection_t *c,
  6955. uint8_t num_changes,
  6956. const xcb_input_hierarchy_change_t *changes);
  6957. /**
  6958. *
  6959. * @param c The connection
  6960. * @return A cookie
  6961. *
  6962. * Delivers a request to the X server.
  6963. *
  6964. */
  6965. xcb_void_cookie_t
  6966. xcb_input_xi_change_hierarchy (xcb_connection_t *c,
  6967. uint8_t num_changes,
  6968. const xcb_input_hierarchy_change_t *changes);
  6969. int
  6970. xcb_input_xi_change_hierarchy_changes_length (const xcb_input_xi_change_hierarchy_request_t *R);
  6971. xcb_input_hierarchy_change_iterator_t
  6972. xcb_input_xi_change_hierarchy_changes_iterator (const xcb_input_xi_change_hierarchy_request_t *R);
  6973. /**
  6974. *
  6975. * @param c The connection
  6976. * @return A cookie
  6977. *
  6978. * Delivers a request to the X server.
  6979. *
  6980. * This form can be used only if the request will not cause
  6981. * a reply to be generated. Any returned error will be
  6982. * saved for handling by xcb_request_check().
  6983. */
  6984. xcb_void_cookie_t
  6985. xcb_input_xi_set_client_pointer_checked (xcb_connection_t *c,
  6986. xcb_window_t window,
  6987. xcb_input_device_id_t deviceid);
  6988. /**
  6989. *
  6990. * @param c The connection
  6991. * @return A cookie
  6992. *
  6993. * Delivers a request to the X server.
  6994. *
  6995. */
  6996. xcb_void_cookie_t
  6997. xcb_input_xi_set_client_pointer (xcb_connection_t *c,
  6998. xcb_window_t window,
  6999. xcb_input_device_id_t deviceid);
  7000. /**
  7001. *
  7002. * @param c The connection
  7003. * @return A cookie
  7004. *
  7005. * Delivers a request to the X server.
  7006. *
  7007. */
  7008. xcb_input_xi_get_client_pointer_cookie_t
  7009. xcb_input_xi_get_client_pointer (xcb_connection_t *c,
  7010. xcb_window_t window);
  7011. /**
  7012. *
  7013. * @param c The connection
  7014. * @return A cookie
  7015. *
  7016. * Delivers a request to the X server.
  7017. *
  7018. * This form can be used only if the request will cause
  7019. * a reply to be generated. Any returned error will be
  7020. * placed in the event queue.
  7021. */
  7022. xcb_input_xi_get_client_pointer_cookie_t
  7023. xcb_input_xi_get_client_pointer_unchecked (xcb_connection_t *c,
  7024. xcb_window_t window);
  7025. /**
  7026. * Return the reply
  7027. * @param c The connection
  7028. * @param cookie The cookie
  7029. * @param e The xcb_generic_error_t supplied
  7030. *
  7031. * Returns the reply of the request asked by
  7032. *
  7033. * The parameter @p e supplied to this function must be NULL if
  7034. * xcb_input_xi_get_client_pointer_unchecked(). is used.
  7035. * Otherwise, it stores the error if any.
  7036. *
  7037. * The returned value must be freed by the caller using free().
  7038. */
  7039. xcb_input_xi_get_client_pointer_reply_t *
  7040. xcb_input_xi_get_client_pointer_reply (xcb_connection_t *c,
  7041. xcb_input_xi_get_client_pointer_cookie_t cookie /**< */,
  7042. xcb_generic_error_t **e);
  7043. int
  7044. xcb_input_event_mask_sizeof (const void *_buffer);
  7045. uint32_t *
  7046. xcb_input_event_mask_mask (const xcb_input_event_mask_t *R);
  7047. int
  7048. xcb_input_event_mask_mask_length (const xcb_input_event_mask_t *R);
  7049. xcb_generic_iterator_t
  7050. xcb_input_event_mask_mask_end (const xcb_input_event_mask_t *R);
  7051. /**
  7052. * Get the next element of the iterator
  7053. * @param i Pointer to a xcb_input_event_mask_iterator_t
  7054. *
  7055. * Get the next element in the iterator. The member rem is
  7056. * decreased by one. The member data points to the next
  7057. * element. The member index is increased by sizeof(xcb_input_event_mask_t)
  7058. */
  7059. void
  7060. xcb_input_event_mask_next (xcb_input_event_mask_iterator_t *i);
  7061. /**
  7062. * Return the iterator pointing to the last element
  7063. * @param i An xcb_input_event_mask_iterator_t
  7064. * @return The iterator pointing to the last element
  7065. *
  7066. * Set the current element in the iterator to the last element.
  7067. * The member rem is set to 0. The member data points to the
  7068. * last element.
  7069. */
  7070. xcb_generic_iterator_t
  7071. xcb_input_event_mask_end (xcb_input_event_mask_iterator_t i);
  7072. int
  7073. xcb_input_xi_select_events_sizeof (const void *_buffer);
  7074. /**
  7075. *
  7076. * @param c The connection
  7077. * @return A cookie
  7078. *
  7079. * Delivers a request to the X server.
  7080. *
  7081. * This form can be used only if the request will not cause
  7082. * a reply to be generated. Any returned error will be
  7083. * saved for handling by xcb_request_check().
  7084. */
  7085. xcb_void_cookie_t
  7086. xcb_input_xi_select_events_checked (xcb_connection_t *c,
  7087. xcb_window_t window,
  7088. uint16_t num_mask,
  7089. const xcb_input_event_mask_t *masks);
  7090. /**
  7091. *
  7092. * @param c The connection
  7093. * @return A cookie
  7094. *
  7095. * Delivers a request to the X server.
  7096. *
  7097. */
  7098. xcb_void_cookie_t
  7099. xcb_input_xi_select_events (xcb_connection_t *c,
  7100. xcb_window_t window,
  7101. uint16_t num_mask,
  7102. const xcb_input_event_mask_t *masks);
  7103. int
  7104. xcb_input_xi_select_events_masks_length (const xcb_input_xi_select_events_request_t *R);
  7105. xcb_input_event_mask_iterator_t
  7106. xcb_input_xi_select_events_masks_iterator (const xcb_input_xi_select_events_request_t *R);
  7107. /**
  7108. *
  7109. * @param c The connection
  7110. * @return A cookie
  7111. *
  7112. * Delivers a request to the X server.
  7113. *
  7114. */
  7115. xcb_input_xi_query_version_cookie_t
  7116. xcb_input_xi_query_version (xcb_connection_t *c,
  7117. uint16_t major_version,
  7118. uint16_t minor_version);
  7119. /**
  7120. *
  7121. * @param c The connection
  7122. * @return A cookie
  7123. *
  7124. * Delivers a request to the X server.
  7125. *
  7126. * This form can be used only if the request will cause
  7127. * a reply to be generated. Any returned error will be
  7128. * placed in the event queue.
  7129. */
  7130. xcb_input_xi_query_version_cookie_t
  7131. xcb_input_xi_query_version_unchecked (xcb_connection_t *c,
  7132. uint16_t major_version,
  7133. uint16_t minor_version);
  7134. /**
  7135. * Return the reply
  7136. * @param c The connection
  7137. * @param cookie The cookie
  7138. * @param e The xcb_generic_error_t supplied
  7139. *
  7140. * Returns the reply of the request asked by
  7141. *
  7142. * The parameter @p e supplied to this function must be NULL if
  7143. * xcb_input_xi_query_version_unchecked(). is used.
  7144. * Otherwise, it stores the error if any.
  7145. *
  7146. * The returned value must be freed by the caller using free().
  7147. */
  7148. xcb_input_xi_query_version_reply_t *
  7149. xcb_input_xi_query_version_reply (xcb_connection_t *c,
  7150. xcb_input_xi_query_version_cookie_t cookie /**< */,
  7151. xcb_generic_error_t **e);
  7152. int
  7153. xcb_input_button_class_sizeof (const void *_buffer);
  7154. uint32_t *
  7155. xcb_input_button_class_state (const xcb_input_button_class_t *R);
  7156. int
  7157. xcb_input_button_class_state_length (const xcb_input_button_class_t *R);
  7158. xcb_generic_iterator_t
  7159. xcb_input_button_class_state_end (const xcb_input_button_class_t *R);
  7160. xcb_atom_t *
  7161. xcb_input_button_class_labels (const xcb_input_button_class_t *R);
  7162. int
  7163. xcb_input_button_class_labels_length (const xcb_input_button_class_t *R);
  7164. xcb_generic_iterator_t
  7165. xcb_input_button_class_labels_end (const xcb_input_button_class_t *R);
  7166. /**
  7167. * Get the next element of the iterator
  7168. * @param i Pointer to a xcb_input_button_class_iterator_t
  7169. *
  7170. * Get the next element in the iterator. The member rem is
  7171. * decreased by one. The member data points to the next
  7172. * element. The member index is increased by sizeof(xcb_input_button_class_t)
  7173. */
  7174. void
  7175. xcb_input_button_class_next (xcb_input_button_class_iterator_t *i);
  7176. /**
  7177. * Return the iterator pointing to the last element
  7178. * @param i An xcb_input_button_class_iterator_t
  7179. * @return The iterator pointing to the last element
  7180. *
  7181. * Set the current element in the iterator to the last element.
  7182. * The member rem is set to 0. The member data points to the
  7183. * last element.
  7184. */
  7185. xcb_generic_iterator_t
  7186. xcb_input_button_class_end (xcb_input_button_class_iterator_t i);
  7187. int
  7188. xcb_input_key_class_sizeof (const void *_buffer);
  7189. uint32_t *
  7190. xcb_input_key_class_keys (const xcb_input_key_class_t *R);
  7191. int
  7192. xcb_input_key_class_keys_length (const xcb_input_key_class_t *R);
  7193. xcb_generic_iterator_t
  7194. xcb_input_key_class_keys_end (const xcb_input_key_class_t *R);
  7195. /**
  7196. * Get the next element of the iterator
  7197. * @param i Pointer to a xcb_input_key_class_iterator_t
  7198. *
  7199. * Get the next element in the iterator. The member rem is
  7200. * decreased by one. The member data points to the next
  7201. * element. The member index is increased by sizeof(xcb_input_key_class_t)
  7202. */
  7203. void
  7204. xcb_input_key_class_next (xcb_input_key_class_iterator_t *i);
  7205. /**
  7206. * Return the iterator pointing to the last element
  7207. * @param i An xcb_input_key_class_iterator_t
  7208. * @return The iterator pointing to the last element
  7209. *
  7210. * Set the current element in the iterator to the last element.
  7211. * The member rem is set to 0. The member data points to the
  7212. * last element.
  7213. */
  7214. xcb_generic_iterator_t
  7215. xcb_input_key_class_end (xcb_input_key_class_iterator_t i);
  7216. /**
  7217. * Get the next element of the iterator
  7218. * @param i Pointer to a xcb_input_scroll_class_iterator_t
  7219. *
  7220. * Get the next element in the iterator. The member rem is
  7221. * decreased by one. The member data points to the next
  7222. * element. The member index is increased by sizeof(xcb_input_scroll_class_t)
  7223. */
  7224. void
  7225. xcb_input_scroll_class_next (xcb_input_scroll_class_iterator_t *i);
  7226. /**
  7227. * Return the iterator pointing to the last element
  7228. * @param i An xcb_input_scroll_class_iterator_t
  7229. * @return The iterator pointing to the last element
  7230. *
  7231. * Set the current element in the iterator to the last element.
  7232. * The member rem is set to 0. The member data points to the
  7233. * last element.
  7234. */
  7235. xcb_generic_iterator_t
  7236. xcb_input_scroll_class_end (xcb_input_scroll_class_iterator_t i);
  7237. /**
  7238. * Get the next element of the iterator
  7239. * @param i Pointer to a xcb_input_touch_class_iterator_t
  7240. *
  7241. * Get the next element in the iterator. The member rem is
  7242. * decreased by one. The member data points to the next
  7243. * element. The member index is increased by sizeof(xcb_input_touch_class_t)
  7244. */
  7245. void
  7246. xcb_input_touch_class_next (xcb_input_touch_class_iterator_t *i);
  7247. /**
  7248. * Return the iterator pointing to the last element
  7249. * @param i An xcb_input_touch_class_iterator_t
  7250. * @return The iterator pointing to the last element
  7251. *
  7252. * Set the current element in the iterator to the last element.
  7253. * The member rem is set to 0. The member data points to the
  7254. * last element.
  7255. */
  7256. xcb_generic_iterator_t
  7257. xcb_input_touch_class_end (xcb_input_touch_class_iterator_t i);
  7258. /**
  7259. * Get the next element of the iterator
  7260. * @param i Pointer to a xcb_input_valuator_class_iterator_t
  7261. *
  7262. * Get the next element in the iterator. The member rem is
  7263. * decreased by one. The member data points to the next
  7264. * element. The member index is increased by sizeof(xcb_input_valuator_class_t)
  7265. */
  7266. void
  7267. xcb_input_valuator_class_next (xcb_input_valuator_class_iterator_t *i);
  7268. /**
  7269. * Return the iterator pointing to the last element
  7270. * @param i An xcb_input_valuator_class_iterator_t
  7271. * @return The iterator pointing to the last element
  7272. *
  7273. * Set the current element in the iterator to the last element.
  7274. * The member rem is set to 0. The member data points to the
  7275. * last element.
  7276. */
  7277. xcb_generic_iterator_t
  7278. xcb_input_valuator_class_end (xcb_input_valuator_class_iterator_t i);
  7279. uint32_t *
  7280. xcb_input_device_class_data_key_keys (const xcb_input_device_class_data_t *S);
  7281. int
  7282. xcb_input_device_class_data_key_keys_length (const xcb_input_device_class_t *R,
  7283. const xcb_input_device_class_data_t *S);
  7284. xcb_generic_iterator_t
  7285. xcb_input_device_class_data_key_keys_end (const xcb_input_device_class_t *R,
  7286. const xcb_input_device_class_data_t *S);
  7287. uint32_t *
  7288. xcb_input_device_class_data_button_state (const xcb_input_device_class_data_t *S);
  7289. int
  7290. xcb_input_device_class_data_button_state_length (const xcb_input_device_class_t *R,
  7291. const xcb_input_device_class_data_t *S);
  7292. xcb_generic_iterator_t
  7293. xcb_input_device_class_data_button_state_end (const xcb_input_device_class_t *R,
  7294. const xcb_input_device_class_data_t *S);
  7295. xcb_atom_t *
  7296. xcb_input_device_class_data_button_labels (const xcb_input_device_class_data_t *S);
  7297. int
  7298. xcb_input_device_class_data_button_labels_length (const xcb_input_device_class_t *R,
  7299. const xcb_input_device_class_data_t *S);
  7300. xcb_generic_iterator_t
  7301. xcb_input_device_class_data_button_labels_end (const xcb_input_device_class_t *R,
  7302. const xcb_input_device_class_data_t *S);
  7303. int
  7304. xcb_input_device_class_data_serialize (void **_buffer,
  7305. uint16_t type,
  7306. const xcb_input_device_class_data_t *_aux);
  7307. int
  7308. xcb_input_device_class_data_unpack (const void *_buffer,
  7309. uint16_t type,
  7310. xcb_input_device_class_data_t *_aux);
  7311. int
  7312. xcb_input_device_class_data_sizeof (const void *_buffer,
  7313. uint16_t type);
  7314. int
  7315. xcb_input_device_class_sizeof (const void *_buffer);
  7316. /**
  7317. * Get the next element of the iterator
  7318. * @param i Pointer to a xcb_input_device_class_iterator_t
  7319. *
  7320. * Get the next element in the iterator. The member rem is
  7321. * decreased by one. The member data points to the next
  7322. * element. The member index is increased by sizeof(xcb_input_device_class_t)
  7323. */
  7324. void
  7325. xcb_input_device_class_next (xcb_input_device_class_iterator_t *i);
  7326. /**
  7327. * Return the iterator pointing to the last element
  7328. * @param i An xcb_input_device_class_iterator_t
  7329. * @return The iterator pointing to the last element
  7330. *
  7331. * Set the current element in the iterator to the last element.
  7332. * The member rem is set to 0. The member data points to the
  7333. * last element.
  7334. */
  7335. xcb_generic_iterator_t
  7336. xcb_input_device_class_end (xcb_input_device_class_iterator_t i);
  7337. int
  7338. xcb_input_xi_device_info_sizeof (const void *_buffer);
  7339. char *
  7340. xcb_input_xi_device_info_name (const xcb_input_xi_device_info_t *R);
  7341. int
  7342. xcb_input_xi_device_info_name_length (const xcb_input_xi_device_info_t *R);
  7343. xcb_generic_iterator_t
  7344. xcb_input_xi_device_info_name_end (const xcb_input_xi_device_info_t *R);
  7345. int
  7346. xcb_input_xi_device_info_classes_length (const xcb_input_xi_device_info_t *R);
  7347. xcb_input_device_class_iterator_t
  7348. xcb_input_xi_device_info_classes_iterator (const xcb_input_xi_device_info_t *R);
  7349. /**
  7350. * Get the next element of the iterator
  7351. * @param i Pointer to a xcb_input_xi_device_info_iterator_t
  7352. *
  7353. * Get the next element in the iterator. The member rem is
  7354. * decreased by one. The member data points to the next
  7355. * element. The member index is increased by sizeof(xcb_input_xi_device_info_t)
  7356. */
  7357. void
  7358. xcb_input_xi_device_info_next (xcb_input_xi_device_info_iterator_t *i);
  7359. /**
  7360. * Return the iterator pointing to the last element
  7361. * @param i An xcb_input_xi_device_info_iterator_t
  7362. * @return The iterator pointing to the last element
  7363. *
  7364. * Set the current element in the iterator to the last element.
  7365. * The member rem is set to 0. The member data points to the
  7366. * last element.
  7367. */
  7368. xcb_generic_iterator_t
  7369. xcb_input_xi_device_info_end (xcb_input_xi_device_info_iterator_t i);
  7370. int
  7371. xcb_input_xi_query_device_sizeof (const void *_buffer);
  7372. /**
  7373. *
  7374. * @param c The connection
  7375. * @return A cookie
  7376. *
  7377. * Delivers a request to the X server.
  7378. *
  7379. */
  7380. xcb_input_xi_query_device_cookie_t
  7381. xcb_input_xi_query_device (xcb_connection_t *c,
  7382. xcb_input_device_id_t deviceid);
  7383. /**
  7384. *
  7385. * @param c The connection
  7386. * @return A cookie
  7387. *
  7388. * Delivers a request to the X server.
  7389. *
  7390. * This form can be used only if the request will cause
  7391. * a reply to be generated. Any returned error will be
  7392. * placed in the event queue.
  7393. */
  7394. xcb_input_xi_query_device_cookie_t
  7395. xcb_input_xi_query_device_unchecked (xcb_connection_t *c,
  7396. xcb_input_device_id_t deviceid);
  7397. int
  7398. xcb_input_xi_query_device_infos_length (const xcb_input_xi_query_device_reply_t *R);
  7399. xcb_input_xi_device_info_iterator_t
  7400. xcb_input_xi_query_device_infos_iterator (const xcb_input_xi_query_device_reply_t *R);
  7401. /**
  7402. * Return the reply
  7403. * @param c The connection
  7404. * @param cookie The cookie
  7405. * @param e The xcb_generic_error_t supplied
  7406. *
  7407. * Returns the reply of the request asked by
  7408. *
  7409. * The parameter @p e supplied to this function must be NULL if
  7410. * xcb_input_xi_query_device_unchecked(). is used.
  7411. * Otherwise, it stores the error if any.
  7412. *
  7413. * The returned value must be freed by the caller using free().
  7414. */
  7415. xcb_input_xi_query_device_reply_t *
  7416. xcb_input_xi_query_device_reply (xcb_connection_t *c,
  7417. xcb_input_xi_query_device_cookie_t cookie /**< */,
  7418. xcb_generic_error_t **e);
  7419. /**
  7420. *
  7421. * @param c The connection
  7422. * @return A cookie
  7423. *
  7424. * Delivers a request to the X server.
  7425. *
  7426. * This form can be used only if the request will not cause
  7427. * a reply to be generated. Any returned error will be
  7428. * saved for handling by xcb_request_check().
  7429. */
  7430. xcb_void_cookie_t
  7431. xcb_input_xi_set_focus_checked (xcb_connection_t *c,
  7432. xcb_window_t window,
  7433. xcb_timestamp_t time,
  7434. xcb_input_device_id_t deviceid);
  7435. /**
  7436. *
  7437. * @param c The connection
  7438. * @return A cookie
  7439. *
  7440. * Delivers a request to the X server.
  7441. *
  7442. */
  7443. xcb_void_cookie_t
  7444. xcb_input_xi_set_focus (xcb_connection_t *c,
  7445. xcb_window_t window,
  7446. xcb_timestamp_t time,
  7447. xcb_input_device_id_t deviceid);
  7448. /**
  7449. *
  7450. * @param c The connection
  7451. * @return A cookie
  7452. *
  7453. * Delivers a request to the X server.
  7454. *
  7455. */
  7456. xcb_input_xi_get_focus_cookie_t
  7457. xcb_input_xi_get_focus (xcb_connection_t *c,
  7458. xcb_input_device_id_t deviceid);
  7459. /**
  7460. *
  7461. * @param c The connection
  7462. * @return A cookie
  7463. *
  7464. * Delivers a request to the X server.
  7465. *
  7466. * This form can be used only if the request will cause
  7467. * a reply to be generated. Any returned error will be
  7468. * placed in the event queue.
  7469. */
  7470. xcb_input_xi_get_focus_cookie_t
  7471. xcb_input_xi_get_focus_unchecked (xcb_connection_t *c,
  7472. xcb_input_device_id_t deviceid);
  7473. /**
  7474. * Return the reply
  7475. * @param c The connection
  7476. * @param cookie The cookie
  7477. * @param e The xcb_generic_error_t supplied
  7478. *
  7479. * Returns the reply of the request asked by
  7480. *
  7481. * The parameter @p e supplied to this function must be NULL if
  7482. * xcb_input_xi_get_focus_unchecked(). is used.
  7483. * Otherwise, it stores the error if any.
  7484. *
  7485. * The returned value must be freed by the caller using free().
  7486. */
  7487. xcb_input_xi_get_focus_reply_t *
  7488. xcb_input_xi_get_focus_reply (xcb_connection_t *c,
  7489. xcb_input_xi_get_focus_cookie_t cookie /**< */,
  7490. xcb_generic_error_t **e);
  7491. int
  7492. xcb_input_xi_grab_device_sizeof (const void *_buffer);
  7493. /**
  7494. *
  7495. * @param c The connection
  7496. * @return A cookie
  7497. *
  7498. * Delivers a request to the X server.
  7499. *
  7500. */
  7501. xcb_input_xi_grab_device_cookie_t
  7502. xcb_input_xi_grab_device (xcb_connection_t *c,
  7503. xcb_window_t window,
  7504. xcb_timestamp_t time,
  7505. xcb_cursor_t cursor,
  7506. xcb_input_device_id_t deviceid,
  7507. uint8_t mode,
  7508. uint8_t paired_device_mode,
  7509. uint8_t owner_events,
  7510. uint16_t mask_len,
  7511. const uint32_t *mask);
  7512. /**
  7513. *
  7514. * @param c The connection
  7515. * @return A cookie
  7516. *
  7517. * Delivers a request to the X server.
  7518. *
  7519. * This form can be used only if the request will cause
  7520. * a reply to be generated. Any returned error will be
  7521. * placed in the event queue.
  7522. */
  7523. xcb_input_xi_grab_device_cookie_t
  7524. xcb_input_xi_grab_device_unchecked (xcb_connection_t *c,
  7525. xcb_window_t window,
  7526. xcb_timestamp_t time,
  7527. xcb_cursor_t cursor,
  7528. xcb_input_device_id_t deviceid,
  7529. uint8_t mode,
  7530. uint8_t paired_device_mode,
  7531. uint8_t owner_events,
  7532. uint16_t mask_len,
  7533. const uint32_t *mask);
  7534. /**
  7535. * Return the reply
  7536. * @param c The connection
  7537. * @param cookie The cookie
  7538. * @param e The xcb_generic_error_t supplied
  7539. *
  7540. * Returns the reply of the request asked by
  7541. *
  7542. * The parameter @p e supplied to this function must be NULL if
  7543. * xcb_input_xi_grab_device_unchecked(). is used.
  7544. * Otherwise, it stores the error if any.
  7545. *
  7546. * The returned value must be freed by the caller using free().
  7547. */
  7548. xcb_input_xi_grab_device_reply_t *
  7549. xcb_input_xi_grab_device_reply (xcb_connection_t *c,
  7550. xcb_input_xi_grab_device_cookie_t cookie /**< */,
  7551. xcb_generic_error_t **e);
  7552. /**
  7553. *
  7554. * @param c The connection
  7555. * @return A cookie
  7556. *
  7557. * Delivers a request to the X server.
  7558. *
  7559. * This form can be used only if the request will not cause
  7560. * a reply to be generated. Any returned error will be
  7561. * saved for handling by xcb_request_check().
  7562. */
  7563. xcb_void_cookie_t
  7564. xcb_input_xi_ungrab_device_checked (xcb_connection_t *c,
  7565. xcb_timestamp_t time,
  7566. xcb_input_device_id_t deviceid);
  7567. /**
  7568. *
  7569. * @param c The connection
  7570. * @return A cookie
  7571. *
  7572. * Delivers a request to the X server.
  7573. *
  7574. */
  7575. xcb_void_cookie_t
  7576. xcb_input_xi_ungrab_device (xcb_connection_t *c,
  7577. xcb_timestamp_t time,
  7578. xcb_input_device_id_t deviceid);
  7579. /**
  7580. *
  7581. * @param c The connection
  7582. * @return A cookie
  7583. *
  7584. * Delivers a request to the X server.
  7585. *
  7586. * This form can be used only if the request will not cause
  7587. * a reply to be generated. Any returned error will be
  7588. * saved for handling by xcb_request_check().
  7589. */
  7590. xcb_void_cookie_t
  7591. xcb_input_xi_allow_events_checked (xcb_connection_t *c,
  7592. xcb_timestamp_t time,
  7593. xcb_input_device_id_t deviceid,
  7594. uint8_t event_mode,
  7595. uint32_t touchid,
  7596. xcb_window_t grab_window);
  7597. /**
  7598. *
  7599. * @param c The connection
  7600. * @return A cookie
  7601. *
  7602. * Delivers a request to the X server.
  7603. *
  7604. */
  7605. xcb_void_cookie_t
  7606. xcb_input_xi_allow_events (xcb_connection_t *c,
  7607. xcb_timestamp_t time,
  7608. xcb_input_device_id_t deviceid,
  7609. uint8_t event_mode,
  7610. uint32_t touchid,
  7611. xcb_window_t grab_window);
  7612. /**
  7613. * Get the next element of the iterator
  7614. * @param i Pointer to a xcb_input_grab_modifier_info_iterator_t
  7615. *
  7616. * Get the next element in the iterator. The member rem is
  7617. * decreased by one. The member data points to the next
  7618. * element. The member index is increased by sizeof(xcb_input_grab_modifier_info_t)
  7619. */
  7620. void
  7621. xcb_input_grab_modifier_info_next (xcb_input_grab_modifier_info_iterator_t *i);
  7622. /**
  7623. * Return the iterator pointing to the last element
  7624. * @param i An xcb_input_grab_modifier_info_iterator_t
  7625. * @return The iterator pointing to the last element
  7626. *
  7627. * Set the current element in the iterator to the last element.
  7628. * The member rem is set to 0. The member data points to the
  7629. * last element.
  7630. */
  7631. xcb_generic_iterator_t
  7632. xcb_input_grab_modifier_info_end (xcb_input_grab_modifier_info_iterator_t i);
  7633. int
  7634. xcb_input_xi_passive_grab_device_sizeof (const void *_buffer);
  7635. /**
  7636. *
  7637. * @param c The connection
  7638. * @return A cookie
  7639. *
  7640. * Delivers a request to the X server.
  7641. *
  7642. */
  7643. xcb_input_xi_passive_grab_device_cookie_t
  7644. xcb_input_xi_passive_grab_device (xcb_connection_t *c,
  7645. xcb_timestamp_t time,
  7646. xcb_window_t grab_window,
  7647. xcb_cursor_t cursor,
  7648. uint32_t detail,
  7649. xcb_input_device_id_t deviceid,
  7650. uint16_t num_modifiers,
  7651. uint16_t mask_len,
  7652. uint8_t grab_type,
  7653. uint8_t grab_mode,
  7654. uint8_t paired_device_mode,
  7655. uint8_t owner_events,
  7656. const uint32_t *mask,
  7657. const uint32_t *modifiers);
  7658. /**
  7659. *
  7660. * @param c The connection
  7661. * @return A cookie
  7662. *
  7663. * Delivers a request to the X server.
  7664. *
  7665. * This form can be used only if the request will cause
  7666. * a reply to be generated. Any returned error will be
  7667. * placed in the event queue.
  7668. */
  7669. xcb_input_xi_passive_grab_device_cookie_t
  7670. xcb_input_xi_passive_grab_device_unchecked (xcb_connection_t *c,
  7671. xcb_timestamp_t time,
  7672. xcb_window_t grab_window,
  7673. xcb_cursor_t cursor,
  7674. uint32_t detail,
  7675. xcb_input_device_id_t deviceid,
  7676. uint16_t num_modifiers,
  7677. uint16_t mask_len,
  7678. uint8_t grab_type,
  7679. uint8_t grab_mode,
  7680. uint8_t paired_device_mode,
  7681. uint8_t owner_events,
  7682. const uint32_t *mask,
  7683. const uint32_t *modifiers);
  7684. xcb_input_grab_modifier_info_t *
  7685. xcb_input_xi_passive_grab_device_modifiers (const xcb_input_xi_passive_grab_device_reply_t *R);
  7686. int
  7687. xcb_input_xi_passive_grab_device_modifiers_length (const xcb_input_xi_passive_grab_device_reply_t *R);
  7688. xcb_input_grab_modifier_info_iterator_t
  7689. xcb_input_xi_passive_grab_device_modifiers_iterator (const xcb_input_xi_passive_grab_device_reply_t *R);
  7690. /**
  7691. * Return the reply
  7692. * @param c The connection
  7693. * @param cookie The cookie
  7694. * @param e The xcb_generic_error_t supplied
  7695. *
  7696. * Returns the reply of the request asked by
  7697. *
  7698. * The parameter @p e supplied to this function must be NULL if
  7699. * xcb_input_xi_passive_grab_device_unchecked(). is used.
  7700. * Otherwise, it stores the error if any.
  7701. *
  7702. * The returned value must be freed by the caller using free().
  7703. */
  7704. xcb_input_xi_passive_grab_device_reply_t *
  7705. xcb_input_xi_passive_grab_device_reply (xcb_connection_t *c,
  7706. xcb_input_xi_passive_grab_device_cookie_t cookie /**< */,
  7707. xcb_generic_error_t **e);
  7708. int
  7709. xcb_input_xi_passive_ungrab_device_sizeof (const void *_buffer);
  7710. /**
  7711. *
  7712. * @param c The connection
  7713. * @return A cookie
  7714. *
  7715. * Delivers a request to the X server.
  7716. *
  7717. * This form can be used only if the request will not cause
  7718. * a reply to be generated. Any returned error will be
  7719. * saved for handling by xcb_request_check().
  7720. */
  7721. xcb_void_cookie_t
  7722. xcb_input_xi_passive_ungrab_device_checked (xcb_connection_t *c,
  7723. xcb_window_t grab_window,
  7724. uint32_t detail,
  7725. xcb_input_device_id_t deviceid,
  7726. uint16_t num_modifiers,
  7727. uint8_t grab_type,
  7728. const uint32_t *modifiers);
  7729. /**
  7730. *
  7731. * @param c The connection
  7732. * @return A cookie
  7733. *
  7734. * Delivers a request to the X server.
  7735. *
  7736. */
  7737. xcb_void_cookie_t
  7738. xcb_input_xi_passive_ungrab_device (xcb_connection_t *c,
  7739. xcb_window_t grab_window,
  7740. uint32_t detail,
  7741. xcb_input_device_id_t deviceid,
  7742. uint16_t num_modifiers,
  7743. uint8_t grab_type,
  7744. const uint32_t *modifiers);
  7745. uint32_t *
  7746. xcb_input_xi_passive_ungrab_device_modifiers (const xcb_input_xi_passive_ungrab_device_request_t *R);
  7747. int
  7748. xcb_input_xi_passive_ungrab_device_modifiers_length (const xcb_input_xi_passive_ungrab_device_request_t *R);
  7749. xcb_generic_iterator_t
  7750. xcb_input_xi_passive_ungrab_device_modifiers_end (const xcb_input_xi_passive_ungrab_device_request_t *R);
  7751. int
  7752. xcb_input_xi_list_properties_sizeof (const void *_buffer);
  7753. /**
  7754. *
  7755. * @param c The connection
  7756. * @return A cookie
  7757. *
  7758. * Delivers a request to the X server.
  7759. *
  7760. */
  7761. xcb_input_xi_list_properties_cookie_t
  7762. xcb_input_xi_list_properties (xcb_connection_t *c,
  7763. xcb_input_device_id_t deviceid);
  7764. /**
  7765. *
  7766. * @param c The connection
  7767. * @return A cookie
  7768. *
  7769. * Delivers a request to the X server.
  7770. *
  7771. * This form can be used only if the request will cause
  7772. * a reply to be generated. Any returned error will be
  7773. * placed in the event queue.
  7774. */
  7775. xcb_input_xi_list_properties_cookie_t
  7776. xcb_input_xi_list_properties_unchecked (xcb_connection_t *c,
  7777. xcb_input_device_id_t deviceid);
  7778. xcb_atom_t *
  7779. xcb_input_xi_list_properties_properties (const xcb_input_xi_list_properties_reply_t *R);
  7780. int
  7781. xcb_input_xi_list_properties_properties_length (const xcb_input_xi_list_properties_reply_t *R);
  7782. xcb_generic_iterator_t
  7783. xcb_input_xi_list_properties_properties_end (const xcb_input_xi_list_properties_reply_t *R);
  7784. /**
  7785. * Return the reply
  7786. * @param c The connection
  7787. * @param cookie The cookie
  7788. * @param e The xcb_generic_error_t supplied
  7789. *
  7790. * Returns the reply of the request asked by
  7791. *
  7792. * The parameter @p e supplied to this function must be NULL if
  7793. * xcb_input_xi_list_properties_unchecked(). is used.
  7794. * Otherwise, it stores the error if any.
  7795. *
  7796. * The returned value must be freed by the caller using free().
  7797. */
  7798. xcb_input_xi_list_properties_reply_t *
  7799. xcb_input_xi_list_properties_reply (xcb_connection_t *c,
  7800. xcb_input_xi_list_properties_cookie_t cookie /**< */,
  7801. xcb_generic_error_t **e);
  7802. uint8_t *
  7803. xcb_input_xi_change_property_items_data_8 (const xcb_input_xi_change_property_items_t *S);
  7804. int
  7805. xcb_input_xi_change_property_items_data_8_length (const xcb_input_xi_change_property_request_t *R,
  7806. const xcb_input_xi_change_property_items_t *S);
  7807. xcb_generic_iterator_t
  7808. xcb_input_xi_change_property_items_data_8_end (const xcb_input_xi_change_property_request_t *R,
  7809. const xcb_input_xi_change_property_items_t *S);
  7810. uint16_t *
  7811. xcb_input_xi_change_property_items_data_16 (const xcb_input_xi_change_property_items_t *S);
  7812. int
  7813. xcb_input_xi_change_property_items_data_16_length (const xcb_input_xi_change_property_request_t *R,
  7814. const xcb_input_xi_change_property_items_t *S);
  7815. xcb_generic_iterator_t
  7816. xcb_input_xi_change_property_items_data_16_end (const xcb_input_xi_change_property_request_t *R,
  7817. const xcb_input_xi_change_property_items_t *S);
  7818. uint32_t *
  7819. xcb_input_xi_change_property_items_data_32 (const xcb_input_xi_change_property_items_t *S);
  7820. int
  7821. xcb_input_xi_change_property_items_data_32_length (const xcb_input_xi_change_property_request_t *R,
  7822. const xcb_input_xi_change_property_items_t *S);
  7823. xcb_generic_iterator_t
  7824. xcb_input_xi_change_property_items_data_32_end (const xcb_input_xi_change_property_request_t *R,
  7825. const xcb_input_xi_change_property_items_t *S);
  7826. int
  7827. xcb_input_xi_change_property_items_serialize (void **_buffer,
  7828. uint32_t num_items,
  7829. uint8_t format,
  7830. const xcb_input_xi_change_property_items_t *_aux);
  7831. int
  7832. xcb_input_xi_change_property_items_unpack (const void *_buffer,
  7833. uint32_t num_items,
  7834. uint8_t format,
  7835. xcb_input_xi_change_property_items_t *_aux);
  7836. int
  7837. xcb_input_xi_change_property_items_sizeof (const void *_buffer,
  7838. uint32_t num_items,
  7839. uint8_t format);
  7840. int
  7841. xcb_input_xi_change_property_sizeof (const void *_buffer);
  7842. /**
  7843. *
  7844. * @param c The connection
  7845. * @return A cookie
  7846. *
  7847. * Delivers a request to the X server.
  7848. *
  7849. * This form can be used only if the request will not cause
  7850. * a reply to be generated. Any returned error will be
  7851. * saved for handling by xcb_request_check().
  7852. */
  7853. xcb_void_cookie_t
  7854. xcb_input_xi_change_property_checked (xcb_connection_t *c,
  7855. xcb_input_device_id_t deviceid,
  7856. uint8_t mode,
  7857. uint8_t format,
  7858. xcb_atom_t property,
  7859. xcb_atom_t type,
  7860. uint32_t num_items,
  7861. const void *items);
  7862. /**
  7863. *
  7864. * @param c The connection
  7865. * @return A cookie
  7866. *
  7867. * Delivers a request to the X server.
  7868. *
  7869. */
  7870. xcb_void_cookie_t
  7871. xcb_input_xi_change_property (xcb_connection_t *c,
  7872. xcb_input_device_id_t deviceid,
  7873. uint8_t mode,
  7874. uint8_t format,
  7875. xcb_atom_t property,
  7876. xcb_atom_t type,
  7877. uint32_t num_items,
  7878. const void *items);
  7879. /**
  7880. *
  7881. * @param c The connection
  7882. * @return A cookie
  7883. *
  7884. * Delivers a request to the X server.
  7885. *
  7886. * This form can be used only if the request will not cause
  7887. * a reply to be generated. Any returned error will be
  7888. * saved for handling by xcb_request_check().
  7889. */
  7890. xcb_void_cookie_t
  7891. xcb_input_xi_change_property_aux_checked (xcb_connection_t *c,
  7892. xcb_input_device_id_t deviceid,
  7893. uint8_t mode,
  7894. uint8_t format,
  7895. xcb_atom_t property,
  7896. xcb_atom_t type,
  7897. uint32_t num_items,
  7898. const xcb_input_xi_change_property_items_t *items);
  7899. /**
  7900. *
  7901. * @param c The connection
  7902. * @return A cookie
  7903. *
  7904. * Delivers a request to the X server.
  7905. *
  7906. */
  7907. xcb_void_cookie_t
  7908. xcb_input_xi_change_property_aux (xcb_connection_t *c,
  7909. xcb_input_device_id_t deviceid,
  7910. uint8_t mode,
  7911. uint8_t format,
  7912. xcb_atom_t property,
  7913. xcb_atom_t type,
  7914. uint32_t num_items,
  7915. const xcb_input_xi_change_property_items_t *items);
  7916. void *
  7917. xcb_input_xi_change_property_items (const xcb_input_xi_change_property_request_t *R);
  7918. /**
  7919. *
  7920. * @param c The connection
  7921. * @return A cookie
  7922. *
  7923. * Delivers a request to the X server.
  7924. *
  7925. * This form can be used only if the request will not cause
  7926. * a reply to be generated. Any returned error will be
  7927. * saved for handling by xcb_request_check().
  7928. */
  7929. xcb_void_cookie_t
  7930. xcb_input_xi_delete_property_checked (xcb_connection_t *c,
  7931. xcb_input_device_id_t deviceid,
  7932. xcb_atom_t property);
  7933. /**
  7934. *
  7935. * @param c The connection
  7936. * @return A cookie
  7937. *
  7938. * Delivers a request to the X server.
  7939. *
  7940. */
  7941. xcb_void_cookie_t
  7942. xcb_input_xi_delete_property (xcb_connection_t *c,
  7943. xcb_input_device_id_t deviceid,
  7944. xcb_atom_t property);
  7945. uint8_t *
  7946. xcb_input_xi_get_property_items_data_8 (const xcb_input_xi_get_property_items_t *S);
  7947. int
  7948. xcb_input_xi_get_property_items_data_8_length (const xcb_input_xi_get_property_reply_t *R,
  7949. const xcb_input_xi_get_property_items_t *S);
  7950. xcb_generic_iterator_t
  7951. xcb_input_xi_get_property_items_data_8_end (const xcb_input_xi_get_property_reply_t *R,
  7952. const xcb_input_xi_get_property_items_t *S);
  7953. uint16_t *
  7954. xcb_input_xi_get_property_items_data_16 (const xcb_input_xi_get_property_items_t *S);
  7955. int
  7956. xcb_input_xi_get_property_items_data_16_length (const xcb_input_xi_get_property_reply_t *R,
  7957. const xcb_input_xi_get_property_items_t *S);
  7958. xcb_generic_iterator_t
  7959. xcb_input_xi_get_property_items_data_16_end (const xcb_input_xi_get_property_reply_t *R,
  7960. const xcb_input_xi_get_property_items_t *S);
  7961. uint32_t *
  7962. xcb_input_xi_get_property_items_data_32 (const xcb_input_xi_get_property_items_t *S);
  7963. int
  7964. xcb_input_xi_get_property_items_data_32_length (const xcb_input_xi_get_property_reply_t *R,
  7965. const xcb_input_xi_get_property_items_t *S);
  7966. xcb_generic_iterator_t
  7967. xcb_input_xi_get_property_items_data_32_end (const xcb_input_xi_get_property_reply_t *R,
  7968. const xcb_input_xi_get_property_items_t *S);
  7969. int
  7970. xcb_input_xi_get_property_items_serialize (void **_buffer,
  7971. uint32_t num_items,
  7972. uint8_t format,
  7973. const xcb_input_xi_get_property_items_t *_aux);
  7974. int
  7975. xcb_input_xi_get_property_items_unpack (const void *_buffer,
  7976. uint32_t num_items,
  7977. uint8_t format,
  7978. xcb_input_xi_get_property_items_t *_aux);
  7979. int
  7980. xcb_input_xi_get_property_items_sizeof (const void *_buffer,
  7981. uint32_t num_items,
  7982. uint8_t format);
  7983. int
  7984. xcb_input_xi_get_property_sizeof (const void *_buffer);
  7985. /**
  7986. *
  7987. * @param c The connection
  7988. * @return A cookie
  7989. *
  7990. * Delivers a request to the X server.
  7991. *
  7992. */
  7993. xcb_input_xi_get_property_cookie_t
  7994. xcb_input_xi_get_property (xcb_connection_t *c,
  7995. xcb_input_device_id_t deviceid,
  7996. uint8_t _delete,
  7997. xcb_atom_t property,
  7998. xcb_atom_t type,
  7999. uint32_t offset,
  8000. uint32_t len);
  8001. /**
  8002. *
  8003. * @param c The connection
  8004. * @return A cookie
  8005. *
  8006. * Delivers a request to the X server.
  8007. *
  8008. * This form can be used only if the request will cause
  8009. * a reply to be generated. Any returned error will be
  8010. * placed in the event queue.
  8011. */
  8012. xcb_input_xi_get_property_cookie_t
  8013. xcb_input_xi_get_property_unchecked (xcb_connection_t *c,
  8014. xcb_input_device_id_t deviceid,
  8015. uint8_t _delete,
  8016. xcb_atom_t property,
  8017. xcb_atom_t type,
  8018. uint32_t offset,
  8019. uint32_t len);
  8020. void *
  8021. xcb_input_xi_get_property_items (const xcb_input_xi_get_property_reply_t *R);
  8022. /**
  8023. * Return the reply
  8024. * @param c The connection
  8025. * @param cookie The cookie
  8026. * @param e The xcb_generic_error_t supplied
  8027. *
  8028. * Returns the reply of the request asked by
  8029. *
  8030. * The parameter @p e supplied to this function must be NULL if
  8031. * xcb_input_xi_get_property_unchecked(). is used.
  8032. * Otherwise, it stores the error if any.
  8033. *
  8034. * The returned value must be freed by the caller using free().
  8035. */
  8036. xcb_input_xi_get_property_reply_t *
  8037. xcb_input_xi_get_property_reply (xcb_connection_t *c,
  8038. xcb_input_xi_get_property_cookie_t cookie /**< */,
  8039. xcb_generic_error_t **e);
  8040. int
  8041. xcb_input_xi_get_selected_events_sizeof (const void *_buffer);
  8042. /**
  8043. *
  8044. * @param c The connection
  8045. * @return A cookie
  8046. *
  8047. * Delivers a request to the X server.
  8048. *
  8049. */
  8050. xcb_input_xi_get_selected_events_cookie_t
  8051. xcb_input_xi_get_selected_events (xcb_connection_t *c,
  8052. xcb_window_t window);
  8053. /**
  8054. *
  8055. * @param c The connection
  8056. * @return A cookie
  8057. *
  8058. * Delivers a request to the X server.
  8059. *
  8060. * This form can be used only if the request will cause
  8061. * a reply to be generated. Any returned error will be
  8062. * placed in the event queue.
  8063. */
  8064. xcb_input_xi_get_selected_events_cookie_t
  8065. xcb_input_xi_get_selected_events_unchecked (xcb_connection_t *c,
  8066. xcb_window_t window);
  8067. int
  8068. xcb_input_xi_get_selected_events_masks_length (const xcb_input_xi_get_selected_events_reply_t *R);
  8069. xcb_input_event_mask_iterator_t
  8070. xcb_input_xi_get_selected_events_masks_iterator (const xcb_input_xi_get_selected_events_reply_t *R);
  8071. /**
  8072. * Return the reply
  8073. * @param c The connection
  8074. * @param cookie The cookie
  8075. * @param e The xcb_generic_error_t supplied
  8076. *
  8077. * Returns the reply of the request asked by
  8078. *
  8079. * The parameter @p e supplied to this function must be NULL if
  8080. * xcb_input_xi_get_selected_events_unchecked(). is used.
  8081. * Otherwise, it stores the error if any.
  8082. *
  8083. * The returned value must be freed by the caller using free().
  8084. */
  8085. xcb_input_xi_get_selected_events_reply_t *
  8086. xcb_input_xi_get_selected_events_reply (xcb_connection_t *c,
  8087. xcb_input_xi_get_selected_events_cookie_t cookie /**< */,
  8088. xcb_generic_error_t **e);
  8089. /**
  8090. * Get the next element of the iterator
  8091. * @param i Pointer to a xcb_input_barrier_release_pointer_info_iterator_t
  8092. *
  8093. * Get the next element in the iterator. The member rem is
  8094. * decreased by one. The member data points to the next
  8095. * element. The member index is increased by sizeof(xcb_input_barrier_release_pointer_info_t)
  8096. */
  8097. void
  8098. xcb_input_barrier_release_pointer_info_next (xcb_input_barrier_release_pointer_info_iterator_t *i);
  8099. /**
  8100. * Return the iterator pointing to the last element
  8101. * @param i An xcb_input_barrier_release_pointer_info_iterator_t
  8102. * @return The iterator pointing to the last element
  8103. *
  8104. * Set the current element in the iterator to the last element.
  8105. * The member rem is set to 0. The member data points to the
  8106. * last element.
  8107. */
  8108. xcb_generic_iterator_t
  8109. xcb_input_barrier_release_pointer_info_end (xcb_input_barrier_release_pointer_info_iterator_t i);
  8110. int
  8111. xcb_input_xi_barrier_release_pointer_sizeof (const void *_buffer);
  8112. /**
  8113. *
  8114. * @param c The connection
  8115. * @return A cookie
  8116. *
  8117. * Delivers a request to the X server.
  8118. *
  8119. * This form can be used only if the request will not cause
  8120. * a reply to be generated. Any returned error will be
  8121. * saved for handling by xcb_request_check().
  8122. */
  8123. xcb_void_cookie_t
  8124. xcb_input_xi_barrier_release_pointer_checked (xcb_connection_t *c,
  8125. uint32_t num_barriers,
  8126. const xcb_input_barrier_release_pointer_info_t *barriers);
  8127. /**
  8128. *
  8129. * @param c The connection
  8130. * @return A cookie
  8131. *
  8132. * Delivers a request to the X server.
  8133. *
  8134. */
  8135. xcb_void_cookie_t
  8136. xcb_input_xi_barrier_release_pointer (xcb_connection_t *c,
  8137. uint32_t num_barriers,
  8138. const xcb_input_barrier_release_pointer_info_t *barriers);
  8139. xcb_input_barrier_release_pointer_info_t *
  8140. xcb_input_xi_barrier_release_pointer_barriers (const xcb_input_xi_barrier_release_pointer_request_t *R);
  8141. int
  8142. xcb_input_xi_barrier_release_pointer_barriers_length (const xcb_input_xi_barrier_release_pointer_request_t *R);
  8143. xcb_input_barrier_release_pointer_info_iterator_t
  8144. xcb_input_xi_barrier_release_pointer_barriers_iterator (const xcb_input_xi_barrier_release_pointer_request_t *R);
  8145. int
  8146. xcb_input_device_changed_sizeof (const void *_buffer);
  8147. int
  8148. xcb_input_device_changed_classes_length (const xcb_input_device_changed_event_t *R);
  8149. xcb_input_device_class_iterator_t
  8150. xcb_input_device_changed_classes_iterator (const xcb_input_device_changed_event_t *R);
  8151. int
  8152. xcb_input_key_press_sizeof (const void *_buffer);
  8153. uint32_t *
  8154. xcb_input_key_press_button_mask (const xcb_input_key_press_event_t *R);
  8155. int
  8156. xcb_input_key_press_button_mask_length (const xcb_input_key_press_event_t *R);
  8157. xcb_generic_iterator_t
  8158. xcb_input_key_press_button_mask_end (const xcb_input_key_press_event_t *R);
  8159. uint32_t *
  8160. xcb_input_key_press_valuator_mask (const xcb_input_key_press_event_t *R);
  8161. int
  8162. xcb_input_key_press_valuator_mask_length (const xcb_input_key_press_event_t *R);
  8163. xcb_generic_iterator_t
  8164. xcb_input_key_press_valuator_mask_end (const xcb_input_key_press_event_t *R);
  8165. xcb_input_fp3232_t *
  8166. xcb_input_key_press_axisvalues (const xcb_input_key_press_event_t *R);
  8167. int
  8168. xcb_input_key_press_axisvalues_length (const xcb_input_key_press_event_t *R);
  8169. xcb_input_fp3232_iterator_t
  8170. xcb_input_key_press_axisvalues_iterator (const xcb_input_key_press_event_t *R);
  8171. int
  8172. xcb_input_key_release_sizeof (const void *_buffer /**< */);
  8173. int
  8174. xcb_input_button_press_sizeof (const void *_buffer);
  8175. uint32_t *
  8176. xcb_input_button_press_button_mask (const xcb_input_button_press_event_t *R);
  8177. int
  8178. xcb_input_button_press_button_mask_length (const xcb_input_button_press_event_t *R);
  8179. xcb_generic_iterator_t
  8180. xcb_input_button_press_button_mask_end (const xcb_input_button_press_event_t *R);
  8181. uint32_t *
  8182. xcb_input_button_press_valuator_mask (const xcb_input_button_press_event_t *R);
  8183. int
  8184. xcb_input_button_press_valuator_mask_length (const xcb_input_button_press_event_t *R);
  8185. xcb_generic_iterator_t
  8186. xcb_input_button_press_valuator_mask_end (const xcb_input_button_press_event_t *R);
  8187. xcb_input_fp3232_t *
  8188. xcb_input_button_press_axisvalues (const xcb_input_button_press_event_t *R);
  8189. int
  8190. xcb_input_button_press_axisvalues_length (const xcb_input_button_press_event_t *R);
  8191. xcb_input_fp3232_iterator_t
  8192. xcb_input_button_press_axisvalues_iterator (const xcb_input_button_press_event_t *R);
  8193. int
  8194. xcb_input_button_release_sizeof (const void *_buffer /**< */);
  8195. int
  8196. xcb_input_motion_sizeof (const void *_buffer /**< */);
  8197. int
  8198. xcb_input_enter_sizeof (const void *_buffer);
  8199. uint32_t *
  8200. xcb_input_enter_buttons (const xcb_input_enter_event_t *R);
  8201. int
  8202. xcb_input_enter_buttons_length (const xcb_input_enter_event_t *R);
  8203. xcb_generic_iterator_t
  8204. xcb_input_enter_buttons_end (const xcb_input_enter_event_t *R);
  8205. int
  8206. xcb_input_leave_sizeof (const void *_buffer /**< */);
  8207. int
  8208. xcb_input_focus_in_sizeof (const void *_buffer /**< */);
  8209. int
  8210. xcb_input_focus_out_sizeof (const void *_buffer /**< */);
  8211. /**
  8212. * Get the next element of the iterator
  8213. * @param i Pointer to a xcb_input_hierarchy_info_iterator_t
  8214. *
  8215. * Get the next element in the iterator. The member rem is
  8216. * decreased by one. The member data points to the next
  8217. * element. The member index is increased by sizeof(xcb_input_hierarchy_info_t)
  8218. */
  8219. void
  8220. xcb_input_hierarchy_info_next (xcb_input_hierarchy_info_iterator_t *i);
  8221. /**
  8222. * Return the iterator pointing to the last element
  8223. * @param i An xcb_input_hierarchy_info_iterator_t
  8224. * @return The iterator pointing to the last element
  8225. *
  8226. * Set the current element in the iterator to the last element.
  8227. * The member rem is set to 0. The member data points to the
  8228. * last element.
  8229. */
  8230. xcb_generic_iterator_t
  8231. xcb_input_hierarchy_info_end (xcb_input_hierarchy_info_iterator_t i);
  8232. int
  8233. xcb_input_hierarchy_sizeof (const void *_buffer);
  8234. xcb_input_hierarchy_info_t *
  8235. xcb_input_hierarchy_infos (const xcb_input_hierarchy_event_t *R);
  8236. int
  8237. xcb_input_hierarchy_infos_length (const xcb_input_hierarchy_event_t *R);
  8238. xcb_input_hierarchy_info_iterator_t
  8239. xcb_input_hierarchy_infos_iterator (const xcb_input_hierarchy_event_t *R);
  8240. int
  8241. xcb_input_raw_key_press_sizeof (const void *_buffer);
  8242. uint32_t *
  8243. xcb_input_raw_key_press_valuator_mask (const xcb_input_raw_key_press_event_t *R);
  8244. int
  8245. xcb_input_raw_key_press_valuator_mask_length (const xcb_input_raw_key_press_event_t *R);
  8246. xcb_generic_iterator_t
  8247. xcb_input_raw_key_press_valuator_mask_end (const xcb_input_raw_key_press_event_t *R);
  8248. xcb_input_fp3232_t *
  8249. xcb_input_raw_key_press_axisvalues (const xcb_input_raw_key_press_event_t *R);
  8250. int
  8251. xcb_input_raw_key_press_axisvalues_length (const xcb_input_raw_key_press_event_t *R);
  8252. xcb_input_fp3232_iterator_t
  8253. xcb_input_raw_key_press_axisvalues_iterator (const xcb_input_raw_key_press_event_t *R);
  8254. xcb_input_fp3232_t *
  8255. xcb_input_raw_key_press_axisvalues_raw (const xcb_input_raw_key_press_event_t *R);
  8256. int
  8257. xcb_input_raw_key_press_axisvalues_raw_length (const xcb_input_raw_key_press_event_t *R);
  8258. xcb_input_fp3232_iterator_t
  8259. xcb_input_raw_key_press_axisvalues_raw_iterator (const xcb_input_raw_key_press_event_t *R);
  8260. int
  8261. xcb_input_raw_key_release_sizeof (const void *_buffer /**< */);
  8262. int
  8263. xcb_input_raw_button_press_sizeof (const void *_buffer);
  8264. uint32_t *
  8265. xcb_input_raw_button_press_valuator_mask (const xcb_input_raw_button_press_event_t *R);
  8266. int
  8267. xcb_input_raw_button_press_valuator_mask_length (const xcb_input_raw_button_press_event_t *R);
  8268. xcb_generic_iterator_t
  8269. xcb_input_raw_button_press_valuator_mask_end (const xcb_input_raw_button_press_event_t *R);
  8270. xcb_input_fp3232_t *
  8271. xcb_input_raw_button_press_axisvalues (const xcb_input_raw_button_press_event_t *R);
  8272. int
  8273. xcb_input_raw_button_press_axisvalues_length (const xcb_input_raw_button_press_event_t *R);
  8274. xcb_input_fp3232_iterator_t
  8275. xcb_input_raw_button_press_axisvalues_iterator (const xcb_input_raw_button_press_event_t *R);
  8276. xcb_input_fp3232_t *
  8277. xcb_input_raw_button_press_axisvalues_raw (const xcb_input_raw_button_press_event_t *R);
  8278. int
  8279. xcb_input_raw_button_press_axisvalues_raw_length (const xcb_input_raw_button_press_event_t *R);
  8280. xcb_input_fp3232_iterator_t
  8281. xcb_input_raw_button_press_axisvalues_raw_iterator (const xcb_input_raw_button_press_event_t *R);
  8282. int
  8283. xcb_input_raw_button_release_sizeof (const void *_buffer /**< */);
  8284. int
  8285. xcb_input_raw_motion_sizeof (const void *_buffer /**< */);
  8286. int
  8287. xcb_input_touch_begin_sizeof (const void *_buffer);
  8288. uint32_t *
  8289. xcb_input_touch_begin_button_mask (const xcb_input_touch_begin_event_t *R);
  8290. int
  8291. xcb_input_touch_begin_button_mask_length (const xcb_input_touch_begin_event_t *R);
  8292. xcb_generic_iterator_t
  8293. xcb_input_touch_begin_button_mask_end (const xcb_input_touch_begin_event_t *R);
  8294. uint32_t *
  8295. xcb_input_touch_begin_valuator_mask (const xcb_input_touch_begin_event_t *R);
  8296. int
  8297. xcb_input_touch_begin_valuator_mask_length (const xcb_input_touch_begin_event_t *R);
  8298. xcb_generic_iterator_t
  8299. xcb_input_touch_begin_valuator_mask_end (const xcb_input_touch_begin_event_t *R);
  8300. xcb_input_fp3232_t *
  8301. xcb_input_touch_begin_axisvalues (const xcb_input_touch_begin_event_t *R);
  8302. int
  8303. xcb_input_touch_begin_axisvalues_length (const xcb_input_touch_begin_event_t *R);
  8304. xcb_input_fp3232_iterator_t
  8305. xcb_input_touch_begin_axisvalues_iterator (const xcb_input_touch_begin_event_t *R);
  8306. int
  8307. xcb_input_touch_update_sizeof (const void *_buffer /**< */);
  8308. int
  8309. xcb_input_touch_end_sizeof (const void *_buffer /**< */);
  8310. int
  8311. xcb_input_raw_touch_begin_sizeof (const void *_buffer);
  8312. uint32_t *
  8313. xcb_input_raw_touch_begin_valuator_mask (const xcb_input_raw_touch_begin_event_t *R);
  8314. int
  8315. xcb_input_raw_touch_begin_valuator_mask_length (const xcb_input_raw_touch_begin_event_t *R);
  8316. xcb_generic_iterator_t
  8317. xcb_input_raw_touch_begin_valuator_mask_end (const xcb_input_raw_touch_begin_event_t *R);
  8318. xcb_input_fp3232_t *
  8319. xcb_input_raw_touch_begin_axisvalues (const xcb_input_raw_touch_begin_event_t *R);
  8320. int
  8321. xcb_input_raw_touch_begin_axisvalues_length (const xcb_input_raw_touch_begin_event_t *R);
  8322. xcb_input_fp3232_iterator_t
  8323. xcb_input_raw_touch_begin_axisvalues_iterator (const xcb_input_raw_touch_begin_event_t *R);
  8324. xcb_input_fp3232_t *
  8325. xcb_input_raw_touch_begin_axisvalues_raw (const xcb_input_raw_touch_begin_event_t *R);
  8326. int
  8327. xcb_input_raw_touch_begin_axisvalues_raw_length (const xcb_input_raw_touch_begin_event_t *R);
  8328. xcb_input_fp3232_iterator_t
  8329. xcb_input_raw_touch_begin_axisvalues_raw_iterator (const xcb_input_raw_touch_begin_event_t *R);
  8330. int
  8331. xcb_input_raw_touch_update_sizeof (const void *_buffer /**< */);
  8332. int
  8333. xcb_input_raw_touch_end_sizeof (const void *_buffer /**< */);
  8334. /**
  8335. * Get the next element of the iterator
  8336. * @param i Pointer to a xcb_input_event_for_send_iterator_t
  8337. *
  8338. * Get the next element in the iterator. The member rem is
  8339. * decreased by one. The member data points to the next
  8340. * element. The member index is increased by sizeof(xcb_input_event_for_send_t)
  8341. */
  8342. void
  8343. xcb_input_event_for_send_next (xcb_input_event_for_send_iterator_t *i);
  8344. /**
  8345. * Return the iterator pointing to the last element
  8346. * @param i An xcb_input_event_for_send_iterator_t
  8347. * @return The iterator pointing to the last element
  8348. *
  8349. * Set the current element in the iterator to the last element.
  8350. * The member rem is set to 0. The member data points to the
  8351. * last element.
  8352. */
  8353. xcb_generic_iterator_t
  8354. xcb_input_event_for_send_end (xcb_input_event_for_send_iterator_t i);
  8355. int
  8356. xcb_input_send_extension_event_sizeof (const void *_buffer);
  8357. /**
  8358. *
  8359. * @param c The connection
  8360. * @return A cookie
  8361. *
  8362. * Delivers a request to the X server.
  8363. *
  8364. * This form can be used only if the request will not cause
  8365. * a reply to be generated. Any returned error will be
  8366. * saved for handling by xcb_request_check().
  8367. */
  8368. xcb_void_cookie_t
  8369. xcb_input_send_extension_event_checked (xcb_connection_t *c,
  8370. xcb_window_t destination,
  8371. uint8_t device_id,
  8372. uint8_t propagate,
  8373. uint16_t num_classes,
  8374. uint8_t num_events,
  8375. const xcb_input_event_for_send_t *events,
  8376. const xcb_input_event_class_t *classes);
  8377. /**
  8378. *
  8379. * @param c The connection
  8380. * @return A cookie
  8381. *
  8382. * Delivers a request to the X server.
  8383. *
  8384. */
  8385. xcb_void_cookie_t
  8386. xcb_input_send_extension_event (xcb_connection_t *c,
  8387. xcb_window_t destination,
  8388. uint8_t device_id,
  8389. uint8_t propagate,
  8390. uint16_t num_classes,
  8391. uint8_t num_events,
  8392. const xcb_input_event_for_send_t *events,
  8393. const xcb_input_event_class_t *classes);
  8394. xcb_input_event_for_send_t *
  8395. xcb_input_send_extension_event_events (const xcb_input_send_extension_event_request_t *R);
  8396. int
  8397. xcb_input_send_extension_event_events_length (const xcb_input_send_extension_event_request_t *R);
  8398. xcb_input_event_for_send_iterator_t
  8399. xcb_input_send_extension_event_events_iterator (const xcb_input_send_extension_event_request_t *R);
  8400. xcb_input_event_class_t *
  8401. xcb_input_send_extension_event_classes (const xcb_input_send_extension_event_request_t *R);
  8402. int
  8403. xcb_input_send_extension_event_classes_length (const xcb_input_send_extension_event_request_t *R);
  8404. xcb_generic_iterator_t
  8405. xcb_input_send_extension_event_classes_end (const xcb_input_send_extension_event_request_t *R);
  8406. #ifdef __cplusplus
  8407. }
  8408. #endif
  8409. #endif
  8410. /**
  8411. * @}
  8412. */