ccgo_linux_ppc64le.go 396 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373
  1. // Code generated for linux/ppc64le by 'generator --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -I /home/debian/src/modernc.org/builder/.exclude/modernc.org/libX11/include/linux/ppc64le -lX11 -o libxrender.go --package-name libxrender src/.libs/libXrender.a', DO NOT EDIT.
  2. //go:build linux && ppc64le
  3. package libxrender
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libX11"
  8. "modernc.org/libc"
  9. )
  10. var _ reflect.Type
  11. var _ unsafe.Pointer
  12. const m_Above = 0
  13. const m_AllTemporary = 0
  14. const m_AllValues = 0x000F
  15. const m_AllocAll = 1
  16. const m_AllocNone = 0
  17. const m_AllowExposures = 1
  18. const m_AlreadyGrabbed = 1
  19. const m_Always = 2
  20. const m_AnyButton = 0
  21. const m_AnyKey = 0
  22. const m_AnyPropertyType = 0
  23. const m_ArcChord = 0
  24. const m_ArcPieSlice = 1
  25. const m_AsyncBoth = 6
  26. const m_AsyncKeyboard = 3
  27. const m_AsyncPointer = 0
  28. const m_AutoRepeatModeDefault = 2
  29. const m_AutoRepeatModeOff = 0
  30. const m_AutoRepeatModeOn = 1
  31. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  32. const m_BUFSIZE = 2048
  33. const m_BYTE_ORDER = "__BYTE_ORDER"
  34. const m_BadAccess = 10
  35. const m_BadAlloc = 11
  36. const m_BadAtom = 5
  37. const m_BadColor = 12
  38. const m_BadCursor = 6
  39. const m_BadDrawable = 9
  40. const m_BadFont = 7
  41. const m_BadGC = 13
  42. const m_BadGlyph = 4
  43. const m_BadGlyphSet = 3
  44. const m_BadIDChoice = 14
  45. const m_BadImplementation = 17
  46. const m_BadLength = 16
  47. const m_BadMatch = 8
  48. const m_BadName = 15
  49. const m_BadPictFormat = 0
  50. const m_BadPictOp = 2
  51. const m_BadPicture = 1
  52. const m_BadPixmap = 4
  53. const m_BadRequest = 1
  54. const m_BadValue = 2
  55. const m_BadWindow = 3
  56. const m_Below = 1
  57. const m_BitmapFileInvalid = 2
  58. const m_BitmapNoMemory = 3
  59. const m_BitmapOpenFailed = 1
  60. const m_BitmapSuccess = 0
  61. const m_Bool = "int"
  62. const m_BottomIf = 3
  63. const m_Button1 = 1
  64. const m_Button2 = 2
  65. const m_Button3 = 3
  66. const m_Button4 = 4
  67. const m_Button5 = 5
  68. const m_ButtonPress = 4
  69. const m_ButtonRelease = 5
  70. const m_CPLastBit = 12
  71. const m_CURSORFONT = "cursor"
  72. const m_CapButt = 1
  73. const m_CapNotLast = 0
  74. const m_CapProjecting = 3
  75. const m_CapRound = 2
  76. const m_CenterGravity = 5
  77. const m_CirculateNotify = 26
  78. const m_CirculateRequest = 27
  79. const m_ClientMessage = 33
  80. const m_ClipByChildren = 0
  81. const m_ColormapInstalled = 1
  82. const m_ColormapNotify = 32
  83. const m_ColormapUninstalled = 0
  84. const m_Complex = 0
  85. const m_ConfigureNotify = 22
  86. const m_ConfigureRequest = 23
  87. const m_ControlMapIndex = 2
  88. const m_Convex = 2
  89. const m_CoordModeOrigin = 0
  90. const m_CoordModePrevious = 1
  91. const m_CopyFromParent = 0
  92. const m_CreateNotify = 16
  93. const m_CurrentTime = 0
  94. const m_CursorShape = 0
  95. const m_DefaultBlanking = 2
  96. const m_DefaultExposures = 2
  97. const m_DestroyAll = 0
  98. const m_DestroyNotify = 17
  99. const m_DirectColor = 5
  100. const m_DisableAccess = 0
  101. const m_DisableScreenInterval = 0
  102. const m_DisableScreenSaver = 0
  103. const m_DontAllowExposures = 0
  104. const m_DontCareState = 0
  105. const m_DontPreferBlanking = 0
  106. const m_E2BIG = 7
  107. const m_EACCES = 13
  108. const m_EADDRINUSE = 98
  109. const m_EADDRNOTAVAIL = 99
  110. const m_EADV = 68
  111. const m_EAFNOSUPPORT = 97
  112. const m_EAGAIN = 11
  113. const m_EALREADY = 114
  114. const m_EBADE = 52
  115. const m_EBADF = 9
  116. const m_EBADFD = 77
  117. const m_EBADMSG = 74
  118. const m_EBADR = 53
  119. const m_EBADRQC = 56
  120. const m_EBADSLT = 57
  121. const m_EBFONT = 59
  122. const m_EBUSY = 16
  123. const m_ECANCELED = 125
  124. const m_ECHILD = 10
  125. const m_ECHRNG = 44
  126. const m_ECOMM = 70
  127. const m_ECONNABORTED = 103
  128. const m_ECONNREFUSED = 111
  129. const m_ECONNRESET = 104
  130. const m_EDEADLK = 35
  131. const m_EDEADLOCK = 58
  132. const m_EDESTADDRREQ = 89
  133. const m_EDOM = 33
  134. const m_EDOTDOT = 73
  135. const m_EDQUOT = 122
  136. const m_EEXIST = 17
  137. const m_EFAULT = 14
  138. const m_EFBIG = 27
  139. const m_EHOSTDOWN = 112
  140. const m_EHOSTUNREACH = 113
  141. const m_EHWPOISON = 133
  142. const m_EIDRM = 43
  143. const m_EILSEQ = 84
  144. const m_EINPROGRESS = 115
  145. const m_EINTR = 4
  146. const m_EINVAL = 22
  147. const m_EIO = 5
  148. const m_EISCONN = 106
  149. const m_EISDIR = 21
  150. const m_EISNAM = 120
  151. const m_EKEYEXPIRED = 127
  152. const m_EKEYREJECTED = 129
  153. const m_EKEYREVOKED = 128
  154. const m_EL2HLT = 51
  155. const m_EL2NSYNC = 45
  156. const m_EL3HLT = 46
  157. const m_EL3RST = 47
  158. const m_ELIBACC = 79
  159. const m_ELIBBAD = 80
  160. const m_ELIBEXEC = 83
  161. const m_ELIBMAX = 82
  162. const m_ELIBSCN = 81
  163. const m_ELNRNG = 48
  164. const m_ELOOP = 40
  165. const m_EMEDIUMTYPE = 124
  166. const m_EMFILE = 24
  167. const m_EMLINK = 31
  168. const m_EMSGSIZE = 90
  169. const m_EMULTIHOP = 72
  170. const m_ENAMETOOLONG = 36
  171. const m_ENAVAIL = 119
  172. const m_ENETDOWN = 100
  173. const m_ENETRESET = 102
  174. const m_ENETUNREACH = 101
  175. const m_ENFILE = 23
  176. const m_ENOANO = 55
  177. const m_ENOBUFS = 105
  178. const m_ENOCSI = 50
  179. const m_ENODATA = 61
  180. const m_ENODEV = 19
  181. const m_ENOENT = 2
  182. const m_ENOEXEC = 8
  183. const m_ENOKEY = 126
  184. const m_ENOLCK = 37
  185. const m_ENOLINK = 67
  186. const m_ENOMEDIUM = 123
  187. const m_ENOMEM = 12
  188. const m_ENOMSG = 42
  189. const m_ENONET = 64
  190. const m_ENOPKG = 65
  191. const m_ENOPROTOOPT = 92
  192. const m_ENOSPC = 28
  193. const m_ENOSR = 63
  194. const m_ENOSTR = 60
  195. const m_ENOSYS = 38
  196. const m_ENOTBLK = 15
  197. const m_ENOTCONN = 107
  198. const m_ENOTDIR = 20
  199. const m_ENOTEMPTY = 39
  200. const m_ENOTNAM = 118
  201. const m_ENOTRECOVERABLE = 131
  202. const m_ENOTSOCK = 88
  203. const m_ENOTSUP = "EOPNOTSUPP"
  204. const m_ENOTTY = 25
  205. const m_ENOTUNIQ = 76
  206. const m_ENXIO = 6
  207. const m_EOPNOTSUPP = 95
  208. const m_EOVERFLOW = 75
  209. const m_EOWNERDEAD = 130
  210. const m_EPERM = 1
  211. const m_EPFNOSUPPORT = 96
  212. const m_EPIPE = 32
  213. const m_EPROTO = 71
  214. const m_EPROTONOSUPPORT = 93
  215. const m_EPROTOTYPE = 91
  216. const m_ERANGE = 34
  217. const m_EREMCHG = 78
  218. const m_EREMOTE = 66
  219. const m_EREMOTEIO = 121
  220. const m_ERESTART = 85
  221. const m_ERFKILL = 132
  222. const m_EROFS = 30
  223. const m_ESHUTDOWN = 108
  224. const m_ESOCKTNOSUPPORT = 94
  225. const m_ESPIPE = 29
  226. const m_ESRCH = 3
  227. const m_ESRMNT = 69
  228. const m_ESTALE = 116
  229. const m_ESTRPIPE = 86
  230. const m_ETIME = 62
  231. const m_ETIMEDOUT = 110
  232. const m_ETOOMANYREFS = 109
  233. const m_ETXTBSY = 26
  234. const m_EUCLEAN = 117
  235. const m_EUNATCH = 49
  236. const m_EUSERS = 87
  237. const m_EWOULDBLOCK = "EAGAIN"
  238. const m_EXDEV = 18
  239. const m_EXFULL = 54
  240. const m_EXIT_FAILURE = 1
  241. const m_EXIT_SUCCESS = 0
  242. const m_EastGravity = 6
  243. const m_EnableAccess = 1
  244. const m_EnterNotify = 7
  245. const m_EvenOddRule = 0
  246. const m_Expose = 12
  247. const m_FARCSPERBATCH = 256
  248. const m_FD_SETSIZE = 1024
  249. const m_FRCTSPERBATCH = 256
  250. const m_FUNCPROTO = 15
  251. const m_False = 0
  252. const m_FamilyChaos = 2
  253. const m_FamilyDECnet = 1
  254. const m_FamilyInternet = 0
  255. const m_FamilyInternet6 = 6
  256. const m_FamilyServerInterpreted = 5
  257. const m_FillOpaqueStippled = 3
  258. const m_FillSolid = 0
  259. const m_FillStippled = 2
  260. const m_FillTiled = 1
  261. const m_FilterBest = "best"
  262. const m_FilterBilinear = "bilinear"
  263. const m_FilterConvolution = "convolution"
  264. const m_FilterFast = "fast"
  265. const m_FilterGood = "good"
  266. const m_FilterNearest = "nearest"
  267. const m_FirstExtensionError = 128
  268. const m_FocusIn = 9
  269. const m_FocusOut = 10
  270. const m_FontChange = 255
  271. const m_FontLeftToRight = 0
  272. const m_FontRightToLeft = 1
  273. const m_ForgetGravity = 0
  274. const m_GCLastBit = 22
  275. const m_GXand = 0x1
  276. const m_GXandInverted = 0x4
  277. const m_GXandReverse = 0x2
  278. const m_GXclear = 0x0
  279. const m_GXcopy = 0x3
  280. const m_GXcopyInverted = 0xc
  281. const m_GXequiv = 0x9
  282. const m_GXinvert = 0xa
  283. const m_GXnand = 0xe
  284. const m_GXnoop = 0x5
  285. const m_GXnor = 0x8
  286. const m_GXor = 0x7
  287. const m_GXorInverted = 0xd
  288. const m_GXorReverse = 0xb
  289. const m_GXset = 0xf
  290. const m_GXxor = 0x6
  291. const m_GenericEvent = 35
  292. const m_GrabFrozen = 4
  293. const m_GrabInvalidTime = 2
  294. const m_GrabModeAsync = 1
  295. const m_GrabModeSync = 0
  296. const m_GrabNotViewable = 3
  297. const m_GrabSuccess = 0
  298. const m_GraphicsExpose = 13
  299. const m_GravityNotify = 24
  300. const m_GrayScale = 1
  301. const m_HAVE_CONFIG_H = 1
  302. const m_HAVE_DLFCN_H = 1
  303. const m_HAVE_INTTYPES_H = 1
  304. const m_HAVE_MEMORY_H = 1
  305. const m_HAVE_STDINT_H = 1
  306. const m_HAVE_STDLIB_H = 1
  307. const m_HAVE_STRINGS_H = 1
  308. const m_HAVE_STRING_H = 1
  309. const m_HAVE_SYS_STAT_H = 1
  310. const m_HAVE_SYS_TYPES_H = 1
  311. const m_HAVE_UNISTD_H = 1
  312. const m_HeightValue = 0x0008
  313. const m_HostDelete = 1
  314. const m_HostInsert = 0
  315. const m_INT16_MAX = 0x7fff
  316. const m_INT32_MAX = 0x7fffffff
  317. const m_INT64_MAX = 0x7fffffffffffffff
  318. const m_INT8_MAX = 0x7f
  319. const m_INTMAX_MAX = "INT64_MAX"
  320. const m_INTMAX_MIN = "INT64_MIN"
  321. const m_INTPTR_MAX = "INT64_MAX"
  322. const m_INTPTR_MIN = "INT64_MIN"
  323. const m_INT_FAST16_MAX = "INT32_MAX"
  324. const m_INT_FAST16_MIN = "INT32_MIN"
  325. const m_INT_FAST32_MAX = "INT32_MAX"
  326. const m_INT_FAST32_MIN = "INT32_MIN"
  327. const m_INT_FAST64_MAX = "INT64_MAX"
  328. const m_INT_FAST64_MIN = "INT64_MIN"
  329. const m_INT_FAST8_MAX = "INT8_MAX"
  330. const m_INT_FAST8_MIN = "INT8_MIN"
  331. const m_INT_LEAST16_MAX = "INT16_MAX"
  332. const m_INT_LEAST16_MIN = "INT16_MIN"
  333. const m_INT_LEAST32_MAX = "INT32_MAX"
  334. const m_INT_LEAST32_MIN = "INT32_MIN"
  335. const m_INT_LEAST64_MAX = "INT64_MAX"
  336. const m_INT_LEAST64_MIN = "INT64_MIN"
  337. const m_INT_LEAST8_MAX = "INT8_MAX"
  338. const m_INT_LEAST8_MIN = "INT8_MIN"
  339. const m_IconicState = 3
  340. const m_InactiveState = 4
  341. const m_IncludeInferiors = 1
  342. const m_InputFocus = 1
  343. const m_InputOnly = 2
  344. const m_InputOutput = 1
  345. const m_IsUnmapped = 0
  346. const m_IsUnviewable = 1
  347. const m_IsViewable = 2
  348. const m_JoinBevel = 2
  349. const m_JoinMiter = 0
  350. const m_JoinRound = 1
  351. const m_KeyPress = 2
  352. const m_KeyRelease = 3
  353. const m_KeymapNotify = 11
  354. const m_LASTEvent = 36
  355. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  356. const m_LOCKED = 1
  357. const m_LSBFirst = 0
  358. const m_LT_OBJDIR = ".libs/"
  359. const m_LastExtensionError = 255
  360. const m_LeaveNotify = 8
  361. const m_LedModeOff = 0
  362. const m_LedModeOn = 1
  363. const m_LineDoubleDash = 2
  364. const m_LineOnOffDash = 1
  365. const m_LineSolid = 0
  366. const m_LockMapIndex = 1
  367. const m_LowerHighest = 1
  368. const m_MALLOC_0_RETURNS_NULL = 1
  369. const m_MSBFirst = 1
  370. const m_MapNotify = 19
  371. const m_MapRequest = 20
  372. const m_MappingBusy = 1
  373. const m_MappingFailed = 2
  374. const m_MappingKeyboard = 1
  375. const m_MappingModifier = 0
  376. const m_MappingNotify = 34
  377. const m_MappingPointer = 2
  378. const m_MappingSuccess = 0
  379. const m_Mod1MapIndex = 3
  380. const m_Mod2MapIndex = 4
  381. const m_Mod3MapIndex = 5
  382. const m_Mod4MapIndex = 6
  383. const m_Mod5MapIndex = 7
  384. const m_MotionNotify = 6
  385. const m_NDEBUG = 1
  386. const m_NLOCAL = 256
  387. const m_NeedFunctionPrototypes = 1
  388. const m_NeedNestedPrototypes = 1
  389. const m_NeedVarargsPrototypes = 1
  390. const m_NeedWidePrototypes = 0
  391. const m_NoEventMask = 0
  392. const m_NoExpose = 14
  393. const m_NoSymbol = 0
  394. const m_NoValue = 0x0000
  395. const m_Nonconvex = 1
  396. const m_None = 0
  397. const m_NormalState = 1
  398. const m_NorthEastGravity = 3
  399. const m_NorthGravity = 2
  400. const m_NorthWestGravity = 1
  401. const m_NotUseful = 0
  402. const m_NotifyAncestor = 0
  403. const m_NotifyDetailNone = 7
  404. const m_NotifyGrab = 1
  405. const m_NotifyHint = 1
  406. const m_NotifyInferior = 2
  407. const m_NotifyNonlinear = 3
  408. const m_NotifyNonlinearVirtual = 4
  409. const m_NotifyNormal = 0
  410. const m_NotifyPointer = 5
  411. const m_NotifyPointerRoot = 6
  412. const m_NotifyUngrab = 2
  413. const m_NotifyVirtual = 1
  414. const m_NotifyWhileGrabbed = 3
  415. const m_Opposite = 4
  416. const m_PACKAGE = "libXrender"
  417. const m_PACKAGE_BUGREPORT = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
  418. const m_PACKAGE_NAME = "libXrender"
  419. const m_PACKAGE_STRING = "libXrender 0.9.10"
  420. const m_PACKAGE_TARNAME = "libXrender"
  421. const m_PACKAGE_URL = ""
  422. const m_PACKAGE_VERSION = "0.9.10"
  423. const m_PACKAGE_VERSION_MAJOR = 0
  424. const m_PACKAGE_VERSION_MINOR = 9
  425. const m_PACKAGE_VERSION_PATCHLEVEL = 10
  426. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  427. const m_PTRDIFF_MAX = "INT64_MAX"
  428. const m_PTRDIFF_MIN = "INT64_MIN"
  429. const m_PTSPERBATCH = 1024
  430. const m_ParentRelative = 1
  431. const m_PictOpAdd = 12
  432. const m_PictOpAtop = 9
  433. const m_PictOpAtopReverse = 10
  434. const m_PictOpBlendMaximum = 0x3e
  435. const m_PictOpBlendMinimum = 0x30
  436. const m_PictOpClear = 0
  437. const m_PictOpColorBurn = 0x36
  438. const m_PictOpColorDodge = 0x35
  439. const m_PictOpConjointAtop = 0x29
  440. const m_PictOpConjointAtopReverse = 0x2a
  441. const m_PictOpConjointClear = 0x20
  442. const m_PictOpConjointDst = 0x22
  443. const m_PictOpConjointIn = 0x25
  444. const m_PictOpConjointInReverse = 0x26
  445. const m_PictOpConjointMaximum = 0x2b
  446. const m_PictOpConjointMinimum = 0x20
  447. const m_PictOpConjointOut = 0x27
  448. const m_PictOpConjointOutReverse = 0x28
  449. const m_PictOpConjointOver = 0x23
  450. const m_PictOpConjointOverReverse = 0x24
  451. const m_PictOpConjointSrc = 0x21
  452. const m_PictOpConjointXor = 0x2b
  453. const m_PictOpDarken = 0x33
  454. const m_PictOpDifference = 0x39
  455. const m_PictOpDisjointAtop = 0x19
  456. const m_PictOpDisjointAtopReverse = 0x1a
  457. const m_PictOpDisjointClear = 0x10
  458. const m_PictOpDisjointDst = 0x12
  459. const m_PictOpDisjointIn = 0x15
  460. const m_PictOpDisjointInReverse = 0x16
  461. const m_PictOpDisjointMaximum = 0x1b
  462. const m_PictOpDisjointMinimum = 0x10
  463. const m_PictOpDisjointOut = 0x17
  464. const m_PictOpDisjointOutReverse = 0x18
  465. const m_PictOpDisjointOver = 0x13
  466. const m_PictOpDisjointOverReverse = 0x14
  467. const m_PictOpDisjointSrc = 0x11
  468. const m_PictOpDisjointXor = 0x1b
  469. const m_PictOpDst = 2
  470. const m_PictOpExclusion = 0x3a
  471. const m_PictOpHSLColor = 0x3d
  472. const m_PictOpHSLHue = 0x3b
  473. const m_PictOpHSLLuminosity = 0x3e
  474. const m_PictOpHSLSaturation = 0x3c
  475. const m_PictOpHardLight = 0x37
  476. const m_PictOpIn = 5
  477. const m_PictOpInReverse = 6
  478. const m_PictOpLighten = 0x34
  479. const m_PictOpMaximum = 13
  480. const m_PictOpMinimum = 0
  481. const m_PictOpMultiply = 0x30
  482. const m_PictOpOut = 7
  483. const m_PictOpOutReverse = 8
  484. const m_PictOpOver = 3
  485. const m_PictOpOverReverse = 4
  486. const m_PictOpOverlay = 0x32
  487. const m_PictOpSaturate = 13
  488. const m_PictOpScreen = 0x31
  489. const m_PictOpSoftLight = 0x38
  490. const m_PictOpSrc = 1
  491. const m_PictOpXor = 11
  492. const m_PictStandardA1 = 4
  493. const m_PictStandardA4 = 3
  494. const m_PictStandardA8 = 2
  495. const m_PictStandardARGB32 = 0
  496. const m_PictStandardNUM = 5
  497. const m_PictStandardRGB24 = 1
  498. const m_PictTypeDirect = 1
  499. const m_PictTypeIndexed = 0
  500. const m_PlaceOnBottom = 1
  501. const m_PlaceOnTop = 0
  502. const m_PointerRoot = 1
  503. const m_PointerWindow = 0
  504. const m_PolyEdgeSharp = 0
  505. const m_PolyEdgeSmooth = 1
  506. const m_PolyModeImprecise = 1
  507. const m_PolyModePrecise = 0
  508. const m_PreferBlanking = 1
  509. const m_PropModeAppend = 2
  510. const m_PropModePrepend = 1
  511. const m_PropModeReplace = 0
  512. const m_PropertyDelete = 1
  513. const m_PropertyNewValue = 0
  514. const m_PropertyNotify = 28
  515. const m_PseudoColor = 3
  516. const m_QueuedAfterFlush = 2
  517. const m_QueuedAfterReading = 1
  518. const m_QueuedAlready = 0
  519. const m_RAND_MAX = 0x7fffffff
  520. const m_RENDER_MAJOR = 0
  521. const m_RENDER_MINOR = 11
  522. const m_RENDER_NAME = "RENDER"
  523. const m_RaiseLowest = 0
  524. const m_RectangleIn = 1
  525. const m_RectangleOut = 0
  526. const m_RectanglePart = 2
  527. const m_ReparentNotify = 21
  528. const m_RepeatNone = 0
  529. const m_RepeatNormal = 1
  530. const m_RepeatPad = 2
  531. const m_RepeatReflect = 3
  532. const m_ReplayKeyboard = 5
  533. const m_ReplayPointer = 2
  534. const m_ResizeRequest = 25
  535. const m_RetainPermanent = 1
  536. const m_RetainTemporary = 2
  537. const m_RevertToParent = 2
  538. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  539. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  540. const m_SIZE_MAX = "UINT64_MAX"
  541. const m_STDC_HEADERS = 1
  542. const m_ScreenSaverActive = 1
  543. const m_ScreenSaverReset = 0
  544. const m_SelectionClear = 29
  545. const m_SelectionNotify = 31
  546. const m_SelectionRequest = 30
  547. const m_SetModeDelete = 1
  548. const m_SetModeInsert = 0
  549. const m_ShiftMapIndex = 0
  550. const m_SouthEastGravity = 9
  551. const m_SouthGravity = 8
  552. const m_SouthWestGravity = 7
  553. const m_StaticColor = 2
  554. const m_StaticGravity = 10
  555. const m_StaticGray = 0
  556. const m_Status = "int"
  557. const m_StippleShape = 2
  558. const m_SubPixelHorizontalBGR = 2
  559. const m_SubPixelHorizontalRGB = 1
  560. const m_SubPixelNone = 5
  561. const m_SubPixelUnknown = 0
  562. const m_SubPixelVerticalBGR = 4
  563. const m_SubPixelVerticalRGB = 3
  564. const m_Success = 0
  565. const m_SyncBoth = 7
  566. const m_SyncKeyboard = 4
  567. const m_SyncPointer = 1
  568. const m_TileShape = 1
  569. const m_TopIf = 2
  570. const m_True = 1
  571. const m_TrueColor = 4
  572. const m_UINT16_MAX = 0xffff
  573. const m_UINT32_MAX = "0xffffffffu"
  574. const m_UINT64_MAX = "0xffffffffffffffffu"
  575. const m_UINT8_MAX = 0xff
  576. const m_UINTMAX_MAX = "UINT64_MAX"
  577. const m_UINTPTR_MAX = "UINT64_MAX"
  578. const m_UINT_FAST16_MAX = "UINT32_MAX"
  579. const m_UINT_FAST32_MAX = "UINT32_MAX"
  580. const m_UINT_FAST64_MAX = "UINT64_MAX"
  581. const m_UINT_FAST8_MAX = "UINT8_MAX"
  582. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  583. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  584. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  585. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  586. const m_UNLOCKED = 0
  587. const m_UnmapGravity = 0
  588. const m_UnmapNotify = 18
  589. const m_Unsorted = 0
  590. const m_VERSION = "0.9.10"
  591. const m_VisibilityFullyObscured = 2
  592. const m_VisibilityNotify = 15
  593. const m_VisibilityPartiallyObscured = 1
  594. const m_VisibilityUnobscured = 0
  595. const m_VisualAllMask = 0x1FF
  596. const m_VisualBitsPerRGBMask = 0x100
  597. const m_VisualBlueMaskMask = 0x40
  598. const m_VisualClassMask = 0x8
  599. const m_VisualColormapSizeMask = 0x80
  600. const m_VisualDepthMask = 0x4
  601. const m_VisualGreenMaskMask = 0x20
  602. const m_VisualIDMask = 0x1
  603. const m_VisualNoMask = 0x0
  604. const m_VisualRedMaskMask = 0x10
  605. const m_VisualScreenMask = 0x2
  606. const m_WINT_MAX = "UINT32_MAX"
  607. const m_WINT_MIN = 0
  608. const m_WLNSPERBATCH = 50
  609. const m_WNOHANG = 1
  610. const m_WRCTSPERBATCH = 10
  611. const m_WUNTRACED = 2
  612. const m_WestGravity = 4
  613. const m_WhenMapped = 1
  614. const m_WidthValue = 0x0004
  615. const m_WindingRule = 1
  616. const m_WithdrawnState = 0
  617. const m_XCNOENT = 2
  618. const m_XCNOMEM = 1
  619. const m_XCSUCCESS = 0
  620. const m_XIMHotKeyStateOFF = 0x0002
  621. const m_XIMHotKeyStateON = 0x0001
  622. const m_XIMInitialState = 1
  623. const m_XIMPreeditArea = 0x0001
  624. const m_XIMPreeditCallbacks = 0x0002
  625. const m_XIMPreeditEnable = 1
  626. const m_XIMPreeditNone = 0x0010
  627. const m_XIMPreeditNothing = 0x0008
  628. const m_XIMPreeditPosition = 0x0004
  629. const m_XIMPreeditUnKnown = 0
  630. const m_XIMReverse = 1
  631. const m_XIMStatusArea = 0x0100
  632. const m_XIMStatusCallbacks = 0x0200
  633. const m_XIMStatusNone = 0x0800
  634. const m_XIMStatusNothing = 0x0400
  635. const m_XIMStringConversionBottomEdge = 0x00000008
  636. const m_XIMStringConversionBuffer = 0x0001
  637. const m_XIMStringConversionChar = 0x0004
  638. const m_XIMStringConversionConcealed = 0x00000010
  639. const m_XIMStringConversionLeftEdge = 0x00000001
  640. const m_XIMStringConversionLine = 0x0002
  641. const m_XIMStringConversionRetrieval = 0x0002
  642. const m_XIMStringConversionRightEdge = 0x00000002
  643. const m_XIMStringConversionSubstitution = 0x0001
  644. const m_XIMStringConversionTopEdge = 0x00000004
  645. const m_XIMStringConversionWord = 0x0003
  646. const m_XIMStringConversionWrapped = 0x00000020
  647. const m_XK_0 = 0x0030
  648. const m_XK_1 = 0x0031
  649. const m_XK_2 = 0x0032
  650. const m_XK_3 = 0x0033
  651. const m_XK_4 = 0x0034
  652. const m_XK_5 = 0x0035
  653. const m_XK_6 = 0x0036
  654. const m_XK_7 = 0x0037
  655. const m_XK_8 = 0x0038
  656. const m_XK_9 = 0x0039
  657. const m_XK_A = 0x0041
  658. const m_XK_AE = 0x00c6
  659. const m_XK_Aacute = 0x00c1
  660. const m_XK_Abelowdot = 0x1001ea0
  661. const m_XK_Abreve = 0x01c3
  662. const m_XK_Abreveacute = 0x1001eae
  663. const m_XK_Abrevebelowdot = 0x1001eb6
  664. const m_XK_Abrevegrave = 0x1001eb0
  665. const m_XK_Abrevehook = 0x1001eb2
  666. const m_XK_Abrevetilde = 0x1001eb4
  667. const m_XK_AccessX_Enable = 0xfe70
  668. const m_XK_AccessX_Feedback_Enable = 0xfe71
  669. const m_XK_Acircumflex = 0x00c2
  670. const m_XK_Acircumflexacute = 0x1001ea4
  671. const m_XK_Acircumflexbelowdot = 0x1001eac
  672. const m_XK_Acircumflexgrave = 0x1001ea6
  673. const m_XK_Acircumflexhook = 0x1001ea8
  674. const m_XK_Acircumflextilde = 0x1001eaa
  675. const m_XK_Adiaeresis = 0x00c4
  676. const m_XK_Agrave = 0x00c0
  677. const m_XK_Ahook = 0x1001ea2
  678. const m_XK_Alt_L = 0xffe9
  679. const m_XK_Alt_R = 0xffea
  680. const m_XK_Amacron = 0x03c0
  681. const m_XK_Aogonek = 0x01a1
  682. const m_XK_Arabic_0 = 0x1000660
  683. const m_XK_Arabic_1 = 0x1000661
  684. const m_XK_Arabic_2 = 0x1000662
  685. const m_XK_Arabic_3 = 0x1000663
  686. const m_XK_Arabic_4 = 0x1000664
  687. const m_XK_Arabic_5 = 0x1000665
  688. const m_XK_Arabic_6 = 0x1000666
  689. const m_XK_Arabic_7 = 0x1000667
  690. const m_XK_Arabic_8 = 0x1000668
  691. const m_XK_Arabic_9 = 0x1000669
  692. const m_XK_Arabic_ain = 0x05d9
  693. const m_XK_Arabic_alef = 0x05c7
  694. const m_XK_Arabic_alefmaksura = 0x05e9
  695. const m_XK_Arabic_beh = 0x05c8
  696. const m_XK_Arabic_comma = 0x05ac
  697. const m_XK_Arabic_dad = 0x05d6
  698. const m_XK_Arabic_dal = 0x05cf
  699. const m_XK_Arabic_damma = 0x05ef
  700. const m_XK_Arabic_dammatan = 0x05ec
  701. const m_XK_Arabic_ddal = 0x1000688
  702. const m_XK_Arabic_farsi_yeh = 0x10006cc
  703. const m_XK_Arabic_fatha = 0x05ee
  704. const m_XK_Arabic_fathatan = 0x05eb
  705. const m_XK_Arabic_feh = 0x05e1
  706. const m_XK_Arabic_fullstop = 0x10006d4
  707. const m_XK_Arabic_gaf = 0x10006af
  708. const m_XK_Arabic_ghain = 0x05da
  709. const m_XK_Arabic_ha = 0x05e7
  710. const m_XK_Arabic_hah = 0x05cd
  711. const m_XK_Arabic_hamza = 0x05c1
  712. const m_XK_Arabic_hamza_above = 0x1000654
  713. const m_XK_Arabic_hamza_below = 0x1000655
  714. const m_XK_Arabic_hamzaonalef = 0x05c3
  715. const m_XK_Arabic_hamzaonwaw = 0x05c4
  716. const m_XK_Arabic_hamzaonyeh = 0x05c6
  717. const m_XK_Arabic_hamzaunderalef = 0x05c5
  718. const m_XK_Arabic_heh = 0x05e7
  719. const m_XK_Arabic_heh_doachashmee = 0x10006be
  720. const m_XK_Arabic_heh_goal = 0x10006c1
  721. const m_XK_Arabic_jeem = 0x05cc
  722. const m_XK_Arabic_jeh = 0x1000698
  723. const m_XK_Arabic_kaf = 0x05e3
  724. const m_XK_Arabic_kasra = 0x05f0
  725. const m_XK_Arabic_kasratan = 0x05ed
  726. const m_XK_Arabic_keheh = 0x10006a9
  727. const m_XK_Arabic_khah = 0x05ce
  728. const m_XK_Arabic_lam = 0x05e4
  729. const m_XK_Arabic_madda_above = 0x1000653
  730. const m_XK_Arabic_maddaonalef = 0x05c2
  731. const m_XK_Arabic_meem = 0x05e5
  732. const m_XK_Arabic_noon = 0x05e6
  733. const m_XK_Arabic_noon_ghunna = 0x10006ba
  734. const m_XK_Arabic_peh = 0x100067e
  735. const m_XK_Arabic_percent = 0x100066a
  736. const m_XK_Arabic_qaf = 0x05e2
  737. const m_XK_Arabic_question_mark = 0x05bf
  738. const m_XK_Arabic_ra = 0x05d1
  739. const m_XK_Arabic_rreh = 0x1000691
  740. const m_XK_Arabic_sad = 0x05d5
  741. const m_XK_Arabic_seen = 0x05d3
  742. const m_XK_Arabic_semicolon = 0x05bb
  743. const m_XK_Arabic_shadda = 0x05f1
  744. const m_XK_Arabic_sheen = 0x05d4
  745. const m_XK_Arabic_sukun = 0x05f2
  746. const m_XK_Arabic_superscript_alef = 0x1000670
  747. const m_XK_Arabic_switch = 0xff7e
  748. const m_XK_Arabic_tah = 0x05d7
  749. const m_XK_Arabic_tatweel = 0x05e0
  750. const m_XK_Arabic_tcheh = 0x1000686
  751. const m_XK_Arabic_teh = 0x05ca
  752. const m_XK_Arabic_tehmarbuta = 0x05c9
  753. const m_XK_Arabic_thal = 0x05d0
  754. const m_XK_Arabic_theh = 0x05cb
  755. const m_XK_Arabic_tteh = 0x1000679
  756. const m_XK_Arabic_veh = 0x10006a4
  757. const m_XK_Arabic_waw = 0x05e8
  758. const m_XK_Arabic_yeh = 0x05ea
  759. const m_XK_Arabic_yeh_baree = 0x10006d2
  760. const m_XK_Arabic_zah = 0x05d8
  761. const m_XK_Arabic_zain = 0x05d2
  762. const m_XK_Aring = 0x00c5
  763. const m_XK_Armenian_AT = 0x1000538
  764. const m_XK_Armenian_AYB = 0x1000531
  765. const m_XK_Armenian_BEN = 0x1000532
  766. const m_XK_Armenian_CHA = 0x1000549
  767. const m_XK_Armenian_DA = 0x1000534
  768. const m_XK_Armenian_DZA = 0x1000541
  769. const m_XK_Armenian_E = 0x1000537
  770. const m_XK_Armenian_FE = 0x1000556
  771. const m_XK_Armenian_GHAT = 0x1000542
  772. const m_XK_Armenian_GIM = 0x1000533
  773. const m_XK_Armenian_HI = 0x1000545
  774. const m_XK_Armenian_HO = 0x1000540
  775. const m_XK_Armenian_INI = 0x100053b
  776. const m_XK_Armenian_JE = 0x100054b
  777. const m_XK_Armenian_KE = 0x1000554
  778. const m_XK_Armenian_KEN = 0x100053f
  779. const m_XK_Armenian_KHE = 0x100053d
  780. const m_XK_Armenian_LYUN = 0x100053c
  781. const m_XK_Armenian_MEN = 0x1000544
  782. const m_XK_Armenian_NU = 0x1000546
  783. const m_XK_Armenian_O = 0x1000555
  784. const m_XK_Armenian_PE = 0x100054a
  785. const m_XK_Armenian_PYUR = 0x1000553
  786. const m_XK_Armenian_RA = 0x100054c
  787. const m_XK_Armenian_RE = 0x1000550
  788. const m_XK_Armenian_SE = 0x100054d
  789. const m_XK_Armenian_SHA = 0x1000547
  790. const m_XK_Armenian_TCHE = 0x1000543
  791. const m_XK_Armenian_TO = 0x1000539
  792. const m_XK_Armenian_TSA = 0x100053e
  793. const m_XK_Armenian_TSO = 0x1000551
  794. const m_XK_Armenian_TYUN = 0x100054f
  795. const m_XK_Armenian_VEV = 0x100054e
  796. const m_XK_Armenian_VO = 0x1000548
  797. const m_XK_Armenian_VYUN = 0x1000552
  798. const m_XK_Armenian_YECH = 0x1000535
  799. const m_XK_Armenian_ZA = 0x1000536
  800. const m_XK_Armenian_ZHE = 0x100053a
  801. const m_XK_Armenian_accent = 0x100055b
  802. const m_XK_Armenian_amanak = 0x100055c
  803. const m_XK_Armenian_apostrophe = 0x100055a
  804. const m_XK_Armenian_at = 0x1000568
  805. const m_XK_Armenian_ayb = 0x1000561
  806. const m_XK_Armenian_ben = 0x1000562
  807. const m_XK_Armenian_but = 0x100055d
  808. const m_XK_Armenian_cha = 0x1000579
  809. const m_XK_Armenian_da = 0x1000564
  810. const m_XK_Armenian_dza = 0x1000571
  811. const m_XK_Armenian_e = 0x1000567
  812. const m_XK_Armenian_exclam = 0x100055c
  813. const m_XK_Armenian_fe = 0x1000586
  814. const m_XK_Armenian_full_stop = 0x1000589
  815. const m_XK_Armenian_ghat = 0x1000572
  816. const m_XK_Armenian_gim = 0x1000563
  817. const m_XK_Armenian_hi = 0x1000575
  818. const m_XK_Armenian_ho = 0x1000570
  819. const m_XK_Armenian_hyphen = 0x100058a
  820. const m_XK_Armenian_ini = 0x100056b
  821. const m_XK_Armenian_je = 0x100057b
  822. const m_XK_Armenian_ke = 0x1000584
  823. const m_XK_Armenian_ken = 0x100056f
  824. const m_XK_Armenian_khe = 0x100056d
  825. const m_XK_Armenian_ligature_ew = 0x1000587
  826. const m_XK_Armenian_lyun = 0x100056c
  827. const m_XK_Armenian_men = 0x1000574
  828. const m_XK_Armenian_nu = 0x1000576
  829. const m_XK_Armenian_o = 0x1000585
  830. const m_XK_Armenian_paruyk = 0x100055e
  831. const m_XK_Armenian_pe = 0x100057a
  832. const m_XK_Armenian_pyur = 0x1000583
  833. const m_XK_Armenian_question = 0x100055e
  834. const m_XK_Armenian_ra = 0x100057c
  835. const m_XK_Armenian_re = 0x1000580
  836. const m_XK_Armenian_se = 0x100057d
  837. const m_XK_Armenian_separation_mark = 0x100055d
  838. const m_XK_Armenian_sha = 0x1000577
  839. const m_XK_Armenian_shesht = 0x100055b
  840. const m_XK_Armenian_tche = 0x1000573
  841. const m_XK_Armenian_to = 0x1000569
  842. const m_XK_Armenian_tsa = 0x100056e
  843. const m_XK_Armenian_tso = 0x1000581
  844. const m_XK_Armenian_tyun = 0x100057f
  845. const m_XK_Armenian_verjaket = 0x1000589
  846. const m_XK_Armenian_vev = 0x100057e
  847. const m_XK_Armenian_vo = 0x1000578
  848. const m_XK_Armenian_vyun = 0x1000582
  849. const m_XK_Armenian_yech = 0x1000565
  850. const m_XK_Armenian_yentamna = 0x100058a
  851. const m_XK_Armenian_za = 0x1000566
  852. const m_XK_Armenian_zhe = 0x100056a
  853. const m_XK_Atilde = 0x00c3
  854. const m_XK_AudibleBell_Enable = 0xfe7a
  855. const m_XK_B = 0x0042
  856. const m_XK_Babovedot = 0x1001e02
  857. const m_XK_BackSpace = 0xff08
  858. const m_XK_Begin = 0xff58
  859. const m_XK_BounceKeys_Enable = 0xfe74
  860. const m_XK_Break = 0xff6b
  861. const m_XK_Byelorussian_SHORTU = 0x06be
  862. const m_XK_Byelorussian_shortu = 0x06ae
  863. const m_XK_C = 0x0043
  864. const m_XK_CH = 0xfea2
  865. const m_XK_C_H = 0xfea5
  866. const m_XK_C_h = 0xfea4
  867. const m_XK_Cabovedot = 0x02c5
  868. const m_XK_Cacute = 0x01c6
  869. const m_XK_Cancel = 0xff69
  870. const m_XK_Caps_Lock = 0xffe5
  871. const m_XK_Ccaron = 0x01c8
  872. const m_XK_Ccedilla = 0x00c7
  873. const m_XK_Ccircumflex = 0x02c6
  874. const m_XK_Ch = 0xfea1
  875. const m_XK_Clear = 0xff0b
  876. const m_XK_Codeinput = 0xff37
  877. const m_XK_ColonSign = 0x10020a1
  878. const m_XK_Control_L = 0xffe3
  879. const m_XK_Control_R = 0xffe4
  880. const m_XK_CruzeiroSign = 0x10020a2
  881. const m_XK_Cyrillic_A = 0x06e1
  882. const m_XK_Cyrillic_BE = 0x06e2
  883. const m_XK_Cyrillic_CHE = 0x06fe
  884. const m_XK_Cyrillic_CHE_descender = 0x10004b6
  885. const m_XK_Cyrillic_CHE_vertstroke = 0x10004b8
  886. const m_XK_Cyrillic_DE = 0x06e4
  887. const m_XK_Cyrillic_DZHE = 0x06bf
  888. const m_XK_Cyrillic_E = 0x06fc
  889. const m_XK_Cyrillic_EF = 0x06e6
  890. const m_XK_Cyrillic_EL = 0x06ec
  891. const m_XK_Cyrillic_EM = 0x06ed
  892. const m_XK_Cyrillic_EN = 0x06ee
  893. const m_XK_Cyrillic_EN_descender = 0x10004a2
  894. const m_XK_Cyrillic_ER = 0x06f2
  895. const m_XK_Cyrillic_ES = 0x06f3
  896. const m_XK_Cyrillic_GHE = 0x06e7
  897. const m_XK_Cyrillic_GHE_bar = 0x1000492
  898. const m_XK_Cyrillic_HA = 0x06e8
  899. const m_XK_Cyrillic_HARDSIGN = 0x06ff
  900. const m_XK_Cyrillic_HA_descender = 0x10004b2
  901. const m_XK_Cyrillic_I = 0x06e9
  902. const m_XK_Cyrillic_IE = 0x06e5
  903. const m_XK_Cyrillic_IO = 0x06b3
  904. const m_XK_Cyrillic_I_macron = 0x10004e2
  905. const m_XK_Cyrillic_JE = 0x06b8
  906. const m_XK_Cyrillic_KA = 0x06eb
  907. const m_XK_Cyrillic_KA_descender = 0x100049a
  908. const m_XK_Cyrillic_KA_vertstroke = 0x100049c
  909. const m_XK_Cyrillic_LJE = 0x06b9
  910. const m_XK_Cyrillic_NJE = 0x06ba
  911. const m_XK_Cyrillic_O = 0x06ef
  912. const m_XK_Cyrillic_O_bar = 0x10004e8
  913. const m_XK_Cyrillic_PE = 0x06f0
  914. const m_XK_Cyrillic_SCHWA = 0x10004d8
  915. const m_XK_Cyrillic_SHA = 0x06fb
  916. const m_XK_Cyrillic_SHCHA = 0x06fd
  917. const m_XK_Cyrillic_SHHA = 0x10004ba
  918. const m_XK_Cyrillic_SHORTI = 0x06ea
  919. const m_XK_Cyrillic_SOFTSIGN = 0x06f8
  920. const m_XK_Cyrillic_TE = 0x06f4
  921. const m_XK_Cyrillic_TSE = 0x06e3
  922. const m_XK_Cyrillic_U = 0x06f5
  923. const m_XK_Cyrillic_U_macron = 0x10004ee
  924. const m_XK_Cyrillic_U_straight = 0x10004ae
  925. const m_XK_Cyrillic_U_straight_bar = 0x10004b0
  926. const m_XK_Cyrillic_VE = 0x06f7
  927. const m_XK_Cyrillic_YA = 0x06f1
  928. const m_XK_Cyrillic_YERU = 0x06f9
  929. const m_XK_Cyrillic_YU = 0x06e0
  930. const m_XK_Cyrillic_ZE = 0x06fa
  931. const m_XK_Cyrillic_ZHE = 0x06f6
  932. const m_XK_Cyrillic_ZHE_descender = 0x1000496
  933. const m_XK_Cyrillic_a = 0x06c1
  934. const m_XK_Cyrillic_be = 0x06c2
  935. const m_XK_Cyrillic_che = 0x06de
  936. const m_XK_Cyrillic_che_descender = 0x10004b7
  937. const m_XK_Cyrillic_che_vertstroke = 0x10004b9
  938. const m_XK_Cyrillic_de = 0x06c4
  939. const m_XK_Cyrillic_dzhe = 0x06af
  940. const m_XK_Cyrillic_e = 0x06dc
  941. const m_XK_Cyrillic_ef = 0x06c6
  942. const m_XK_Cyrillic_el = 0x06cc
  943. const m_XK_Cyrillic_em = 0x06cd
  944. const m_XK_Cyrillic_en = 0x06ce
  945. const m_XK_Cyrillic_en_descender = 0x10004a3
  946. const m_XK_Cyrillic_er = 0x06d2
  947. const m_XK_Cyrillic_es = 0x06d3
  948. const m_XK_Cyrillic_ghe = 0x06c7
  949. const m_XK_Cyrillic_ghe_bar = 0x1000493
  950. const m_XK_Cyrillic_ha = 0x06c8
  951. const m_XK_Cyrillic_ha_descender = 0x10004b3
  952. const m_XK_Cyrillic_hardsign = 0x06df
  953. const m_XK_Cyrillic_i = 0x06c9
  954. const m_XK_Cyrillic_i_macron = 0x10004e3
  955. const m_XK_Cyrillic_ie = 0x06c5
  956. const m_XK_Cyrillic_io = 0x06a3
  957. const m_XK_Cyrillic_je = 0x06a8
  958. const m_XK_Cyrillic_ka = 0x06cb
  959. const m_XK_Cyrillic_ka_descender = 0x100049b
  960. const m_XK_Cyrillic_ka_vertstroke = 0x100049d
  961. const m_XK_Cyrillic_lje = 0x06a9
  962. const m_XK_Cyrillic_nje = 0x06aa
  963. const m_XK_Cyrillic_o = 0x06cf
  964. const m_XK_Cyrillic_o_bar = 0x10004e9
  965. const m_XK_Cyrillic_pe = 0x06d0
  966. const m_XK_Cyrillic_schwa = 0x10004d9
  967. const m_XK_Cyrillic_sha = 0x06db
  968. const m_XK_Cyrillic_shcha = 0x06dd
  969. const m_XK_Cyrillic_shha = 0x10004bb
  970. const m_XK_Cyrillic_shorti = 0x06ca
  971. const m_XK_Cyrillic_softsign = 0x06d8
  972. const m_XK_Cyrillic_te = 0x06d4
  973. const m_XK_Cyrillic_tse = 0x06c3
  974. const m_XK_Cyrillic_u = 0x06d5
  975. const m_XK_Cyrillic_u_macron = 0x10004ef
  976. const m_XK_Cyrillic_u_straight = 0x10004af
  977. const m_XK_Cyrillic_u_straight_bar = 0x10004b1
  978. const m_XK_Cyrillic_ve = 0x06d7
  979. const m_XK_Cyrillic_ya = 0x06d1
  980. const m_XK_Cyrillic_yeru = 0x06d9
  981. const m_XK_Cyrillic_yu = 0x06c0
  982. const m_XK_Cyrillic_ze = 0x06da
  983. const m_XK_Cyrillic_zhe = 0x06d6
  984. const m_XK_Cyrillic_zhe_descender = 0x1000497
  985. const m_XK_D = 0x0044
  986. const m_XK_Dabovedot = 0x1001e0a
  987. const m_XK_Dcaron = 0x01cf
  988. const m_XK_Delete = 0xffff
  989. const m_XK_DongSign = 0x10020ab
  990. const m_XK_Down = 0xff54
  991. const m_XK_Dstroke = 0x01d0
  992. const m_XK_E = 0x0045
  993. const m_XK_ENG = 0x03bd
  994. const m_XK_ETH = 0x00d0
  995. const m_XK_EZH = 0x10001b7
  996. const m_XK_Eabovedot = 0x03cc
  997. const m_XK_Eacute = 0x00c9
  998. const m_XK_Ebelowdot = 0x1001eb8
  999. const m_XK_Ecaron = 0x01cc
  1000. const m_XK_Ecircumflex = 0x00ca
  1001. const m_XK_Ecircumflexacute = 0x1001ebe
  1002. const m_XK_Ecircumflexbelowdot = 0x1001ec6
  1003. const m_XK_Ecircumflexgrave = 0x1001ec0
  1004. const m_XK_Ecircumflexhook = 0x1001ec2
  1005. const m_XK_Ecircumflextilde = 0x1001ec4
  1006. const m_XK_EcuSign = 0x10020a0
  1007. const m_XK_Ediaeresis = 0x00cb
  1008. const m_XK_Egrave = 0x00c8
  1009. const m_XK_Ehook = 0x1001eba
  1010. const m_XK_Eisu_Shift = 0xff2f
  1011. const m_XK_Eisu_toggle = 0xff30
  1012. const m_XK_Emacron = 0x03aa
  1013. const m_XK_End = 0xff57
  1014. const m_XK_Eogonek = 0x01ca
  1015. const m_XK_Escape = 0xff1b
  1016. const m_XK_Eth = 0x00d0
  1017. const m_XK_Etilde = 0x1001ebc
  1018. const m_XK_EuroSign = 0x20ac
  1019. const m_XK_Execute = 0xff62
  1020. const m_XK_F = 0x0046
  1021. const m_XK_F1 = 0xffbe
  1022. const m_XK_F10 = 0xffc7
  1023. const m_XK_F11 = 0xffc8
  1024. const m_XK_F12 = 0xffc9
  1025. const m_XK_F13 = 0xffca
  1026. const m_XK_F14 = 0xffcb
  1027. const m_XK_F15 = 0xffcc
  1028. const m_XK_F16 = 0xffcd
  1029. const m_XK_F17 = 0xffce
  1030. const m_XK_F18 = 0xffcf
  1031. const m_XK_F19 = 0xffd0
  1032. const m_XK_F2 = 0xffbf
  1033. const m_XK_F20 = 0xffd1
  1034. const m_XK_F21 = 0xffd2
  1035. const m_XK_F22 = 0xffd3
  1036. const m_XK_F23 = 0xffd4
  1037. const m_XK_F24 = 0xffd5
  1038. const m_XK_F25 = 0xffd6
  1039. const m_XK_F26 = 0xffd7
  1040. const m_XK_F27 = 0xffd8
  1041. const m_XK_F28 = 0xffd9
  1042. const m_XK_F29 = 0xffda
  1043. const m_XK_F3 = 0xffc0
  1044. const m_XK_F30 = 0xffdb
  1045. const m_XK_F31 = 0xffdc
  1046. const m_XK_F32 = 0xffdd
  1047. const m_XK_F33 = 0xffde
  1048. const m_XK_F34 = 0xffdf
  1049. const m_XK_F35 = 0xffe0
  1050. const m_XK_F4 = 0xffc1
  1051. const m_XK_F5 = 0xffc2
  1052. const m_XK_F6 = 0xffc3
  1053. const m_XK_F7 = 0xffc4
  1054. const m_XK_F8 = 0xffc5
  1055. const m_XK_F9 = 0xffc6
  1056. const m_XK_FFrancSign = 0x10020a3
  1057. const m_XK_Fabovedot = 0x1001e1e
  1058. const m_XK_Farsi_0 = 0x10006f0
  1059. const m_XK_Farsi_1 = 0x10006f1
  1060. const m_XK_Farsi_2 = 0x10006f2
  1061. const m_XK_Farsi_3 = 0x10006f3
  1062. const m_XK_Farsi_4 = 0x10006f4
  1063. const m_XK_Farsi_5 = 0x10006f5
  1064. const m_XK_Farsi_6 = 0x10006f6
  1065. const m_XK_Farsi_7 = 0x10006f7
  1066. const m_XK_Farsi_8 = 0x10006f8
  1067. const m_XK_Farsi_9 = 0x10006f9
  1068. const m_XK_Farsi_yeh = 0x10006cc
  1069. const m_XK_Find = 0xff68
  1070. const m_XK_First_Virtual_Screen = 0xfed0
  1071. const m_XK_G = 0x0047
  1072. const m_XK_Gabovedot = 0x02d5
  1073. const m_XK_Gbreve = 0x02ab
  1074. const m_XK_Gcaron = 0x10001e6
  1075. const m_XK_Gcedilla = 0x03ab
  1076. const m_XK_Gcircumflex = 0x02d8
  1077. const m_XK_Georgian_an = 0x10010d0
  1078. const m_XK_Georgian_ban = 0x10010d1
  1079. const m_XK_Georgian_can = 0x10010ea
  1080. const m_XK_Georgian_char = 0x10010ed
  1081. const m_XK_Georgian_chin = 0x10010e9
  1082. const m_XK_Georgian_cil = 0x10010ec
  1083. const m_XK_Georgian_don = 0x10010d3
  1084. const m_XK_Georgian_en = 0x10010d4
  1085. const m_XK_Georgian_fi = 0x10010f6
  1086. const m_XK_Georgian_gan = 0x10010d2
  1087. const m_XK_Georgian_ghan = 0x10010e6
  1088. const m_XK_Georgian_hae = 0x10010f0
  1089. const m_XK_Georgian_har = 0x10010f4
  1090. const m_XK_Georgian_he = 0x10010f1
  1091. const m_XK_Georgian_hie = 0x10010f2
  1092. const m_XK_Georgian_hoe = 0x10010f5
  1093. const m_XK_Georgian_in = 0x10010d8
  1094. const m_XK_Georgian_jhan = 0x10010ef
  1095. const m_XK_Georgian_jil = 0x10010eb
  1096. const m_XK_Georgian_kan = 0x10010d9
  1097. const m_XK_Georgian_khar = 0x10010e5
  1098. const m_XK_Georgian_las = 0x10010da
  1099. const m_XK_Georgian_man = 0x10010db
  1100. const m_XK_Georgian_nar = 0x10010dc
  1101. const m_XK_Georgian_on = 0x10010dd
  1102. const m_XK_Georgian_par = 0x10010de
  1103. const m_XK_Georgian_phar = 0x10010e4
  1104. const m_XK_Georgian_qar = 0x10010e7
  1105. const m_XK_Georgian_rae = 0x10010e0
  1106. const m_XK_Georgian_san = 0x10010e1
  1107. const m_XK_Georgian_shin = 0x10010e8
  1108. const m_XK_Georgian_tan = 0x10010d7
  1109. const m_XK_Georgian_tar = 0x10010e2
  1110. const m_XK_Georgian_un = 0x10010e3
  1111. const m_XK_Georgian_vin = 0x10010d5
  1112. const m_XK_Georgian_we = 0x10010f3
  1113. const m_XK_Georgian_xan = 0x10010ee
  1114. const m_XK_Georgian_zen = 0x10010d6
  1115. const m_XK_Georgian_zhar = 0x10010df
  1116. const m_XK_Greek_ALPHA = 0x07c1
  1117. const m_XK_Greek_ALPHAaccent = 0x07a1
  1118. const m_XK_Greek_BETA = 0x07c2
  1119. const m_XK_Greek_CHI = 0x07d7
  1120. const m_XK_Greek_DELTA = 0x07c4
  1121. const m_XK_Greek_EPSILON = 0x07c5
  1122. const m_XK_Greek_EPSILONaccent = 0x07a2
  1123. const m_XK_Greek_ETA = 0x07c7
  1124. const m_XK_Greek_ETAaccent = 0x07a3
  1125. const m_XK_Greek_GAMMA = 0x07c3
  1126. const m_XK_Greek_IOTA = 0x07c9
  1127. const m_XK_Greek_IOTAaccent = 0x07a4
  1128. const m_XK_Greek_IOTAdiaeresis = 0x07a5
  1129. const m_XK_Greek_IOTAdieresis = 0x07a5
  1130. const m_XK_Greek_KAPPA = 0x07ca
  1131. const m_XK_Greek_LAMBDA = 0x07cb
  1132. const m_XK_Greek_LAMDA = 0x07cb
  1133. const m_XK_Greek_MU = 0x07cc
  1134. const m_XK_Greek_NU = 0x07cd
  1135. const m_XK_Greek_OMEGA = 0x07d9
  1136. const m_XK_Greek_OMEGAaccent = 0x07ab
  1137. const m_XK_Greek_OMICRON = 0x07cf
  1138. const m_XK_Greek_OMICRONaccent = 0x07a7
  1139. const m_XK_Greek_PHI = 0x07d6
  1140. const m_XK_Greek_PI = 0x07d0
  1141. const m_XK_Greek_PSI = 0x07d8
  1142. const m_XK_Greek_RHO = 0x07d1
  1143. const m_XK_Greek_SIGMA = 0x07d2
  1144. const m_XK_Greek_TAU = 0x07d4
  1145. const m_XK_Greek_THETA = 0x07c8
  1146. const m_XK_Greek_UPSILON = 0x07d5
  1147. const m_XK_Greek_UPSILONaccent = 0x07a8
  1148. const m_XK_Greek_UPSILONdieresis = 0x07a9
  1149. const m_XK_Greek_XI = 0x07ce
  1150. const m_XK_Greek_ZETA = 0x07c6
  1151. const m_XK_Greek_accentdieresis = 0x07ae
  1152. const m_XK_Greek_alpha = 0x07e1
  1153. const m_XK_Greek_alphaaccent = 0x07b1
  1154. const m_XK_Greek_beta = 0x07e2
  1155. const m_XK_Greek_chi = 0x07f7
  1156. const m_XK_Greek_delta = 0x07e4
  1157. const m_XK_Greek_epsilon = 0x07e5
  1158. const m_XK_Greek_epsilonaccent = 0x07b2
  1159. const m_XK_Greek_eta = 0x07e7
  1160. const m_XK_Greek_etaaccent = 0x07b3
  1161. const m_XK_Greek_finalsmallsigma = 0x07f3
  1162. const m_XK_Greek_gamma = 0x07e3
  1163. const m_XK_Greek_horizbar = 0x07af
  1164. const m_XK_Greek_iota = 0x07e9
  1165. const m_XK_Greek_iotaaccent = 0x07b4
  1166. const m_XK_Greek_iotaaccentdieresis = 0x07b6
  1167. const m_XK_Greek_iotadieresis = 0x07b5
  1168. const m_XK_Greek_kappa = 0x07ea
  1169. const m_XK_Greek_lambda = 0x07eb
  1170. const m_XK_Greek_lamda = 0x07eb
  1171. const m_XK_Greek_mu = 0x07ec
  1172. const m_XK_Greek_nu = 0x07ed
  1173. const m_XK_Greek_omega = 0x07f9
  1174. const m_XK_Greek_omegaaccent = 0x07bb
  1175. const m_XK_Greek_omicron = 0x07ef
  1176. const m_XK_Greek_omicronaccent = 0x07b7
  1177. const m_XK_Greek_phi = 0x07f6
  1178. const m_XK_Greek_pi = 0x07f0
  1179. const m_XK_Greek_psi = 0x07f8
  1180. const m_XK_Greek_rho = 0x07f1
  1181. const m_XK_Greek_sigma = 0x07f2
  1182. const m_XK_Greek_switch = 0xff7e
  1183. const m_XK_Greek_tau = 0x07f4
  1184. const m_XK_Greek_theta = 0x07e8
  1185. const m_XK_Greek_upsilon = 0x07f5
  1186. const m_XK_Greek_upsilonaccent = 0x07b8
  1187. const m_XK_Greek_upsilonaccentdieresis = 0x07ba
  1188. const m_XK_Greek_upsilondieresis = 0x07b9
  1189. const m_XK_Greek_xi = 0x07ee
  1190. const m_XK_Greek_zeta = 0x07e6
  1191. const m_XK_H = 0x0048
  1192. const m_XK_Hangul = 0xff31
  1193. const m_XK_Hangul_A = 0x0ebf
  1194. const m_XK_Hangul_AE = 0x0ec0
  1195. const m_XK_Hangul_AraeA = 0x0ef6
  1196. const m_XK_Hangul_AraeAE = 0x0ef7
  1197. const m_XK_Hangul_Banja = 0xff39
  1198. const m_XK_Hangul_Cieuc = 0x0eba
  1199. const m_XK_Hangul_Codeinput = 0xff37
  1200. const m_XK_Hangul_Dikeud = 0x0ea7
  1201. const m_XK_Hangul_E = 0x0ec4
  1202. const m_XK_Hangul_EO = 0x0ec3
  1203. const m_XK_Hangul_EU = 0x0ed1
  1204. const m_XK_Hangul_End = 0xff33
  1205. const m_XK_Hangul_Hanja = 0xff34
  1206. const m_XK_Hangul_Hieuh = 0x0ebe
  1207. const m_XK_Hangul_I = 0x0ed3
  1208. const m_XK_Hangul_Ieung = 0x0eb7
  1209. const m_XK_Hangul_J_Cieuc = 0x0eea
  1210. const m_XK_Hangul_J_Dikeud = 0x0eda
  1211. const m_XK_Hangul_J_Hieuh = 0x0eee
  1212. const m_XK_Hangul_J_Ieung = 0x0ee8
  1213. const m_XK_Hangul_J_Jieuj = 0x0ee9
  1214. const m_XK_Hangul_J_Khieuq = 0x0eeb
  1215. const m_XK_Hangul_J_Kiyeog = 0x0ed4
  1216. const m_XK_Hangul_J_KiyeogSios = 0x0ed6
  1217. const m_XK_Hangul_J_KkogjiDalrinIeung = 0x0ef9
  1218. const m_XK_Hangul_J_Mieum = 0x0ee3
  1219. const m_XK_Hangul_J_Nieun = 0x0ed7
  1220. const m_XK_Hangul_J_NieunHieuh = 0x0ed9
  1221. const m_XK_Hangul_J_NieunJieuj = 0x0ed8
  1222. const m_XK_Hangul_J_PanSios = 0x0ef8
  1223. const m_XK_Hangul_J_Phieuf = 0x0eed
  1224. const m_XK_Hangul_J_Pieub = 0x0ee4
  1225. const m_XK_Hangul_J_PieubSios = 0x0ee5
  1226. const m_XK_Hangul_J_Rieul = 0x0edb
  1227. const m_XK_Hangul_J_RieulHieuh = 0x0ee2
  1228. const m_XK_Hangul_J_RieulKiyeog = 0x0edc
  1229. const m_XK_Hangul_J_RieulMieum = 0x0edd
  1230. const m_XK_Hangul_J_RieulPhieuf = 0x0ee1
  1231. const m_XK_Hangul_J_RieulPieub = 0x0ede
  1232. const m_XK_Hangul_J_RieulSios = 0x0edf
  1233. const m_XK_Hangul_J_RieulTieut = 0x0ee0
  1234. const m_XK_Hangul_J_Sios = 0x0ee6
  1235. const m_XK_Hangul_J_SsangKiyeog = 0x0ed5
  1236. const m_XK_Hangul_J_SsangSios = 0x0ee7
  1237. const m_XK_Hangul_J_Tieut = 0x0eec
  1238. const m_XK_Hangul_J_YeorinHieuh = 0x0efa
  1239. const m_XK_Hangul_Jamo = 0xff35
  1240. const m_XK_Hangul_Jeonja = 0xff38
  1241. const m_XK_Hangul_Jieuj = 0x0eb8
  1242. const m_XK_Hangul_Khieuq = 0x0ebb
  1243. const m_XK_Hangul_Kiyeog = 0x0ea1
  1244. const m_XK_Hangul_KiyeogSios = 0x0ea3
  1245. const m_XK_Hangul_KkogjiDalrinIeung = 0x0ef3
  1246. const m_XK_Hangul_Mieum = 0x0eb1
  1247. const m_XK_Hangul_MultipleCandidate = 0xff3d
  1248. const m_XK_Hangul_Nieun = 0x0ea4
  1249. const m_XK_Hangul_NieunHieuh = 0x0ea6
  1250. const m_XK_Hangul_NieunJieuj = 0x0ea5
  1251. const m_XK_Hangul_O = 0x0ec7
  1252. const m_XK_Hangul_OE = 0x0eca
  1253. const m_XK_Hangul_PanSios = 0x0ef2
  1254. const m_XK_Hangul_Phieuf = 0x0ebd
  1255. const m_XK_Hangul_Pieub = 0x0eb2
  1256. const m_XK_Hangul_PieubSios = 0x0eb4
  1257. const m_XK_Hangul_PostHanja = 0xff3b
  1258. const m_XK_Hangul_PreHanja = 0xff3a
  1259. const m_XK_Hangul_PreviousCandidate = 0xff3e
  1260. const m_XK_Hangul_Rieul = 0x0ea9
  1261. const m_XK_Hangul_RieulHieuh = 0x0eb0
  1262. const m_XK_Hangul_RieulKiyeog = 0x0eaa
  1263. const m_XK_Hangul_RieulMieum = 0x0eab
  1264. const m_XK_Hangul_RieulPhieuf = 0x0eaf
  1265. const m_XK_Hangul_RieulPieub = 0x0eac
  1266. const m_XK_Hangul_RieulSios = 0x0ead
  1267. const m_XK_Hangul_RieulTieut = 0x0eae
  1268. const m_XK_Hangul_RieulYeorinHieuh = 0x0eef
  1269. const m_XK_Hangul_Romaja = 0xff36
  1270. const m_XK_Hangul_SingleCandidate = 0xff3c
  1271. const m_XK_Hangul_Sios = 0x0eb5
  1272. const m_XK_Hangul_Special = 0xff3f
  1273. const m_XK_Hangul_SsangDikeud = 0x0ea8
  1274. const m_XK_Hangul_SsangJieuj = 0x0eb9
  1275. const m_XK_Hangul_SsangKiyeog = 0x0ea2
  1276. const m_XK_Hangul_SsangPieub = 0x0eb3
  1277. const m_XK_Hangul_SsangSios = 0x0eb6
  1278. const m_XK_Hangul_Start = 0xff32
  1279. const m_XK_Hangul_SunkyeongeumMieum = 0x0ef0
  1280. const m_XK_Hangul_SunkyeongeumPhieuf = 0x0ef4
  1281. const m_XK_Hangul_SunkyeongeumPieub = 0x0ef1
  1282. const m_XK_Hangul_Tieut = 0x0ebc
  1283. const m_XK_Hangul_U = 0x0ecc
  1284. const m_XK_Hangul_WA = 0x0ec8
  1285. const m_XK_Hangul_WAE = 0x0ec9
  1286. const m_XK_Hangul_WE = 0x0ece
  1287. const m_XK_Hangul_WEO = 0x0ecd
  1288. const m_XK_Hangul_WI = 0x0ecf
  1289. const m_XK_Hangul_YA = 0x0ec1
  1290. const m_XK_Hangul_YAE = 0x0ec2
  1291. const m_XK_Hangul_YE = 0x0ec6
  1292. const m_XK_Hangul_YEO = 0x0ec5
  1293. const m_XK_Hangul_YI = 0x0ed2
  1294. const m_XK_Hangul_YO = 0x0ecb
  1295. const m_XK_Hangul_YU = 0x0ed0
  1296. const m_XK_Hangul_YeorinHieuh = 0x0ef5
  1297. const m_XK_Hangul_switch = 0xff7e
  1298. const m_XK_Hankaku = 0xff29
  1299. const m_XK_Hcircumflex = 0x02a6
  1300. const m_XK_Hebrew_switch = 0xff7e
  1301. const m_XK_Help = 0xff6a
  1302. const m_XK_Henkan = 0xff23
  1303. const m_XK_Henkan_Mode = 0xff23
  1304. const m_XK_Hiragana = 0xff25
  1305. const m_XK_Hiragana_Katakana = 0xff27
  1306. const m_XK_Home = 0xff50
  1307. const m_XK_Hstroke = 0x02a1
  1308. const m_XK_Hyper_L = 0xffed
  1309. const m_XK_Hyper_R = 0xffee
  1310. const m_XK_I = 0x0049
  1311. const m_XK_ISO_Center_Object = 0xfe33
  1312. const m_XK_ISO_Continuous_Underline = 0xfe30
  1313. const m_XK_ISO_Discontinuous_Underline = 0xfe31
  1314. const m_XK_ISO_Emphasize = 0xfe32
  1315. const m_XK_ISO_Enter = 0xfe34
  1316. const m_XK_ISO_Fast_Cursor_Down = 0xfe2f
  1317. const m_XK_ISO_Fast_Cursor_Left = 0xfe2c
  1318. const m_XK_ISO_Fast_Cursor_Right = 0xfe2d
  1319. const m_XK_ISO_Fast_Cursor_Up = 0xfe2e
  1320. const m_XK_ISO_First_Group = 0xfe0c
  1321. const m_XK_ISO_First_Group_Lock = 0xfe0d
  1322. const m_XK_ISO_Group_Latch = 0xfe06
  1323. const m_XK_ISO_Group_Lock = 0xfe07
  1324. const m_XK_ISO_Group_Shift = 0xff7e
  1325. const m_XK_ISO_Last_Group = 0xfe0e
  1326. const m_XK_ISO_Last_Group_Lock = 0xfe0f
  1327. const m_XK_ISO_Left_Tab = 0xfe20
  1328. const m_XK_ISO_Level2_Latch = 0xfe02
  1329. const m_XK_ISO_Level3_Latch = 0xfe04
  1330. const m_XK_ISO_Level3_Lock = 0xfe05
  1331. const m_XK_ISO_Level3_Shift = 0xfe03
  1332. const m_XK_ISO_Level5_Latch = 0xfe12
  1333. const m_XK_ISO_Level5_Lock = 0xfe13
  1334. const m_XK_ISO_Level5_Shift = 0xfe11
  1335. const m_XK_ISO_Lock = 0xfe01
  1336. const m_XK_ISO_Move_Line_Down = 0xfe22
  1337. const m_XK_ISO_Move_Line_Up = 0xfe21
  1338. const m_XK_ISO_Next_Group = 0xfe08
  1339. const m_XK_ISO_Next_Group_Lock = 0xfe09
  1340. const m_XK_ISO_Partial_Line_Down = 0xfe24
  1341. const m_XK_ISO_Partial_Line_Up = 0xfe23
  1342. const m_XK_ISO_Partial_Space_Left = 0xfe25
  1343. const m_XK_ISO_Partial_Space_Right = 0xfe26
  1344. const m_XK_ISO_Prev_Group = 0xfe0a
  1345. const m_XK_ISO_Prev_Group_Lock = 0xfe0b
  1346. const m_XK_ISO_Release_Both_Margins = 0xfe2b
  1347. const m_XK_ISO_Release_Margin_Left = 0xfe29
  1348. const m_XK_ISO_Release_Margin_Right = 0xfe2a
  1349. const m_XK_ISO_Set_Margin_Left = 0xfe27
  1350. const m_XK_ISO_Set_Margin_Right = 0xfe28
  1351. const m_XK_Iabovedot = 0x02a9
  1352. const m_XK_Iacute = 0x00cd
  1353. const m_XK_Ibelowdot = 0x1001eca
  1354. const m_XK_Ibreve = 0x100012c
  1355. const m_XK_Icircumflex = 0x00ce
  1356. const m_XK_Idiaeresis = 0x00cf
  1357. const m_XK_Igrave = 0x00cc
  1358. const m_XK_Ihook = 0x1001ec8
  1359. const m_XK_Imacron = 0x03cf
  1360. const m_XK_Insert = 0xff63
  1361. const m_XK_Iogonek = 0x03c7
  1362. const m_XK_Itilde = 0x03a5
  1363. const m_XK_J = 0x004a
  1364. const m_XK_Jcircumflex = 0x02ac
  1365. const m_XK_K = 0x004b
  1366. const m_XK_KP_0 = 0xffb0
  1367. const m_XK_KP_1 = 0xffb1
  1368. const m_XK_KP_2 = 0xffb2
  1369. const m_XK_KP_3 = 0xffb3
  1370. const m_XK_KP_4 = 0xffb4
  1371. const m_XK_KP_5 = 0xffb5
  1372. const m_XK_KP_6 = 0xffb6
  1373. const m_XK_KP_7 = 0xffb7
  1374. const m_XK_KP_8 = 0xffb8
  1375. const m_XK_KP_9 = 0xffb9
  1376. const m_XK_KP_Add = 0xffab
  1377. const m_XK_KP_Begin = 0xff9d
  1378. const m_XK_KP_Decimal = 0xffae
  1379. const m_XK_KP_Delete = 0xff9f
  1380. const m_XK_KP_Divide = 0xffaf
  1381. const m_XK_KP_Down = 0xff99
  1382. const m_XK_KP_End = 0xff9c
  1383. const m_XK_KP_Enter = 0xff8d
  1384. const m_XK_KP_Equal = 0xffbd
  1385. const m_XK_KP_F1 = 0xff91
  1386. const m_XK_KP_F2 = 0xff92
  1387. const m_XK_KP_F3 = 0xff93
  1388. const m_XK_KP_F4 = 0xff94
  1389. const m_XK_KP_Home = 0xff95
  1390. const m_XK_KP_Insert = 0xff9e
  1391. const m_XK_KP_Left = 0xff96
  1392. const m_XK_KP_Multiply = 0xffaa
  1393. const m_XK_KP_Next = 0xff9b
  1394. const m_XK_KP_Page_Down = 0xff9b
  1395. const m_XK_KP_Page_Up = 0xff9a
  1396. const m_XK_KP_Prior = 0xff9a
  1397. const m_XK_KP_Right = 0xff98
  1398. const m_XK_KP_Separator = 0xffac
  1399. const m_XK_KP_Space = 0xff80
  1400. const m_XK_KP_Subtract = 0xffad
  1401. const m_XK_KP_Tab = 0xff89
  1402. const m_XK_KP_Up = 0xff97
  1403. const m_XK_Kana_Lock = 0xff2d
  1404. const m_XK_Kana_Shift = 0xff2e
  1405. const m_XK_Kanji = 0xff21
  1406. const m_XK_Kanji_Bangou = 0xff37
  1407. const m_XK_Katakana = 0xff26
  1408. const m_XK_Kcedilla = 0x03d3
  1409. const m_XK_Korean_Won = 0x0eff
  1410. const m_XK_L = 0x004c
  1411. const m_XK_L1 = 0xffc8
  1412. const m_XK_L10 = 0xffd1
  1413. const m_XK_L2 = 0xffc9
  1414. const m_XK_L3 = 0xffca
  1415. const m_XK_L4 = 0xffcb
  1416. const m_XK_L5 = 0xffcc
  1417. const m_XK_L6 = 0xffcd
  1418. const m_XK_L7 = 0xffce
  1419. const m_XK_L8 = 0xffcf
  1420. const m_XK_L9 = 0xffd0
  1421. const m_XK_Lacute = 0x01c5
  1422. const m_XK_Last_Virtual_Screen = 0xfed4
  1423. const m_XK_Lbelowdot = 0x1001e36
  1424. const m_XK_Lcaron = 0x01a5
  1425. const m_XK_Lcedilla = 0x03a6
  1426. const m_XK_Left = 0xff51
  1427. const m_XK_Linefeed = 0xff0a
  1428. const m_XK_LiraSign = 0x10020a4
  1429. const m_XK_Lstroke = 0x01a3
  1430. const m_XK_M = 0x004d
  1431. const m_XK_Mabovedot = 0x1001e40
  1432. const m_XK_Macedonia_DSE = 0x06b5
  1433. const m_XK_Macedonia_GJE = 0x06b2
  1434. const m_XK_Macedonia_KJE = 0x06bc
  1435. const m_XK_Macedonia_dse = 0x06a5
  1436. const m_XK_Macedonia_gje = 0x06a2
  1437. const m_XK_Macedonia_kje = 0x06ac
  1438. const m_XK_Mae_Koho = 0xff3e
  1439. const m_XK_Massyo = 0xff2c
  1440. const m_XK_Menu = 0xff67
  1441. const m_XK_Meta_L = 0xffe7
  1442. const m_XK_Meta_R = 0xffe8
  1443. const m_XK_MillSign = 0x10020a5
  1444. const m_XK_Mode_switch = 0xff7e
  1445. const m_XK_MouseKeys_Accel_Enable = 0xfe77
  1446. const m_XK_MouseKeys_Enable = 0xfe76
  1447. const m_XK_Muhenkan = 0xff22
  1448. const m_XK_Multi_key = 0xff20
  1449. const m_XK_MultipleCandidate = 0xff3d
  1450. const m_XK_N = 0x004e
  1451. const m_XK_Nacute = 0x01d1
  1452. const m_XK_NairaSign = 0x10020a6
  1453. const m_XK_Ncaron = 0x01d2
  1454. const m_XK_Ncedilla = 0x03d1
  1455. const m_XK_NewSheqelSign = 0x10020aa
  1456. const m_XK_Next = 0xff56
  1457. const m_XK_Next_Virtual_Screen = 0xfed2
  1458. const m_XK_Ntilde = 0x00d1
  1459. const m_XK_Num_Lock = 0xff7f
  1460. const m_XK_O = 0x004f
  1461. const m_XK_OE = 0x13bc
  1462. const m_XK_Oacute = 0x00d3
  1463. const m_XK_Obarred = 0x100019f
  1464. const m_XK_Obelowdot = 0x1001ecc
  1465. const m_XK_Ocaron = 0x10001d1
  1466. const m_XK_Ocircumflex = 0x00d4
  1467. const m_XK_Ocircumflexacute = 0x1001ed0
  1468. const m_XK_Ocircumflexbelowdot = 0x1001ed8
  1469. const m_XK_Ocircumflexgrave = 0x1001ed2
  1470. const m_XK_Ocircumflexhook = 0x1001ed4
  1471. const m_XK_Ocircumflextilde = 0x1001ed6
  1472. const m_XK_Odiaeresis = 0x00d6
  1473. const m_XK_Odoubleacute = 0x01d5
  1474. const m_XK_Ograve = 0x00d2
  1475. const m_XK_Ohook = 0x1001ece
  1476. const m_XK_Ohorn = 0x10001a0
  1477. const m_XK_Ohornacute = 0x1001eda
  1478. const m_XK_Ohornbelowdot = 0x1001ee2
  1479. const m_XK_Ohorngrave = 0x1001edc
  1480. const m_XK_Ohornhook = 0x1001ede
  1481. const m_XK_Ohorntilde = 0x1001ee0
  1482. const m_XK_Omacron = 0x03d2
  1483. const m_XK_Ooblique = 0x00d8
  1484. const m_XK_Oslash = 0x00d8
  1485. const m_XK_Otilde = 0x00d5
  1486. const m_XK_Overlay1_Enable = 0xfe78
  1487. const m_XK_Overlay2_Enable = 0xfe79
  1488. const m_XK_P = 0x0050
  1489. const m_XK_Pabovedot = 0x1001e56
  1490. const m_XK_Page_Down = 0xff56
  1491. const m_XK_Page_Up = 0xff55
  1492. const m_XK_Pause = 0xff13
  1493. const m_XK_PesetaSign = 0x10020a7
  1494. const m_XK_Pointer_Accelerate = 0xfefa
  1495. const m_XK_Pointer_Button1 = 0xfee9
  1496. const m_XK_Pointer_Button2 = 0xfeea
  1497. const m_XK_Pointer_Button3 = 0xfeeb
  1498. const m_XK_Pointer_Button4 = 0xfeec
  1499. const m_XK_Pointer_Button5 = 0xfeed
  1500. const m_XK_Pointer_Button_Dflt = 0xfee8
  1501. const m_XK_Pointer_DblClick1 = 0xfeef
  1502. const m_XK_Pointer_DblClick2 = 0xfef0
  1503. const m_XK_Pointer_DblClick3 = 0xfef1
  1504. const m_XK_Pointer_DblClick4 = 0xfef2
  1505. const m_XK_Pointer_DblClick5 = 0xfef3
  1506. const m_XK_Pointer_DblClick_Dflt = 0xfeee
  1507. const m_XK_Pointer_DfltBtnNext = 0xfefb
  1508. const m_XK_Pointer_DfltBtnPrev = 0xfefc
  1509. const m_XK_Pointer_Down = 0xfee3
  1510. const m_XK_Pointer_DownLeft = 0xfee6
  1511. const m_XK_Pointer_DownRight = 0xfee7
  1512. const m_XK_Pointer_Drag1 = 0xfef5
  1513. const m_XK_Pointer_Drag2 = 0xfef6
  1514. const m_XK_Pointer_Drag3 = 0xfef7
  1515. const m_XK_Pointer_Drag4 = 0xfef8
  1516. const m_XK_Pointer_Drag5 = 0xfefd
  1517. const m_XK_Pointer_Drag_Dflt = 0xfef4
  1518. const m_XK_Pointer_EnableKeys = 0xfef9
  1519. const m_XK_Pointer_Left = 0xfee0
  1520. const m_XK_Pointer_Right = 0xfee1
  1521. const m_XK_Pointer_Up = 0xfee2
  1522. const m_XK_Pointer_UpLeft = 0xfee4
  1523. const m_XK_Pointer_UpRight = 0xfee5
  1524. const m_XK_Prev_Virtual_Screen = 0xfed1
  1525. const m_XK_PreviousCandidate = 0xff3e
  1526. const m_XK_Print = 0xff61
  1527. const m_XK_Prior = 0xff55
  1528. const m_XK_Q = 0x0051
  1529. const m_XK_R = 0x0052
  1530. const m_XK_R1 = 0xffd2
  1531. const m_XK_R10 = 0xffdb
  1532. const m_XK_R11 = 0xffdc
  1533. const m_XK_R12 = 0xffdd
  1534. const m_XK_R13 = 0xffde
  1535. const m_XK_R14 = 0xffdf
  1536. const m_XK_R15 = 0xffe0
  1537. const m_XK_R2 = 0xffd3
  1538. const m_XK_R3 = 0xffd4
  1539. const m_XK_R4 = 0xffd5
  1540. const m_XK_R5 = 0xffd6
  1541. const m_XK_R6 = 0xffd7
  1542. const m_XK_R7 = 0xffd8
  1543. const m_XK_R8 = 0xffd9
  1544. const m_XK_R9 = 0xffda
  1545. const m_XK_Racute = 0x01c0
  1546. const m_XK_Rcaron = 0x01d8
  1547. const m_XK_Rcedilla = 0x03a3
  1548. const m_XK_Redo = 0xff66
  1549. const m_XK_RepeatKeys_Enable = 0xfe72
  1550. const m_XK_Return = 0xff0d
  1551. const m_XK_Right = 0xff53
  1552. const m_XK_Romaji = 0xff24
  1553. const m_XK_RupeeSign = 0x10020a8
  1554. const m_XK_S = 0x0053
  1555. const m_XK_SCHWA = 0x100018f
  1556. const m_XK_Sabovedot = 0x1001e60
  1557. const m_XK_Sacute = 0x01a6
  1558. const m_XK_Scaron = 0x01a9
  1559. const m_XK_Scedilla = 0x01aa
  1560. const m_XK_Scircumflex = 0x02de
  1561. const m_XK_Scroll_Lock = 0xff14
  1562. const m_XK_Select = 0xff60
  1563. const m_XK_Serbian_DJE = 0x06b1
  1564. const m_XK_Serbian_DZE = 0x06bf
  1565. const m_XK_Serbian_JE = 0x06b8
  1566. const m_XK_Serbian_LJE = 0x06b9
  1567. const m_XK_Serbian_NJE = 0x06ba
  1568. const m_XK_Serbian_TSHE = 0x06bb
  1569. const m_XK_Serbian_dje = 0x06a1
  1570. const m_XK_Serbian_dze = 0x06af
  1571. const m_XK_Serbian_je = 0x06a8
  1572. const m_XK_Serbian_lje = 0x06a9
  1573. const m_XK_Serbian_nje = 0x06aa
  1574. const m_XK_Serbian_tshe = 0x06ab
  1575. const m_XK_Shift_L = 0xffe1
  1576. const m_XK_Shift_Lock = 0xffe6
  1577. const m_XK_Shift_R = 0xffe2
  1578. const m_XK_SingleCandidate = 0xff3c
  1579. const m_XK_Sinh_a = 0x1000d85
  1580. const m_XK_Sinh_aa = 0x1000d86
  1581. const m_XK_Sinh_aa2 = 0x1000dcf
  1582. const m_XK_Sinh_ae = 0x1000d87
  1583. const m_XK_Sinh_ae2 = 0x1000dd0
  1584. const m_XK_Sinh_aee = 0x1000d88
  1585. const m_XK_Sinh_aee2 = 0x1000dd1
  1586. const m_XK_Sinh_ai = 0x1000d93
  1587. const m_XK_Sinh_ai2 = 0x1000ddb
  1588. const m_XK_Sinh_al = 0x1000dca
  1589. const m_XK_Sinh_au = 0x1000d96
  1590. const m_XK_Sinh_au2 = 0x1000dde
  1591. const m_XK_Sinh_ba = 0x1000db6
  1592. const m_XK_Sinh_bha = 0x1000db7
  1593. const m_XK_Sinh_ca = 0x1000da0
  1594. const m_XK_Sinh_cha = 0x1000da1
  1595. const m_XK_Sinh_dda = 0x1000da9
  1596. const m_XK_Sinh_ddha = 0x1000daa
  1597. const m_XK_Sinh_dha = 0x1000daf
  1598. const m_XK_Sinh_dhha = 0x1000db0
  1599. const m_XK_Sinh_e = 0x1000d91
  1600. const m_XK_Sinh_e2 = 0x1000dd9
  1601. const m_XK_Sinh_ee = 0x1000d92
  1602. const m_XK_Sinh_ee2 = 0x1000dda
  1603. const m_XK_Sinh_fa = 0x1000dc6
  1604. const m_XK_Sinh_ga = 0x1000d9c
  1605. const m_XK_Sinh_gha = 0x1000d9d
  1606. const m_XK_Sinh_h2 = 0x1000d83
  1607. const m_XK_Sinh_ha = 0x1000dc4
  1608. const m_XK_Sinh_i = 0x1000d89
  1609. const m_XK_Sinh_i2 = 0x1000dd2
  1610. const m_XK_Sinh_ii = 0x1000d8a
  1611. const m_XK_Sinh_ii2 = 0x1000dd3
  1612. const m_XK_Sinh_ja = 0x1000da2
  1613. const m_XK_Sinh_jha = 0x1000da3
  1614. const m_XK_Sinh_jnya = 0x1000da5
  1615. const m_XK_Sinh_ka = 0x1000d9a
  1616. const m_XK_Sinh_kha = 0x1000d9b
  1617. const m_XK_Sinh_kunddaliya = 0x1000df4
  1618. const m_XK_Sinh_la = 0x1000dbd
  1619. const m_XK_Sinh_lla = 0x1000dc5
  1620. const m_XK_Sinh_lu = 0x1000d8f
  1621. const m_XK_Sinh_lu2 = 0x1000ddf
  1622. const m_XK_Sinh_luu = 0x1000d90
  1623. const m_XK_Sinh_luu2 = 0x1000df3
  1624. const m_XK_Sinh_ma = 0x1000db8
  1625. const m_XK_Sinh_mba = 0x1000db9
  1626. const m_XK_Sinh_na = 0x1000db1
  1627. const m_XK_Sinh_ndda = 0x1000dac
  1628. const m_XK_Sinh_ndha = 0x1000db3
  1629. const m_XK_Sinh_ng = 0x1000d82
  1630. const m_XK_Sinh_ng2 = 0x1000d9e
  1631. const m_XK_Sinh_nga = 0x1000d9f
  1632. const m_XK_Sinh_nja = 0x1000da6
  1633. const m_XK_Sinh_nna = 0x1000dab
  1634. const m_XK_Sinh_nya = 0x1000da4
  1635. const m_XK_Sinh_o = 0x1000d94
  1636. const m_XK_Sinh_o2 = 0x1000ddc
  1637. const m_XK_Sinh_oo = 0x1000d95
  1638. const m_XK_Sinh_oo2 = 0x1000ddd
  1639. const m_XK_Sinh_pa = 0x1000db4
  1640. const m_XK_Sinh_pha = 0x1000db5
  1641. const m_XK_Sinh_ra = 0x1000dbb
  1642. const m_XK_Sinh_ri = 0x1000d8d
  1643. const m_XK_Sinh_rii = 0x1000d8e
  1644. const m_XK_Sinh_ru2 = 0x1000dd8
  1645. const m_XK_Sinh_ruu2 = 0x1000df2
  1646. const m_XK_Sinh_sa = 0x1000dc3
  1647. const m_XK_Sinh_sha = 0x1000dc1
  1648. const m_XK_Sinh_ssha = 0x1000dc2
  1649. const m_XK_Sinh_tha = 0x1000dad
  1650. const m_XK_Sinh_thha = 0x1000dae
  1651. const m_XK_Sinh_tta = 0x1000da7
  1652. const m_XK_Sinh_ttha = 0x1000da8
  1653. const m_XK_Sinh_u = 0x1000d8b
  1654. const m_XK_Sinh_u2 = 0x1000dd4
  1655. const m_XK_Sinh_uu = 0x1000d8c
  1656. const m_XK_Sinh_uu2 = 0x1000dd6
  1657. const m_XK_Sinh_va = 0x1000dc0
  1658. const m_XK_Sinh_ya = 0x1000dba
  1659. const m_XK_SlowKeys_Enable = 0xfe73
  1660. const m_XK_StickyKeys_Enable = 0xfe75
  1661. const m_XK_Super_L = 0xffeb
  1662. const m_XK_Super_R = 0xffec
  1663. const m_XK_Sys_Req = 0xff15
  1664. const m_XK_T = 0x0054
  1665. const m_XK_THORN = 0x00de
  1666. const m_XK_Tab = 0xff09
  1667. const m_XK_Tabovedot = 0x1001e6a
  1668. const m_XK_Tcaron = 0x01ab
  1669. const m_XK_Tcedilla = 0x01de
  1670. const m_XK_Terminate_Server = 0xfed5
  1671. const m_XK_Thai_baht = 0x0ddf
  1672. const m_XK_Thai_bobaimai = 0x0dba
  1673. const m_XK_Thai_chochan = 0x0da8
  1674. const m_XK_Thai_chochang = 0x0daa
  1675. const m_XK_Thai_choching = 0x0da9
  1676. const m_XK_Thai_chochoe = 0x0dac
  1677. const m_XK_Thai_dochada = 0x0dae
  1678. const m_XK_Thai_dodek = 0x0db4
  1679. const m_XK_Thai_fofa = 0x0dbd
  1680. const m_XK_Thai_fofan = 0x0dbf
  1681. const m_XK_Thai_hohip = 0x0dcb
  1682. const m_XK_Thai_honokhuk = 0x0dce
  1683. const m_XK_Thai_khokhai = 0x0da2
  1684. const m_XK_Thai_khokhon = 0x0da5
  1685. const m_XK_Thai_khokhuat = 0x0da3
  1686. const m_XK_Thai_khokhwai = 0x0da4
  1687. const m_XK_Thai_khorakhang = 0x0da6
  1688. const m_XK_Thai_kokai = 0x0da1
  1689. const m_XK_Thai_lakkhangyao = 0x0de5
  1690. const m_XK_Thai_lekchet = 0x0df7
  1691. const m_XK_Thai_lekha = 0x0df5
  1692. const m_XK_Thai_lekhok = 0x0df6
  1693. const m_XK_Thai_lekkao = 0x0df9
  1694. const m_XK_Thai_leknung = 0x0df1
  1695. const m_XK_Thai_lekpaet = 0x0df8
  1696. const m_XK_Thai_leksam = 0x0df3
  1697. const m_XK_Thai_leksi = 0x0df4
  1698. const m_XK_Thai_leksong = 0x0df2
  1699. const m_XK_Thai_leksun = 0x0df0
  1700. const m_XK_Thai_lochula = 0x0dcc
  1701. const m_XK_Thai_loling = 0x0dc5
  1702. const m_XK_Thai_lu = 0x0dc6
  1703. const m_XK_Thai_maichattawa = 0x0deb
  1704. const m_XK_Thai_maiek = 0x0de8
  1705. const m_XK_Thai_maihanakat = 0x0dd1
  1706. const m_XK_Thai_maihanakat_maitho = 0x0dde
  1707. const m_XK_Thai_maitaikhu = 0x0de7
  1708. const m_XK_Thai_maitho = 0x0de9
  1709. const m_XK_Thai_maitri = 0x0dea
  1710. const m_XK_Thai_maiyamok = 0x0de6
  1711. const m_XK_Thai_moma = 0x0dc1
  1712. const m_XK_Thai_ngongu = 0x0da7
  1713. const m_XK_Thai_nikhahit = 0x0ded
  1714. const m_XK_Thai_nonen = 0x0db3
  1715. const m_XK_Thai_nonu = 0x0db9
  1716. const m_XK_Thai_oang = 0x0dcd
  1717. const m_XK_Thai_paiyannoi = 0x0dcf
  1718. const m_XK_Thai_phinthu = 0x0dda
  1719. const m_XK_Thai_phophan = 0x0dbe
  1720. const m_XK_Thai_phophung = 0x0dbc
  1721. const m_XK_Thai_phosamphao = 0x0dc0
  1722. const m_XK_Thai_popla = 0x0dbb
  1723. const m_XK_Thai_rorua = 0x0dc3
  1724. const m_XK_Thai_ru = 0x0dc4
  1725. const m_XK_Thai_saraa = 0x0dd0
  1726. const m_XK_Thai_saraaa = 0x0dd2
  1727. const m_XK_Thai_saraae = 0x0de1
  1728. const m_XK_Thai_saraaimaimalai = 0x0de4
  1729. const m_XK_Thai_saraaimaimuan = 0x0de3
  1730. const m_XK_Thai_saraam = 0x0dd3
  1731. const m_XK_Thai_sarae = 0x0de0
  1732. const m_XK_Thai_sarai = 0x0dd4
  1733. const m_XK_Thai_saraii = 0x0dd5
  1734. const m_XK_Thai_sarao = 0x0de2
  1735. const m_XK_Thai_sarau = 0x0dd8
  1736. const m_XK_Thai_saraue = 0x0dd6
  1737. const m_XK_Thai_sarauee = 0x0dd7
  1738. const m_XK_Thai_sarauu = 0x0dd9
  1739. const m_XK_Thai_sorusi = 0x0dc9
  1740. const m_XK_Thai_sosala = 0x0dc8
  1741. const m_XK_Thai_soso = 0x0dab
  1742. const m_XK_Thai_sosua = 0x0dca
  1743. const m_XK_Thai_thanthakhat = 0x0dec
  1744. const m_XK_Thai_thonangmontho = 0x0db1
  1745. const m_XK_Thai_thophuthao = 0x0db2
  1746. const m_XK_Thai_thothahan = 0x0db7
  1747. const m_XK_Thai_thothan = 0x0db0
  1748. const m_XK_Thai_thothong = 0x0db8
  1749. const m_XK_Thai_thothung = 0x0db6
  1750. const m_XK_Thai_topatak = 0x0daf
  1751. const m_XK_Thai_totao = 0x0db5
  1752. const m_XK_Thai_wowaen = 0x0dc7
  1753. const m_XK_Thai_yoyak = 0x0dc2
  1754. const m_XK_Thai_yoying = 0x0dad
  1755. const m_XK_Thorn = 0x00de
  1756. const m_XK_Touroku = 0xff2b
  1757. const m_XK_Tslash = 0x03ac
  1758. const m_XK_U = 0x0055
  1759. const m_XK_Uacute = 0x00da
  1760. const m_XK_Ubelowdot = 0x1001ee4
  1761. const m_XK_Ubreve = 0x02dd
  1762. const m_XK_Ucircumflex = 0x00db
  1763. const m_XK_Udiaeresis = 0x00dc
  1764. const m_XK_Udoubleacute = 0x01db
  1765. const m_XK_Ugrave = 0x00d9
  1766. const m_XK_Uhook = 0x1001ee6
  1767. const m_XK_Uhorn = 0x10001af
  1768. const m_XK_Uhornacute = 0x1001ee8
  1769. const m_XK_Uhornbelowdot = 0x1001ef0
  1770. const m_XK_Uhorngrave = 0x1001eea
  1771. const m_XK_Uhornhook = 0x1001eec
  1772. const m_XK_Uhorntilde = 0x1001eee
  1773. const m_XK_Ukrainian_GHE_WITH_UPTURN = 0x06bd
  1774. const m_XK_Ukrainian_I = 0x06b6
  1775. const m_XK_Ukrainian_IE = 0x06b4
  1776. const m_XK_Ukrainian_YI = 0x06b7
  1777. const m_XK_Ukrainian_ghe_with_upturn = 0x06ad
  1778. const m_XK_Ukrainian_i = 0x06a6
  1779. const m_XK_Ukrainian_ie = 0x06a4
  1780. const m_XK_Ukrainian_yi = 0x06a7
  1781. const m_XK_Ukranian_I = 0x06b6
  1782. const m_XK_Ukranian_JE = 0x06b4
  1783. const m_XK_Ukranian_YI = 0x06b7
  1784. const m_XK_Ukranian_i = 0x06a6
  1785. const m_XK_Ukranian_je = 0x06a4
  1786. const m_XK_Ukranian_yi = 0x06a7
  1787. const m_XK_Umacron = 0x03de
  1788. const m_XK_Undo = 0xff65
  1789. const m_XK_Uogonek = 0x03d9
  1790. const m_XK_Up = 0xff52
  1791. const m_XK_Uring = 0x01d9
  1792. const m_XK_Utilde = 0x03dd
  1793. const m_XK_V = 0x0056
  1794. const m_XK_VoidSymbol = 0xffffff
  1795. const m_XK_W = 0x0057
  1796. const m_XK_Wacute = 0x1001e82
  1797. const m_XK_Wcircumflex = 0x1000174
  1798. const m_XK_Wdiaeresis = 0x1001e84
  1799. const m_XK_Wgrave = 0x1001e80
  1800. const m_XK_WonSign = 0x10020a9
  1801. const m_XK_X = 0x0058
  1802. const m_XK_Xabovedot = 0x1001e8a
  1803. const m_XK_Y = 0x0059
  1804. const m_XK_Yacute = 0x00dd
  1805. const m_XK_Ybelowdot = 0x1001ef4
  1806. const m_XK_Ycircumflex = 0x1000176
  1807. const m_XK_Ydiaeresis = 0x13be
  1808. const m_XK_Ygrave = 0x1001ef2
  1809. const m_XK_Yhook = 0x1001ef6
  1810. const m_XK_Ytilde = 0x1001ef8
  1811. const m_XK_Z = 0x005a
  1812. const m_XK_Zabovedot = 0x01af
  1813. const m_XK_Zacute = 0x01ac
  1814. const m_XK_Zcaron = 0x01ae
  1815. const m_XK_Zen_Koho = 0xff3d
  1816. const m_XK_Zenkaku = 0xff28
  1817. const m_XK_Zenkaku_Hankaku = 0xff2a
  1818. const m_XK_Zstroke = 0x10001b5
  1819. const m_XK_a = 0x0061
  1820. const m_XK_aacute = 0x00e1
  1821. const m_XK_abelowdot = 0x1001ea1
  1822. const m_XK_abovedot = 0x01ff
  1823. const m_XK_abreve = 0x01e3
  1824. const m_XK_abreveacute = 0x1001eaf
  1825. const m_XK_abrevebelowdot = 0x1001eb7
  1826. const m_XK_abrevegrave = 0x1001eb1
  1827. const m_XK_abrevehook = 0x1001eb3
  1828. const m_XK_abrevetilde = 0x1001eb5
  1829. const m_XK_acircumflex = 0x00e2
  1830. const m_XK_acircumflexacute = 0x1001ea5
  1831. const m_XK_acircumflexbelowdot = 0x1001ead
  1832. const m_XK_acircumflexgrave = 0x1001ea7
  1833. const m_XK_acircumflexhook = 0x1001ea9
  1834. const m_XK_acircumflextilde = 0x1001eab
  1835. const m_XK_acute = 0x00b4
  1836. const m_XK_adiaeresis = 0x00e4
  1837. const m_XK_ae = 0x00e6
  1838. const m_XK_agrave = 0x00e0
  1839. const m_XK_ahook = 0x1001ea3
  1840. const m_XK_amacron = 0x03e0
  1841. const m_XK_ampersand = 0x0026
  1842. const m_XK_aogonek = 0x01b1
  1843. const m_XK_apostrophe = 0x0027
  1844. const m_XK_approxeq = 0x1002248
  1845. const m_XK_aring = 0x00e5
  1846. const m_XK_asciicircum = 0x005e
  1847. const m_XK_asciitilde = 0x007e
  1848. const m_XK_asterisk = 0x002a
  1849. const m_XK_at = 0x0040
  1850. const m_XK_atilde = 0x00e3
  1851. const m_XK_b = 0x0062
  1852. const m_XK_babovedot = 0x1001e03
  1853. const m_XK_backslash = 0x005c
  1854. const m_XK_bar = 0x007c
  1855. const m_XK_because = 0x1002235
  1856. const m_XK_braceleft = 0x007b
  1857. const m_XK_braceright = 0x007d
  1858. const m_XK_bracketleft = 0x005b
  1859. const m_XK_bracketright = 0x005d
  1860. const m_XK_braille_blank = 0x1002800
  1861. const m_XK_braille_dot_1 = 0xfff1
  1862. const m_XK_braille_dot_10 = 0xfffa
  1863. const m_XK_braille_dot_2 = 0xfff2
  1864. const m_XK_braille_dot_3 = 0xfff3
  1865. const m_XK_braille_dot_4 = 0xfff4
  1866. const m_XK_braille_dot_5 = 0xfff5
  1867. const m_XK_braille_dot_6 = 0xfff6
  1868. const m_XK_braille_dot_7 = 0xfff7
  1869. const m_XK_braille_dot_8 = 0xfff8
  1870. const m_XK_braille_dot_9 = 0xfff9
  1871. const m_XK_braille_dots_1 = 0x1002801
  1872. const m_XK_braille_dots_12 = 0x1002803
  1873. const m_XK_braille_dots_123 = 0x1002807
  1874. const m_XK_braille_dots_1234 = 0x100280f
  1875. const m_XK_braille_dots_12345 = 0x100281f
  1876. const m_XK_braille_dots_123456 = 0x100283f
  1877. const m_XK_braille_dots_1234567 = 0x100287f
  1878. const m_XK_braille_dots_12345678 = 0x10028ff
  1879. const m_XK_braille_dots_1234568 = 0x10028bf
  1880. const m_XK_braille_dots_123457 = 0x100285f
  1881. const m_XK_braille_dots_1234578 = 0x10028df
  1882. const m_XK_braille_dots_123458 = 0x100289f
  1883. const m_XK_braille_dots_12346 = 0x100282f
  1884. const m_XK_braille_dots_123467 = 0x100286f
  1885. const m_XK_braille_dots_1234678 = 0x10028ef
  1886. const m_XK_braille_dots_123468 = 0x10028af
  1887. const m_XK_braille_dots_12347 = 0x100284f
  1888. const m_XK_braille_dots_123478 = 0x10028cf
  1889. const m_XK_braille_dots_12348 = 0x100288f
  1890. const m_XK_braille_dots_1235 = 0x1002817
  1891. const m_XK_braille_dots_12356 = 0x1002837
  1892. const m_XK_braille_dots_123567 = 0x1002877
  1893. const m_XK_braille_dots_1235678 = 0x10028f7
  1894. const m_XK_braille_dots_123568 = 0x10028b7
  1895. const m_XK_braille_dots_12357 = 0x1002857
  1896. const m_XK_braille_dots_123578 = 0x10028d7
  1897. const m_XK_braille_dots_12358 = 0x1002897
  1898. const m_XK_braille_dots_1236 = 0x1002827
  1899. const m_XK_braille_dots_12367 = 0x1002867
  1900. const m_XK_braille_dots_123678 = 0x10028e7
  1901. const m_XK_braille_dots_12368 = 0x10028a7
  1902. const m_XK_braille_dots_1237 = 0x1002847
  1903. const m_XK_braille_dots_12378 = 0x10028c7
  1904. const m_XK_braille_dots_1238 = 0x1002887
  1905. const m_XK_braille_dots_124 = 0x100280b
  1906. const m_XK_braille_dots_1245 = 0x100281b
  1907. const m_XK_braille_dots_12456 = 0x100283b
  1908. const m_XK_braille_dots_124567 = 0x100287b
  1909. const m_XK_braille_dots_1245678 = 0x10028fb
  1910. const m_XK_braille_dots_124568 = 0x10028bb
  1911. const m_XK_braille_dots_12457 = 0x100285b
  1912. const m_XK_braille_dots_124578 = 0x10028db
  1913. const m_XK_braille_dots_12458 = 0x100289b
  1914. const m_XK_braille_dots_1246 = 0x100282b
  1915. const m_XK_braille_dots_12467 = 0x100286b
  1916. const m_XK_braille_dots_124678 = 0x10028eb
  1917. const m_XK_braille_dots_12468 = 0x10028ab
  1918. const m_XK_braille_dots_1247 = 0x100284b
  1919. const m_XK_braille_dots_12478 = 0x10028cb
  1920. const m_XK_braille_dots_1248 = 0x100288b
  1921. const m_XK_braille_dots_125 = 0x1002813
  1922. const m_XK_braille_dots_1256 = 0x1002833
  1923. const m_XK_braille_dots_12567 = 0x1002873
  1924. const m_XK_braille_dots_125678 = 0x10028f3
  1925. const m_XK_braille_dots_12568 = 0x10028b3
  1926. const m_XK_braille_dots_1257 = 0x1002853
  1927. const m_XK_braille_dots_12578 = 0x10028d3
  1928. const m_XK_braille_dots_1258 = 0x1002893
  1929. const m_XK_braille_dots_126 = 0x1002823
  1930. const m_XK_braille_dots_1267 = 0x1002863
  1931. const m_XK_braille_dots_12678 = 0x10028e3
  1932. const m_XK_braille_dots_1268 = 0x10028a3
  1933. const m_XK_braille_dots_127 = 0x1002843
  1934. const m_XK_braille_dots_1278 = 0x10028c3
  1935. const m_XK_braille_dots_128 = 0x1002883
  1936. const m_XK_braille_dots_13 = 0x1002805
  1937. const m_XK_braille_dots_134 = 0x100280d
  1938. const m_XK_braille_dots_1345 = 0x100281d
  1939. const m_XK_braille_dots_13456 = 0x100283d
  1940. const m_XK_braille_dots_134567 = 0x100287d
  1941. const m_XK_braille_dots_1345678 = 0x10028fd
  1942. const m_XK_braille_dots_134568 = 0x10028bd
  1943. const m_XK_braille_dots_13457 = 0x100285d
  1944. const m_XK_braille_dots_134578 = 0x10028dd
  1945. const m_XK_braille_dots_13458 = 0x100289d
  1946. const m_XK_braille_dots_1346 = 0x100282d
  1947. const m_XK_braille_dots_13467 = 0x100286d
  1948. const m_XK_braille_dots_134678 = 0x10028ed
  1949. const m_XK_braille_dots_13468 = 0x10028ad
  1950. const m_XK_braille_dots_1347 = 0x100284d
  1951. const m_XK_braille_dots_13478 = 0x10028cd
  1952. const m_XK_braille_dots_1348 = 0x100288d
  1953. const m_XK_braille_dots_135 = 0x1002815
  1954. const m_XK_braille_dots_1356 = 0x1002835
  1955. const m_XK_braille_dots_13567 = 0x1002875
  1956. const m_XK_braille_dots_135678 = 0x10028f5
  1957. const m_XK_braille_dots_13568 = 0x10028b5
  1958. const m_XK_braille_dots_1357 = 0x1002855
  1959. const m_XK_braille_dots_13578 = 0x10028d5
  1960. const m_XK_braille_dots_1358 = 0x1002895
  1961. const m_XK_braille_dots_136 = 0x1002825
  1962. const m_XK_braille_dots_1367 = 0x1002865
  1963. const m_XK_braille_dots_13678 = 0x10028e5
  1964. const m_XK_braille_dots_1368 = 0x10028a5
  1965. const m_XK_braille_dots_137 = 0x1002845
  1966. const m_XK_braille_dots_1378 = 0x10028c5
  1967. const m_XK_braille_dots_138 = 0x1002885
  1968. const m_XK_braille_dots_14 = 0x1002809
  1969. const m_XK_braille_dots_145 = 0x1002819
  1970. const m_XK_braille_dots_1456 = 0x1002839
  1971. const m_XK_braille_dots_14567 = 0x1002879
  1972. const m_XK_braille_dots_145678 = 0x10028f9
  1973. const m_XK_braille_dots_14568 = 0x10028b9
  1974. const m_XK_braille_dots_1457 = 0x1002859
  1975. const m_XK_braille_dots_14578 = 0x10028d9
  1976. const m_XK_braille_dots_1458 = 0x1002899
  1977. const m_XK_braille_dots_146 = 0x1002829
  1978. const m_XK_braille_dots_1467 = 0x1002869
  1979. const m_XK_braille_dots_14678 = 0x10028e9
  1980. const m_XK_braille_dots_1468 = 0x10028a9
  1981. const m_XK_braille_dots_147 = 0x1002849
  1982. const m_XK_braille_dots_1478 = 0x10028c9
  1983. const m_XK_braille_dots_148 = 0x1002889
  1984. const m_XK_braille_dots_15 = 0x1002811
  1985. const m_XK_braille_dots_156 = 0x1002831
  1986. const m_XK_braille_dots_1567 = 0x1002871
  1987. const m_XK_braille_dots_15678 = 0x10028f1
  1988. const m_XK_braille_dots_1568 = 0x10028b1
  1989. const m_XK_braille_dots_157 = 0x1002851
  1990. const m_XK_braille_dots_1578 = 0x10028d1
  1991. const m_XK_braille_dots_158 = 0x1002891
  1992. const m_XK_braille_dots_16 = 0x1002821
  1993. const m_XK_braille_dots_167 = 0x1002861
  1994. const m_XK_braille_dots_1678 = 0x10028e1
  1995. const m_XK_braille_dots_168 = 0x10028a1
  1996. const m_XK_braille_dots_17 = 0x1002841
  1997. const m_XK_braille_dots_178 = 0x10028c1
  1998. const m_XK_braille_dots_18 = 0x1002881
  1999. const m_XK_braille_dots_2 = 0x1002802
  2000. const m_XK_braille_dots_23 = 0x1002806
  2001. const m_XK_braille_dots_234 = 0x100280e
  2002. const m_XK_braille_dots_2345 = 0x100281e
  2003. const m_XK_braille_dots_23456 = 0x100283e
  2004. const m_XK_braille_dots_234567 = 0x100287e
  2005. const m_XK_braille_dots_2345678 = 0x10028fe
  2006. const m_XK_braille_dots_234568 = 0x10028be
  2007. const m_XK_braille_dots_23457 = 0x100285e
  2008. const m_XK_braille_dots_234578 = 0x10028de
  2009. const m_XK_braille_dots_23458 = 0x100289e
  2010. const m_XK_braille_dots_2346 = 0x100282e
  2011. const m_XK_braille_dots_23467 = 0x100286e
  2012. const m_XK_braille_dots_234678 = 0x10028ee
  2013. const m_XK_braille_dots_23468 = 0x10028ae
  2014. const m_XK_braille_dots_2347 = 0x100284e
  2015. const m_XK_braille_dots_23478 = 0x10028ce
  2016. const m_XK_braille_dots_2348 = 0x100288e
  2017. const m_XK_braille_dots_235 = 0x1002816
  2018. const m_XK_braille_dots_2356 = 0x1002836
  2019. const m_XK_braille_dots_23567 = 0x1002876
  2020. const m_XK_braille_dots_235678 = 0x10028f6
  2021. const m_XK_braille_dots_23568 = 0x10028b6
  2022. const m_XK_braille_dots_2357 = 0x1002856
  2023. const m_XK_braille_dots_23578 = 0x10028d6
  2024. const m_XK_braille_dots_2358 = 0x1002896
  2025. const m_XK_braille_dots_236 = 0x1002826
  2026. const m_XK_braille_dots_2367 = 0x1002866
  2027. const m_XK_braille_dots_23678 = 0x10028e6
  2028. const m_XK_braille_dots_2368 = 0x10028a6
  2029. const m_XK_braille_dots_237 = 0x1002846
  2030. const m_XK_braille_dots_2378 = 0x10028c6
  2031. const m_XK_braille_dots_238 = 0x1002886
  2032. const m_XK_braille_dots_24 = 0x100280a
  2033. const m_XK_braille_dots_245 = 0x100281a
  2034. const m_XK_braille_dots_2456 = 0x100283a
  2035. const m_XK_braille_dots_24567 = 0x100287a
  2036. const m_XK_braille_dots_245678 = 0x10028fa
  2037. const m_XK_braille_dots_24568 = 0x10028ba
  2038. const m_XK_braille_dots_2457 = 0x100285a
  2039. const m_XK_braille_dots_24578 = 0x10028da
  2040. const m_XK_braille_dots_2458 = 0x100289a
  2041. const m_XK_braille_dots_246 = 0x100282a
  2042. const m_XK_braille_dots_2467 = 0x100286a
  2043. const m_XK_braille_dots_24678 = 0x10028ea
  2044. const m_XK_braille_dots_2468 = 0x10028aa
  2045. const m_XK_braille_dots_247 = 0x100284a
  2046. const m_XK_braille_dots_2478 = 0x10028ca
  2047. const m_XK_braille_dots_248 = 0x100288a
  2048. const m_XK_braille_dots_25 = 0x1002812
  2049. const m_XK_braille_dots_256 = 0x1002832
  2050. const m_XK_braille_dots_2567 = 0x1002872
  2051. const m_XK_braille_dots_25678 = 0x10028f2
  2052. const m_XK_braille_dots_2568 = 0x10028b2
  2053. const m_XK_braille_dots_257 = 0x1002852
  2054. const m_XK_braille_dots_2578 = 0x10028d2
  2055. const m_XK_braille_dots_258 = 0x1002892
  2056. const m_XK_braille_dots_26 = 0x1002822
  2057. const m_XK_braille_dots_267 = 0x1002862
  2058. const m_XK_braille_dots_2678 = 0x10028e2
  2059. const m_XK_braille_dots_268 = 0x10028a2
  2060. const m_XK_braille_dots_27 = 0x1002842
  2061. const m_XK_braille_dots_278 = 0x10028c2
  2062. const m_XK_braille_dots_28 = 0x1002882
  2063. const m_XK_braille_dots_3 = 0x1002804
  2064. const m_XK_braille_dots_34 = 0x100280c
  2065. const m_XK_braille_dots_345 = 0x100281c
  2066. const m_XK_braille_dots_3456 = 0x100283c
  2067. const m_XK_braille_dots_34567 = 0x100287c
  2068. const m_XK_braille_dots_345678 = 0x10028fc
  2069. const m_XK_braille_dots_34568 = 0x10028bc
  2070. const m_XK_braille_dots_3457 = 0x100285c
  2071. const m_XK_braille_dots_34578 = 0x10028dc
  2072. const m_XK_braille_dots_3458 = 0x100289c
  2073. const m_XK_braille_dots_346 = 0x100282c
  2074. const m_XK_braille_dots_3467 = 0x100286c
  2075. const m_XK_braille_dots_34678 = 0x10028ec
  2076. const m_XK_braille_dots_3468 = 0x10028ac
  2077. const m_XK_braille_dots_347 = 0x100284c
  2078. const m_XK_braille_dots_3478 = 0x10028cc
  2079. const m_XK_braille_dots_348 = 0x100288c
  2080. const m_XK_braille_dots_35 = 0x1002814
  2081. const m_XK_braille_dots_356 = 0x1002834
  2082. const m_XK_braille_dots_3567 = 0x1002874
  2083. const m_XK_braille_dots_35678 = 0x10028f4
  2084. const m_XK_braille_dots_3568 = 0x10028b4
  2085. const m_XK_braille_dots_357 = 0x1002854
  2086. const m_XK_braille_dots_3578 = 0x10028d4
  2087. const m_XK_braille_dots_358 = 0x1002894
  2088. const m_XK_braille_dots_36 = 0x1002824
  2089. const m_XK_braille_dots_367 = 0x1002864
  2090. const m_XK_braille_dots_3678 = 0x10028e4
  2091. const m_XK_braille_dots_368 = 0x10028a4
  2092. const m_XK_braille_dots_37 = 0x1002844
  2093. const m_XK_braille_dots_378 = 0x10028c4
  2094. const m_XK_braille_dots_38 = 0x1002884
  2095. const m_XK_braille_dots_4 = 0x1002808
  2096. const m_XK_braille_dots_45 = 0x1002818
  2097. const m_XK_braille_dots_456 = 0x1002838
  2098. const m_XK_braille_dots_4567 = 0x1002878
  2099. const m_XK_braille_dots_45678 = 0x10028f8
  2100. const m_XK_braille_dots_4568 = 0x10028b8
  2101. const m_XK_braille_dots_457 = 0x1002858
  2102. const m_XK_braille_dots_4578 = 0x10028d8
  2103. const m_XK_braille_dots_458 = 0x1002898
  2104. const m_XK_braille_dots_46 = 0x1002828
  2105. const m_XK_braille_dots_467 = 0x1002868
  2106. const m_XK_braille_dots_4678 = 0x10028e8
  2107. const m_XK_braille_dots_468 = 0x10028a8
  2108. const m_XK_braille_dots_47 = 0x1002848
  2109. const m_XK_braille_dots_478 = 0x10028c8
  2110. const m_XK_braille_dots_48 = 0x1002888
  2111. const m_XK_braille_dots_5 = 0x1002810
  2112. const m_XK_braille_dots_56 = 0x1002830
  2113. const m_XK_braille_dots_567 = 0x1002870
  2114. const m_XK_braille_dots_5678 = 0x10028f0
  2115. const m_XK_braille_dots_568 = 0x10028b0
  2116. const m_XK_braille_dots_57 = 0x1002850
  2117. const m_XK_braille_dots_578 = 0x10028d0
  2118. const m_XK_braille_dots_58 = 0x1002890
  2119. const m_XK_braille_dots_6 = 0x1002820
  2120. const m_XK_braille_dots_67 = 0x1002860
  2121. const m_XK_braille_dots_678 = 0x10028e0
  2122. const m_XK_braille_dots_68 = 0x10028a0
  2123. const m_XK_braille_dots_7 = 0x1002840
  2124. const m_XK_braille_dots_78 = 0x10028c0
  2125. const m_XK_braille_dots_8 = 0x1002880
  2126. const m_XK_breve = 0x01a2
  2127. const m_XK_brokenbar = 0x00a6
  2128. const m_XK_c = 0x0063
  2129. const m_XK_c_h = 0xfea3
  2130. const m_XK_cabovedot = 0x02e5
  2131. const m_XK_cacute = 0x01e6
  2132. const m_XK_caron = 0x01b7
  2133. const m_XK_ccaron = 0x01e8
  2134. const m_XK_ccedilla = 0x00e7
  2135. const m_XK_ccircumflex = 0x02e6
  2136. const m_XK_cedilla = 0x00b8
  2137. const m_XK_cent = 0x00a2
  2138. const m_XK_ch = 0xfea0
  2139. const m_XK_colon = 0x003a
  2140. const m_XK_comma = 0x002c
  2141. const m_XK_containsas = 0x100220B
  2142. const m_XK_copyright = 0x00a9
  2143. const m_XK_cuberoot = 0x100221B
  2144. const m_XK_currency = 0x00a4
  2145. const m_XK_d = 0x0064
  2146. const m_XK_dabovedot = 0x1001e0b
  2147. const m_XK_dcaron = 0x01ef
  2148. const m_XK_dead_A = 0xfe81
  2149. const m_XK_dead_E = 0xfe83
  2150. const m_XK_dead_I = 0xfe85
  2151. const m_XK_dead_O = 0xfe87
  2152. const m_XK_dead_U = 0xfe89
  2153. const m_XK_dead_a = 0xfe80
  2154. const m_XK_dead_abovecomma = 0xfe64
  2155. const m_XK_dead_abovedot = 0xfe56
  2156. const m_XK_dead_abovereversedcomma = 0xfe65
  2157. const m_XK_dead_abovering = 0xfe58
  2158. const m_XK_dead_aboveverticalline = 0xfe91
  2159. const m_XK_dead_acute = 0xfe51
  2160. const m_XK_dead_belowbreve = 0xfe6b
  2161. const m_XK_dead_belowcircumflex = 0xfe69
  2162. const m_XK_dead_belowcomma = 0xfe6e
  2163. const m_XK_dead_belowdiaeresis = 0xfe6c
  2164. const m_XK_dead_belowdot = 0xfe60
  2165. const m_XK_dead_belowmacron = 0xfe68
  2166. const m_XK_dead_belowring = 0xfe67
  2167. const m_XK_dead_belowtilde = 0xfe6a
  2168. const m_XK_dead_belowverticalline = 0xfe92
  2169. const m_XK_dead_breve = 0xfe55
  2170. const m_XK_dead_capital_schwa = 0xfe8b
  2171. const m_XK_dead_caron = 0xfe5a
  2172. const m_XK_dead_cedilla = 0xfe5b
  2173. const m_XK_dead_circumflex = 0xfe52
  2174. const m_XK_dead_currency = 0xfe6f
  2175. const m_XK_dead_dasia = 0xfe65
  2176. const m_XK_dead_diaeresis = 0xfe57
  2177. const m_XK_dead_doubleacute = 0xfe59
  2178. const m_XK_dead_doublegrave = 0xfe66
  2179. const m_XK_dead_e = 0xfe82
  2180. const m_XK_dead_grave = 0xfe50
  2181. const m_XK_dead_greek = 0xfe8c
  2182. const m_XK_dead_hook = 0xfe61
  2183. const m_XK_dead_horn = 0xfe62
  2184. const m_XK_dead_i = 0xfe84
  2185. const m_XK_dead_invertedbreve = 0xfe6d
  2186. const m_XK_dead_iota = 0xfe5d
  2187. const m_XK_dead_longsolidusoverlay = 0xfe93
  2188. const m_XK_dead_lowline = 0xfe90
  2189. const m_XK_dead_macron = 0xfe54
  2190. const m_XK_dead_o = 0xfe86
  2191. const m_XK_dead_ogonek = 0xfe5c
  2192. const m_XK_dead_perispomeni = 0xfe53
  2193. const m_XK_dead_psili = 0xfe64
  2194. const m_XK_dead_semivoiced_sound = 0xfe5f
  2195. const m_XK_dead_small_schwa = 0xfe8a
  2196. const m_XK_dead_stroke = 0xfe63
  2197. const m_XK_dead_tilde = 0xfe53
  2198. const m_XK_dead_u = 0xfe88
  2199. const m_XK_dead_voiced_sound = 0xfe5e
  2200. const m_XK_degree = 0x00b0
  2201. const m_XK_diaeresis = 0x00a8
  2202. const m_XK_dintegral = 0x100222C
  2203. const m_XK_division = 0x00f7
  2204. const m_XK_dollar = 0x0024
  2205. const m_XK_doubleacute = 0x01bd
  2206. const m_XK_dstroke = 0x01f0
  2207. const m_XK_e = 0x0065
  2208. const m_XK_eabovedot = 0x03ec
  2209. const m_XK_eacute = 0x00e9
  2210. const m_XK_ebelowdot = 0x1001eb9
  2211. const m_XK_ecaron = 0x01ec
  2212. const m_XK_ecircumflex = 0x00ea
  2213. const m_XK_ecircumflexacute = 0x1001ebf
  2214. const m_XK_ecircumflexbelowdot = 0x1001ec7
  2215. const m_XK_ecircumflexgrave = 0x1001ec1
  2216. const m_XK_ecircumflexhook = 0x1001ec3
  2217. const m_XK_ecircumflextilde = 0x1001ec5
  2218. const m_XK_ediaeresis = 0x00eb
  2219. const m_XK_egrave = 0x00e8
  2220. const m_XK_ehook = 0x1001ebb
  2221. const m_XK_eightsubscript = 0x1002088
  2222. const m_XK_eightsuperior = 0x1002078
  2223. const m_XK_elementof = 0x1002208
  2224. const m_XK_emacron = 0x03ba
  2225. const m_XK_emptyset = 0x1002205
  2226. const m_XK_eng = 0x03bf
  2227. const m_XK_eogonek = 0x01ea
  2228. const m_XK_equal = 0x003d
  2229. const m_XK_eth = 0x00f0
  2230. const m_XK_etilde = 0x1001ebd
  2231. const m_XK_exclam = 0x0021
  2232. const m_XK_exclamdown = 0x00a1
  2233. const m_XK_ezh = 0x1000292
  2234. const m_XK_f = 0x0066
  2235. const m_XK_fabovedot = 0x1001e1f
  2236. const m_XK_fivesubscript = 0x1002085
  2237. const m_XK_fivesuperior = 0x1002075
  2238. const m_XK_foursubscript = 0x1002084
  2239. const m_XK_foursuperior = 0x1002074
  2240. const m_XK_fourthroot = 0x100221C
  2241. const m_XK_g = 0x0067
  2242. const m_XK_gabovedot = 0x02f5
  2243. const m_XK_gbreve = 0x02bb
  2244. const m_XK_gcaron = 0x10001e7
  2245. const m_XK_gcedilla = 0x03bb
  2246. const m_XK_gcircumflex = 0x02f8
  2247. const m_XK_grave = 0x0060
  2248. const m_XK_greater = 0x003e
  2249. const m_XK_guillemotleft = 0x00ab
  2250. const m_XK_guillemotright = 0x00bb
  2251. const m_XK_h = 0x0068
  2252. const m_XK_hcircumflex = 0x02b6
  2253. const m_XK_hebrew_aleph = 0x0ce0
  2254. const m_XK_hebrew_ayin = 0x0cf2
  2255. const m_XK_hebrew_bet = 0x0ce1
  2256. const m_XK_hebrew_beth = 0x0ce1
  2257. const m_XK_hebrew_chet = 0x0ce7
  2258. const m_XK_hebrew_dalet = 0x0ce3
  2259. const m_XK_hebrew_daleth = 0x0ce3
  2260. const m_XK_hebrew_doublelowline = 0x0cdf
  2261. const m_XK_hebrew_finalkaph = 0x0cea
  2262. const m_XK_hebrew_finalmem = 0x0ced
  2263. const m_XK_hebrew_finalnun = 0x0cef
  2264. const m_XK_hebrew_finalpe = 0x0cf3
  2265. const m_XK_hebrew_finalzade = 0x0cf5
  2266. const m_XK_hebrew_finalzadi = 0x0cf5
  2267. const m_XK_hebrew_gimel = 0x0ce2
  2268. const m_XK_hebrew_gimmel = 0x0ce2
  2269. const m_XK_hebrew_he = 0x0ce4
  2270. const m_XK_hebrew_het = 0x0ce7
  2271. const m_XK_hebrew_kaph = 0x0ceb
  2272. const m_XK_hebrew_kuf = 0x0cf7
  2273. const m_XK_hebrew_lamed = 0x0cec
  2274. const m_XK_hebrew_mem = 0x0cee
  2275. const m_XK_hebrew_nun = 0x0cf0
  2276. const m_XK_hebrew_pe = 0x0cf4
  2277. const m_XK_hebrew_qoph = 0x0cf7
  2278. const m_XK_hebrew_resh = 0x0cf8
  2279. const m_XK_hebrew_samech = 0x0cf1
  2280. const m_XK_hebrew_samekh = 0x0cf1
  2281. const m_XK_hebrew_shin = 0x0cf9
  2282. const m_XK_hebrew_taf = 0x0cfa
  2283. const m_XK_hebrew_taw = 0x0cfa
  2284. const m_XK_hebrew_tet = 0x0ce8
  2285. const m_XK_hebrew_teth = 0x0ce8
  2286. const m_XK_hebrew_waw = 0x0ce5
  2287. const m_XK_hebrew_yod = 0x0ce9
  2288. const m_XK_hebrew_zade = 0x0cf6
  2289. const m_XK_hebrew_zadi = 0x0cf6
  2290. const m_XK_hebrew_zain = 0x0ce6
  2291. const m_XK_hebrew_zayin = 0x0ce6
  2292. const m_XK_hstroke = 0x02b1
  2293. const m_XK_hyphen = 0x00ad
  2294. const m_XK_i = 0x0069
  2295. const m_XK_iacute = 0x00ed
  2296. const m_XK_ibelowdot = 0x1001ecb
  2297. const m_XK_ibreve = 0x100012d
  2298. const m_XK_icircumflex = 0x00ee
  2299. const m_XK_idiaeresis = 0x00ef
  2300. const m_XK_idotless = 0x02b9
  2301. const m_XK_igrave = 0x00ec
  2302. const m_XK_ihook = 0x1001ec9
  2303. const m_XK_imacron = 0x03ef
  2304. const m_XK_iogonek = 0x03e7
  2305. const m_XK_itilde = 0x03b5
  2306. const m_XK_j = 0x006a
  2307. const m_XK_jcircumflex = 0x02bc
  2308. const m_XK_k = 0x006b
  2309. const m_XK_kana_A = 0x04b1
  2310. const m_XK_kana_CHI = 0x04c1
  2311. const m_XK_kana_E = 0x04b4
  2312. const m_XK_kana_FU = 0x04cc
  2313. const m_XK_kana_HA = 0x04ca
  2314. const m_XK_kana_HE = 0x04cd
  2315. const m_XK_kana_HI = 0x04cb
  2316. const m_XK_kana_HO = 0x04ce
  2317. const m_XK_kana_HU = 0x04cc
  2318. const m_XK_kana_I = 0x04b2
  2319. const m_XK_kana_KA = 0x04b6
  2320. const m_XK_kana_KE = 0x04b9
  2321. const m_XK_kana_KI = 0x04b7
  2322. const m_XK_kana_KO = 0x04ba
  2323. const m_XK_kana_KU = 0x04b8
  2324. const m_XK_kana_MA = 0x04cf
  2325. const m_XK_kana_ME = 0x04d2
  2326. const m_XK_kana_MI = 0x04d0
  2327. const m_XK_kana_MO = 0x04d3
  2328. const m_XK_kana_MU = 0x04d1
  2329. const m_XK_kana_N = 0x04dd
  2330. const m_XK_kana_NA = 0x04c5
  2331. const m_XK_kana_NE = 0x04c8
  2332. const m_XK_kana_NI = 0x04c6
  2333. const m_XK_kana_NO = 0x04c9
  2334. const m_XK_kana_NU = 0x04c7
  2335. const m_XK_kana_O = 0x04b5
  2336. const m_XK_kana_RA = 0x04d7
  2337. const m_XK_kana_RE = 0x04da
  2338. const m_XK_kana_RI = 0x04d8
  2339. const m_XK_kana_RO = 0x04db
  2340. const m_XK_kana_RU = 0x04d9
  2341. const m_XK_kana_SA = 0x04bb
  2342. const m_XK_kana_SE = 0x04be
  2343. const m_XK_kana_SHI = 0x04bc
  2344. const m_XK_kana_SO = 0x04bf
  2345. const m_XK_kana_SU = 0x04bd
  2346. const m_XK_kana_TA = 0x04c0
  2347. const m_XK_kana_TE = 0x04c3
  2348. const m_XK_kana_TI = 0x04c1
  2349. const m_XK_kana_TO = 0x04c4
  2350. const m_XK_kana_TSU = 0x04c2
  2351. const m_XK_kana_TU = 0x04c2
  2352. const m_XK_kana_U = 0x04b3
  2353. const m_XK_kana_WA = 0x04dc
  2354. const m_XK_kana_WO = 0x04a6
  2355. const m_XK_kana_YA = 0x04d4
  2356. const m_XK_kana_YO = 0x04d6
  2357. const m_XK_kana_YU = 0x04d5
  2358. const m_XK_kana_a = 0x04a7
  2359. const m_XK_kana_closingbracket = 0x04a3
  2360. const m_XK_kana_comma = 0x04a4
  2361. const m_XK_kana_conjunctive = 0x04a5
  2362. const m_XK_kana_e = 0x04aa
  2363. const m_XK_kana_fullstop = 0x04a1
  2364. const m_XK_kana_i = 0x04a8
  2365. const m_XK_kana_middledot = 0x04a5
  2366. const m_XK_kana_o = 0x04ab
  2367. const m_XK_kana_openingbracket = 0x04a2
  2368. const m_XK_kana_switch = 0xff7e
  2369. const m_XK_kana_tsu = 0x04af
  2370. const m_XK_kana_tu = 0x04af
  2371. const m_XK_kana_u = 0x04a9
  2372. const m_XK_kana_ya = 0x04ac
  2373. const m_XK_kana_yo = 0x04ae
  2374. const m_XK_kana_yu = 0x04ad
  2375. const m_XK_kappa = 0x03a2
  2376. const m_XK_kcedilla = 0x03f3
  2377. const m_XK_kra = 0x03a2
  2378. const m_XK_l = 0x006c
  2379. const m_XK_lacute = 0x01e5
  2380. const m_XK_lbelowdot = 0x1001e37
  2381. const m_XK_lcaron = 0x01b5
  2382. const m_XK_lcedilla = 0x03b6
  2383. const m_XK_less = 0x003c
  2384. const m_XK_lstroke = 0x01b3
  2385. const m_XK_m = 0x006d
  2386. const m_XK_mabovedot = 0x1001e41
  2387. const m_XK_macron = 0x00af
  2388. const m_XK_masculine = 0x00ba
  2389. const m_XK_minus = 0x002d
  2390. const m_XK_mu = 0x00b5
  2391. const m_XK_multiply = 0x00d7
  2392. const m_XK_n = 0x006e
  2393. const m_XK_nacute = 0x01f1
  2394. const m_XK_ncaron = 0x01f2
  2395. const m_XK_ncedilla = 0x03f1
  2396. const m_XK_ninesubscript = 0x1002089
  2397. const m_XK_ninesuperior = 0x1002079
  2398. const m_XK_nobreakspace = 0x00a0
  2399. const m_XK_notapproxeq = 0x1002247
  2400. const m_XK_notelementof = 0x1002209
  2401. const m_XK_notidentical = 0x1002262
  2402. const m_XK_notsign = 0x00ac
  2403. const m_XK_ntilde = 0x00f1
  2404. const m_XK_numbersign = 0x0023
  2405. const m_XK_numerosign = 0x06b0
  2406. const m_XK_o = 0x006f
  2407. const m_XK_oacute = 0x00f3
  2408. const m_XK_obarred = 0x1000275
  2409. const m_XK_obelowdot = 0x1001ecd
  2410. const m_XK_ocaron = 0x10001d2
  2411. const m_XK_ocircumflex = 0x00f4
  2412. const m_XK_ocircumflexacute = 0x1001ed1
  2413. const m_XK_ocircumflexbelowdot = 0x1001ed9
  2414. const m_XK_ocircumflexgrave = 0x1001ed3
  2415. const m_XK_ocircumflexhook = 0x1001ed5
  2416. const m_XK_ocircumflextilde = 0x1001ed7
  2417. const m_XK_odiaeresis = 0x00f6
  2418. const m_XK_odoubleacute = 0x01f5
  2419. const m_XK_oe = 0x13bd
  2420. const m_XK_ogonek = 0x01b2
  2421. const m_XK_ograve = 0x00f2
  2422. const m_XK_ohook = 0x1001ecf
  2423. const m_XK_ohorn = 0x10001a1
  2424. const m_XK_ohornacute = 0x1001edb
  2425. const m_XK_ohornbelowdot = 0x1001ee3
  2426. const m_XK_ohorngrave = 0x1001edd
  2427. const m_XK_ohornhook = 0x1001edf
  2428. const m_XK_ohorntilde = 0x1001ee1
  2429. const m_XK_omacron = 0x03f2
  2430. const m_XK_onehalf = 0x00bd
  2431. const m_XK_onequarter = 0x00bc
  2432. const m_XK_onesubscript = 0x1002081
  2433. const m_XK_onesuperior = 0x00b9
  2434. const m_XK_ooblique = 0x00f8
  2435. const m_XK_ordfeminine = 0x00aa
  2436. const m_XK_oslash = 0x00f8
  2437. const m_XK_otilde = 0x00f5
  2438. const m_XK_overline = 0x047e
  2439. const m_XK_p = 0x0070
  2440. const m_XK_pabovedot = 0x1001e57
  2441. const m_XK_paragraph = 0x00b6
  2442. const m_XK_parenleft = 0x0028
  2443. const m_XK_parenright = 0x0029
  2444. const m_XK_partdifferential = 0x1002202
  2445. const m_XK_percent = 0x0025
  2446. const m_XK_period = 0x002e
  2447. const m_XK_periodcentered = 0x00b7
  2448. const m_XK_plus = 0x002b
  2449. const m_XK_plusminus = 0x00b1
  2450. const m_XK_prolongedsound = 0x04b0
  2451. const m_XK_q = 0x0071
  2452. const m_XK_question = 0x003f
  2453. const m_XK_questiondown = 0x00bf
  2454. const m_XK_quotedbl = 0x0022
  2455. const m_XK_quoteleft = 0x0060
  2456. const m_XK_quoteright = 0x0027
  2457. const m_XK_r = 0x0072
  2458. const m_XK_racute = 0x01e0
  2459. const m_XK_rcaron = 0x01f8
  2460. const m_XK_rcedilla = 0x03b3
  2461. const m_XK_registered = 0x00ae
  2462. const m_XK_s = 0x0073
  2463. const m_XK_sabovedot = 0x1001e61
  2464. const m_XK_sacute = 0x01b6
  2465. const m_XK_scaron = 0x01b9
  2466. const m_XK_scedilla = 0x01ba
  2467. const m_XK_schwa = 0x1000259
  2468. const m_XK_scircumflex = 0x02fe
  2469. const m_XK_script_switch = 0xff7e
  2470. const m_XK_section = 0x00a7
  2471. const m_XK_semicolon = 0x003b
  2472. const m_XK_semivoicedsound = 0x04df
  2473. const m_XK_sevensubscript = 0x1002087
  2474. const m_XK_sevensuperior = 0x1002077
  2475. const m_XK_sixsubscript = 0x1002086
  2476. const m_XK_sixsuperior = 0x1002076
  2477. const m_XK_slash = 0x002f
  2478. const m_XK_space = 0x0020
  2479. const m_XK_squareroot = 0x100221A
  2480. const m_XK_ssharp = 0x00df
  2481. const m_XK_sterling = 0x00a3
  2482. const m_XK_stricteq = 0x1002263
  2483. const m_XK_t = 0x0074
  2484. const m_XK_tabovedot = 0x1001e6b
  2485. const m_XK_tcaron = 0x01bb
  2486. const m_XK_tcedilla = 0x01fe
  2487. const m_XK_thorn = 0x00fe
  2488. const m_XK_threequarters = 0x00be
  2489. const m_XK_threesubscript = 0x1002083
  2490. const m_XK_threesuperior = 0x00b3
  2491. const m_XK_tintegral = 0x100222D
  2492. const m_XK_tslash = 0x03bc
  2493. const m_XK_twosubscript = 0x1002082
  2494. const m_XK_twosuperior = 0x00b2
  2495. const m_XK_u = 0x0075
  2496. const m_XK_uacute = 0x00fa
  2497. const m_XK_ubelowdot = 0x1001ee5
  2498. const m_XK_ubreve = 0x02fd
  2499. const m_XK_ucircumflex = 0x00fb
  2500. const m_XK_udiaeresis = 0x00fc
  2501. const m_XK_udoubleacute = 0x01fb
  2502. const m_XK_ugrave = 0x00f9
  2503. const m_XK_uhook = 0x1001ee7
  2504. const m_XK_uhorn = 0x10001b0
  2505. const m_XK_uhornacute = 0x1001ee9
  2506. const m_XK_uhornbelowdot = 0x1001ef1
  2507. const m_XK_uhorngrave = 0x1001eeb
  2508. const m_XK_uhornhook = 0x1001eed
  2509. const m_XK_uhorntilde = 0x1001eef
  2510. const m_XK_umacron = 0x03fe
  2511. const m_XK_underscore = 0x005f
  2512. const m_XK_uogonek = 0x03f9
  2513. const m_XK_uring = 0x01f9
  2514. const m_XK_utilde = 0x03fd
  2515. const m_XK_v = 0x0076
  2516. const m_XK_voicedsound = 0x04de
  2517. const m_XK_w = 0x0077
  2518. const m_XK_wacute = 0x1001e83
  2519. const m_XK_wcircumflex = 0x1000175
  2520. const m_XK_wdiaeresis = 0x1001e85
  2521. const m_XK_wgrave = 0x1001e81
  2522. const m_XK_x = 0x0078
  2523. const m_XK_xabovedot = 0x1001e8b
  2524. const m_XK_y = 0x0079
  2525. const m_XK_yacute = 0x00fd
  2526. const m_XK_ybelowdot = 0x1001ef5
  2527. const m_XK_ycircumflex = 0x1000177
  2528. const m_XK_ydiaeresis = 0x00ff
  2529. const m_XK_yen = 0x00a5
  2530. const m_XK_ygrave = 0x1001ef3
  2531. const m_XK_yhook = 0x1001ef7
  2532. const m_XK_ytilde = 0x1001ef9
  2533. const m_XK_z = 0x007a
  2534. const m_XK_zabovedot = 0x01bf
  2535. const m_XK_zacute = 0x01bc
  2536. const m_XK_zcaron = 0x01be
  2537. const m_XK_zerosubscript = 0x1002080
  2538. const m_XK_zerosuperior = 0x1002070
  2539. const m_XK_zstroke = 0x10001b6
  2540. const m_XLookupBoth = 4
  2541. const m_XLookupChars = 2
  2542. const m_XLookupKeySym = 3
  2543. const m_XLookupNone = 1
  2544. const m_XMD_H = 1
  2545. const m_XNArea = "area"
  2546. const m_XNAreaNeeded = "areaNeeded"
  2547. const m_XNBackground = "background"
  2548. const m_XNBackgroundPixmap = "backgroundPixmap"
  2549. const m_XNBaseFontName = "baseFontName"
  2550. const m_XNClientWindow = "clientWindow"
  2551. const m_XNColormap = "colorMap"
  2552. const m_XNContextualDrawing = "contextualDrawing"
  2553. const m_XNCursor = "cursor"
  2554. const m_XNDefaultString = "defaultString"
  2555. const m_XNDestroyCallback = "destroyCallback"
  2556. const m_XNDirectionalDependentDrawing = "directionalDependentDrawing"
  2557. const m_XNFilterEvents = "filterEvents"
  2558. const m_XNFocusWindow = "focusWindow"
  2559. const m_XNFontInfo = "fontInfo"
  2560. const m_XNFontSet = "fontSet"
  2561. const m_XNForeground = "foreground"
  2562. const m_XNGeometryCallback = "geometryCallback"
  2563. const m_XNHotKey = "hotKey"
  2564. const m_XNHotKeyState = "hotKeyState"
  2565. const m_XNInputStyle = "inputStyle"
  2566. const m_XNLineSpace = "lineSpace"
  2567. const m_XNMissingCharSet = "missingCharSet"
  2568. const m_XNOMAutomatic = "omAutomatic"
  2569. const m_XNOrientation = "orientation"
  2570. const m_XNPreeditAttributes = "preeditAttributes"
  2571. const m_XNPreeditCaretCallback = "preeditCaretCallback"
  2572. const m_XNPreeditDoneCallback = "preeditDoneCallback"
  2573. const m_XNPreeditDrawCallback = "preeditDrawCallback"
  2574. const m_XNPreeditStartCallback = "preeditStartCallback"
  2575. const m_XNPreeditState = "preeditState"
  2576. const m_XNPreeditStateNotifyCallback = "preeditStateNotifyCallback"
  2577. const m_XNQueryICValuesList = "queryICValuesList"
  2578. const m_XNQueryIMValuesList = "queryIMValuesList"
  2579. const m_XNQueryInputStyle = "queryInputStyle"
  2580. const m_XNQueryOrientation = "queryOrientation"
  2581. const m_XNR6PreeditCallback = "r6PreeditCallback"
  2582. const m_XNRequiredCharSet = "requiredCharSet"
  2583. const m_XNResetState = "resetState"
  2584. const m_XNResourceClass = "resourceClass"
  2585. const m_XNResourceName = "resourceName"
  2586. const m_XNSeparatorofNestedList = "separatorofNestedList"
  2587. const m_XNSpotLocation = "spotLocation"
  2588. const m_XNStatusAttributes = "statusAttributes"
  2589. const m_XNStatusDoneCallback = "statusDoneCallback"
  2590. const m_XNStatusDrawCallback = "statusDrawCallback"
  2591. const m_XNStatusStartCallback = "statusStartCallback"
  2592. const m_XNStdColormap = "stdColorMap"
  2593. const m_XNStringConversion = "stringConversion"
  2594. const m_XNStringConversionCallback = "stringConversionCallback"
  2595. const m_XNVaNestedList = "XNVaNestedList"
  2596. const m_XNVisiblePosition = "visiblePosition"
  2597. const m_XNegative = 0x0010
  2598. const m_XTHREADS = 1
  2599. const m_XUSE_MTSAFE_API = 1
  2600. const m_XValue = 0x0001
  2601. const m_XYBitmap = 0
  2602. const m_XYPixmap = 1
  2603. const m_X_AllocColor = 84
  2604. const m_X_AllocColorCells = 86
  2605. const m_X_AllocColorPlanes = 87
  2606. const m_X_AllocNamedColor = 85
  2607. const m_X_AllowEvents = 35
  2608. const m_X_Bell = 104
  2609. const m_X_ChangeActivePointerGrab = 30
  2610. const m_X_ChangeGC = 56
  2611. const m_X_ChangeHosts = 109
  2612. const m_X_ChangeKeyboardControl = 102
  2613. const m_X_ChangeKeyboardMapping = 100
  2614. const m_X_ChangePointerControl = 105
  2615. const m_X_ChangeProperty = 18
  2616. const m_X_ChangeSaveSet = 6
  2617. const m_X_ChangeWindowAttributes = 2
  2618. const m_X_CirculateWindow = 13
  2619. const m_X_ClearArea = 61
  2620. const m_X_CloseFont = 46
  2621. const m_X_ConfigureWindow = 12
  2622. const m_X_ConvertSelection = 24
  2623. const m_X_CopyArea = 62
  2624. const m_X_CopyColormapAndFree = 80
  2625. const m_X_CopyGC = 57
  2626. const m_X_CopyPlane = 63
  2627. const m_X_CreateColormap = 78
  2628. const m_X_CreateCursor = 93
  2629. const m_X_CreateGC = 55
  2630. const m_X_CreateGlyphCursor = 94
  2631. const m_X_CreatePixmap = 53
  2632. const m_X_CreateWindow = 1
  2633. const m_X_DeleteProperty = 19
  2634. const m_X_DestroySubwindows = 5
  2635. const m_X_DestroyWindow = 4
  2636. const m_X_Error = 0
  2637. const m_X_FillPoly = 69
  2638. const m_X_ForceScreenSaver = 115
  2639. const m_X_FreeColormap = 79
  2640. const m_X_FreeColors = 88
  2641. const m_X_FreeCursor = 95
  2642. const m_X_FreeGC = 60
  2643. const m_X_FreePixmap = 54
  2644. const m_X_GetAtomName = 17
  2645. const m_X_GetFontPath = 52
  2646. const m_X_GetGeometry = 14
  2647. const m_X_GetImage = 73
  2648. const m_X_GetInputFocus = 43
  2649. const m_X_GetKeyboardControl = 103
  2650. const m_X_GetKeyboardMapping = 101
  2651. const m_X_GetModifierMapping = 119
  2652. const m_X_GetMotionEvents = 39
  2653. const m_X_GetPointerControl = 106
  2654. const m_X_GetPointerMapping = 117
  2655. const m_X_GetProperty = 20
  2656. const m_X_GetScreenSaver = 108
  2657. const m_X_GetSelectionOwner = 23
  2658. const m_X_GetWindowAttributes = 3
  2659. const m_X_GrabButton = 28
  2660. const m_X_GrabKey = 33
  2661. const m_X_GrabKeyboard = 31
  2662. const m_X_GrabPointer = 26
  2663. const m_X_GrabServer = 36
  2664. const m_X_HAVE_UTF8_STRING = 1
  2665. const m_X_ImageText16 = 77
  2666. const m_X_ImageText8 = 76
  2667. const m_X_InstallColormap = 81
  2668. const m_X_InternAtom = 16
  2669. const m_X_KillClient = 113
  2670. const m_X_ListExtensions = 99
  2671. const m_X_ListFonts = 49
  2672. const m_X_ListFontsWithInfo = 50
  2673. const m_X_ListHosts = 110
  2674. const m_X_ListInstalledColormaps = 83
  2675. const m_X_ListProperties = 21
  2676. const m_X_LookupColor = 92
  2677. const m_X_MapSubwindows = 9
  2678. const m_X_MapWindow = 8
  2679. const m_X_NoOperation = 127
  2680. const m_X_OpenFont = 45
  2681. const m_X_PROTOCOL = 11
  2682. const m_X_PROTOCOL_REVISION = 0
  2683. const m_X_PolyArc = 68
  2684. const m_X_PolyFillArc = 71
  2685. const m_X_PolyFillRectangle = 70
  2686. const m_X_PolyLine = 65
  2687. const m_X_PolyPoint = 64
  2688. const m_X_PolyRectangle = 67
  2689. const m_X_PolySegment = 66
  2690. const m_X_PolyText16 = 75
  2691. const m_X_PolyText8 = 74
  2692. const m_X_PutImage = 72
  2693. const m_X_QueryBestSize = 97
  2694. const m_X_QueryColors = 91
  2695. const m_X_QueryExtension = 98
  2696. const m_X_QueryFont = 47
  2697. const m_X_QueryKeymap = 44
  2698. const m_X_QueryPointer = 38
  2699. const m_X_QueryTextExtents = 48
  2700. const m_X_QueryTree = 15
  2701. const m_X_RecolorCursor = 96
  2702. const m_X_RenderAddGlyphs = 20
  2703. const m_X_RenderAddGlyphsFromPicture = 21
  2704. const m_X_RenderAddTraps = 32
  2705. const m_X_RenderChangePicture = 5
  2706. const m_X_RenderColorTrapezoids = 14
  2707. const m_X_RenderColorTriangles = 15
  2708. const m_X_RenderComposite = 8
  2709. const m_X_RenderCompositeGlyphs16 = 24
  2710. const m_X_RenderCompositeGlyphs32 = 25
  2711. const m_X_RenderCompositeGlyphs8 = 23
  2712. const m_X_RenderCreateAnimCursor = 31
  2713. const m_X_RenderCreateConicalGradient = 36
  2714. const m_X_RenderCreateCursor = 27
  2715. const m_X_RenderCreateGlyphSet = 17
  2716. const m_X_RenderCreateLinearGradient = 34
  2717. const m_X_RenderCreatePicture = 4
  2718. const m_X_RenderCreateRadialGradient = 35
  2719. const m_X_RenderCreateSolidFill = 33
  2720. const m_X_RenderFillRectangles = 26
  2721. const m_X_RenderFreeGlyphSet = 19
  2722. const m_X_RenderFreeGlyphs = 22
  2723. const m_X_RenderFreePicture = 7
  2724. const m_X_RenderQueryDithers = 3
  2725. const m_X_RenderQueryFilters = 29
  2726. const m_X_RenderQueryPictFormats = 1
  2727. const m_X_RenderQueryPictIndexValues = 2
  2728. const m_X_RenderQueryVersion = 0
  2729. const m_X_RenderReferenceGlyphSet = 18
  2730. const m_X_RenderScale = 9
  2731. const m_X_RenderSetPictureClipRectangles = 6
  2732. const m_X_RenderSetPictureFilter = 30
  2733. const m_X_RenderSetPictureTransform = 28
  2734. const m_X_RenderTrapezoids = 10
  2735. const m_X_RenderTriFan = 13
  2736. const m_X_RenderTriStrip = 12
  2737. const m_X_RenderTriangles = 11
  2738. const m_X_ReparentWindow = 7
  2739. const m_X_Reply = 1
  2740. const m_X_RotateProperties = 114
  2741. const m_X_SendEvent = 25
  2742. const m_X_SetAccessControl = 111
  2743. const m_X_SetClipRectangles = 59
  2744. const m_X_SetCloseDownMode = 112
  2745. const m_X_SetDashes = 58
  2746. const m_X_SetFontPath = 51
  2747. const m_X_SetInputFocus = 42
  2748. const m_X_SetModifierMapping = 118
  2749. const m_X_SetPointerMapping = 116
  2750. const m_X_SetScreenSaver = 107
  2751. const m_X_SetSelectionOwner = 22
  2752. const m_X_StoreColors = 89
  2753. const m_X_StoreNamedColor = 90
  2754. const m_X_TCP_PORT = 6000
  2755. const m_X_TranslateCoords = 40
  2756. const m_X_UngrabButton = 29
  2757. const m_X_UngrabKey = 34
  2758. const m_X_UngrabKeyboard = 32
  2759. const m_X_UngrabPointer = 27
  2760. const m_X_UngrabServer = 37
  2761. const m_X_UninstallColormap = 82
  2762. const m_X_UnmapSubwindows = 11
  2763. const m_X_UnmapWindow = 10
  2764. const m_X_WarpPointer = 41
  2765. const m_XlibSpecificationRelease = 6
  2766. const m_YNegative = 0x0020
  2767. const m_YSorted = 1
  2768. const m_YValue = 0x0002
  2769. const m_YXBanded = 3
  2770. const m_YXSorted = 2
  2771. const m_ZLNSPERBATCH = 1024
  2772. const m_ZPixmap = 2
  2773. const m_ZRCTSPERBATCH = 256
  2774. const m_ZoomState = 2
  2775. const m__ARCH_PPC = 1
  2776. const m__ARCH_PPC64 = 1
  2777. const m__ARCH_PPCGR = 1
  2778. const m__ARCH_PPCSQ = 1
  2779. const m__ARCH_PWR4 = 1
  2780. const m__ARCH_PWR5 = 1
  2781. const m__ARCH_PWR5X = 1
  2782. const m__ARCH_PWR6 = 1
  2783. const m__ARCH_PWR7 = 1
  2784. const m__ARCH_PWR8 = 1
  2785. const m__CALL_ELF = 2
  2786. const m__CALL_LINUX = 1
  2787. const m__GNU_SOURCE = 1
  2788. const m__LITTLE_ENDIAN = 1
  2789. const m__LP64 = 1
  2790. const m__STDC_PREDEF_H = 1
  2791. const m__X11_XLIBINT_H_ = 1
  2792. const m__XBCOPYFUNC = "_Xbcopy"
  2793. const m__X_INLINE = "inline"
  2794. const m__X_RESTRICT_KYWD = "restrict"
  2795. const m__Xconst = "const"
  2796. const m___ALTIVEC__ = 1
  2797. const m___APPLE_ALTIVEC__ = 1
  2798. const m___ATOMIC_ACQUIRE = 2
  2799. const m___ATOMIC_ACQ_REL = 4
  2800. const m___ATOMIC_CONSUME = 1
  2801. const m___ATOMIC_RELAXED = 0
  2802. const m___ATOMIC_RELEASE = 3
  2803. const m___ATOMIC_SEQ_CST = 5
  2804. const m___BIGGEST_ALIGNMENT__ = 16
  2805. const m___BIG_ENDIAN = 4321
  2806. const m___BUILTIN_CPU_SUPPORTS__ = 1
  2807. const m___BYTE_ORDER = 1234
  2808. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  2809. const m___CCGO__ = 1
  2810. const m___CHAR_BIT__ = 8
  2811. const m___CHAR_UNSIGNED__ = 1
  2812. const m___CMODEL_MEDIUM__ = 1
  2813. const m___CRYPTO__ = 1
  2814. const m___DBL_DECIMAL_DIG__ = 17
  2815. const m___DBL_DIG__ = 15
  2816. const m___DBL_HAS_DENORM__ = 1
  2817. const m___DBL_HAS_INFINITY__ = 1
  2818. const m___DBL_HAS_QUIET_NAN__ = 1
  2819. const m___DBL_MANT_DIG__ = 53
  2820. const m___DBL_MAX_10_EXP__ = 308
  2821. const m___DBL_MAX_EXP__ = 1024
  2822. const m___DEC128_EPSILON__ = 1e-33
  2823. const m___DEC128_MANT_DIG__ = 34
  2824. const m___DEC128_MAX_EXP__ = 6145
  2825. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  2826. const m___DEC128_MIN__ = 1e-6143
  2827. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  2828. const m___DEC32_EPSILON__ = 1e-6
  2829. const m___DEC32_MANT_DIG__ = 7
  2830. const m___DEC32_MAX_EXP__ = 97
  2831. const m___DEC32_MAX__ = 9.999999e96
  2832. const m___DEC32_MIN__ = 1e-95
  2833. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  2834. const m___DEC64_EPSILON__ = 1e-15
  2835. const m___DEC64_MANT_DIG__ = 16
  2836. const m___DEC64_MAX_EXP__ = 385
  2837. const m___DEC64_MAX__ = "9.999999999999999E384"
  2838. const m___DEC64_MIN__ = 1e-383
  2839. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  2840. const m___DECIMAL_DIG__ = 17
  2841. const m___DEC_EVAL_METHOD__ = 2
  2842. const m___ELF__ = 1
  2843. const m___FINITE_MATH_ONLY__ = 0
  2844. const m___FLOAT128_TYPE__ = 1
  2845. const m___FLOAT128__ = 1
  2846. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  2847. const m___FLT128_DECIMAL_DIG__ = 36
  2848. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  2849. const m___FLT128_DIG__ = 33
  2850. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  2851. const m___FLT128_HAS_DENORM__ = 1
  2852. const m___FLT128_HAS_INFINITY__ = 1
  2853. const m___FLT128_HAS_QUIET_NAN__ = 1
  2854. const m___FLT128_MANT_DIG__ = 113
  2855. const m___FLT128_MAX_10_EXP__ = 4932
  2856. const m___FLT128_MAX_EXP__ = 16384
  2857. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2858. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  2859. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2860. const m___FLT32X_DECIMAL_DIG__ = 17
  2861. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  2862. const m___FLT32X_DIG__ = 15
  2863. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  2864. const m___FLT32X_HAS_DENORM__ = 1
  2865. const m___FLT32X_HAS_INFINITY__ = 1
  2866. const m___FLT32X_HAS_QUIET_NAN__ = 1
  2867. const m___FLT32X_MANT_DIG__ = 53
  2868. const m___FLT32X_MAX_10_EXP__ = 308
  2869. const m___FLT32X_MAX_EXP__ = 1024
  2870. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  2871. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  2872. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  2873. const m___FLT32_DECIMAL_DIG__ = 9
  2874. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  2875. const m___FLT32_DIG__ = 6
  2876. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  2877. const m___FLT32_HAS_DENORM__ = 1
  2878. const m___FLT32_HAS_INFINITY__ = 1
  2879. const m___FLT32_HAS_QUIET_NAN__ = 1
  2880. const m___FLT32_MANT_DIG__ = 24
  2881. const m___FLT32_MAX_10_EXP__ = 38
  2882. const m___FLT32_MAX_EXP__ = 128
  2883. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  2884. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  2885. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  2886. const m___FLT64X_DECIMAL_DIG__ = 36
  2887. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  2888. const m___FLT64X_DIG__ = 33
  2889. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  2890. const m___FLT64X_HAS_DENORM__ = 1
  2891. const m___FLT64X_HAS_INFINITY__ = 1
  2892. const m___FLT64X_HAS_QUIET_NAN__ = 1
  2893. const m___FLT64X_MANT_DIG__ = 113
  2894. const m___FLT64X_MAX_10_EXP__ = 4932
  2895. const m___FLT64X_MAX_EXP__ = 16384
  2896. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2897. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  2898. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2899. const m___FLT64_DECIMAL_DIG__ = 17
  2900. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  2901. const m___FLT64_DIG__ = 15
  2902. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  2903. const m___FLT64_HAS_DENORM__ = 1
  2904. const m___FLT64_HAS_INFINITY__ = 1
  2905. const m___FLT64_HAS_QUIET_NAN__ = 1
  2906. const m___FLT64_MANT_DIG__ = 53
  2907. const m___FLT64_MAX_10_EXP__ = 308
  2908. const m___FLT64_MAX_EXP__ = 1024
  2909. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  2910. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  2911. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  2912. const m___FLT_DECIMAL_DIG__ = 9
  2913. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  2914. const m___FLT_DIG__ = 6
  2915. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  2916. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  2917. const m___FLT_EVAL_METHOD__ = 0
  2918. const m___FLT_HAS_DENORM__ = 1
  2919. const m___FLT_HAS_INFINITY__ = 1
  2920. const m___FLT_HAS_QUIET_NAN__ = 1
  2921. const m___FLT_MANT_DIG__ = 24
  2922. const m___FLT_MAX_10_EXP__ = 38
  2923. const m___FLT_MAX_EXP__ = 128
  2924. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  2925. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  2926. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  2927. const m___FLT_RADIX__ = 2
  2928. const m___FP_FAST_FMA = 1
  2929. const m___FP_FAST_FMAF = 1
  2930. const m___FP_FAST_FMAF32 = 1
  2931. const m___FP_FAST_FMAF32x = 1
  2932. const m___FP_FAST_FMAF64 = 1
  2933. const m___FP_FAST_FMAL = 1
  2934. const m___FUNCTION__ = "__func__"
  2935. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  2936. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  2937. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  2938. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  2939. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  2940. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  2941. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  2942. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  2943. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  2944. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  2945. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  2946. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  2947. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  2948. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 = 1
  2949. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  2950. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  2951. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  2952. const m___GCC_IEC_559 = 2
  2953. const m___GCC_IEC_559_COMPLEX = 2
  2954. const m___GNUC_MINOR__ = 2
  2955. const m___GNUC_PATCHLEVEL__ = 1
  2956. const m___GNUC_STDC_INLINE__ = 1
  2957. const m___GNUC__ = 10
  2958. const m___GXX_ABI_VERSION = 1014
  2959. const m___HAVE_BSWAP__ = 1
  2960. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  2961. const m___HTM__ = 1
  2962. const m___INT16_MAX__ = 0x7fff
  2963. const m___INT32_MAX__ = 0x7fffffff
  2964. const m___INT32_TYPE__ = "int"
  2965. const m___INT64_MAX__ = 0x7fffffffffffffff
  2966. const m___INT8_MAX__ = 0x7f
  2967. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  2968. const m___INTMAX_WIDTH__ = 64
  2969. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  2970. const m___INTPTR_WIDTH__ = 64
  2971. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  2972. const m___INT_FAST16_WIDTH__ = 64
  2973. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  2974. const m___INT_FAST32_WIDTH__ = 64
  2975. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  2976. const m___INT_FAST64_WIDTH__ = 64
  2977. const m___INT_FAST8_MAX__ = 0x7f
  2978. const m___INT_FAST8_WIDTH__ = 8
  2979. const m___INT_LEAST16_MAX__ = 0x7fff
  2980. const m___INT_LEAST16_WIDTH__ = 16
  2981. const m___INT_LEAST32_MAX__ = 0x7fffffff
  2982. const m___INT_LEAST32_TYPE__ = "int"
  2983. const m___INT_LEAST32_WIDTH__ = 32
  2984. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  2985. const m___INT_LEAST64_WIDTH__ = 64
  2986. const m___INT_LEAST8_MAX__ = 0x7f
  2987. const m___INT_LEAST8_WIDTH__ = 8
  2988. const m___INT_MAX__ = 0x7fffffff
  2989. const m___INT_WIDTH__ = 32
  2990. const m___LDBL_DECIMAL_DIG__ = 17
  2991. const m___LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  2992. const m___LDBL_DIG__ = 15
  2993. const m___LDBL_EPSILON__ = 2.22044604925031308084726333618164062e-16
  2994. const m___LDBL_HAS_DENORM__ = 1
  2995. const m___LDBL_HAS_INFINITY__ = 1
  2996. const m___LDBL_HAS_QUIET_NAN__ = 1
  2997. const m___LDBL_MANT_DIG__ = 53
  2998. const m___LDBL_MAX_10_EXP__ = 308
  2999. const m___LDBL_MAX_EXP__ = 1024
  3000. const m___LDBL_MAX__ = 1.79769313486231570814527423731704357e+308
  3001. const m___LDBL_MIN__ = 2.22507385850720138309023271733240406e-308
  3002. const m___LDBL_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  3003. const m___LITTLE_ENDIAN = 1234
  3004. const m___LITTLE_ENDIAN__ = 1
  3005. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  3006. const m___LONG_LONG_WIDTH__ = 64
  3007. const m___LONG_MAX = 0x7fffffffffffffff
  3008. const m___LONG_MAX__ = 0x7fffffffffffffff
  3009. const m___LONG_WIDTH__ = 64
  3010. const m___LP64__ = 1
  3011. const m___NO_INLINE__ = 1
  3012. const m___ORDER_BIG_ENDIAN__ = 4321
  3013. const m___ORDER_LITTLE_ENDIAN__ = 1234
  3014. const m___ORDER_PDP_ENDIAN__ = 3412
  3015. const m___PDP_ENDIAN = 3412
  3016. const m___PIC__ = 2
  3017. const m___PIE__ = 2
  3018. const m___POWER8_VECTOR__ = 1
  3019. const m___PPC64__ = 1
  3020. const m___PPC__ = 1
  3021. const m___PRAGMA_REDEFINE_EXTNAME = 1
  3022. const m___PRETTY_FUNCTION__ = "__func__"
  3023. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  3024. const m___PTRDIFF_WIDTH__ = 64
  3025. const m___QUAD_MEMORY_ATOMIC__ = 1
  3026. const m___RECIPF__ = 1
  3027. const m___RECIP_PRECISION__ = 1
  3028. const m___RECIP__ = 1
  3029. const m___RSQRTEF__ = 1
  3030. const m___RSQRTE__ = 1
  3031. const m___SCHAR_MAX__ = 0x7f
  3032. const m___SCHAR_WIDTH__ = 8
  3033. const m___SHRT_MAX__ = 0x7fff
  3034. const m___SHRT_WIDTH__ = 16
  3035. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  3036. const m___SIG_ATOMIC_TYPE__ = "int"
  3037. const m___SIG_ATOMIC_WIDTH__ = 32
  3038. const m___SIZEOF_DOUBLE__ = 8
  3039. const m___SIZEOF_FLOAT__ = 4
  3040. const m___SIZEOF_INT128__ = 16
  3041. const m___SIZEOF_INT__ = 4
  3042. const m___SIZEOF_LONG_DOUBLE__ = 8
  3043. const m___SIZEOF_LONG_LONG__ = 8
  3044. const m___SIZEOF_LONG__ = 8
  3045. const m___SIZEOF_POINTER__ = 8
  3046. const m___SIZEOF_PTRDIFF_T__ = 8
  3047. const m___SIZEOF_SHORT__ = 2
  3048. const m___SIZEOF_SIZE_T__ = 8
  3049. const m___SIZEOF_WCHAR_T__ = 4
  3050. const m___SIZEOF_WINT_T__ = 4
  3051. const m___SIZE_MAX__ = 0xffffffffffffffff
  3052. const m___SIZE_WIDTH__ = 64
  3053. const m___STDC_HOSTED__ = 1
  3054. const m___STDC_IEC_559_COMPLEX__ = 1
  3055. const m___STDC_IEC_559__ = 1
  3056. const m___STDC_ISO_10646__ = 201706
  3057. const m___STDC_UTF_16__ = 1
  3058. const m___STDC_UTF_32__ = 1
  3059. const m___STDC_VERSION__ = 201710
  3060. const m___STDC__ = 1
  3061. const m___STRUCT_PARM_ALIGN__ = 16
  3062. const m___TM_FENCE__ = 1
  3063. const m___UINT16_MAX__ = 0xffff
  3064. const m___UINT32_MAX__ = 0xffffffff
  3065. const m___UINT64_MAX__ = 0xffffffffffffffff
  3066. const m___UINT8_MAX__ = 0xff
  3067. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  3068. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  3069. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  3070. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  3071. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  3072. const m___UINT_FAST8_MAX__ = 0xff
  3073. const m___UINT_LEAST16_MAX__ = 0xffff
  3074. const m___UINT_LEAST32_MAX__ = 0xffffffff
  3075. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  3076. const m___UINT_LEAST8_MAX__ = 0xff
  3077. const m___USE_TIME_BITS64 = 1
  3078. const m___VEC_ELEMENT_REG_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  3079. const m___VEC__ = 10206
  3080. const m___VERSION__ = "10.2.1 20210110"
  3081. const m___VSX__ = 1
  3082. const m___WCHAR_MAX__ = 0x7fffffff
  3083. const m___WCHAR_TYPE__ = "int"
  3084. const m___WCHAR_WIDTH__ = 32
  3085. const m___WINT_MAX__ = 0xffffffff
  3086. const m___WINT_MIN__ = 0
  3087. const m___WINT_WIDTH__ = 32
  3088. const m___builtin_copysignq = "__builtin_copysignf128"
  3089. const m___builtin_fabsq = "__builtin_fabsf128"
  3090. const m___builtin_huge_valq = "__builtin_huge_valf128"
  3091. const m___builtin_infq = "__builtin_inff128"
  3092. const m___builtin_nanq = "__builtin_nanf128"
  3093. const m___builtin_nansq = "__builtin_nansf128"
  3094. const m___builtin_vsx_vperm = "__builtin_vec_perm"
  3095. const m___builtin_vsx_xvmaddadp = "__builtin_vsx_xvmadddp"
  3096. const m___builtin_vsx_xvmaddasp = "__builtin_vsx_xvmaddsp"
  3097. const m___builtin_vsx_xvmaddmdp = "__builtin_vsx_xvmadddp"
  3098. const m___builtin_vsx_xvmaddmsp = "__builtin_vsx_xvmaddsp"
  3099. const m___builtin_vsx_xvmsubadp = "__builtin_vsx_xvmsubdp"
  3100. const m___builtin_vsx_xvmsubasp = "__builtin_vsx_xvmsubsp"
  3101. const m___builtin_vsx_xvmsubmdp = "__builtin_vsx_xvmsubdp"
  3102. const m___builtin_vsx_xvmsubmsp = "__builtin_vsx_xvmsubsp"
  3103. const m___builtin_vsx_xvnmaddadp = "__builtin_vsx_xvnmadddp"
  3104. const m___builtin_vsx_xvnmaddasp = "__builtin_vsx_xvnmaddsp"
  3105. const m___builtin_vsx_xvnmaddmdp = "__builtin_vsx_xvnmadddp"
  3106. const m___builtin_vsx_xvnmaddmsp = "__builtin_vsx_xvnmaddsp"
  3107. const m___builtin_vsx_xvnmsubadp = "__builtin_vsx_xvnmsubdp"
  3108. const m___builtin_vsx_xvnmsubasp = "__builtin_vsx_xvnmsubsp"
  3109. const m___builtin_vsx_xvnmsubmdp = "__builtin_vsx_xvnmsubdp"
  3110. const m___builtin_vsx_xvnmsubmsp = "__builtin_vsx_xvnmsubsp"
  3111. const m___builtin_vsx_xxland = "__builtin_vec_and"
  3112. const m___builtin_vsx_xxlandc = "__builtin_vec_andc"
  3113. const m___builtin_vsx_xxlnor = "__builtin_vec_nor"
  3114. const m___builtin_vsx_xxlor = "__builtin_vec_or"
  3115. const m___builtin_vsx_xxlxor = "__builtin_vec_xor"
  3116. const m___builtin_vsx_xxsel = "__builtin_vec_sel"
  3117. const m___float128 = "__ieee128"
  3118. const m___gnu_linux__ = 1
  3119. const m___inline = "inline"
  3120. const m___linux = 1
  3121. const m___linux__ = 1
  3122. const m___pic__ = 2
  3123. const m___pie__ = 2
  3124. const m___powerpc64__ = 1
  3125. const m___powerpc__ = 1
  3126. const m___restrict = "restrict"
  3127. const m___restrict_arr = "restrict"
  3128. const m___unix = 1
  3129. const m___unix__ = 1
  3130. const m_alloca = "__builtin_alloca"
  3131. const m_linux = 1
  3132. const m_sz_xAllocColorCellsReply = 32
  3133. const m_sz_xAllocColorCellsReq = 12
  3134. const m_sz_xAllocColorPlanesReply = 32
  3135. const m_sz_xAllocColorPlanesReq = 16
  3136. const m_sz_xAllocColorReply = 32
  3137. const m_sz_xAllocColorReq = 16
  3138. const m_sz_xAllocNamedColorReply = 32
  3139. const m_sz_xAllocNamedColorReq = 12
  3140. const m_sz_xAllowEventsReq = 8
  3141. const m_sz_xAnimCursorElt = 8
  3142. const m_sz_xArc = 12
  3143. const m_sz_xBellReq = 4
  3144. const m_sz_xChangeActivePointerGrabReq = 16
  3145. const m_sz_xChangeGCReq = 12
  3146. const m_sz_xChangeHostsReq = 8
  3147. const m_sz_xChangeKeyboardControlReq = 8
  3148. const m_sz_xChangeKeyboardMappingReq = 8
  3149. const m_sz_xChangeModeReq = 4
  3150. const m_sz_xChangePointerControlReq = 12
  3151. const m_sz_xChangePropertyReq = 24
  3152. const m_sz_xChangeSaveSetReq = 8
  3153. const m_sz_xChangeWindowAttributesReq = 12
  3154. const m_sz_xCharInfo = 12
  3155. const m_sz_xCirculateWindowReq = 8
  3156. const m_sz_xClearAreaReq = 16
  3157. const m_sz_xColorItem = 12
  3158. const m_sz_xConfigureWindowReq = 12
  3159. const m_sz_xConnClientPrefix = 12
  3160. const m_sz_xConnSetup = 32
  3161. const m_sz_xConnSetupPrefix = 8
  3162. const m_sz_xConvertSelectionReq = 24
  3163. const m_sz_xCopyAreaReq = 28
  3164. const m_sz_xCopyColormapAndFreeReq = 12
  3165. const m_sz_xCopyGCReq = 16
  3166. const m_sz_xCopyPlaneReq = 32
  3167. const m_sz_xCreateColormapReq = 16
  3168. const m_sz_xCreateCursorReq = 32
  3169. const m_sz_xCreateGCReq = 16
  3170. const m_sz_xCreateGlyphCursorReq = 32
  3171. const m_sz_xCreatePixmapReq = 16
  3172. const m_sz_xCreateWindowReq = 32
  3173. const m_sz_xDeletePropertyReq = 12
  3174. const m_sz_xDepth = 8
  3175. const m_sz_xDirectFormat = 16
  3176. const m_sz_xError = 32
  3177. const m_sz_xEvent = 32
  3178. const m_sz_xFillPolyReq = 16
  3179. const m_sz_xFontProp = 8
  3180. const m_sz_xForceScreenSaverReq = 4
  3181. const m_sz_xFreeColorsReq = 12
  3182. const m_sz_xGenericReply = 32
  3183. const m_sz_xGetAtomNameReply = 32
  3184. const m_sz_xGetFontPathReply = 32
  3185. const m_sz_xGetGeometryReply = 32
  3186. const m_sz_xGetImageReply = 32
  3187. const m_sz_xGetImageReq = 20
  3188. const m_sz_xGetInputFocusReply = 32
  3189. const m_sz_xGetKeyboardControlReply = 52
  3190. const m_sz_xGetKeyboardMappingReply = 32
  3191. const m_sz_xGetKeyboardMappingReq = 8
  3192. const m_sz_xGetModifierMappingReply = 32
  3193. const m_sz_xGetMotionEventsReply = 32
  3194. const m_sz_xGetMotionEventsReq = 16
  3195. const m_sz_xGetPointerControlReply = 32
  3196. const m_sz_xGetPointerMappingReply = 32
  3197. const m_sz_xGetPropertyReply = 32
  3198. const m_sz_xGetPropertyReq = 24
  3199. const m_sz_xGetScreenSaverReply = 32
  3200. const m_sz_xGetSelectionOwnerReply = 32
  3201. const m_sz_xGetWindowAttributesReply = 44
  3202. const m_sz_xGlyphElt = 8
  3203. const m_sz_xGlyphInfo = 12
  3204. const m_sz_xGrabButtonReq = 24
  3205. const m_sz_xGrabKeyReq = 16
  3206. const m_sz_xGrabKeyboardReply = 32
  3207. const m_sz_xGrabKeyboardReq = 16
  3208. const m_sz_xGrabPointerReply = 32
  3209. const m_sz_xGrabPointerReq = 24
  3210. const m_sz_xHostEntry = 4
  3211. const m_sz_xImageText16Req = 16
  3212. const m_sz_xImageText8Req = 16
  3213. const m_sz_xImageTextReq = 16
  3214. const m_sz_xIndexValue = 12
  3215. const m_sz_xInternAtomReply = 32
  3216. const m_sz_xInternAtomReq = 8
  3217. const m_sz_xKeymapEvent = 32
  3218. const m_sz_xLineFixed = 16
  3219. const m_sz_xListExtensionsReply = 32
  3220. const m_sz_xListFontsReply = 32
  3221. const m_sz_xListFontsReq = 8
  3222. const m_sz_xListFontsWithInfoReply = 60
  3223. const m_sz_xListFontsWithInfoReq = 8
  3224. const m_sz_xListHostsReply = 32
  3225. const m_sz_xListHostsReq = 4
  3226. const m_sz_xListInstalledColormapsReply = 32
  3227. const m_sz_xListPropertiesReply = 32
  3228. const m_sz_xLookupColorReply = 32
  3229. const m_sz_xLookupColorReq = 12
  3230. const m_sz_xOpenFontReq = 12
  3231. const m_sz_xPictDepth = 8
  3232. const m_sz_xPictFormInfo = 28
  3233. const m_sz_xPictScreen = 8
  3234. const m_sz_xPictVisual = 8
  3235. const m_sz_xPixmapFormat = 8
  3236. const m_sz_xPoint = 4
  3237. const m_sz_xPointFixed = 8
  3238. const m_sz_xPolyArcReq = 12
  3239. const m_sz_xPolyFillArcReq = 12
  3240. const m_sz_xPolyFillRectangleReq = 12
  3241. const m_sz_xPolyLineReq = 12
  3242. const m_sz_xPolyPointReq = 12
  3243. const m_sz_xPolyRectangleReq = 12
  3244. const m_sz_xPolySegmentReq = 12
  3245. const m_sz_xPolyText16Req = 16
  3246. const m_sz_xPolyText8Req = 16
  3247. const m_sz_xPolyTextReq = 16
  3248. const m_sz_xPropIconSize = 24
  3249. const m_sz_xPutImageReq = 24
  3250. const m_sz_xQueryBestSizeReply = 32
  3251. const m_sz_xQueryBestSizeReq = 12
  3252. const m_sz_xQueryColorsReply = 32
  3253. const m_sz_xQueryColorsReq = 8
  3254. const m_sz_xQueryExtensionReply = 32
  3255. const m_sz_xQueryExtensionReq = 8
  3256. const m_sz_xQueryFontReply = 60
  3257. const m_sz_xQueryKeymapReply = 40
  3258. const m_sz_xQueryPointerReply = 32
  3259. const m_sz_xQueryTextExtentsReply = 32
  3260. const m_sz_xQueryTextExtentsReq = 8
  3261. const m_sz_xQueryTreeReply = 32
  3262. const m_sz_xRecolorCursorReq = 20
  3263. const m_sz_xRectangle = 8
  3264. const m_sz_xRenderAddGlyphsReq = 12
  3265. const m_sz_xRenderAddTrapsReq = 12
  3266. const m_sz_xRenderChangePictureReq = 12
  3267. const m_sz_xRenderColor = 8
  3268. const m_sz_xRenderCompositeGlyphs16Req = 28
  3269. const m_sz_xRenderCompositeGlyphs32Req = 28
  3270. const m_sz_xRenderCompositeGlyphs8Req = 28
  3271. const m_sz_xRenderCompositeReq = 36
  3272. const m_sz_xRenderCreateAnimCursorReq = 8
  3273. const m_sz_xRenderCreateConicalGradientReq = 24
  3274. const m_sz_xRenderCreateCursorReq = 16
  3275. const m_sz_xRenderCreateGlyphSetReq = 12
  3276. const m_sz_xRenderCreateLinearGradientReq = 28
  3277. const m_sz_xRenderCreatePictureReq = 20
  3278. const m_sz_xRenderCreateRadialGradientReq = 36
  3279. const m_sz_xRenderCreateSolidFillReq = 16
  3280. const m_sz_xRenderFillRectanglesReq = 20
  3281. const m_sz_xRenderFreeGlyphSetReq = 8
  3282. const m_sz_xRenderFreeGlyphsReq = 8
  3283. const m_sz_xRenderFreePictureReq = 8
  3284. const m_sz_xRenderQueryFiltersReply = 32
  3285. const m_sz_xRenderQueryFiltersReq = 8
  3286. const m_sz_xRenderQueryPictFormatsReply = 32
  3287. const m_sz_xRenderQueryPictFormatsReq = 4
  3288. const m_sz_xRenderQueryPictIndexValuesReply = 32
  3289. const m_sz_xRenderQueryPictIndexValuesReq = 8
  3290. const m_sz_xRenderQueryVersionReply = 32
  3291. const m_sz_xRenderQueryVersionReq = 12
  3292. const m_sz_xRenderReferenceGlyphSetReq = 24
  3293. const m_sz_xRenderScaleReq = 32
  3294. const m_sz_xRenderSetPictureClipRectanglesReq = 12
  3295. const m_sz_xRenderSetPictureFilterReq = 12
  3296. const m_sz_xRenderSetPictureTransformReq = 44
  3297. const m_sz_xRenderTransform = 36
  3298. const m_sz_xRenderTrapezoidsReq = 24
  3299. const m_sz_xRenderTriFanReq = 24
  3300. const m_sz_xRenderTriStripReq = 24
  3301. const m_sz_xRenderTrianglesReq = 24
  3302. const m_sz_xReparentWindowReq = 16
  3303. const m_sz_xReply = 32
  3304. const m_sz_xReq = 4
  3305. const m_sz_xResourceReq = 8
  3306. const m_sz_xRotatePropertiesReq = 12
  3307. const m_sz_xSegment = 8
  3308. const m_sz_xSendEventReq = 44
  3309. const m_sz_xSetAccessControlReq = 4
  3310. const m_sz_xSetClipRectanglesReq = 12
  3311. const m_sz_xSetCloseDownModeReq = 4
  3312. const m_sz_xSetDashesReq = 12
  3313. const m_sz_xSetFontPathReq = 8
  3314. const m_sz_xSetInputFocusReq = 12
  3315. const m_sz_xSetMappingReply = 32
  3316. const m_sz_xSetModifierMappingReply = 32
  3317. const m_sz_xSetModifierMappingReq = 4
  3318. const m_sz_xSetPointerMappingReply = 32
  3319. const m_sz_xSetPointerMappingReq = 4
  3320. const m_sz_xSetScreenSaverReq = 12
  3321. const m_sz_xSetSelectionOwnerReq = 16
  3322. const m_sz_xSpanFix = 12
  3323. const m_sz_xStoreColorsReq = 8
  3324. const m_sz_xStoreNamedColorReq = 16
  3325. const m_sz_xTextElt = 2
  3326. const m_sz_xTimecoord = 8
  3327. const m_sz_xTranslateCoordsReply = 32
  3328. const m_sz_xTranslateCoordsReq = 16
  3329. const m_sz_xTrap = 24
  3330. const m_sz_xTrapezoid = 40
  3331. const m_sz_xTriangle = 24
  3332. const m_sz_xUngrabButtonReq = 12
  3333. const m_sz_xUngrabKeyReq = 12
  3334. const m_sz_xVisualType = 24
  3335. const m_sz_xWarpPointerReq = 24
  3336. const m_sz_xWindowRoot = 40
  3337. const m_sz_xrgb = 8
  3338. const m_unix = 1
  3339. const m_xFalse = 0
  3340. const m_xTrue = 1
  3341. type t__builtin_va_list = uintptr
  3342. type t__predefined_size_t = uint64
  3343. type t__predefined_wchar_t = int32
  3344. type t__predefined_ptrdiff_t = int64
  3345. type Tuintptr_t = uint64
  3346. type Tintptr_t = int64
  3347. type Tint8_t = int8
  3348. type Tint16_t = int16
  3349. type Tint32_t = int32
  3350. type Tint64_t = int64
  3351. type Tintmax_t = int64
  3352. type Tuint8_t = uint8
  3353. type Tuint16_t = uint16
  3354. type Tuint32_t = uint32
  3355. type Tuint64_t = uint64
  3356. type Tuintmax_t = uint64
  3357. type Tint_fast8_t = int8
  3358. type Tint_fast64_t = int64
  3359. type Tint_least8_t = int8
  3360. type Tint_least16_t = int16
  3361. type Tint_least32_t = int32
  3362. type Tint_least64_t = int64
  3363. type Tuint_fast8_t = uint8
  3364. type Tuint_fast64_t = uint64
  3365. type Tuint_least8_t = uint8
  3366. type Tuint_least16_t = uint16
  3367. type Tuint_least32_t = uint32
  3368. type Tuint_least64_t = uint64
  3369. type Tint_fast16_t = int32
  3370. type Tint_fast32_t = int32
  3371. type Tuint_fast16_t = uint32
  3372. type Tuint_fast32_t = uint32
  3373. type Tsize_t = uint64
  3374. type Tssize_t = int64
  3375. type Tregister_t = int64
  3376. type Ttime_t = int64
  3377. type Tsuseconds_t = int64
  3378. type Tu_int64_t = uint64
  3379. type Tmode_t = uint32
  3380. type Tnlink_t = uint64
  3381. type Toff_t = int64
  3382. type Tino_t = uint64
  3383. type Tdev_t = uint64
  3384. type Tblksize_t = int64
  3385. type Tblkcnt_t = int64
  3386. type Tfsblkcnt_t = uint64
  3387. type Tfsfilcnt_t = uint64
  3388. type Ttimer_t = uintptr
  3389. type Tclockid_t = int32
  3390. type Tclock_t = int64
  3391. type Tpid_t = int32
  3392. type Tid_t = uint32
  3393. type Tuid_t = uint32
  3394. type Tgid_t = uint32
  3395. type Tkey_t = int32
  3396. type Tuseconds_t = uint32
  3397. type Tpthread_t = uintptr
  3398. type Tpthread_once_t = int32
  3399. type Tpthread_key_t = uint32
  3400. type Tpthread_spinlock_t = int32
  3401. type Tpthread_mutexattr_t = struct {
  3402. F__attr uint32
  3403. }
  3404. type Tpthread_condattr_t = struct {
  3405. F__attr uint32
  3406. }
  3407. type Tpthread_barrierattr_t = struct {
  3408. F__attr uint32
  3409. }
  3410. type Tpthread_rwlockattr_t = struct {
  3411. F__attr [2]uint32
  3412. }
  3413. type Tpthread_attr_t = struct {
  3414. F__u struct {
  3415. F__vi [0][14]int32
  3416. F__s [0][7]uint64
  3417. F__i [14]int32
  3418. }
  3419. }
  3420. type Tpthread_mutex_t = struct {
  3421. F__u struct {
  3422. F__vi [0][10]int32
  3423. F__p [0][5]uintptr
  3424. F__i [10]int32
  3425. }
  3426. }
  3427. type Tpthread_cond_t = struct {
  3428. F__u struct {
  3429. F__vi [0][12]int32
  3430. F__p [0][6]uintptr
  3431. F__i [12]int32
  3432. }
  3433. }
  3434. type Tpthread_rwlock_t = struct {
  3435. F__u struct {
  3436. F__vi [0][14]int32
  3437. F__p [0][7]uintptr
  3438. F__i [14]int32
  3439. }
  3440. }
  3441. type Tpthread_barrier_t = struct {
  3442. F__u struct {
  3443. F__vi [0][8]int32
  3444. F__p [0][4]uintptr
  3445. F__i [8]int32
  3446. }
  3447. }
  3448. type Tu_int8_t = uint8
  3449. type Tu_int16_t = uint16
  3450. type Tu_int32_t = uint32
  3451. type Tcaddr_t = uintptr
  3452. type Tu_char = uint8
  3453. type Tu_short = uint16
  3454. type Tushort = uint16
  3455. type Tu_int = uint32
  3456. type Tuint = uint32
  3457. type Tu_long = uint64
  3458. type Tulong = uint64
  3459. type Tquad_t = int64
  3460. type Tu_quad_t = uint64
  3461. type Ttimeval = struct {
  3462. Ftv_sec Ttime_t
  3463. Ftv_usec Tsuseconds_t
  3464. }
  3465. type Ttimespec = struct {
  3466. Ftv_sec Ttime_t
  3467. Ftv_nsec int64
  3468. }
  3469. type Tsigset_t = struct {
  3470. F__bits [16]uint64
  3471. }
  3472. type t__sigset_t = Tsigset_t
  3473. type Tfd_mask = uint64
  3474. type Tfd_set = struct {
  3475. Ffds_bits [16]uint64
  3476. }
  3477. type TXID = uint64
  3478. type TMask = uint64
  3479. type TAtom = uint64
  3480. type TVisualID = uint64
  3481. type TTime = uint64
  3482. type TWindow = uint64
  3483. type TDrawable = uint64
  3484. type TFont = uint64
  3485. type TPixmap = uint64
  3486. type TCursor = uint64
  3487. type TColormap = uint64
  3488. type TGContext = uint64
  3489. type TKeySym = uint64
  3490. type TKeyCode = uint8
  3491. type Twchar_t = int32
  3492. type Tmax_align_t = struct {
  3493. F__ll int64
  3494. F__ld float64
  3495. }
  3496. type Tptrdiff_t = int64
  3497. type TXPointer = uintptr
  3498. type TXExtData = struct {
  3499. Fnumber int32
  3500. Fnext uintptr
  3501. Ffree_private uintptr
  3502. Fprivate_data TXPointer
  3503. }
  3504. type T_XExtData = TXExtData
  3505. type TXExtCodes = struct {
  3506. Fextension int32
  3507. Fmajor_opcode int32
  3508. Ffirst_event int32
  3509. Ffirst_error int32
  3510. }
  3511. type TXPixmapFormatValues = struct {
  3512. Fdepth int32
  3513. Fbits_per_pixel int32
  3514. Fscanline_pad int32
  3515. }
  3516. type TXGCValues = struct {
  3517. Ffunction int32
  3518. Fplane_mask uint64
  3519. Fforeground uint64
  3520. Fbackground uint64
  3521. Fline_width int32
  3522. Fline_style int32
  3523. Fcap_style int32
  3524. Fjoin_style int32
  3525. Ffill_style int32
  3526. Ffill_rule int32
  3527. Farc_mode int32
  3528. Ftile TPixmap
  3529. Fstipple TPixmap
  3530. Fts_x_origin int32
  3531. Fts_y_origin int32
  3532. Ffont TFont
  3533. Fsubwindow_mode int32
  3534. Fgraphics_exposures int32
  3535. Fclip_x_origin int32
  3536. Fclip_y_origin int32
  3537. Fclip_mask TPixmap
  3538. Fdash_offset int32
  3539. Fdashes uint8
  3540. }
  3541. type TGC = uintptr
  3542. type T_XGC = struct {
  3543. Fext_data uintptr
  3544. Fgid TGContext
  3545. Frects int32
  3546. Fdashes int32
  3547. Fdirty uint64
  3548. Fvalues TXGCValues
  3549. }
  3550. type TVisual = struct {
  3551. Fext_data uintptr
  3552. Fvisualid TVisualID
  3553. Fclass int32
  3554. Fred_mask uint64
  3555. Fgreen_mask uint64
  3556. Fblue_mask uint64
  3557. Fbits_per_rgb int32
  3558. Fmap_entries int32
  3559. }
  3560. type TDepth = struct {
  3561. Fdepth int32
  3562. Fnvisuals int32
  3563. Fvisuals uintptr
  3564. }
  3565. type T_XDisplay = struct {
  3566. Fext_data uintptr
  3567. Ffree_funcs uintptr
  3568. Ffd int32
  3569. Fconn_checker int32
  3570. Fproto_major_version int32
  3571. Fproto_minor_version int32
  3572. Fvendor uintptr
  3573. Fresource_base TXID
  3574. Fresource_mask TXID
  3575. Fresource_id TXID
  3576. Fresource_shift int32
  3577. Fresource_alloc uintptr
  3578. Fbyte_order int32
  3579. Fbitmap_unit int32
  3580. Fbitmap_pad int32
  3581. Fbitmap_bit_order int32
  3582. Fnformats int32
  3583. Fpixmap_format uintptr
  3584. Fvnumber int32
  3585. Frelease int32
  3586. Fhead uintptr
  3587. Ftail uintptr
  3588. Fqlen int32
  3589. Flast_request_read uint64
  3590. Frequest uint64
  3591. Flast_req uintptr
  3592. Fbuffer uintptr
  3593. Fbufptr uintptr
  3594. Fbufmax uintptr
  3595. Fmax_request_size uint32
  3596. Fdb uintptr
  3597. Fsynchandler uintptr
  3598. Fdisplay_name uintptr
  3599. Fdefault_screen int32
  3600. Fnscreens int32
  3601. Fscreens uintptr
  3602. Fmotion_buffer uint64
  3603. Fflags uint64
  3604. Fmin_keycode int32
  3605. Fmax_keycode int32
  3606. Fkeysyms uintptr
  3607. Fmodifiermap uintptr
  3608. Fkeysyms_per_keycode int32
  3609. Fxdefaults uintptr
  3610. Fscratch_buffer uintptr
  3611. Fscratch_length uint64
  3612. Fext_number int32
  3613. Fext_procs uintptr
  3614. Fevent_vec [128]uintptr
  3615. Fwire_vec [128]uintptr
  3616. Flock_meaning TKeySym
  3617. Flock uintptr
  3618. Fasync_handlers uintptr
  3619. Fbigreq_size uint64
  3620. Flock_fns uintptr
  3621. Fidlist_alloc uintptr
  3622. Fkey_bindings uintptr
  3623. Fcursor_font TFont
  3624. Fatoms uintptr
  3625. Fmode_switch uint32
  3626. Fnum_lock uint32
  3627. Fcontext_db uintptr
  3628. Ferror_vec uintptr
  3629. Fcms struct {
  3630. FdefaultCCCs TXPointer
  3631. FclientCmaps TXPointer
  3632. FperVisualIntensityMaps TXPointer
  3633. }
  3634. Fim_filters uintptr
  3635. Fqfree uintptr
  3636. Fnext_event_serial_num uint64
  3637. Fflushes uintptr
  3638. Fim_fd_info uintptr
  3639. Fim_fd_length int32
  3640. Fconn_watchers uintptr
  3641. Fwatcher_count int32
  3642. Ffiledes TXPointer
  3643. Fsavedsynchandler uintptr
  3644. Fresource_max TXID
  3645. Fxcmisc_opcode int32
  3646. Fxkb_info uintptr
  3647. Ftrans_conn uintptr
  3648. Fxcb uintptr
  3649. Fnext_cookie uint32
  3650. Fgeneric_event_vec [128]uintptr
  3651. Fgeneric_event_copy_vec [128]uintptr
  3652. Fcookiejar uintptr
  3653. Ferror_threads uintptr
  3654. Fexit_handler TXIOErrorExitHandler
  3655. Fexit_handler_data uintptr
  3656. }
  3657. type TScreen = struct {
  3658. Fext_data uintptr
  3659. Fdisplay uintptr
  3660. Froot TWindow
  3661. Fwidth int32
  3662. Fheight int32
  3663. Fmwidth int32
  3664. Fmheight int32
  3665. Fndepths int32
  3666. Fdepths uintptr
  3667. Froot_depth int32
  3668. Froot_visual uintptr
  3669. Fdefault_gc TGC
  3670. Fcmap TColormap
  3671. Fwhite_pixel uint64
  3672. Fblack_pixel uint64
  3673. Fmax_maps int32
  3674. Fmin_maps int32
  3675. Fbacking_store int32
  3676. Fsave_unders int32
  3677. Froot_input_mask int64
  3678. }
  3679. type TScreenFormat = struct {
  3680. Fext_data uintptr
  3681. Fdepth int32
  3682. Fbits_per_pixel int32
  3683. Fscanline_pad int32
  3684. }
  3685. type TXSetWindowAttributes = struct {
  3686. Fbackground_pixmap TPixmap
  3687. Fbackground_pixel uint64
  3688. Fborder_pixmap TPixmap
  3689. Fborder_pixel uint64
  3690. Fbit_gravity int32
  3691. Fwin_gravity int32
  3692. Fbacking_store int32
  3693. Fbacking_planes uint64
  3694. Fbacking_pixel uint64
  3695. Fsave_under int32
  3696. Fevent_mask int64
  3697. Fdo_not_propagate_mask int64
  3698. Foverride_redirect int32
  3699. Fcolormap TColormap
  3700. Fcursor TCursor
  3701. }
  3702. type TXWindowAttributes = struct {
  3703. Fx int32
  3704. Fy int32
  3705. Fwidth int32
  3706. Fheight int32
  3707. Fborder_width int32
  3708. Fdepth int32
  3709. Fvisual uintptr
  3710. Froot TWindow
  3711. Fclass int32
  3712. Fbit_gravity int32
  3713. Fwin_gravity int32
  3714. Fbacking_store int32
  3715. Fbacking_planes uint64
  3716. Fbacking_pixel uint64
  3717. Fsave_under int32
  3718. Fcolormap TColormap
  3719. Fmap_installed int32
  3720. Fmap_state int32
  3721. Fall_event_masks int64
  3722. Fyour_event_mask int64
  3723. Fdo_not_propagate_mask int64
  3724. Foverride_redirect int32
  3725. Fscreen uintptr
  3726. }
  3727. type TXHostAddress = struct {
  3728. Ffamily int32
  3729. Flength int32
  3730. Faddress uintptr
  3731. }
  3732. type TXServerInterpretedAddress = struct {
  3733. Ftypelength int32
  3734. Fvaluelength int32
  3735. Ftype1 uintptr
  3736. Fvalue uintptr
  3737. }
  3738. type TXImage = struct {
  3739. Fwidth int32
  3740. Fheight int32
  3741. Fxoffset int32
  3742. Fformat int32
  3743. Fdata uintptr
  3744. Fbyte_order int32
  3745. Fbitmap_unit int32
  3746. Fbitmap_bit_order int32
  3747. Fbitmap_pad int32
  3748. Fdepth int32
  3749. Fbytes_per_line int32
  3750. Fbits_per_pixel int32
  3751. Fred_mask uint64
  3752. Fgreen_mask uint64
  3753. Fblue_mask uint64
  3754. Fobdata TXPointer
  3755. Ff Tfuncs
  3756. }
  3757. type T_XImage = TXImage
  3758. type TXWindowChanges = struct {
  3759. Fx int32
  3760. Fy int32
  3761. Fwidth int32
  3762. Fheight int32
  3763. Fborder_width int32
  3764. Fsibling TWindow
  3765. Fstack_mode int32
  3766. }
  3767. type TXColor = struct {
  3768. Fpixel uint64
  3769. Fred uint16
  3770. Fgreen uint16
  3771. Fblue uint16
  3772. Fflags uint8
  3773. Fpad uint8
  3774. }
  3775. type TXSegment = struct {
  3776. Fx1 int16
  3777. Fy1 int16
  3778. Fx2 int16
  3779. Fy2 int16
  3780. }
  3781. type TXPoint = struct {
  3782. Fx int16
  3783. Fy int16
  3784. }
  3785. type TXRectangle = struct {
  3786. Fx int16
  3787. Fy int16
  3788. Fwidth uint16
  3789. Fheight uint16
  3790. }
  3791. type TXArc = struct {
  3792. Fx int16
  3793. Fy int16
  3794. Fwidth uint16
  3795. Fheight uint16
  3796. Fangle1 int16
  3797. Fangle2 int16
  3798. }
  3799. type TXKeyboardControl = struct {
  3800. Fkey_click_percent int32
  3801. Fbell_percent int32
  3802. Fbell_pitch int32
  3803. Fbell_duration int32
  3804. Fled int32
  3805. Fled_mode int32
  3806. Fkey int32
  3807. Fauto_repeat_mode int32
  3808. }
  3809. type TXKeyboardState = struct {
  3810. Fkey_click_percent int32
  3811. Fbell_percent int32
  3812. Fbell_pitch uint32
  3813. Fbell_duration uint32
  3814. Fled_mask uint64
  3815. Fglobal_auto_repeat int32
  3816. Fauto_repeats [32]uint8
  3817. }
  3818. type TXTimeCoord = struct {
  3819. Ftime TTime
  3820. Fx int16
  3821. Fy int16
  3822. }
  3823. type TXModifierKeymap = struct {
  3824. Fmax_keypermod int32
  3825. Fmodifiermap uintptr
  3826. }
  3827. type TDisplay = struct {
  3828. Fext_data uintptr
  3829. Ffree_funcs uintptr
  3830. Ffd int32
  3831. Fconn_checker int32
  3832. Fproto_major_version int32
  3833. Fproto_minor_version int32
  3834. Fvendor uintptr
  3835. Fresource_base TXID
  3836. Fresource_mask TXID
  3837. Fresource_id TXID
  3838. Fresource_shift int32
  3839. Fresource_alloc uintptr
  3840. Fbyte_order int32
  3841. Fbitmap_unit int32
  3842. Fbitmap_pad int32
  3843. Fbitmap_bit_order int32
  3844. Fnformats int32
  3845. Fpixmap_format uintptr
  3846. Fvnumber int32
  3847. Frelease int32
  3848. Fhead uintptr
  3849. Ftail uintptr
  3850. Fqlen int32
  3851. Flast_request_read uint64
  3852. Frequest uint64
  3853. Flast_req uintptr
  3854. Fbuffer uintptr
  3855. Fbufptr uintptr
  3856. Fbufmax uintptr
  3857. Fmax_request_size uint32
  3858. Fdb uintptr
  3859. Fsynchandler uintptr
  3860. Fdisplay_name uintptr
  3861. Fdefault_screen int32
  3862. Fnscreens int32
  3863. Fscreens uintptr
  3864. Fmotion_buffer uint64
  3865. Fflags uint64
  3866. Fmin_keycode int32
  3867. Fmax_keycode int32
  3868. Fkeysyms uintptr
  3869. Fmodifiermap uintptr
  3870. Fkeysyms_per_keycode int32
  3871. Fxdefaults uintptr
  3872. Fscratch_buffer uintptr
  3873. Fscratch_length uint64
  3874. Fext_number int32
  3875. Fext_procs uintptr
  3876. Fevent_vec [128]uintptr
  3877. Fwire_vec [128]uintptr
  3878. Flock_meaning TKeySym
  3879. Flock uintptr
  3880. Fasync_handlers uintptr
  3881. Fbigreq_size uint64
  3882. Flock_fns uintptr
  3883. Fidlist_alloc uintptr
  3884. Fkey_bindings uintptr
  3885. Fcursor_font TFont
  3886. Fatoms uintptr
  3887. Fmode_switch uint32
  3888. Fnum_lock uint32
  3889. Fcontext_db uintptr
  3890. Ferror_vec uintptr
  3891. Fcms struct {
  3892. FdefaultCCCs TXPointer
  3893. FclientCmaps TXPointer
  3894. FperVisualIntensityMaps TXPointer
  3895. }
  3896. Fim_filters uintptr
  3897. Fqfree uintptr
  3898. Fnext_event_serial_num uint64
  3899. Fflushes uintptr
  3900. Fim_fd_info uintptr
  3901. Fim_fd_length int32
  3902. Fconn_watchers uintptr
  3903. Fwatcher_count int32
  3904. Ffiledes TXPointer
  3905. Fsavedsynchandler uintptr
  3906. Fresource_max TXID
  3907. Fxcmisc_opcode int32
  3908. Fxkb_info uintptr
  3909. Ftrans_conn uintptr
  3910. Fxcb uintptr
  3911. Fnext_cookie uint32
  3912. Fgeneric_event_vec [128]uintptr
  3913. Fgeneric_event_copy_vec [128]uintptr
  3914. Fcookiejar uintptr
  3915. Ferror_threads uintptr
  3916. Fexit_handler TXIOErrorExitHandler
  3917. Fexit_handler_data uintptr
  3918. }
  3919. type T_XPrivDisplay = uintptr
  3920. type TXKeyEvent = struct {
  3921. Ftype1 int32
  3922. Fserial uint64
  3923. Fsend_event int32
  3924. Fdisplay uintptr
  3925. Fwindow TWindow
  3926. Froot TWindow
  3927. Fsubwindow TWindow
  3928. Ftime TTime
  3929. Fx int32
  3930. Fy int32
  3931. Fx_root int32
  3932. Fy_root int32
  3933. Fstate uint32
  3934. Fkeycode uint32
  3935. Fsame_screen int32
  3936. }
  3937. type TXKeyPressedEvent = struct {
  3938. Ftype1 int32
  3939. Fserial uint64
  3940. Fsend_event int32
  3941. Fdisplay uintptr
  3942. Fwindow TWindow
  3943. Froot TWindow
  3944. Fsubwindow TWindow
  3945. Ftime TTime
  3946. Fx int32
  3947. Fy int32
  3948. Fx_root int32
  3949. Fy_root int32
  3950. Fstate uint32
  3951. Fkeycode uint32
  3952. Fsame_screen int32
  3953. }
  3954. type TXKeyReleasedEvent = struct {
  3955. Ftype1 int32
  3956. Fserial uint64
  3957. Fsend_event int32
  3958. Fdisplay uintptr
  3959. Fwindow TWindow
  3960. Froot TWindow
  3961. Fsubwindow TWindow
  3962. Ftime TTime
  3963. Fx int32
  3964. Fy int32
  3965. Fx_root int32
  3966. Fy_root int32
  3967. Fstate uint32
  3968. Fkeycode uint32
  3969. Fsame_screen int32
  3970. }
  3971. type TXButtonEvent = struct {
  3972. Ftype1 int32
  3973. Fserial uint64
  3974. Fsend_event int32
  3975. Fdisplay uintptr
  3976. Fwindow TWindow
  3977. Froot TWindow
  3978. Fsubwindow TWindow
  3979. Ftime TTime
  3980. Fx int32
  3981. Fy int32
  3982. Fx_root int32
  3983. Fy_root int32
  3984. Fstate uint32
  3985. Fbutton uint32
  3986. Fsame_screen int32
  3987. }
  3988. type TXButtonPressedEvent = struct {
  3989. Ftype1 int32
  3990. Fserial uint64
  3991. Fsend_event int32
  3992. Fdisplay uintptr
  3993. Fwindow TWindow
  3994. Froot TWindow
  3995. Fsubwindow TWindow
  3996. Ftime TTime
  3997. Fx int32
  3998. Fy int32
  3999. Fx_root int32
  4000. Fy_root int32
  4001. Fstate uint32
  4002. Fbutton uint32
  4003. Fsame_screen int32
  4004. }
  4005. type TXButtonReleasedEvent = struct {
  4006. Ftype1 int32
  4007. Fserial uint64
  4008. Fsend_event int32
  4009. Fdisplay uintptr
  4010. Fwindow TWindow
  4011. Froot TWindow
  4012. Fsubwindow TWindow
  4013. Ftime TTime
  4014. Fx int32
  4015. Fy int32
  4016. Fx_root int32
  4017. Fy_root int32
  4018. Fstate uint32
  4019. Fbutton uint32
  4020. Fsame_screen int32
  4021. }
  4022. type TXMotionEvent = struct {
  4023. Ftype1 int32
  4024. Fserial uint64
  4025. Fsend_event int32
  4026. Fdisplay uintptr
  4027. Fwindow TWindow
  4028. Froot TWindow
  4029. Fsubwindow TWindow
  4030. Ftime TTime
  4031. Fx int32
  4032. Fy int32
  4033. Fx_root int32
  4034. Fy_root int32
  4035. Fstate uint32
  4036. Fis_hint uint8
  4037. Fsame_screen int32
  4038. }
  4039. type TXPointerMovedEvent = struct {
  4040. Ftype1 int32
  4041. Fserial uint64
  4042. Fsend_event int32
  4043. Fdisplay uintptr
  4044. Fwindow TWindow
  4045. Froot TWindow
  4046. Fsubwindow TWindow
  4047. Ftime TTime
  4048. Fx int32
  4049. Fy int32
  4050. Fx_root int32
  4051. Fy_root int32
  4052. Fstate uint32
  4053. Fis_hint uint8
  4054. Fsame_screen int32
  4055. }
  4056. type TXCrossingEvent = struct {
  4057. Ftype1 int32
  4058. Fserial uint64
  4059. Fsend_event int32
  4060. Fdisplay uintptr
  4061. Fwindow TWindow
  4062. Froot TWindow
  4063. Fsubwindow TWindow
  4064. Ftime TTime
  4065. Fx int32
  4066. Fy int32
  4067. Fx_root int32
  4068. Fy_root int32
  4069. Fmode int32
  4070. Fdetail int32
  4071. Fsame_screen int32
  4072. Ffocus int32
  4073. Fstate uint32
  4074. }
  4075. type TXEnterWindowEvent = struct {
  4076. Ftype1 int32
  4077. Fserial uint64
  4078. Fsend_event int32
  4079. Fdisplay uintptr
  4080. Fwindow TWindow
  4081. Froot TWindow
  4082. Fsubwindow TWindow
  4083. Ftime TTime
  4084. Fx int32
  4085. Fy int32
  4086. Fx_root int32
  4087. Fy_root int32
  4088. Fmode int32
  4089. Fdetail int32
  4090. Fsame_screen int32
  4091. Ffocus int32
  4092. Fstate uint32
  4093. }
  4094. type TXLeaveWindowEvent = struct {
  4095. Ftype1 int32
  4096. Fserial uint64
  4097. Fsend_event int32
  4098. Fdisplay uintptr
  4099. Fwindow TWindow
  4100. Froot TWindow
  4101. Fsubwindow TWindow
  4102. Ftime TTime
  4103. Fx int32
  4104. Fy int32
  4105. Fx_root int32
  4106. Fy_root int32
  4107. Fmode int32
  4108. Fdetail int32
  4109. Fsame_screen int32
  4110. Ffocus int32
  4111. Fstate uint32
  4112. }
  4113. type TXFocusChangeEvent = struct {
  4114. Ftype1 int32
  4115. Fserial uint64
  4116. Fsend_event int32
  4117. Fdisplay uintptr
  4118. Fwindow TWindow
  4119. Fmode int32
  4120. Fdetail int32
  4121. }
  4122. type TXFocusInEvent = struct {
  4123. Ftype1 int32
  4124. Fserial uint64
  4125. Fsend_event int32
  4126. Fdisplay uintptr
  4127. Fwindow TWindow
  4128. Fmode int32
  4129. Fdetail int32
  4130. }
  4131. type TXFocusOutEvent = struct {
  4132. Ftype1 int32
  4133. Fserial uint64
  4134. Fsend_event int32
  4135. Fdisplay uintptr
  4136. Fwindow TWindow
  4137. Fmode int32
  4138. Fdetail int32
  4139. }
  4140. type TXKeymapEvent = struct {
  4141. Ftype1 int32
  4142. Fserial uint64
  4143. Fsend_event int32
  4144. Fdisplay uintptr
  4145. Fwindow TWindow
  4146. Fkey_vector [32]uint8
  4147. }
  4148. type TXExposeEvent = struct {
  4149. Ftype1 int32
  4150. Fserial uint64
  4151. Fsend_event int32
  4152. Fdisplay uintptr
  4153. Fwindow TWindow
  4154. Fx int32
  4155. Fy int32
  4156. Fwidth int32
  4157. Fheight int32
  4158. Fcount int32
  4159. }
  4160. type TXGraphicsExposeEvent = struct {
  4161. Ftype1 int32
  4162. Fserial uint64
  4163. Fsend_event int32
  4164. Fdisplay uintptr
  4165. Fdrawable TDrawable
  4166. Fx int32
  4167. Fy int32
  4168. Fwidth int32
  4169. Fheight int32
  4170. Fcount int32
  4171. Fmajor_code int32
  4172. Fminor_code int32
  4173. }
  4174. type TXNoExposeEvent = struct {
  4175. Ftype1 int32
  4176. Fserial uint64
  4177. Fsend_event int32
  4178. Fdisplay uintptr
  4179. Fdrawable TDrawable
  4180. Fmajor_code int32
  4181. Fminor_code int32
  4182. }
  4183. type TXVisibilityEvent = struct {
  4184. Ftype1 int32
  4185. Fserial uint64
  4186. Fsend_event int32
  4187. Fdisplay uintptr
  4188. Fwindow TWindow
  4189. Fstate int32
  4190. }
  4191. type TXCreateWindowEvent = struct {
  4192. Ftype1 int32
  4193. Fserial uint64
  4194. Fsend_event int32
  4195. Fdisplay uintptr
  4196. Fparent TWindow
  4197. Fwindow TWindow
  4198. Fx int32
  4199. Fy int32
  4200. Fwidth int32
  4201. Fheight int32
  4202. Fborder_width int32
  4203. Foverride_redirect int32
  4204. }
  4205. type TXDestroyWindowEvent = struct {
  4206. Ftype1 int32
  4207. Fserial uint64
  4208. Fsend_event int32
  4209. Fdisplay uintptr
  4210. Fevent TWindow
  4211. Fwindow TWindow
  4212. }
  4213. type TXUnmapEvent = struct {
  4214. Ftype1 int32
  4215. Fserial uint64
  4216. Fsend_event int32
  4217. Fdisplay uintptr
  4218. Fevent TWindow
  4219. Fwindow TWindow
  4220. Ffrom_configure int32
  4221. }
  4222. type TXMapEvent = struct {
  4223. Ftype1 int32
  4224. Fserial uint64
  4225. Fsend_event int32
  4226. Fdisplay uintptr
  4227. Fevent TWindow
  4228. Fwindow TWindow
  4229. Foverride_redirect int32
  4230. }
  4231. type TXMapRequestEvent = struct {
  4232. Ftype1 int32
  4233. Fserial uint64
  4234. Fsend_event int32
  4235. Fdisplay uintptr
  4236. Fparent TWindow
  4237. Fwindow TWindow
  4238. }
  4239. type TXReparentEvent = struct {
  4240. Ftype1 int32
  4241. Fserial uint64
  4242. Fsend_event int32
  4243. Fdisplay uintptr
  4244. Fevent TWindow
  4245. Fwindow TWindow
  4246. Fparent TWindow
  4247. Fx int32
  4248. Fy int32
  4249. Foverride_redirect int32
  4250. }
  4251. type TXConfigureEvent = struct {
  4252. Ftype1 int32
  4253. Fserial uint64
  4254. Fsend_event int32
  4255. Fdisplay uintptr
  4256. Fevent TWindow
  4257. Fwindow TWindow
  4258. Fx int32
  4259. Fy int32
  4260. Fwidth int32
  4261. Fheight int32
  4262. Fborder_width int32
  4263. Fabove TWindow
  4264. Foverride_redirect int32
  4265. }
  4266. type TXGravityEvent = struct {
  4267. Ftype1 int32
  4268. Fserial uint64
  4269. Fsend_event int32
  4270. Fdisplay uintptr
  4271. Fevent TWindow
  4272. Fwindow TWindow
  4273. Fx int32
  4274. Fy int32
  4275. }
  4276. type TXResizeRequestEvent = struct {
  4277. Ftype1 int32
  4278. Fserial uint64
  4279. Fsend_event int32
  4280. Fdisplay uintptr
  4281. Fwindow TWindow
  4282. Fwidth int32
  4283. Fheight int32
  4284. }
  4285. type TXConfigureRequestEvent = struct {
  4286. Ftype1 int32
  4287. Fserial uint64
  4288. Fsend_event int32
  4289. Fdisplay uintptr
  4290. Fparent TWindow
  4291. Fwindow TWindow
  4292. Fx int32
  4293. Fy int32
  4294. Fwidth int32
  4295. Fheight int32
  4296. Fborder_width int32
  4297. Fabove TWindow
  4298. Fdetail int32
  4299. Fvalue_mask uint64
  4300. }
  4301. type TXCirculateEvent = struct {
  4302. Ftype1 int32
  4303. Fserial uint64
  4304. Fsend_event int32
  4305. Fdisplay uintptr
  4306. Fevent TWindow
  4307. Fwindow TWindow
  4308. Fplace int32
  4309. }
  4310. type TXCirculateRequestEvent = struct {
  4311. Ftype1 int32
  4312. Fserial uint64
  4313. Fsend_event int32
  4314. Fdisplay uintptr
  4315. Fparent TWindow
  4316. Fwindow TWindow
  4317. Fplace int32
  4318. }
  4319. type TXPropertyEvent = struct {
  4320. Ftype1 int32
  4321. Fserial uint64
  4322. Fsend_event int32
  4323. Fdisplay uintptr
  4324. Fwindow TWindow
  4325. Fatom TAtom
  4326. Ftime TTime
  4327. Fstate int32
  4328. }
  4329. type TXSelectionClearEvent = struct {
  4330. Ftype1 int32
  4331. Fserial uint64
  4332. Fsend_event int32
  4333. Fdisplay uintptr
  4334. Fwindow TWindow
  4335. Fselection TAtom
  4336. Ftime TTime
  4337. }
  4338. type TXSelectionRequestEvent = struct {
  4339. Ftype1 int32
  4340. Fserial uint64
  4341. Fsend_event int32
  4342. Fdisplay uintptr
  4343. Fowner TWindow
  4344. Frequestor TWindow
  4345. Fselection TAtom
  4346. Ftarget TAtom
  4347. Fproperty TAtom
  4348. Ftime TTime
  4349. }
  4350. type TXSelectionEvent = struct {
  4351. Ftype1 int32
  4352. Fserial uint64
  4353. Fsend_event int32
  4354. Fdisplay uintptr
  4355. Frequestor TWindow
  4356. Fselection TAtom
  4357. Ftarget TAtom
  4358. Fproperty TAtom
  4359. Ftime TTime
  4360. }
  4361. type TXColormapEvent = struct {
  4362. Ftype1 int32
  4363. Fserial uint64
  4364. Fsend_event int32
  4365. Fdisplay uintptr
  4366. Fwindow TWindow
  4367. Fcolormap TColormap
  4368. Fnew1 int32
  4369. Fstate int32
  4370. }
  4371. type TXClientMessageEvent = struct {
  4372. Ftype1 int32
  4373. Fserial uint64
  4374. Fsend_event int32
  4375. Fdisplay uintptr
  4376. Fwindow TWindow
  4377. Fmessage_type TAtom
  4378. Fformat int32
  4379. Fdata struct {
  4380. Fs [0][10]int16
  4381. Fl [0][5]int64
  4382. Fb [20]uint8
  4383. F__ccgo_pad3 [20]byte
  4384. }
  4385. }
  4386. type TXMappingEvent = struct {
  4387. Ftype1 int32
  4388. Fserial uint64
  4389. Fsend_event int32
  4390. Fdisplay uintptr
  4391. Fwindow TWindow
  4392. Frequest int32
  4393. Ffirst_keycode int32
  4394. Fcount int32
  4395. }
  4396. type TXErrorEvent = struct {
  4397. Ftype1 int32
  4398. Fdisplay uintptr
  4399. Fresourceid TXID
  4400. Fserial uint64
  4401. Ferror_code uint8
  4402. Frequest_code uint8
  4403. Fminor_code uint8
  4404. }
  4405. type TXAnyEvent = struct {
  4406. Ftype1 int32
  4407. Fserial uint64
  4408. Fsend_event int32
  4409. Fdisplay uintptr
  4410. Fwindow TWindow
  4411. }
  4412. type TXGenericEvent = struct {
  4413. Ftype1 int32
  4414. Fserial uint64
  4415. Fsend_event int32
  4416. Fdisplay uintptr
  4417. Fextension int32
  4418. Fevtype int32
  4419. }
  4420. type TXGenericEventCookie = struct {
  4421. Ftype1 int32
  4422. Fserial uint64
  4423. Fsend_event int32
  4424. Fdisplay uintptr
  4425. Fextension int32
  4426. Fevtype int32
  4427. Fcookie uint32
  4428. Fdata uintptr
  4429. }
  4430. type TXEvent = struct {
  4431. Fxany [0]TXAnyEvent
  4432. Fxkey [0]TXKeyEvent
  4433. Fxbutton [0]TXButtonEvent
  4434. Fxmotion [0]TXMotionEvent
  4435. Fxcrossing [0]TXCrossingEvent
  4436. Fxfocus [0]TXFocusChangeEvent
  4437. Fxexpose [0]TXExposeEvent
  4438. Fxgraphicsexpose [0]TXGraphicsExposeEvent
  4439. Fxnoexpose [0]TXNoExposeEvent
  4440. Fxvisibility [0]TXVisibilityEvent
  4441. Fxcreatewindow [0]TXCreateWindowEvent
  4442. Fxdestroywindow [0]TXDestroyWindowEvent
  4443. Fxunmap [0]TXUnmapEvent
  4444. Fxmap [0]TXMapEvent
  4445. Fxmaprequest [0]TXMapRequestEvent
  4446. Fxreparent [0]TXReparentEvent
  4447. Fxconfigure [0]TXConfigureEvent
  4448. Fxgravity [0]TXGravityEvent
  4449. Fxresizerequest [0]TXResizeRequestEvent
  4450. Fxconfigurerequest [0]TXConfigureRequestEvent
  4451. Fxcirculate [0]TXCirculateEvent
  4452. Fxcirculaterequest [0]TXCirculateRequestEvent
  4453. Fxproperty [0]TXPropertyEvent
  4454. Fxselectionclear [0]TXSelectionClearEvent
  4455. Fxselectionrequest [0]TXSelectionRequestEvent
  4456. Fxselection [0]TXSelectionEvent
  4457. Fxcolormap [0]TXColormapEvent
  4458. Fxclient [0]TXClientMessageEvent
  4459. Fxmapping [0]TXMappingEvent
  4460. Fxerror [0]TXErrorEvent
  4461. Fxkeymap [0]TXKeymapEvent
  4462. Fxgeneric [0]TXGenericEvent
  4463. Fxcookie [0]TXGenericEventCookie
  4464. Fpad [0][24]int64
  4465. Ftype1 int32
  4466. F__ccgo_pad35 [188]byte
  4467. }
  4468. type T_XEvent = TXEvent
  4469. type TXCharStruct = struct {
  4470. Flbearing int16
  4471. Frbearing int16
  4472. Fwidth int16
  4473. Fascent int16
  4474. Fdescent int16
  4475. Fattributes uint16
  4476. }
  4477. type TXFontProp = struct {
  4478. Fname TAtom
  4479. Fcard32 uint64
  4480. }
  4481. type TXFontStruct = struct {
  4482. Fext_data uintptr
  4483. Ffid TFont
  4484. Fdirection uint32
  4485. Fmin_char_or_byte2 uint32
  4486. Fmax_char_or_byte2 uint32
  4487. Fmin_byte1 uint32
  4488. Fmax_byte1 uint32
  4489. Fall_chars_exist int32
  4490. Fdefault_char uint32
  4491. Fn_properties int32
  4492. Fproperties uintptr
  4493. Fmin_bounds TXCharStruct
  4494. Fmax_bounds TXCharStruct
  4495. Fper_char uintptr
  4496. Fascent int32
  4497. Fdescent int32
  4498. }
  4499. type TXTextItem = struct {
  4500. Fchars uintptr
  4501. Fnchars int32
  4502. Fdelta int32
  4503. Ffont TFont
  4504. }
  4505. type TXChar2b = struct {
  4506. Fbyte1 uint8
  4507. Fbyte2 uint8
  4508. }
  4509. type TXTextItem16 = struct {
  4510. Fchars uintptr
  4511. Fnchars int32
  4512. Fdelta int32
  4513. Ffont TFont
  4514. }
  4515. type TXEDataObject = struct {
  4516. Fgc [0]TGC
  4517. Fvisual [0]uintptr
  4518. Fscreen [0]uintptr
  4519. Fpixmap_format [0]uintptr
  4520. Ffont [0]uintptr
  4521. Fdisplay uintptr
  4522. }
  4523. type TXFontSetExtents = struct {
  4524. Fmax_ink_extent TXRectangle
  4525. Fmax_logical_extent TXRectangle
  4526. }
  4527. type TXOM = uintptr
  4528. type TXOC = uintptr
  4529. type TXFontSet = uintptr
  4530. type TXmbTextItem = struct {
  4531. Fchars uintptr
  4532. Fnchars int32
  4533. Fdelta int32
  4534. Ffont_set TXFontSet
  4535. }
  4536. type TXwcTextItem = struct {
  4537. Fchars uintptr
  4538. Fnchars int32
  4539. Fdelta int32
  4540. Ffont_set TXFontSet
  4541. }
  4542. type TXOMCharSetList = struct {
  4543. Fcharset_count int32
  4544. Fcharset_list uintptr
  4545. }
  4546. type TXOrientation = int32
  4547. const _XOMOrientation_LTR_TTB = 0
  4548. const _XOMOrientation_RTL_TTB = 1
  4549. const _XOMOrientation_TTB_LTR = 2
  4550. const _XOMOrientation_TTB_RTL = 3
  4551. const _XOMOrientation_Context = 4
  4552. type TXOMOrientation = struct {
  4553. Fnum_orientation int32
  4554. Forientation uintptr
  4555. }
  4556. type TXOMFontInfo = struct {
  4557. Fnum_font int32
  4558. Ffont_struct_list uintptr
  4559. Ffont_name_list uintptr
  4560. }
  4561. type TXIM = uintptr
  4562. type TXIC = uintptr
  4563. type TXIMProc = uintptr
  4564. type TXICProc = uintptr
  4565. type TXIDProc = uintptr
  4566. type TXIMStyle = uint64
  4567. type TXIMStyles = struct {
  4568. Fcount_styles uint16
  4569. Fsupported_styles uintptr
  4570. }
  4571. type TXVaNestedList = uintptr
  4572. type TXIMCallback = struct {
  4573. Fclient_data TXPointer
  4574. Fcallback TXIMProc
  4575. }
  4576. type TXICCallback = struct {
  4577. Fclient_data TXPointer
  4578. Fcallback TXICProc
  4579. }
  4580. type TXIMFeedback = uint64
  4581. type TXIMText = struct {
  4582. Flength uint16
  4583. Ffeedback uintptr
  4584. Fencoding_is_wchar int32
  4585. Fstring1 struct {
  4586. Fwide_char [0]uintptr
  4587. Fmulti_byte uintptr
  4588. }
  4589. }
  4590. type T_XIMText = TXIMText
  4591. type TXIMPreeditState = uint64
  4592. type TXIMPreeditStateNotifyCallbackStruct = struct {
  4593. Fstate TXIMPreeditState
  4594. }
  4595. type T_XIMPreeditStateNotifyCallbackStruct = TXIMPreeditStateNotifyCallbackStruct
  4596. type TXIMResetState = uint64
  4597. type TXIMStringConversionFeedback = uint64
  4598. type TXIMStringConversionText = struct {
  4599. Flength uint16
  4600. Ffeedback uintptr
  4601. Fencoding_is_wchar int32
  4602. Fstring1 struct {
  4603. Fwcs [0]uintptr
  4604. Fmbs uintptr
  4605. }
  4606. }
  4607. type T_XIMStringConversionText = TXIMStringConversionText
  4608. type TXIMStringConversionPosition = uint16
  4609. type TXIMStringConversionType = uint16
  4610. type TXIMStringConversionOperation = uint16
  4611. type TXIMCaretDirection = int32
  4612. const _XIMForwardChar = 0
  4613. const _XIMBackwardChar = 1
  4614. const _XIMForwardWord = 2
  4615. const _XIMBackwardWord = 3
  4616. const _XIMCaretUp = 4
  4617. const _XIMCaretDown = 5
  4618. const _XIMNextLine = 6
  4619. const _XIMPreviousLine = 7
  4620. const _XIMLineStart = 8
  4621. const _XIMLineEnd = 9
  4622. const _XIMAbsolutePosition = 10
  4623. const _XIMDontChange = 11
  4624. type TXIMStringConversionCallbackStruct = struct {
  4625. Fposition TXIMStringConversionPosition
  4626. Fdirection TXIMCaretDirection
  4627. Foperation TXIMStringConversionOperation
  4628. Ffactor uint16
  4629. Ftext uintptr
  4630. }
  4631. type T_XIMStringConversionCallbackStruct = TXIMStringConversionCallbackStruct
  4632. type TXIMPreeditDrawCallbackStruct = struct {
  4633. Fcaret int32
  4634. Fchg_first int32
  4635. Fchg_length int32
  4636. Ftext uintptr
  4637. }
  4638. type T_XIMPreeditDrawCallbackStruct = TXIMPreeditDrawCallbackStruct
  4639. type TXIMCaretStyle = int32
  4640. const _XIMIsInvisible = 0
  4641. const _XIMIsPrimary = 1
  4642. const _XIMIsSecondary = 2
  4643. type TXIMPreeditCaretCallbackStruct = struct {
  4644. Fposition int32
  4645. Fdirection TXIMCaretDirection
  4646. Fstyle TXIMCaretStyle
  4647. }
  4648. type T_XIMPreeditCaretCallbackStruct = TXIMPreeditCaretCallbackStruct
  4649. type TXIMStatusDataType = int32
  4650. const _XIMTextType = 0
  4651. const _XIMBitmapType = 1
  4652. type TXIMStatusDrawCallbackStruct = struct {
  4653. Ftype1 TXIMStatusDataType
  4654. Fdata struct {
  4655. Fbitmap [0]TPixmap
  4656. Ftext uintptr
  4657. }
  4658. }
  4659. type T_XIMStatusDrawCallbackStruct = TXIMStatusDrawCallbackStruct
  4660. type TXIMHotKeyTrigger = struct {
  4661. Fkeysym TKeySym
  4662. Fmodifier int32
  4663. Fmodifier_mask int32
  4664. }
  4665. type T_XIMHotKeyTrigger = TXIMHotKeyTrigger
  4666. type TXIMHotKeyTriggers = struct {
  4667. Fnum_hot_key int32
  4668. Fkey uintptr
  4669. }
  4670. type T_XIMHotKeyTriggers = TXIMHotKeyTriggers
  4671. type TXIMHotKeyState = uint64
  4672. type TXIMValuesList = struct {
  4673. Fcount_values uint16
  4674. Fsupported_values uintptr
  4675. }
  4676. type TXErrorHandler = uintptr
  4677. type TXIOErrorHandler = uintptr
  4678. type TXIOErrorExitHandler = uintptr
  4679. type TXConnectionWatchProc = uintptr
  4680. type TINT64 = int64
  4681. type TINT32 = int32
  4682. type TINT16 = int16
  4683. type TINT8 = int8
  4684. type TCARD64 = uint64
  4685. type TCARD32 = uint32
  4686. type TCARD16 = uint16
  4687. type TCARD8 = uint8
  4688. type TBITS32 = uint32
  4689. type TBITS16 = uint16
  4690. type TBYTE = uint8
  4691. type TBOOL = uint8
  4692. type TxSegment = struct {
  4693. Fx1 TINT16
  4694. Fy1 TINT16
  4695. Fx2 TINT16
  4696. Fy2 TINT16
  4697. }
  4698. type T_xSegment = TxSegment
  4699. type TxPoint = struct {
  4700. Fx TINT16
  4701. Fy TINT16
  4702. }
  4703. type T_xPoint = TxPoint
  4704. type TxRectangle = struct {
  4705. Fx TINT16
  4706. Fy TINT16
  4707. Fwidth TCARD16
  4708. Fheight TCARD16
  4709. }
  4710. type T_xRectangle = TxRectangle
  4711. type TxArc = struct {
  4712. Fx TINT16
  4713. Fy TINT16
  4714. Fwidth TCARD16
  4715. Fheight TCARD16
  4716. Fangle1 TINT16
  4717. Fangle2 TINT16
  4718. }
  4719. type T_xArc = TxArc
  4720. type TKeyButMask = uint16
  4721. type TxConnClientPrefix = struct {
  4722. FbyteOrder TCARD8
  4723. Fpad TBYTE
  4724. FmajorVersion TCARD16
  4725. FminorVersion TCARD16
  4726. FnbytesAuthProto TCARD16
  4727. FnbytesAuthString TCARD16
  4728. Fpad2 TCARD16
  4729. }
  4730. type TxConnSetupPrefix = struct {
  4731. Fsuccess TCARD8
  4732. FlengthReason TBYTE
  4733. FmajorVersion TCARD16
  4734. FminorVersion TCARD16
  4735. Flength TCARD16
  4736. }
  4737. type TxConnSetup = struct {
  4738. Frelease TCARD32
  4739. FridBase TCARD32
  4740. FridMask TCARD32
  4741. FmotionBufferSize TCARD32
  4742. FnbytesVendor TCARD16
  4743. FmaxRequestSize TCARD16
  4744. FnumRoots TCARD8
  4745. FnumFormats TCARD8
  4746. FimageByteOrder TCARD8
  4747. FbitmapBitOrder TCARD8
  4748. FbitmapScanlineUnit TCARD8
  4749. FbitmapScanlinePad TCARD8
  4750. FminKeyCode TCARD8
  4751. FmaxKeyCode TCARD8
  4752. Fpad2 TCARD32
  4753. }
  4754. type TxPixmapFormat = struct {
  4755. Fdepth TCARD8
  4756. FbitsPerPixel TCARD8
  4757. FscanLinePad TCARD8
  4758. Fpad1 TCARD8
  4759. Fpad2 TCARD32
  4760. }
  4761. type TxDepth = struct {
  4762. Fdepth TCARD8
  4763. Fpad1 TCARD8
  4764. FnVisuals TCARD16
  4765. Fpad2 TCARD32
  4766. }
  4767. type TxVisualType = struct {
  4768. FvisualID TCARD32
  4769. Fclass TCARD8
  4770. FbitsPerRGB TCARD8
  4771. FcolormapEntries TCARD16
  4772. FredMask TCARD32
  4773. FgreenMask TCARD32
  4774. FblueMask TCARD32
  4775. Fpad TCARD32
  4776. }
  4777. type TxWindowRoot = struct {
  4778. FwindowId TCARD32
  4779. FdefaultColormap TCARD32
  4780. FwhitePixel TCARD32
  4781. FblackPixel TCARD32
  4782. FcurrentInputMask TCARD32
  4783. FpixWidth TCARD16
  4784. FpixHeight TCARD16
  4785. FmmWidth TCARD16
  4786. FmmHeight TCARD16
  4787. FminInstalledMaps TCARD16
  4788. FmaxInstalledMaps TCARD16
  4789. FrootVisualID TCARD32
  4790. FbackingStore TCARD8
  4791. FsaveUnders TBOOL
  4792. FrootDepth TCARD8
  4793. FnDepths TCARD8
  4794. }
  4795. type TxTimecoord = struct {
  4796. Ftime TCARD32
  4797. Fx TINT16
  4798. Fy TINT16
  4799. }
  4800. type TxHostEntry = struct {
  4801. Ffamily TCARD8
  4802. Fpad TBYTE
  4803. Flength TCARD16
  4804. }
  4805. type TxCharInfo = struct {
  4806. FleftSideBearing TINT16
  4807. FrightSideBearing TINT16
  4808. FcharacterWidth TINT16
  4809. Fascent TINT16
  4810. Fdescent TINT16
  4811. Fattributes TCARD16
  4812. }
  4813. type TxFontProp = struct {
  4814. Fname TCARD32
  4815. Fvalue TCARD32
  4816. }
  4817. type TxTextElt = struct {
  4818. Flen1 TCARD8
  4819. Fdelta TINT8
  4820. }
  4821. type TxColorItem = struct {
  4822. Fpixel TCARD32
  4823. Fred TCARD16
  4824. Fgreen TCARD16
  4825. Fblue TCARD16
  4826. Fflags TCARD8
  4827. Fpad TCARD8
  4828. }
  4829. type Txrgb = struct {
  4830. Fred TCARD16
  4831. Fgreen TCARD16
  4832. Fblue TCARD16
  4833. Fpad TCARD16
  4834. }
  4835. type TKEYCODE = uint8
  4836. type TxGenericReply = struct {
  4837. Ftype1 TBYTE
  4838. Fdata1 TBYTE
  4839. FsequenceNumber TCARD16
  4840. Flength TCARD32
  4841. Fdata00 TCARD32
  4842. Fdata01 TCARD32
  4843. Fdata02 TCARD32
  4844. Fdata03 TCARD32
  4845. Fdata04 TCARD32
  4846. Fdata05 TCARD32
  4847. }
  4848. type TxGetWindowAttributesReply = struct {
  4849. Ftype1 TBYTE
  4850. FbackingStore TCARD8
  4851. FsequenceNumber TCARD16
  4852. Flength TCARD32
  4853. FvisualID TCARD32
  4854. Fclass TCARD16
  4855. FbitGravity TCARD8
  4856. FwinGravity TCARD8
  4857. FbackingBitPlanes TCARD32
  4858. FbackingPixel TCARD32
  4859. FsaveUnder TBOOL
  4860. FmapInstalled TBOOL
  4861. FmapState TCARD8
  4862. Foverride TBOOL
  4863. Fcolormap TCARD32
  4864. FallEventMasks TCARD32
  4865. FyourEventMask TCARD32
  4866. FdoNotPropagateMask TCARD16
  4867. Fpad TCARD16
  4868. }
  4869. type TxGetGeometryReply = struct {
  4870. Ftype1 TBYTE
  4871. Fdepth TCARD8
  4872. FsequenceNumber TCARD16
  4873. Flength TCARD32
  4874. Froot TCARD32
  4875. Fx TINT16
  4876. Fy TINT16
  4877. Fwidth TCARD16
  4878. Fheight TCARD16
  4879. FborderWidth TCARD16
  4880. Fpad1 TCARD16
  4881. Fpad2 TCARD32
  4882. Fpad3 TCARD32
  4883. }
  4884. type TxQueryTreeReply = struct {
  4885. Ftype1 TBYTE
  4886. Fpad1 TBYTE
  4887. FsequenceNumber TCARD16
  4888. Flength TCARD32
  4889. Froot TCARD32
  4890. Fparent TCARD32
  4891. FnChildren TCARD16
  4892. Fpad2 TCARD16
  4893. Fpad3 TCARD32
  4894. Fpad4 TCARD32
  4895. Fpad5 TCARD32
  4896. }
  4897. type TxInternAtomReply = struct {
  4898. Ftype1 TBYTE
  4899. Fpad1 TBYTE
  4900. FsequenceNumber TCARD16
  4901. Flength TCARD32
  4902. Fatom TCARD32
  4903. Fpad2 TCARD32
  4904. Fpad3 TCARD32
  4905. Fpad4 TCARD32
  4906. Fpad5 TCARD32
  4907. Fpad6 TCARD32
  4908. }
  4909. type TxGetAtomNameReply = struct {
  4910. Ftype1 TBYTE
  4911. Fpad1 TBYTE
  4912. FsequenceNumber TCARD16
  4913. Flength TCARD32
  4914. FnameLength TCARD16
  4915. Fpad2 TCARD16
  4916. Fpad3 TCARD32
  4917. Fpad4 TCARD32
  4918. Fpad5 TCARD32
  4919. Fpad6 TCARD32
  4920. Fpad7 TCARD32
  4921. }
  4922. type TxGetPropertyReply = struct {
  4923. Ftype1 TBYTE
  4924. Fformat TCARD8
  4925. FsequenceNumber TCARD16
  4926. Flength TCARD32
  4927. FpropertyType TCARD32
  4928. FbytesAfter TCARD32
  4929. FnItems TCARD32
  4930. Fpad1 TCARD32
  4931. Fpad2 TCARD32
  4932. Fpad3 TCARD32
  4933. }
  4934. type TxListPropertiesReply = struct {
  4935. Ftype1 TBYTE
  4936. Fpad1 TBYTE
  4937. FsequenceNumber TCARD16
  4938. Flength TCARD32
  4939. FnProperties TCARD16
  4940. Fpad2 TCARD16
  4941. Fpad3 TCARD32
  4942. Fpad4 TCARD32
  4943. Fpad5 TCARD32
  4944. Fpad6 TCARD32
  4945. Fpad7 TCARD32
  4946. }
  4947. type TxGetSelectionOwnerReply = struct {
  4948. Ftype1 TBYTE
  4949. Fpad1 TBYTE
  4950. FsequenceNumber TCARD16
  4951. Flength TCARD32
  4952. Fowner TCARD32
  4953. Fpad2 TCARD32
  4954. Fpad3 TCARD32
  4955. Fpad4 TCARD32
  4956. Fpad5 TCARD32
  4957. Fpad6 TCARD32
  4958. }
  4959. type TxGrabPointerReply = struct {
  4960. Ftype1 TBYTE
  4961. Fstatus TBYTE
  4962. FsequenceNumber TCARD16
  4963. Flength TCARD32
  4964. Fpad1 TCARD32
  4965. Fpad2 TCARD32
  4966. Fpad3 TCARD32
  4967. Fpad4 TCARD32
  4968. Fpad5 TCARD32
  4969. Fpad6 TCARD32
  4970. }
  4971. type TxGrabKeyboardReply = struct {
  4972. Ftype1 TBYTE
  4973. Fstatus TBYTE
  4974. FsequenceNumber TCARD16
  4975. Flength TCARD32
  4976. Fpad1 TCARD32
  4977. Fpad2 TCARD32
  4978. Fpad3 TCARD32
  4979. Fpad4 TCARD32
  4980. Fpad5 TCARD32
  4981. Fpad6 TCARD32
  4982. }
  4983. type TxQueryPointerReply = struct {
  4984. Ftype1 TBYTE
  4985. FsameScreen TBOOL
  4986. FsequenceNumber TCARD16
  4987. Flength TCARD32
  4988. Froot TCARD32
  4989. Fchild TCARD32
  4990. FrootX TINT16
  4991. FrootY TINT16
  4992. FwinX TINT16
  4993. FwinY TINT16
  4994. Fmask TCARD16
  4995. Fpad1 TCARD16
  4996. Fpad TCARD32
  4997. }
  4998. type TxGetMotionEventsReply = struct {
  4999. Ftype1 TBYTE
  5000. Fpad1 TBYTE
  5001. FsequenceNumber TCARD16
  5002. Flength TCARD32
  5003. FnEvents TCARD32
  5004. Fpad2 TCARD32
  5005. Fpad3 TCARD32
  5006. Fpad4 TCARD32
  5007. Fpad5 TCARD32
  5008. Fpad6 TCARD32
  5009. }
  5010. type TxTranslateCoordsReply = struct {
  5011. Ftype1 TBYTE
  5012. FsameScreen TBOOL
  5013. FsequenceNumber TCARD16
  5014. Flength TCARD32
  5015. Fchild TCARD32
  5016. FdstX TINT16
  5017. FdstY TINT16
  5018. Fpad2 TCARD32
  5019. Fpad3 TCARD32
  5020. Fpad4 TCARD32
  5021. Fpad5 TCARD32
  5022. }
  5023. type TxGetInputFocusReply = struct {
  5024. Ftype1 TBYTE
  5025. FrevertTo TCARD8
  5026. FsequenceNumber TCARD16
  5027. Flength TCARD32
  5028. Ffocus TCARD32
  5029. Fpad1 TCARD32
  5030. Fpad2 TCARD32
  5031. Fpad3 TCARD32
  5032. Fpad4 TCARD32
  5033. Fpad5 TCARD32
  5034. }
  5035. type TxQueryKeymapReply = struct {
  5036. Ftype1 TBYTE
  5037. Fpad1 TBYTE
  5038. FsequenceNumber TCARD16
  5039. Flength TCARD32
  5040. Fmap1 [32]TBYTE
  5041. }
  5042. type TxQueryFontReply = struct {
  5043. Ftype1 TBYTE
  5044. Fpad1 TBYTE
  5045. FsequenceNumber TCARD16
  5046. Flength TCARD32
  5047. FminBounds TxCharInfo
  5048. Fwalign1 TCARD32
  5049. FmaxBounds TxCharInfo
  5050. Fwalign2 TCARD32
  5051. FminCharOrByte2 TCARD16
  5052. FmaxCharOrByte2 TCARD16
  5053. FdefaultChar TCARD16
  5054. FnFontProps TCARD16
  5055. FdrawDirection TCARD8
  5056. FminByte1 TCARD8
  5057. FmaxByte1 TCARD8
  5058. FallCharsExist TBOOL
  5059. FfontAscent TINT16
  5060. FfontDescent TINT16
  5061. FnCharInfos TCARD32
  5062. }
  5063. type T_xQueryFontReply = TxQueryFontReply
  5064. type TxQueryTextExtentsReply = struct {
  5065. Ftype1 TBYTE
  5066. FdrawDirection TCARD8
  5067. FsequenceNumber TCARD16
  5068. Flength TCARD32
  5069. FfontAscent TINT16
  5070. FfontDescent TINT16
  5071. FoverallAscent TINT16
  5072. FoverallDescent TINT16
  5073. FoverallWidth TINT32
  5074. FoverallLeft TINT32
  5075. FoverallRight TINT32
  5076. Fpad TCARD32
  5077. }
  5078. type TxListFontsReply = struct {
  5079. Ftype1 TBYTE
  5080. Fpad1 TBYTE
  5081. FsequenceNumber TCARD16
  5082. Flength TCARD32
  5083. FnFonts TCARD16
  5084. Fpad2 TCARD16
  5085. Fpad3 TCARD32
  5086. Fpad4 TCARD32
  5087. Fpad5 TCARD32
  5088. Fpad6 TCARD32
  5089. Fpad7 TCARD32
  5090. }
  5091. type TxListFontsWithInfoReply = struct {
  5092. Ftype1 TBYTE
  5093. FnameLength TCARD8
  5094. FsequenceNumber TCARD16
  5095. Flength TCARD32
  5096. FminBounds TxCharInfo
  5097. Fwalign1 TCARD32
  5098. FmaxBounds TxCharInfo
  5099. Fwalign2 TCARD32
  5100. FminCharOrByte2 TCARD16
  5101. FmaxCharOrByte2 TCARD16
  5102. FdefaultChar TCARD16
  5103. FnFontProps TCARD16
  5104. FdrawDirection TCARD8
  5105. FminByte1 TCARD8
  5106. FmaxByte1 TCARD8
  5107. FallCharsExist TBOOL
  5108. FfontAscent TINT16
  5109. FfontDescent TINT16
  5110. FnReplies TCARD32
  5111. }
  5112. type TxGetFontPathReply = struct {
  5113. Ftype1 TBYTE
  5114. Fpad1 TBYTE
  5115. FsequenceNumber TCARD16
  5116. Flength TCARD32
  5117. FnPaths TCARD16
  5118. Fpad2 TCARD16
  5119. Fpad3 TCARD32
  5120. Fpad4 TCARD32
  5121. Fpad5 TCARD32
  5122. Fpad6 TCARD32
  5123. Fpad7 TCARD32
  5124. }
  5125. type TxGetImageReply = struct {
  5126. Ftype1 TBYTE
  5127. Fdepth TCARD8
  5128. FsequenceNumber TCARD16
  5129. Flength TCARD32
  5130. Fvisual TCARD32
  5131. Fpad3 TCARD32
  5132. Fpad4 TCARD32
  5133. Fpad5 TCARD32
  5134. Fpad6 TCARD32
  5135. Fpad7 TCARD32
  5136. }
  5137. type TxListInstalledColormapsReply = struct {
  5138. Ftype1 TBYTE
  5139. Fpad1 TBYTE
  5140. FsequenceNumber TCARD16
  5141. Flength TCARD32
  5142. FnColormaps TCARD16
  5143. Fpad2 TCARD16
  5144. Fpad3 TCARD32
  5145. Fpad4 TCARD32
  5146. Fpad5 TCARD32
  5147. Fpad6 TCARD32
  5148. Fpad7 TCARD32
  5149. }
  5150. type TxAllocColorReply = struct {
  5151. Ftype1 TBYTE
  5152. Fpad1 TBYTE
  5153. FsequenceNumber TCARD16
  5154. Flength TCARD32
  5155. Fred TCARD16
  5156. Fgreen TCARD16
  5157. Fblue TCARD16
  5158. Fpad2 TCARD16
  5159. Fpixel TCARD32
  5160. Fpad3 TCARD32
  5161. Fpad4 TCARD32
  5162. Fpad5 TCARD32
  5163. }
  5164. type TxAllocNamedColorReply = struct {
  5165. Ftype1 TBYTE
  5166. Fpad1 TBYTE
  5167. FsequenceNumber TCARD16
  5168. Flength TCARD32
  5169. Fpixel TCARD32
  5170. FexactRed TCARD16
  5171. FexactGreen TCARD16
  5172. FexactBlue TCARD16
  5173. FscreenRed TCARD16
  5174. FscreenGreen TCARD16
  5175. FscreenBlue TCARD16
  5176. Fpad2 TCARD32
  5177. Fpad3 TCARD32
  5178. }
  5179. type TxAllocColorCellsReply = struct {
  5180. Ftype1 TBYTE
  5181. Fpad1 TBYTE
  5182. FsequenceNumber TCARD16
  5183. Flength TCARD32
  5184. FnPixels TCARD16
  5185. FnMasks TCARD16
  5186. Fpad3 TCARD32
  5187. Fpad4 TCARD32
  5188. Fpad5 TCARD32
  5189. Fpad6 TCARD32
  5190. Fpad7 TCARD32
  5191. }
  5192. type TxAllocColorPlanesReply = struct {
  5193. Ftype1 TBYTE
  5194. Fpad1 TBYTE
  5195. FsequenceNumber TCARD16
  5196. Flength TCARD32
  5197. FnPixels TCARD16
  5198. Fpad2 TCARD16
  5199. FredMask TCARD32
  5200. FgreenMask TCARD32
  5201. FblueMask TCARD32
  5202. Fpad3 TCARD32
  5203. Fpad4 TCARD32
  5204. }
  5205. type TxQueryColorsReply = struct {
  5206. Ftype1 TBYTE
  5207. Fpad1 TBYTE
  5208. FsequenceNumber TCARD16
  5209. Flength TCARD32
  5210. FnColors TCARD16
  5211. Fpad2 TCARD16
  5212. Fpad3 TCARD32
  5213. Fpad4 TCARD32
  5214. Fpad5 TCARD32
  5215. Fpad6 TCARD32
  5216. Fpad7 TCARD32
  5217. }
  5218. type TxLookupColorReply = struct {
  5219. Ftype1 TBYTE
  5220. Fpad1 TBYTE
  5221. FsequenceNumber TCARD16
  5222. Flength TCARD32
  5223. FexactRed TCARD16
  5224. FexactGreen TCARD16
  5225. FexactBlue TCARD16
  5226. FscreenRed TCARD16
  5227. FscreenGreen TCARD16
  5228. FscreenBlue TCARD16
  5229. Fpad3 TCARD32
  5230. Fpad4 TCARD32
  5231. Fpad5 TCARD32
  5232. }
  5233. type TxQueryBestSizeReply = struct {
  5234. Ftype1 TBYTE
  5235. Fpad1 TBYTE
  5236. FsequenceNumber TCARD16
  5237. Flength TCARD32
  5238. Fwidth TCARD16
  5239. Fheight TCARD16
  5240. Fpad3 TCARD32
  5241. Fpad4 TCARD32
  5242. Fpad5 TCARD32
  5243. Fpad6 TCARD32
  5244. Fpad7 TCARD32
  5245. }
  5246. type TxQueryExtensionReply = struct {
  5247. Ftype1 TBYTE
  5248. Fpad1 TBYTE
  5249. FsequenceNumber TCARD16
  5250. Flength TCARD32
  5251. Fpresent TBOOL
  5252. Fmajor_opcode TCARD8
  5253. Ffirst_event TCARD8
  5254. Ffirst_error TCARD8
  5255. Fpad3 TCARD32
  5256. Fpad4 TCARD32
  5257. Fpad5 TCARD32
  5258. Fpad6 TCARD32
  5259. Fpad7 TCARD32
  5260. }
  5261. type TxListExtensionsReply = struct {
  5262. Ftype1 TBYTE
  5263. FnExtensions TCARD8
  5264. FsequenceNumber TCARD16
  5265. Flength TCARD32
  5266. Fpad2 TCARD32
  5267. Fpad3 TCARD32
  5268. Fpad4 TCARD32
  5269. Fpad5 TCARD32
  5270. Fpad6 TCARD32
  5271. Fpad7 TCARD32
  5272. }
  5273. type TxSetMappingReply = struct {
  5274. Ftype1 TBYTE
  5275. Fsuccess TCARD8
  5276. FsequenceNumber TCARD16
  5277. Flength TCARD32
  5278. Fpad2 TCARD32
  5279. Fpad3 TCARD32
  5280. Fpad4 TCARD32
  5281. Fpad5 TCARD32
  5282. Fpad6 TCARD32
  5283. Fpad7 TCARD32
  5284. }
  5285. type TxSetPointerMappingReply = struct {
  5286. Ftype1 TBYTE
  5287. Fsuccess TCARD8
  5288. FsequenceNumber TCARD16
  5289. Flength TCARD32
  5290. Fpad2 TCARD32
  5291. Fpad3 TCARD32
  5292. Fpad4 TCARD32
  5293. Fpad5 TCARD32
  5294. Fpad6 TCARD32
  5295. Fpad7 TCARD32
  5296. }
  5297. type TxSetModifierMappingReply = struct {
  5298. Ftype1 TBYTE
  5299. Fsuccess TCARD8
  5300. FsequenceNumber TCARD16
  5301. Flength TCARD32
  5302. Fpad2 TCARD32
  5303. Fpad3 TCARD32
  5304. Fpad4 TCARD32
  5305. Fpad5 TCARD32
  5306. Fpad6 TCARD32
  5307. Fpad7 TCARD32
  5308. }
  5309. type TxGetPointerMappingReply = struct {
  5310. Ftype1 TBYTE
  5311. FnElts TCARD8
  5312. FsequenceNumber TCARD16
  5313. Flength TCARD32
  5314. Fpad2 TCARD32
  5315. Fpad3 TCARD32
  5316. Fpad4 TCARD32
  5317. Fpad5 TCARD32
  5318. Fpad6 TCARD32
  5319. Fpad7 TCARD32
  5320. }
  5321. type TxGetKeyboardMappingReply = struct {
  5322. Ftype1 TBYTE
  5323. FkeySymsPerKeyCode TCARD8
  5324. FsequenceNumber TCARD16
  5325. Flength TCARD32
  5326. Fpad2 TCARD32
  5327. Fpad3 TCARD32
  5328. Fpad4 TCARD32
  5329. Fpad5 TCARD32
  5330. Fpad6 TCARD32
  5331. Fpad7 TCARD32
  5332. }
  5333. type TxGetModifierMappingReply = struct {
  5334. Ftype1 TBYTE
  5335. FnumKeyPerModifier TCARD8
  5336. FsequenceNumber TCARD16
  5337. Flength TCARD32
  5338. Fpad1 TCARD32
  5339. Fpad2 TCARD32
  5340. Fpad3 TCARD32
  5341. Fpad4 TCARD32
  5342. Fpad5 TCARD32
  5343. Fpad6 TCARD32
  5344. }
  5345. type TxGetKeyboardControlReply = struct {
  5346. Ftype1 TBYTE
  5347. FglobalAutoRepeat TBOOL
  5348. FsequenceNumber TCARD16
  5349. Flength TCARD32
  5350. FledMask TCARD32
  5351. FkeyClickPercent TCARD8
  5352. FbellPercent TCARD8
  5353. FbellPitch TCARD16
  5354. FbellDuration TCARD16
  5355. Fpad TCARD16
  5356. Fmap1 [32]TBYTE
  5357. }
  5358. type TxGetPointerControlReply = struct {
  5359. Ftype1 TBYTE
  5360. Fpad1 TBYTE
  5361. FsequenceNumber TCARD16
  5362. Flength TCARD32
  5363. FaccelNumerator TCARD16
  5364. FaccelDenominator TCARD16
  5365. Fthreshold TCARD16
  5366. Fpad2 TCARD16
  5367. Fpad3 TCARD32
  5368. Fpad4 TCARD32
  5369. Fpad5 TCARD32
  5370. Fpad6 TCARD32
  5371. }
  5372. type TxGetScreenSaverReply = struct {
  5373. Ftype1 TBYTE
  5374. Fpad1 TBYTE
  5375. FsequenceNumber TCARD16
  5376. Flength TCARD32
  5377. Ftimeout TCARD16
  5378. Finterval TCARD16
  5379. FpreferBlanking TBOOL
  5380. FallowExposures TBOOL
  5381. Fpad2 TCARD16
  5382. Fpad3 TCARD32
  5383. Fpad4 TCARD32
  5384. Fpad5 TCARD32
  5385. Fpad6 TCARD32
  5386. }
  5387. type TxListHostsReply = struct {
  5388. Ftype1 TBYTE
  5389. Fenabled TBOOL
  5390. FsequenceNumber TCARD16
  5391. Flength TCARD32
  5392. FnHosts TCARD16
  5393. Fpad1 TCARD16
  5394. Fpad3 TCARD32
  5395. Fpad4 TCARD32
  5396. Fpad5 TCARD32
  5397. Fpad6 TCARD32
  5398. Fpad7 TCARD32
  5399. }
  5400. type TxError = struct {
  5401. Ftype1 TBYTE
  5402. FerrorCode TBYTE
  5403. FsequenceNumber TCARD16
  5404. FresourceID TCARD32
  5405. FminorCode TCARD16
  5406. FmajorCode TCARD8
  5407. Fpad1 TBYTE
  5408. Fpad3 TCARD32
  5409. Fpad4 TCARD32
  5410. Fpad5 TCARD32
  5411. Fpad6 TCARD32
  5412. Fpad7 TCARD32
  5413. }
  5414. type TxEvent = struct {
  5415. Fu struct {
  5416. FkeyButtonPointer [0]struct {
  5417. Fpad00 TCARD32
  5418. Ftime TCARD32
  5419. Froot TCARD32
  5420. Fevent TCARD32
  5421. Fchild TCARD32
  5422. FrootX TINT16
  5423. FrootY TINT16
  5424. FeventX TINT16
  5425. FeventY TINT16
  5426. Fstate TKeyButMask
  5427. FsameScreen TBOOL
  5428. Fpad1 TBYTE
  5429. }
  5430. FenterLeave [0]struct {
  5431. Fpad00 TCARD32
  5432. Ftime TCARD32
  5433. Froot TCARD32
  5434. Fevent TCARD32
  5435. Fchild TCARD32
  5436. FrootX TINT16
  5437. FrootY TINT16
  5438. FeventX TINT16
  5439. FeventY TINT16
  5440. Fstate TKeyButMask
  5441. Fmode TBYTE
  5442. Fflags TBYTE
  5443. }
  5444. Ffocus [0]struct {
  5445. Fpad00 TCARD32
  5446. Fwindow TCARD32
  5447. Fmode TBYTE
  5448. Fpad1 TBYTE
  5449. Fpad2 TBYTE
  5450. Fpad3 TBYTE
  5451. }
  5452. Fexpose [0]struct {
  5453. Fpad00 TCARD32
  5454. Fwindow TCARD32
  5455. Fx TCARD16
  5456. Fy TCARD16
  5457. Fwidth TCARD16
  5458. Fheight TCARD16
  5459. Fcount TCARD16
  5460. Fpad2 TCARD16
  5461. }
  5462. FgraphicsExposure [0]struct {
  5463. Fpad00 TCARD32
  5464. Fdrawable TCARD32
  5465. Fx TCARD16
  5466. Fy TCARD16
  5467. Fwidth TCARD16
  5468. Fheight TCARD16
  5469. FminorEvent TCARD16
  5470. Fcount TCARD16
  5471. FmajorEvent TBYTE
  5472. Fpad1 TBYTE
  5473. Fpad2 TBYTE
  5474. Fpad3 TBYTE
  5475. }
  5476. FnoExposure [0]struct {
  5477. Fpad00 TCARD32
  5478. Fdrawable TCARD32
  5479. FminorEvent TCARD16
  5480. FmajorEvent TBYTE
  5481. Fbpad TBYTE
  5482. }
  5483. Fvisibility [0]struct {
  5484. Fpad00 TCARD32
  5485. Fwindow TCARD32
  5486. Fstate TCARD8
  5487. Fpad1 TBYTE
  5488. Fpad2 TBYTE
  5489. Fpad3 TBYTE
  5490. }
  5491. FcreateNotify [0]struct {
  5492. Fpad00 TCARD32
  5493. Fparent TCARD32
  5494. Fwindow TCARD32
  5495. Fx TINT16
  5496. Fy TINT16
  5497. Fwidth TCARD16
  5498. Fheight TCARD16
  5499. FborderWidth TCARD16
  5500. Foverride TBOOL
  5501. Fbpad TBYTE
  5502. }
  5503. FdestroyNotify [0]struct {
  5504. Fpad00 TCARD32
  5505. Fevent TCARD32
  5506. Fwindow TCARD32
  5507. }
  5508. FunmapNotify [0]struct {
  5509. Fpad00 TCARD32
  5510. Fevent TCARD32
  5511. Fwindow TCARD32
  5512. FfromConfigure TBOOL
  5513. Fpad1 TBYTE
  5514. Fpad2 TBYTE
  5515. Fpad3 TBYTE
  5516. }
  5517. FmapNotify [0]struct {
  5518. Fpad00 TCARD32
  5519. Fevent TCARD32
  5520. Fwindow TCARD32
  5521. Foverride TBOOL
  5522. Fpad1 TBYTE
  5523. Fpad2 TBYTE
  5524. Fpad3 TBYTE
  5525. }
  5526. FmapRequest [0]struct {
  5527. Fpad00 TCARD32
  5528. Fparent TCARD32
  5529. Fwindow TCARD32
  5530. }
  5531. Freparent [0]struct {
  5532. Fpad00 TCARD32
  5533. Fevent TCARD32
  5534. Fwindow TCARD32
  5535. Fparent TCARD32
  5536. Fx TINT16
  5537. Fy TINT16
  5538. Foverride TBOOL
  5539. Fpad1 TBYTE
  5540. Fpad2 TBYTE
  5541. Fpad3 TBYTE
  5542. }
  5543. FconfigureNotify [0]struct {
  5544. Fpad00 TCARD32
  5545. Fevent TCARD32
  5546. Fwindow TCARD32
  5547. FaboveSibling TCARD32
  5548. Fx TINT16
  5549. Fy TINT16
  5550. Fwidth TCARD16
  5551. Fheight TCARD16
  5552. FborderWidth TCARD16
  5553. Foverride TBOOL
  5554. Fbpad TBYTE
  5555. }
  5556. FconfigureRequest [0]struct {
  5557. Fpad00 TCARD32
  5558. Fparent TCARD32
  5559. Fwindow TCARD32
  5560. Fsibling TCARD32
  5561. Fx TINT16
  5562. Fy TINT16
  5563. Fwidth TCARD16
  5564. Fheight TCARD16
  5565. FborderWidth TCARD16
  5566. FvalueMask TCARD16
  5567. Fpad1 TCARD32
  5568. }
  5569. Fgravity [0]struct {
  5570. Fpad00 TCARD32
  5571. Fevent TCARD32
  5572. Fwindow TCARD32
  5573. Fx TINT16
  5574. Fy TINT16
  5575. Fpad1 TCARD32
  5576. Fpad2 TCARD32
  5577. Fpad3 TCARD32
  5578. Fpad4 TCARD32
  5579. }
  5580. FresizeRequest [0]struct {
  5581. Fpad00 TCARD32
  5582. Fwindow TCARD32
  5583. Fwidth TCARD16
  5584. Fheight TCARD16
  5585. }
  5586. Fcirculate [0]struct {
  5587. Fpad00 TCARD32
  5588. Fevent TCARD32
  5589. Fwindow TCARD32
  5590. Fparent TCARD32
  5591. Fplace TBYTE
  5592. Fpad1 TBYTE
  5593. Fpad2 TBYTE
  5594. Fpad3 TBYTE
  5595. }
  5596. Fproperty [0]struct {
  5597. Fpad00 TCARD32
  5598. Fwindow TCARD32
  5599. Fatom TCARD32
  5600. Ftime TCARD32
  5601. Fstate TBYTE
  5602. Fpad1 TBYTE
  5603. Fpad2 TCARD16
  5604. }
  5605. FselectionClear [0]struct {
  5606. Fpad00 TCARD32
  5607. Ftime TCARD32
  5608. Fwindow TCARD32
  5609. Fatom TCARD32
  5610. }
  5611. FselectionRequest [0]struct {
  5612. Fpad00 TCARD32
  5613. Ftime TCARD32
  5614. Fowner TCARD32
  5615. Frequestor TCARD32
  5616. Fselection TCARD32
  5617. Ftarget TCARD32
  5618. Fproperty TCARD32
  5619. }
  5620. FselectionNotify [0]struct {
  5621. Fpad00 TCARD32
  5622. Ftime TCARD32
  5623. Frequestor TCARD32
  5624. Fselection TCARD32
  5625. Ftarget TCARD32
  5626. Fproperty TCARD32
  5627. }
  5628. Fcolormap [0]struct {
  5629. Fpad00 TCARD32
  5630. Fwindow TCARD32
  5631. Fcolormap TCARD32
  5632. Fnew1 TBOOL
  5633. Fstate TBYTE
  5634. Fpad1 TBYTE
  5635. Fpad2 TBYTE
  5636. }
  5637. FmappingNotify [0]struct {
  5638. Fpad00 TCARD32
  5639. Frequest TCARD8
  5640. FfirstKeyCode TCARD8
  5641. Fcount TCARD8
  5642. Fpad1 TBYTE
  5643. }
  5644. FclientMessage [0]struct {
  5645. Fpad00 TCARD32
  5646. Fwindow TCARD32
  5647. Fu struct {
  5648. Fs [0]struct {
  5649. Ftype1 TCARD32
  5650. Fshorts0 TINT16
  5651. Fshorts1 TINT16
  5652. Fshorts2 TINT16
  5653. Fshorts3 TINT16
  5654. Fshorts4 TINT16
  5655. Fshorts5 TINT16
  5656. Fshorts6 TINT16
  5657. Fshorts7 TINT16
  5658. Fshorts8 TINT16
  5659. Fshorts9 TINT16
  5660. }
  5661. Fb [0]struct {
  5662. Ftype1 TCARD32
  5663. Fbytes [20]TINT8
  5664. }
  5665. Fl struct {
  5666. Ftype1 TCARD32
  5667. Flongs0 TINT32
  5668. Flongs1 TINT32
  5669. Flongs2 TINT32
  5670. Flongs3 TINT32
  5671. Flongs4 TINT32
  5672. }
  5673. }
  5674. }
  5675. Fu struct {
  5676. Ftype1 TBYTE
  5677. Fdetail TBYTE
  5678. FsequenceNumber TCARD16
  5679. }
  5680. F__ccgo_pad26 [28]byte
  5681. }
  5682. }
  5683. type T_xEvent = TxEvent
  5684. type TxGenericEvent = struct {
  5685. Ftype1 TBYTE
  5686. Fextension TCARD8
  5687. FsequenceNumber TCARD16
  5688. Flength TCARD32
  5689. Fevtype TCARD16
  5690. Fpad2 TCARD16
  5691. Fpad3 TCARD32
  5692. Fpad4 TCARD32
  5693. Fpad5 TCARD32
  5694. Fpad6 TCARD32
  5695. Fpad7 TCARD32
  5696. }
  5697. type TxKeymapEvent = struct {
  5698. Ftype1 TBYTE
  5699. Fmap1 [31]TBYTE
  5700. }
  5701. type TxReply = struct {
  5702. Fgeom [0]TxGetGeometryReply
  5703. Ftree [0]TxQueryTreeReply
  5704. Fatom [0]TxInternAtomReply
  5705. FatomName [0]TxGetAtomNameReply
  5706. Fproperty [0]TxGetPropertyReply
  5707. FlistProperties [0]TxListPropertiesReply
  5708. Fselection [0]TxGetSelectionOwnerReply
  5709. FgrabPointer [0]TxGrabPointerReply
  5710. FgrabKeyboard [0]TxGrabKeyboardReply
  5711. Fpointer [0]TxQueryPointerReply
  5712. FmotionEvents [0]TxGetMotionEventsReply
  5713. Fcoords [0]TxTranslateCoordsReply
  5714. FinputFocus [0]TxGetInputFocusReply
  5715. FtextExtents [0]TxQueryTextExtentsReply
  5716. Ffonts [0]TxListFontsReply
  5717. FfontPath [0]TxGetFontPathReply
  5718. Fimage [0]TxGetImageReply
  5719. Fcolormaps [0]TxListInstalledColormapsReply
  5720. FallocColor [0]TxAllocColorReply
  5721. FallocNamedColor [0]TxAllocNamedColorReply
  5722. FcolorCells [0]TxAllocColorCellsReply
  5723. FcolorPlanes [0]TxAllocColorPlanesReply
  5724. Fcolors [0]TxQueryColorsReply
  5725. FlookupColor [0]TxLookupColorReply
  5726. FbestSize [0]TxQueryBestSizeReply
  5727. Fextension [0]TxQueryExtensionReply
  5728. Fextensions [0]TxListExtensionsReply
  5729. FsetModifierMapping [0]TxSetModifierMappingReply
  5730. FgetModifierMapping [0]TxGetModifierMappingReply
  5731. FsetPointerMapping [0]TxSetPointerMappingReply
  5732. FgetKeyboardMapping [0]TxGetKeyboardMappingReply
  5733. FgetPointerMapping [0]TxGetPointerMappingReply
  5734. FpointerControl [0]TxGetPointerControlReply
  5735. FscreenSaver [0]TxGetScreenSaverReply
  5736. Fhosts [0]TxListHostsReply
  5737. Ferror1 [0]TxError
  5738. Fevent [0]TxEvent
  5739. Fgeneric TxGenericReply
  5740. }
  5741. type TxReq = struct {
  5742. FreqType TCARD8
  5743. Fdata TCARD8
  5744. Flength TCARD16
  5745. }
  5746. type T_xReq = TxReq
  5747. type TxResourceReq = struct {
  5748. FreqType TCARD8
  5749. Fpad TBYTE
  5750. Flength TCARD16
  5751. Fid TCARD32
  5752. }
  5753. type TxCreateWindowReq = struct {
  5754. FreqType TCARD8
  5755. Fdepth TCARD8
  5756. Flength TCARD16
  5757. Fwid TCARD32
  5758. Fparent TCARD32
  5759. Fx TINT16
  5760. Fy TINT16
  5761. Fwidth TCARD16
  5762. Fheight TCARD16
  5763. FborderWidth TCARD16
  5764. Fclass TCARD16
  5765. Fvisual TCARD32
  5766. Fmask TCARD32
  5767. }
  5768. type TxChangeWindowAttributesReq = struct {
  5769. FreqType TCARD8
  5770. Fpad TBYTE
  5771. Flength TCARD16
  5772. Fwindow TCARD32
  5773. FvalueMask TCARD32
  5774. }
  5775. type TxChangeSaveSetReq = struct {
  5776. FreqType TCARD8
  5777. Fmode TBYTE
  5778. Flength TCARD16
  5779. Fwindow TCARD32
  5780. }
  5781. type TxReparentWindowReq = struct {
  5782. FreqType TCARD8
  5783. Fpad TBYTE
  5784. Flength TCARD16
  5785. Fwindow TCARD32
  5786. Fparent TCARD32
  5787. Fx TINT16
  5788. Fy TINT16
  5789. }
  5790. type TxConfigureWindowReq = struct {
  5791. FreqType TCARD8
  5792. Fpad TCARD8
  5793. Flength TCARD16
  5794. Fwindow TCARD32
  5795. Fmask TCARD16
  5796. Fpad2 TCARD16
  5797. }
  5798. type TxCirculateWindowReq = struct {
  5799. FreqType TCARD8
  5800. Fdirection TCARD8
  5801. Flength TCARD16
  5802. Fwindow TCARD32
  5803. }
  5804. type TxInternAtomReq = struct {
  5805. FreqType TCARD8
  5806. FonlyIfExists TBOOL
  5807. Flength TCARD16
  5808. Fnbytes TCARD16
  5809. Fpad TCARD16
  5810. }
  5811. type TxChangePropertyReq = struct {
  5812. FreqType TCARD8
  5813. Fmode TCARD8
  5814. Flength TCARD16
  5815. Fwindow TCARD32
  5816. Fproperty TCARD32
  5817. Ftype1 TCARD32
  5818. Fformat TCARD8
  5819. Fpad [3]TBYTE
  5820. FnUnits TCARD32
  5821. }
  5822. type TxDeletePropertyReq = struct {
  5823. FreqType TCARD8
  5824. Fpad TBYTE
  5825. Flength TCARD16
  5826. Fwindow TCARD32
  5827. Fproperty TCARD32
  5828. }
  5829. type TxGetPropertyReq = struct {
  5830. FreqType TCARD8
  5831. Fdelete1 TBOOL
  5832. Flength TCARD16
  5833. Fwindow TCARD32
  5834. Fproperty TCARD32
  5835. Ftype1 TCARD32
  5836. FlongOffset TCARD32
  5837. FlongLength TCARD32
  5838. }
  5839. type TxSetSelectionOwnerReq = struct {
  5840. FreqType TCARD8
  5841. Fpad TBYTE
  5842. Flength TCARD16
  5843. Fwindow TCARD32
  5844. Fselection TCARD32
  5845. Ftime TCARD32
  5846. }
  5847. type TxConvertSelectionReq = struct {
  5848. FreqType TCARD8
  5849. Fpad TBYTE
  5850. Flength TCARD16
  5851. Frequestor TCARD32
  5852. Fselection TCARD32
  5853. Ftarget TCARD32
  5854. Fproperty TCARD32
  5855. Ftime TCARD32
  5856. }
  5857. type TxSendEventReq = struct {
  5858. FreqType TCARD8
  5859. Fpropagate TBOOL
  5860. Flength TCARD16
  5861. Fdestination TCARD32
  5862. FeventMask TCARD32
  5863. Fevent TxEvent
  5864. }
  5865. type TxGrabPointerReq = struct {
  5866. FreqType TCARD8
  5867. FownerEvents TBOOL
  5868. Flength TCARD16
  5869. FgrabWindow TCARD32
  5870. FeventMask TCARD16
  5871. FpointerMode TBYTE
  5872. FkeyboardMode TBYTE
  5873. FconfineTo TCARD32
  5874. Fcursor TCARD32
  5875. Ftime TCARD32
  5876. }
  5877. type TxGrabButtonReq = struct {
  5878. FreqType TCARD8
  5879. FownerEvents TBOOL
  5880. Flength TCARD16
  5881. FgrabWindow TCARD32
  5882. FeventMask TCARD16
  5883. FpointerMode TBYTE
  5884. FkeyboardMode TBYTE
  5885. FconfineTo TCARD32
  5886. Fcursor TCARD32
  5887. Fbutton TCARD8
  5888. Fpad TBYTE
  5889. Fmodifiers TCARD16
  5890. }
  5891. type TxUngrabButtonReq = struct {
  5892. FreqType TCARD8
  5893. Fbutton TCARD8
  5894. Flength TCARD16
  5895. FgrabWindow TCARD32
  5896. Fmodifiers TCARD16
  5897. Fpad TCARD16
  5898. }
  5899. type TxChangeActivePointerGrabReq = struct {
  5900. FreqType TCARD8
  5901. Fpad TBYTE
  5902. Flength TCARD16
  5903. Fcursor TCARD32
  5904. Ftime TCARD32
  5905. FeventMask TCARD16
  5906. Fpad2 TCARD16
  5907. }
  5908. type TxGrabKeyboardReq = struct {
  5909. FreqType TCARD8
  5910. FownerEvents TBOOL
  5911. Flength TCARD16
  5912. FgrabWindow TCARD32
  5913. Ftime TCARD32
  5914. FpointerMode TBYTE
  5915. FkeyboardMode TBYTE
  5916. Fpad TCARD16
  5917. }
  5918. type TxGrabKeyReq = struct {
  5919. FreqType TCARD8
  5920. FownerEvents TBOOL
  5921. Flength TCARD16
  5922. FgrabWindow TCARD32
  5923. Fmodifiers TCARD16
  5924. Fkey TCARD8
  5925. FpointerMode TBYTE
  5926. FkeyboardMode TBYTE
  5927. Fpad1 TBYTE
  5928. Fpad2 TBYTE
  5929. Fpad3 TBYTE
  5930. }
  5931. type TxUngrabKeyReq = struct {
  5932. FreqType TCARD8
  5933. Fkey TCARD8
  5934. Flength TCARD16
  5935. FgrabWindow TCARD32
  5936. Fmodifiers TCARD16
  5937. Fpad TCARD16
  5938. }
  5939. type TxAllowEventsReq = struct {
  5940. FreqType TCARD8
  5941. Fmode TCARD8
  5942. Flength TCARD16
  5943. Ftime TCARD32
  5944. }
  5945. type TxGetMotionEventsReq = struct {
  5946. FreqType TCARD8
  5947. Fpad TBYTE
  5948. Flength TCARD16
  5949. Fwindow TCARD32
  5950. Fstart TCARD32
  5951. Fstop TCARD32
  5952. }
  5953. type TxTranslateCoordsReq = struct {
  5954. FreqType TCARD8
  5955. Fpad TBYTE
  5956. Flength TCARD16
  5957. FsrcWid TCARD32
  5958. FdstWid TCARD32
  5959. FsrcX TINT16
  5960. FsrcY TINT16
  5961. }
  5962. type TxWarpPointerReq = struct {
  5963. FreqType TCARD8
  5964. Fpad TBYTE
  5965. Flength TCARD16
  5966. FsrcWid TCARD32
  5967. FdstWid TCARD32
  5968. FsrcX TINT16
  5969. FsrcY TINT16
  5970. FsrcWidth TCARD16
  5971. FsrcHeight TCARD16
  5972. FdstX TINT16
  5973. FdstY TINT16
  5974. }
  5975. type TxSetInputFocusReq = struct {
  5976. FreqType TCARD8
  5977. FrevertTo TCARD8
  5978. Flength TCARD16
  5979. Ffocus TCARD32
  5980. Ftime TCARD32
  5981. }
  5982. type TxOpenFontReq = struct {
  5983. FreqType TCARD8
  5984. Fpad TBYTE
  5985. Flength TCARD16
  5986. Ffid TCARD32
  5987. Fnbytes TCARD16
  5988. Fpad1 TBYTE
  5989. Fpad2 TBYTE
  5990. }
  5991. type TxQueryTextExtentsReq = struct {
  5992. FreqType TCARD8
  5993. FoddLength TBOOL
  5994. Flength TCARD16
  5995. Ffid TCARD32
  5996. }
  5997. type TxListFontsReq = struct {
  5998. FreqType TCARD8
  5999. Fpad TBYTE
  6000. Flength TCARD16
  6001. FmaxNames TCARD16
  6002. Fnbytes TCARD16
  6003. }
  6004. type TxListFontsWithInfoReq = struct {
  6005. FreqType TCARD8
  6006. Fpad TBYTE
  6007. Flength TCARD16
  6008. FmaxNames TCARD16
  6009. Fnbytes TCARD16
  6010. }
  6011. type TxSetFontPathReq = struct {
  6012. FreqType TCARD8
  6013. Fpad TBYTE
  6014. Flength TCARD16
  6015. FnFonts TCARD16
  6016. Fpad1 TBYTE
  6017. Fpad2 TBYTE
  6018. }
  6019. type TxCreatePixmapReq = struct {
  6020. FreqType TCARD8
  6021. Fdepth TCARD8
  6022. Flength TCARD16
  6023. Fpid TCARD32
  6024. Fdrawable TCARD32
  6025. Fwidth TCARD16
  6026. Fheight TCARD16
  6027. }
  6028. type TxCreateGCReq = struct {
  6029. FreqType TCARD8
  6030. Fpad TBYTE
  6031. Flength TCARD16
  6032. Fgc TCARD32
  6033. Fdrawable TCARD32
  6034. Fmask TCARD32
  6035. }
  6036. type TxChangeGCReq = struct {
  6037. FreqType TCARD8
  6038. Fpad TBYTE
  6039. Flength TCARD16
  6040. Fgc TCARD32
  6041. Fmask TCARD32
  6042. }
  6043. type TxCopyGCReq = struct {
  6044. FreqType TCARD8
  6045. Fpad TBYTE
  6046. Flength TCARD16
  6047. FsrcGC TCARD32
  6048. FdstGC TCARD32
  6049. Fmask TCARD32
  6050. }
  6051. type TxSetDashesReq = struct {
  6052. FreqType TCARD8
  6053. Fpad TBYTE
  6054. Flength TCARD16
  6055. Fgc TCARD32
  6056. FdashOffset TCARD16
  6057. FnDashes TCARD16
  6058. }
  6059. type TxSetClipRectanglesReq = struct {
  6060. FreqType TCARD8
  6061. Fordering TBYTE
  6062. Flength TCARD16
  6063. Fgc TCARD32
  6064. FxOrigin TINT16
  6065. FyOrigin TINT16
  6066. }
  6067. type TxClearAreaReq = struct {
  6068. FreqType TCARD8
  6069. Fexposures TBOOL
  6070. Flength TCARD16
  6071. Fwindow TCARD32
  6072. Fx TINT16
  6073. Fy TINT16
  6074. Fwidth TCARD16
  6075. Fheight TCARD16
  6076. }
  6077. type TxCopyAreaReq = struct {
  6078. FreqType TCARD8
  6079. Fpad TBYTE
  6080. Flength TCARD16
  6081. FsrcDrawable TCARD32
  6082. FdstDrawable TCARD32
  6083. Fgc TCARD32
  6084. FsrcX TINT16
  6085. FsrcY TINT16
  6086. FdstX TINT16
  6087. FdstY TINT16
  6088. Fwidth TCARD16
  6089. Fheight TCARD16
  6090. }
  6091. type TxCopyPlaneReq = struct {
  6092. FreqType TCARD8
  6093. Fpad TBYTE
  6094. Flength TCARD16
  6095. FsrcDrawable TCARD32
  6096. FdstDrawable TCARD32
  6097. Fgc TCARD32
  6098. FsrcX TINT16
  6099. FsrcY TINT16
  6100. FdstX TINT16
  6101. FdstY TINT16
  6102. Fwidth TCARD16
  6103. Fheight TCARD16
  6104. FbitPlane TCARD32
  6105. }
  6106. type TxPolyPointReq = struct {
  6107. FreqType TCARD8
  6108. FcoordMode TBYTE
  6109. Flength TCARD16
  6110. Fdrawable TCARD32
  6111. Fgc TCARD32
  6112. }
  6113. type TxPolyLineReq = struct {
  6114. FreqType TCARD8
  6115. FcoordMode TBYTE
  6116. Flength TCARD16
  6117. Fdrawable TCARD32
  6118. Fgc TCARD32
  6119. }
  6120. type TxPolySegmentReq = struct {
  6121. FreqType TCARD8
  6122. Fpad TBYTE
  6123. Flength TCARD16
  6124. Fdrawable TCARD32
  6125. Fgc TCARD32
  6126. }
  6127. type TxPolyArcReq = struct {
  6128. FreqType TCARD8
  6129. Fpad TBYTE
  6130. Flength TCARD16
  6131. Fdrawable TCARD32
  6132. Fgc TCARD32
  6133. }
  6134. type TxPolyRectangleReq = struct {
  6135. FreqType TCARD8
  6136. Fpad TBYTE
  6137. Flength TCARD16
  6138. Fdrawable TCARD32
  6139. Fgc TCARD32
  6140. }
  6141. type TxPolyFillRectangleReq = struct {
  6142. FreqType TCARD8
  6143. Fpad TBYTE
  6144. Flength TCARD16
  6145. Fdrawable TCARD32
  6146. Fgc TCARD32
  6147. }
  6148. type TxPolyFillArcReq = struct {
  6149. FreqType TCARD8
  6150. Fpad TBYTE
  6151. Flength TCARD16
  6152. Fdrawable TCARD32
  6153. Fgc TCARD32
  6154. }
  6155. type TxFillPolyReq = struct {
  6156. FreqType TCARD8
  6157. Fpad TBYTE
  6158. Flength TCARD16
  6159. Fdrawable TCARD32
  6160. Fgc TCARD32
  6161. Fshape TBYTE
  6162. FcoordMode TBYTE
  6163. Fpad1 TCARD16
  6164. }
  6165. type T_FillPolyReq = TxFillPolyReq
  6166. type TxPutImageReq = struct {
  6167. FreqType TCARD8
  6168. Fformat TCARD8
  6169. Flength TCARD16
  6170. Fdrawable TCARD32
  6171. Fgc TCARD32
  6172. Fwidth TCARD16
  6173. Fheight TCARD16
  6174. FdstX TINT16
  6175. FdstY TINT16
  6176. FleftPad TCARD8
  6177. Fdepth TCARD8
  6178. Fpad TCARD16
  6179. }
  6180. type T_PutImageReq = TxPutImageReq
  6181. type TxGetImageReq = struct {
  6182. FreqType TCARD8
  6183. Fformat TCARD8
  6184. Flength TCARD16
  6185. Fdrawable TCARD32
  6186. Fx TINT16
  6187. Fy TINT16
  6188. Fwidth TCARD16
  6189. Fheight TCARD16
  6190. FplaneMask TCARD32
  6191. }
  6192. type TxPolyTextReq = struct {
  6193. FreqType TCARD8
  6194. Fpad TCARD8
  6195. Flength TCARD16
  6196. Fdrawable TCARD32
  6197. Fgc TCARD32
  6198. Fx TINT16
  6199. Fy TINT16
  6200. }
  6201. type TxPolyText8Req = struct {
  6202. FreqType TCARD8
  6203. Fpad TCARD8
  6204. Flength TCARD16
  6205. Fdrawable TCARD32
  6206. Fgc TCARD32
  6207. Fx TINT16
  6208. Fy TINT16
  6209. }
  6210. type TxPolyText16Req = struct {
  6211. FreqType TCARD8
  6212. Fpad TCARD8
  6213. Flength TCARD16
  6214. Fdrawable TCARD32
  6215. Fgc TCARD32
  6216. Fx TINT16
  6217. Fy TINT16
  6218. }
  6219. type TxImageTextReq = struct {
  6220. FreqType TCARD8
  6221. FnChars TBYTE
  6222. Flength TCARD16
  6223. Fdrawable TCARD32
  6224. Fgc TCARD32
  6225. Fx TINT16
  6226. Fy TINT16
  6227. }
  6228. type TxImageText8Req = struct {
  6229. FreqType TCARD8
  6230. FnChars TBYTE
  6231. Flength TCARD16
  6232. Fdrawable TCARD32
  6233. Fgc TCARD32
  6234. Fx TINT16
  6235. Fy TINT16
  6236. }
  6237. type TxImageText16Req = struct {
  6238. FreqType TCARD8
  6239. FnChars TBYTE
  6240. Flength TCARD16
  6241. Fdrawable TCARD32
  6242. Fgc TCARD32
  6243. Fx TINT16
  6244. Fy TINT16
  6245. }
  6246. type TxCreateColormapReq = struct {
  6247. FreqType TCARD8
  6248. Falloc TBYTE
  6249. Flength TCARD16
  6250. Fmid TCARD32
  6251. Fwindow TCARD32
  6252. Fvisual TCARD32
  6253. }
  6254. type TxCopyColormapAndFreeReq = struct {
  6255. FreqType TCARD8
  6256. Fpad TBYTE
  6257. Flength TCARD16
  6258. Fmid TCARD32
  6259. FsrcCmap TCARD32
  6260. }
  6261. type TxAllocColorReq = struct {
  6262. FreqType TCARD8
  6263. Fpad TBYTE
  6264. Flength TCARD16
  6265. Fcmap TCARD32
  6266. Fred TCARD16
  6267. Fgreen TCARD16
  6268. Fblue TCARD16
  6269. Fpad2 TCARD16
  6270. }
  6271. type TxAllocNamedColorReq = struct {
  6272. FreqType TCARD8
  6273. Fpad TBYTE
  6274. Flength TCARD16
  6275. Fcmap TCARD32
  6276. Fnbytes TCARD16
  6277. Fpad1 TBYTE
  6278. Fpad2 TBYTE
  6279. }
  6280. type TxAllocColorCellsReq = struct {
  6281. FreqType TCARD8
  6282. Fcontiguous TBOOL
  6283. Flength TCARD16
  6284. Fcmap TCARD32
  6285. Fcolors TCARD16
  6286. Fplanes TCARD16
  6287. }
  6288. type TxAllocColorPlanesReq = struct {
  6289. FreqType TCARD8
  6290. Fcontiguous TBOOL
  6291. Flength TCARD16
  6292. Fcmap TCARD32
  6293. Fcolors TCARD16
  6294. Fred TCARD16
  6295. Fgreen TCARD16
  6296. Fblue TCARD16
  6297. }
  6298. type TxFreeColorsReq = struct {
  6299. FreqType TCARD8
  6300. Fpad TBYTE
  6301. Flength TCARD16
  6302. Fcmap TCARD32
  6303. FplaneMask TCARD32
  6304. }
  6305. type TxStoreColorsReq = struct {
  6306. FreqType TCARD8
  6307. Fpad TBYTE
  6308. Flength TCARD16
  6309. Fcmap TCARD32
  6310. }
  6311. type TxStoreNamedColorReq = struct {
  6312. FreqType TCARD8
  6313. Fflags TCARD8
  6314. Flength TCARD16
  6315. Fcmap TCARD32
  6316. Fpixel TCARD32
  6317. Fnbytes TCARD16
  6318. Fpad1 TBYTE
  6319. Fpad2 TBYTE
  6320. }
  6321. type TxQueryColorsReq = struct {
  6322. FreqType TCARD8
  6323. Fpad TBYTE
  6324. Flength TCARD16
  6325. Fcmap TCARD32
  6326. }
  6327. type TxLookupColorReq = struct {
  6328. FreqType TCARD8
  6329. Fpad TBYTE
  6330. Flength TCARD16
  6331. Fcmap TCARD32
  6332. Fnbytes TCARD16
  6333. Fpad1 TBYTE
  6334. Fpad2 TBYTE
  6335. }
  6336. type TxCreateCursorReq = struct {
  6337. FreqType TCARD8
  6338. Fpad TBYTE
  6339. Flength TCARD16
  6340. Fcid TCARD32
  6341. Fsource TCARD32
  6342. Fmask TCARD32
  6343. FforeRed TCARD16
  6344. FforeGreen TCARD16
  6345. FforeBlue TCARD16
  6346. FbackRed TCARD16
  6347. FbackGreen TCARD16
  6348. FbackBlue TCARD16
  6349. Fx TCARD16
  6350. Fy TCARD16
  6351. }
  6352. type TxCreateGlyphCursorReq = struct {
  6353. FreqType TCARD8
  6354. Fpad TBYTE
  6355. Flength TCARD16
  6356. Fcid TCARD32
  6357. Fsource TCARD32
  6358. Fmask TCARD32
  6359. FsourceChar TCARD16
  6360. FmaskChar TCARD16
  6361. FforeRed TCARD16
  6362. FforeGreen TCARD16
  6363. FforeBlue TCARD16
  6364. FbackRed TCARD16
  6365. FbackGreen TCARD16
  6366. FbackBlue TCARD16
  6367. }
  6368. type TxRecolorCursorReq = struct {
  6369. FreqType TCARD8
  6370. Fpad TBYTE
  6371. Flength TCARD16
  6372. Fcursor TCARD32
  6373. FforeRed TCARD16
  6374. FforeGreen TCARD16
  6375. FforeBlue TCARD16
  6376. FbackRed TCARD16
  6377. FbackGreen TCARD16
  6378. FbackBlue TCARD16
  6379. }
  6380. type TxQueryBestSizeReq = struct {
  6381. FreqType TCARD8
  6382. Fclass TCARD8
  6383. Flength TCARD16
  6384. Fdrawable TCARD32
  6385. Fwidth TCARD16
  6386. Fheight TCARD16
  6387. }
  6388. type TxQueryExtensionReq = struct {
  6389. FreqType TCARD8
  6390. Fpad TBYTE
  6391. Flength TCARD16
  6392. Fnbytes TCARD16
  6393. Fpad1 TBYTE
  6394. Fpad2 TBYTE
  6395. }
  6396. type TxSetModifierMappingReq = struct {
  6397. FreqType TCARD8
  6398. FnumKeyPerModifier TCARD8
  6399. Flength TCARD16
  6400. }
  6401. type TxSetPointerMappingReq = struct {
  6402. FreqType TCARD8
  6403. FnElts TCARD8
  6404. Flength TCARD16
  6405. }
  6406. type TxGetKeyboardMappingReq = struct {
  6407. FreqType TCARD8
  6408. Fpad TBYTE
  6409. Flength TCARD16
  6410. FfirstKeyCode TCARD8
  6411. Fcount TCARD8
  6412. Fpad1 TCARD16
  6413. }
  6414. type TxChangeKeyboardMappingReq = struct {
  6415. FreqType TCARD8
  6416. FkeyCodes TCARD8
  6417. Flength TCARD16
  6418. FfirstKeyCode TCARD8
  6419. FkeySymsPerKeyCode TCARD8
  6420. Fpad1 TCARD16
  6421. }
  6422. type TxChangeKeyboardControlReq = struct {
  6423. FreqType TCARD8
  6424. Fpad TBYTE
  6425. Flength TCARD16
  6426. Fmask TCARD32
  6427. }
  6428. type TxBellReq = struct {
  6429. FreqType TCARD8
  6430. Fpercent TINT8
  6431. Flength TCARD16
  6432. }
  6433. type TxChangePointerControlReq = struct {
  6434. FreqType TCARD8
  6435. Fpad TBYTE
  6436. Flength TCARD16
  6437. FaccelNum TINT16
  6438. FaccelDenum TINT16
  6439. Fthreshold TINT16
  6440. FdoAccel TBOOL
  6441. FdoThresh TBOOL
  6442. }
  6443. type TxSetScreenSaverReq = struct {
  6444. FreqType TCARD8
  6445. Fpad TBYTE
  6446. Flength TCARD16
  6447. Ftimeout TINT16
  6448. Finterval TINT16
  6449. FpreferBlank TBYTE
  6450. FallowExpose TBYTE
  6451. Fpad2 TCARD16
  6452. }
  6453. type TxChangeHostsReq = struct {
  6454. FreqType TCARD8
  6455. Fmode TBYTE
  6456. Flength TCARD16
  6457. FhostFamily TCARD8
  6458. Fpad TBYTE
  6459. FhostLength TCARD16
  6460. }
  6461. type TxListHostsReq = struct {
  6462. FreqType TCARD8
  6463. Fpad TBYTE
  6464. Flength TCARD16
  6465. }
  6466. type TxChangeModeReq = struct {
  6467. FreqType TCARD8
  6468. Fmode TBYTE
  6469. Flength TCARD16
  6470. }
  6471. type TxSetAccessControlReq = struct {
  6472. FreqType TCARD8
  6473. Fmode TBYTE
  6474. Flength TCARD16
  6475. }
  6476. type TxSetCloseDownModeReq = struct {
  6477. FreqType TCARD8
  6478. Fmode TBYTE
  6479. Flength TCARD16
  6480. }
  6481. type TxForceScreenSaverReq = struct {
  6482. FreqType TCARD8
  6483. Fmode TBYTE
  6484. Flength TCARD16
  6485. }
  6486. type TxRotatePropertiesReq = struct {
  6487. FreqType TCARD8
  6488. Fpad TBYTE
  6489. Flength TCARD16
  6490. Fwindow TCARD32
  6491. FnAtoms TCARD16
  6492. FnPositions TINT16
  6493. }
  6494. type T_XQEvent = struct {
  6495. Fnext uintptr
  6496. Fevent TXEvent
  6497. Fqserial_num uint64
  6498. }
  6499. type T_XSQEvent = T_XQEvent
  6500. type Tlocale_t = uintptr
  6501. type Tdiv_t = struct {
  6502. Fquot int32
  6503. Frem int32
  6504. }
  6505. type Tldiv_t = struct {
  6506. Fquot int64
  6507. Frem int64
  6508. }
  6509. type Tlldiv_t = struct {
  6510. Fquot int64
  6511. Frem int64
  6512. }
  6513. type TLockInfoPtr = uintptr
  6514. type T_XLockPtrs = struct {
  6515. Flock_display uintptr
  6516. Funlock_display uintptr
  6517. }
  6518. type T_XAsyncHandler = struct {
  6519. Fnext uintptr
  6520. Fhandler uintptr
  6521. Fdata TXPointer
  6522. }
  6523. type T_XInternalAsync = T_XAsyncHandler
  6524. type T_XAsyncErrorState = struct {
  6525. Fmin_sequence_number uint64
  6526. Fmax_sequence_number uint64
  6527. Ferror_code uint8
  6528. Fmajor_opcode uint8
  6529. Fminor_opcode uint16
  6530. Flast_error_received uint8
  6531. Ferror_count int32
  6532. }
  6533. type T_XAsyncEState = T_XAsyncErrorState
  6534. type TFreeFuncType = uintptr
  6535. type TFreeModmapType = uintptr
  6536. type T_XFreeFuncRec = struct {
  6537. Fatoms TFreeFuncType
  6538. Fmodifiermap TFreeModmapType
  6539. Fkey_bindings TFreeFuncType
  6540. Fcontext_db TFreeFuncType
  6541. FdefaultCCCs TFreeFuncType
  6542. FclientCmaps TFreeFuncType
  6543. FintensityMaps TFreeFuncType
  6544. Fim_filters TFreeFuncType
  6545. Fxkb TFreeFuncType
  6546. }
  6547. type T_XFreeFuncs = T_XFreeFuncRec
  6548. type TCreateGCType = uintptr
  6549. type TCopyGCType = uintptr
  6550. type TFlushGCType = uintptr
  6551. type TFreeGCType = uintptr
  6552. type TCreateFontType = uintptr
  6553. type TFreeFontType = uintptr
  6554. type TCloseDisplayType = uintptr
  6555. type TErrorType = uintptr
  6556. type TErrorStringType = uintptr
  6557. type TPrintErrorType = uintptr
  6558. type TBeforeFlushType = uintptr
  6559. type T_XExtension = struct {
  6560. Fnext uintptr
  6561. Fcodes TXExtCodes
  6562. Fcreate_GC TCreateGCType
  6563. Fcopy_GC TCopyGCType
  6564. Fflush_GC TFlushGCType
  6565. Ffree_GC TFreeGCType
  6566. Fcreate_Font TCreateFontType
  6567. Ffree_Font TFreeFontType
  6568. Fclose_display TCloseDisplayType
  6569. Ferror1 TErrorType
  6570. Ferror_string TErrorStringType
  6571. Fname uintptr
  6572. Ferror_values TPrintErrorType
  6573. Fbefore_flush TBeforeFlushType
  6574. Fnext_flush uintptr
  6575. }
  6576. type T_XExten = T_XExtension
  6577. type T_XInternalConnectionProc = uintptr
  6578. type T_XConnectionInfo = struct {
  6579. Ffd int32
  6580. Fread_callback T_XInternalConnectionProc
  6581. Fcall_data TXPointer
  6582. Fwatch_data uintptr
  6583. Fnext uintptr
  6584. }
  6585. type T_XConnWatchInfo = struct {
  6586. Ffn TXConnectionWatchProc
  6587. Fclient_data TXPointer
  6588. Fnext uintptr
  6589. }
  6590. type TXSizeHints = struct {
  6591. Fflags int64
  6592. Fx int32
  6593. Fy int32
  6594. Fwidth int32
  6595. Fheight int32
  6596. Fmin_width int32
  6597. Fmin_height int32
  6598. Fmax_width int32
  6599. Fmax_height int32
  6600. Fwidth_inc int32
  6601. Fheight_inc int32
  6602. Fmin_aspect struct {
  6603. Fx int32
  6604. Fy int32
  6605. }
  6606. Fmax_aspect struct {
  6607. Fx int32
  6608. Fy int32
  6609. }
  6610. Fbase_width int32
  6611. Fbase_height int32
  6612. Fwin_gravity int32
  6613. }
  6614. type TXWMHints = struct {
  6615. Fflags int64
  6616. Finput int32
  6617. Finitial_state int32
  6618. Ficon_pixmap TPixmap
  6619. Ficon_window TWindow
  6620. Ficon_x int32
  6621. Ficon_y int32
  6622. Ficon_mask TPixmap
  6623. Fwindow_group TXID
  6624. }
  6625. type TXTextProperty = struct {
  6626. Fvalue uintptr
  6627. Fencoding TAtom
  6628. Fformat int32
  6629. Fnitems uint64
  6630. }
  6631. type TXICCEncodingStyle = int32
  6632. const _XStringStyle = 0
  6633. const _XCompoundTextStyle = 1
  6634. const _XTextStyle = 2
  6635. const _XStdICCTextStyle = 3
  6636. const _XUTF8StringStyle = 4
  6637. type TXIconSize = struct {
  6638. Fmin_width int32
  6639. Fmin_height int32
  6640. Fmax_width int32
  6641. Fmax_height int32
  6642. Fwidth_inc int32
  6643. Fheight_inc int32
  6644. }
  6645. type TXClassHint = struct {
  6646. Fres_name uintptr
  6647. Fres_class uintptr
  6648. }
  6649. type TXComposeStatus = struct {
  6650. Fcompose_ptr TXPointer
  6651. Fchars_matched int32
  6652. }
  6653. type T_XComposeStatus = TXComposeStatus
  6654. type TRegion = uintptr
  6655. type TXVisualInfo = struct {
  6656. Fvisual uintptr
  6657. Fvisualid TVisualID
  6658. Fscreen int32
  6659. Fdepth int32
  6660. Fclass int32
  6661. Fred_mask uint64
  6662. Fgreen_mask uint64
  6663. Fblue_mask uint64
  6664. Fcolormap_size int32
  6665. Fbits_per_rgb int32
  6666. }
  6667. type TXStandardColormap = struct {
  6668. Fcolormap TColormap
  6669. Fred_max uint64
  6670. Fred_mult uint64
  6671. Fgreen_max uint64
  6672. Fgreen_mult uint64
  6673. Fblue_max uint64
  6674. Fblue_mult uint64
  6675. Fbase_pixel uint64
  6676. Fvisualid TVisualID
  6677. Fkillid TXID
  6678. }
  6679. type TXContext = int32
  6680. type Tpointer = uintptr
  6681. type TClientPtr = uintptr
  6682. type TFontPtr = uintptr
  6683. type TFSID = uint64
  6684. type TAccContext = uint64
  6685. type TOSTimePtr = uintptr
  6686. type TBlockHandlerProcPtr = uintptr
  6687. type TGlyph = uint64
  6688. type TGlyphSet = uint64
  6689. type TPicture = uint64
  6690. type TPictFormat = uint64
  6691. type TxDirectFormat = struct {
  6692. Fred TCARD16
  6693. FredMask TCARD16
  6694. Fgreen TCARD16
  6695. FgreenMask TCARD16
  6696. Fblue TCARD16
  6697. FblueMask TCARD16
  6698. Falpha TCARD16
  6699. FalphaMask TCARD16
  6700. }
  6701. type TxPictFormInfo = struct {
  6702. Fid TCARD32
  6703. Ftype1 TCARD8
  6704. Fdepth TCARD8
  6705. Fpad1 TCARD16
  6706. Fdirect TxDirectFormat
  6707. Fcolormap TCARD32
  6708. }
  6709. type TxPictVisual = struct {
  6710. Fvisual TCARD32
  6711. Fformat TCARD32
  6712. }
  6713. type TxPictDepth = struct {
  6714. Fdepth TCARD8
  6715. Fpad1 TCARD8
  6716. FnPictVisuals TCARD16
  6717. Fpad2 TCARD32
  6718. }
  6719. type TxPictScreen = struct {
  6720. FnDepth TCARD32
  6721. Ffallback TCARD32
  6722. }
  6723. type TxIndexValue = struct {
  6724. Fpixel TCARD32
  6725. Fred TCARD16
  6726. Fgreen TCARD16
  6727. Fblue TCARD16
  6728. Falpha TCARD16
  6729. }
  6730. type TxRenderColor = struct {
  6731. Fred TCARD16
  6732. Fgreen TCARD16
  6733. Fblue TCARD16
  6734. Falpha TCARD16
  6735. }
  6736. type TxPointFixed = struct {
  6737. Fx TINT32
  6738. Fy TINT32
  6739. }
  6740. type TxLineFixed = struct {
  6741. Fp1 TxPointFixed
  6742. Fp2 TxPointFixed
  6743. }
  6744. type TxTriangle = struct {
  6745. Fp1 TxPointFixed
  6746. Fp2 TxPointFixed
  6747. Fp3 TxPointFixed
  6748. }
  6749. type TxTrapezoid = struct {
  6750. Ftop TINT32
  6751. Fbottom TINT32
  6752. Fleft TxLineFixed
  6753. Fright TxLineFixed
  6754. }
  6755. type TxGlyphInfo = struct {
  6756. Fwidth TCARD16
  6757. Fheight TCARD16
  6758. Fx TINT16
  6759. Fy TINT16
  6760. FxOff TINT16
  6761. FyOff TINT16
  6762. }
  6763. type TxGlyphElt = struct {
  6764. Flen1 TCARD8
  6765. Fpad1 TCARD8
  6766. Fpad2 TCARD16
  6767. Fdeltax TINT16
  6768. Fdeltay TINT16
  6769. }
  6770. type TxSpanFix = struct {
  6771. Fl TINT32
  6772. Fr TINT32
  6773. Fy TINT32
  6774. }
  6775. type TxTrap = struct {
  6776. Ftop TxSpanFix
  6777. Fbot TxSpanFix
  6778. }
  6779. type TxRenderQueryVersionReq = struct {
  6780. FreqType TCARD8
  6781. FrenderReqType TCARD8
  6782. Flength TCARD16
  6783. FmajorVersion TCARD32
  6784. FminorVersion TCARD32
  6785. }
  6786. type TxRenderQueryVersionReply = struct {
  6787. Ftype1 TBYTE
  6788. Fpad1 TBYTE
  6789. FsequenceNumber TCARD16
  6790. Flength TCARD32
  6791. FmajorVersion TCARD32
  6792. FminorVersion TCARD32
  6793. Fpad2 TCARD32
  6794. Fpad3 TCARD32
  6795. Fpad4 TCARD32
  6796. Fpad5 TCARD32
  6797. }
  6798. type TxRenderQueryPictFormatsReq = struct {
  6799. FreqType TCARD8
  6800. FrenderReqType TCARD8
  6801. Flength TCARD16
  6802. }
  6803. type TxRenderQueryPictFormatsReply = struct {
  6804. Ftype1 TBYTE
  6805. Fpad1 TBYTE
  6806. FsequenceNumber TCARD16
  6807. Flength TCARD32
  6808. FnumFormats TCARD32
  6809. FnumScreens TCARD32
  6810. FnumDepths TCARD32
  6811. FnumVisuals TCARD32
  6812. FnumSubpixel TCARD32
  6813. Fpad5 TCARD32
  6814. }
  6815. type TxRenderQueryPictIndexValuesReq = struct {
  6816. FreqType TCARD8
  6817. FrenderReqType TCARD8
  6818. Flength TCARD16
  6819. Fformat TCARD32
  6820. }
  6821. type TxRenderQueryPictIndexValuesReply = struct {
  6822. Ftype1 TBYTE
  6823. Fpad1 TBYTE
  6824. FsequenceNumber TCARD16
  6825. Flength TCARD32
  6826. FnumIndexValues TCARD32
  6827. Fpad2 TCARD32
  6828. Fpad3 TCARD32
  6829. Fpad4 TCARD32
  6830. Fpad5 TCARD32
  6831. Fpad6 TCARD32
  6832. }
  6833. type TxRenderCreatePictureReq = struct {
  6834. FreqType TCARD8
  6835. FrenderReqType TCARD8
  6836. Flength TCARD16
  6837. Fpid TCARD32
  6838. Fdrawable TCARD32
  6839. Fformat TCARD32
  6840. Fmask TCARD32
  6841. }
  6842. type TxRenderChangePictureReq = struct {
  6843. FreqType TCARD8
  6844. FrenderReqType TCARD8
  6845. Flength TCARD16
  6846. Fpicture TCARD32
  6847. Fmask TCARD32
  6848. }
  6849. type TxRenderSetPictureClipRectanglesReq = struct {
  6850. FreqType TCARD8
  6851. FrenderReqType TCARD8
  6852. Flength TCARD16
  6853. Fpicture TCARD32
  6854. FxOrigin TINT16
  6855. FyOrigin TINT16
  6856. }
  6857. type TxRenderFreePictureReq = struct {
  6858. FreqType TCARD8
  6859. FrenderReqType TCARD8
  6860. Flength TCARD16
  6861. Fpicture TCARD32
  6862. }
  6863. type TxRenderCompositeReq = struct {
  6864. FreqType TCARD8
  6865. FrenderReqType TCARD8
  6866. Flength TCARD16
  6867. Fop TCARD8
  6868. Fpad1 TCARD8
  6869. Fpad2 TCARD16
  6870. Fsrc TCARD32
  6871. Fmask TCARD32
  6872. Fdst TCARD32
  6873. FxSrc TINT16
  6874. FySrc TINT16
  6875. FxMask TINT16
  6876. FyMask TINT16
  6877. FxDst TINT16
  6878. FyDst TINT16
  6879. Fwidth TCARD16
  6880. Fheight TCARD16
  6881. }
  6882. type TxRenderScaleReq = struct {
  6883. FreqType TCARD8
  6884. FrenderReqType TCARD8
  6885. Flength TCARD16
  6886. Fsrc TCARD32
  6887. Fdst TCARD32
  6888. FcolorScale TCARD32
  6889. FalphaScale TCARD32
  6890. FxSrc TINT16
  6891. FySrc TINT16
  6892. FxDst TINT16
  6893. FyDst TINT16
  6894. Fwidth TCARD16
  6895. Fheight TCARD16
  6896. }
  6897. type TxRenderTrapezoidsReq = struct {
  6898. FreqType TCARD8
  6899. FrenderReqType TCARD8
  6900. Flength TCARD16
  6901. Fop TCARD8
  6902. Fpad1 TCARD8
  6903. Fpad2 TCARD16
  6904. Fsrc TCARD32
  6905. Fdst TCARD32
  6906. FmaskFormat TCARD32
  6907. FxSrc TINT16
  6908. FySrc TINT16
  6909. }
  6910. type TxRenderTrianglesReq = struct {
  6911. FreqType TCARD8
  6912. FrenderReqType TCARD8
  6913. Flength TCARD16
  6914. Fop TCARD8
  6915. Fpad1 TCARD8
  6916. Fpad2 TCARD16
  6917. Fsrc TCARD32
  6918. Fdst TCARD32
  6919. FmaskFormat TCARD32
  6920. FxSrc TINT16
  6921. FySrc TINT16
  6922. }
  6923. type TxRenderTriStripReq = struct {
  6924. FreqType TCARD8
  6925. FrenderReqType TCARD8
  6926. Flength TCARD16
  6927. Fop TCARD8
  6928. Fpad1 TCARD8
  6929. Fpad2 TCARD16
  6930. Fsrc TCARD32
  6931. Fdst TCARD32
  6932. FmaskFormat TCARD32
  6933. FxSrc TINT16
  6934. FySrc TINT16
  6935. }
  6936. type TxRenderTriFanReq = struct {
  6937. FreqType TCARD8
  6938. FrenderReqType TCARD8
  6939. Flength TCARD16
  6940. Fop TCARD8
  6941. Fpad1 TCARD8
  6942. Fpad2 TCARD16
  6943. Fsrc TCARD32
  6944. Fdst TCARD32
  6945. FmaskFormat TCARD32
  6946. FxSrc TINT16
  6947. FySrc TINT16
  6948. }
  6949. type TxRenderCreateGlyphSetReq = struct {
  6950. FreqType TCARD8
  6951. FrenderReqType TCARD8
  6952. Flength TCARD16
  6953. Fgsid TCARD32
  6954. Fformat TCARD32
  6955. }
  6956. type TxRenderReferenceGlyphSetReq = struct {
  6957. FreqType TCARD8
  6958. FrenderReqType TCARD8
  6959. Flength TCARD16
  6960. Fgsid TCARD32
  6961. Fexisting TCARD32
  6962. }
  6963. type TxRenderFreeGlyphSetReq = struct {
  6964. FreqType TCARD8
  6965. FrenderReqType TCARD8
  6966. Flength TCARD16
  6967. Fglyphset TCARD32
  6968. }
  6969. type TxRenderAddGlyphsReq = struct {
  6970. FreqType TCARD8
  6971. FrenderReqType TCARD8
  6972. Flength TCARD16
  6973. Fglyphset TCARD32
  6974. Fnglyphs TCARD32
  6975. }
  6976. type TxRenderFreeGlyphsReq = struct {
  6977. FreqType TCARD8
  6978. FrenderReqType TCARD8
  6979. Flength TCARD16
  6980. Fglyphset TCARD32
  6981. }
  6982. type TxRenderCompositeGlyphsReq = struct {
  6983. FreqType TCARD8
  6984. FrenderReqType TCARD8
  6985. Flength TCARD16
  6986. Fop TCARD8
  6987. Fpad1 TCARD8
  6988. Fpad2 TCARD16
  6989. Fsrc TCARD32
  6990. Fdst TCARD32
  6991. FmaskFormat TCARD32
  6992. Fglyphset TCARD32
  6993. FxSrc TINT16
  6994. FySrc TINT16
  6995. }
  6996. type TxRenderCompositeGlyphs8Req = struct {
  6997. FreqType TCARD8
  6998. FrenderReqType TCARD8
  6999. Flength TCARD16
  7000. Fop TCARD8
  7001. Fpad1 TCARD8
  7002. Fpad2 TCARD16
  7003. Fsrc TCARD32
  7004. Fdst TCARD32
  7005. FmaskFormat TCARD32
  7006. Fglyphset TCARD32
  7007. FxSrc TINT16
  7008. FySrc TINT16
  7009. }
  7010. type TxRenderCompositeGlyphs16Req = struct {
  7011. FreqType TCARD8
  7012. FrenderReqType TCARD8
  7013. Flength TCARD16
  7014. Fop TCARD8
  7015. Fpad1 TCARD8
  7016. Fpad2 TCARD16
  7017. Fsrc TCARD32
  7018. Fdst TCARD32
  7019. FmaskFormat TCARD32
  7020. Fglyphset TCARD32
  7021. FxSrc TINT16
  7022. FySrc TINT16
  7023. }
  7024. type TxRenderCompositeGlyphs32Req = struct {
  7025. FreqType TCARD8
  7026. FrenderReqType TCARD8
  7027. Flength TCARD16
  7028. Fop TCARD8
  7029. Fpad1 TCARD8
  7030. Fpad2 TCARD16
  7031. Fsrc TCARD32
  7032. Fdst TCARD32
  7033. FmaskFormat TCARD32
  7034. Fglyphset TCARD32
  7035. FxSrc TINT16
  7036. FySrc TINT16
  7037. }
  7038. type TxRenderFillRectanglesReq = struct {
  7039. FreqType TCARD8
  7040. FrenderReqType TCARD8
  7041. Flength TCARD16
  7042. Fop TCARD8
  7043. Fpad1 TCARD8
  7044. Fpad2 TCARD16
  7045. Fdst TCARD32
  7046. Fcolor TxRenderColor
  7047. }
  7048. type TxRenderCreateCursorReq = struct {
  7049. FreqType TCARD8
  7050. FrenderReqType TCARD8
  7051. Flength TCARD16
  7052. Fcid TCARD32
  7053. Fsrc TCARD32
  7054. Fx TCARD16
  7055. Fy TCARD16
  7056. }
  7057. type TxRenderTransform = struct {
  7058. Fmatrix11 TINT32
  7059. Fmatrix12 TINT32
  7060. Fmatrix13 TINT32
  7061. Fmatrix21 TINT32
  7062. Fmatrix22 TINT32
  7063. Fmatrix23 TINT32
  7064. Fmatrix31 TINT32
  7065. Fmatrix32 TINT32
  7066. Fmatrix33 TINT32
  7067. }
  7068. type TxRenderSetPictureTransformReq = struct {
  7069. FreqType TCARD8
  7070. FrenderReqType TCARD8
  7071. Flength TCARD16
  7072. Fpicture TCARD32
  7073. Ftransform TxRenderTransform
  7074. }
  7075. type TxRenderQueryFiltersReq = struct {
  7076. FreqType TCARD8
  7077. FrenderReqType TCARD8
  7078. Flength TCARD16
  7079. Fdrawable TCARD32
  7080. }
  7081. type TxRenderQueryFiltersReply = struct {
  7082. Ftype1 TBYTE
  7083. Fpad1 TBYTE
  7084. FsequenceNumber TCARD16
  7085. Flength TCARD32
  7086. FnumAliases TCARD32
  7087. FnumFilters TCARD32
  7088. Fpad2 TCARD32
  7089. Fpad3 TCARD32
  7090. Fpad4 TCARD32
  7091. Fpad5 TCARD32
  7092. }
  7093. type TxRenderSetPictureFilterReq = struct {
  7094. FreqType TCARD8
  7095. FrenderReqType TCARD8
  7096. Flength TCARD16
  7097. Fpicture TCARD32
  7098. Fnbytes TCARD16
  7099. Fpad TCARD16
  7100. }
  7101. type TxAnimCursorElt = struct {
  7102. Fcursor TCARD32
  7103. Fdelay TCARD32
  7104. }
  7105. type TxRenderCreateAnimCursorReq = struct {
  7106. FreqType TCARD8
  7107. FrenderReqType TCARD8
  7108. Flength TCARD16
  7109. Fcid TCARD32
  7110. }
  7111. type TxRenderAddTrapsReq = struct {
  7112. FreqType TCARD8
  7113. FrenderReqType TCARD8
  7114. Flength TCARD16
  7115. Fpicture TCARD32
  7116. FxOff TINT16
  7117. FyOff TINT16
  7118. }
  7119. type TxRenderCreateSolidFillReq = struct {
  7120. FreqType TCARD8
  7121. FrenderReqType TCARD8
  7122. Flength TCARD16
  7123. Fpid TCARD32
  7124. Fcolor TxRenderColor
  7125. }
  7126. type TxRenderCreateLinearGradientReq = struct {
  7127. FreqType TCARD8
  7128. FrenderReqType TCARD8
  7129. Flength TCARD16
  7130. Fpid TCARD32
  7131. Fp1 TxPointFixed
  7132. Fp2 TxPointFixed
  7133. FnStops TCARD32
  7134. }
  7135. type TxRenderCreateRadialGradientReq = struct {
  7136. FreqType TCARD8
  7137. FrenderReqType TCARD8
  7138. Flength TCARD16
  7139. Fpid TCARD32
  7140. Finner TxPointFixed
  7141. Fouter TxPointFixed
  7142. Finner_radius TINT32
  7143. Fouter_radius TINT32
  7144. FnStops TCARD32
  7145. }
  7146. type TxRenderCreateConicalGradientReq = struct {
  7147. FreqType TCARD8
  7148. FrenderReqType TCARD8
  7149. Flength TCARD16
  7150. Fpid TCARD32
  7151. Fcenter TxPointFixed
  7152. Fangle TINT32
  7153. FnStops TCARD32
  7154. }
  7155. type TXRenderDirectFormat = struct {
  7156. Fred int16
  7157. FredMask int16
  7158. Fgreen int16
  7159. FgreenMask int16
  7160. Fblue int16
  7161. FblueMask int16
  7162. Falpha int16
  7163. FalphaMask int16
  7164. }
  7165. type TXRenderPictFormat = struct {
  7166. Fid TPictFormat
  7167. Ftype1 int32
  7168. Fdepth int32
  7169. Fdirect TXRenderDirectFormat
  7170. Fcolormap TColormap
  7171. }
  7172. type TXRenderPictureAttributes = struct {
  7173. Frepeat int32
  7174. Falpha_map TPicture
  7175. Falpha_x_origin int32
  7176. Falpha_y_origin int32
  7177. Fclip_x_origin int32
  7178. Fclip_y_origin int32
  7179. Fclip_mask TPixmap
  7180. Fgraphics_exposures int32
  7181. Fsubwindow_mode int32
  7182. Fpoly_edge int32
  7183. Fpoly_mode int32
  7184. Fdither TAtom
  7185. Fcomponent_alpha int32
  7186. }
  7187. type T_XRenderPictureAttributes = TXRenderPictureAttributes
  7188. type TXRenderColor = struct {
  7189. Fred uint16
  7190. Fgreen uint16
  7191. Fblue uint16
  7192. Falpha uint16
  7193. }
  7194. type TXGlyphInfo = struct {
  7195. Fwidth uint16
  7196. Fheight uint16
  7197. Fx int16
  7198. Fy int16
  7199. FxOff int16
  7200. FyOff int16
  7201. }
  7202. type T_XGlyphInfo = TXGlyphInfo
  7203. type TXGlyphElt8 = struct {
  7204. Fglyphset TGlyphSet
  7205. Fchars uintptr
  7206. Fnchars int32
  7207. FxOff int32
  7208. FyOff int32
  7209. }
  7210. type T_XGlyphElt8 = TXGlyphElt8
  7211. type TXGlyphElt16 = struct {
  7212. Fglyphset TGlyphSet
  7213. Fchars uintptr
  7214. Fnchars int32
  7215. FxOff int32
  7216. FyOff int32
  7217. }
  7218. type T_XGlyphElt16 = TXGlyphElt16
  7219. type TXGlyphElt32 = struct {
  7220. Fglyphset TGlyphSet
  7221. Fchars uintptr
  7222. Fnchars int32
  7223. FxOff int32
  7224. FyOff int32
  7225. }
  7226. type T_XGlyphElt32 = TXGlyphElt32
  7227. type TXDouble = float64
  7228. type TXPointDouble = struct {
  7229. Fx TXDouble
  7230. Fy TXDouble
  7231. }
  7232. type T_XPointDouble = TXPointDouble
  7233. type TXFixed = int32
  7234. type TXPointFixed = struct {
  7235. Fx TXFixed
  7236. Fy TXFixed
  7237. }
  7238. type T_XPointFixed = TXPointFixed
  7239. type TXLineFixed = struct {
  7240. Fp1 TXPointFixed
  7241. Fp2 TXPointFixed
  7242. }
  7243. type T_XLineFixed = TXLineFixed
  7244. type TXTriangle = struct {
  7245. Fp1 TXPointFixed
  7246. Fp2 TXPointFixed
  7247. Fp3 TXPointFixed
  7248. }
  7249. type T_XTriangle = TXTriangle
  7250. type TXCircle = struct {
  7251. Fx TXFixed
  7252. Fy TXFixed
  7253. Fradius TXFixed
  7254. }
  7255. type T_XCircle = TXCircle
  7256. type TXTrapezoid = struct {
  7257. Ftop TXFixed
  7258. Fbottom TXFixed
  7259. Fleft TXLineFixed
  7260. Fright TXLineFixed
  7261. }
  7262. type T_XTrapezoid = TXTrapezoid
  7263. type TXTransform = struct {
  7264. Fmatrix [3][3]TXFixed
  7265. }
  7266. type T_XTransform = TXTransform
  7267. type TXFilters = struct {
  7268. Fnfilter int32
  7269. Ffilter uintptr
  7270. Fnalias int32
  7271. Falias uintptr
  7272. }
  7273. type T_XFilters = TXFilters
  7274. type TXIndexValue = struct {
  7275. Fpixel uint64
  7276. Fred uint16
  7277. Fgreen uint16
  7278. Fblue uint16
  7279. Falpha uint16
  7280. }
  7281. type T_XIndexValue = TXIndexValue
  7282. type TXAnimCursor = struct {
  7283. Fcursor TCursor
  7284. Fdelay uint64
  7285. }
  7286. type T_XAnimCursor = TXAnimCursor
  7287. type TXSpanFix = struct {
  7288. Fleft TXFixed
  7289. Fright TXFixed
  7290. Fy TXFixed
  7291. }
  7292. type T_XSpanFix = TXSpanFix
  7293. type TXTrap = struct {
  7294. Ftop TXSpanFix
  7295. Fbottom TXSpanFix
  7296. }
  7297. type T_XTrap = TXTrap
  7298. type TXLinearGradient = struct {
  7299. Fp1 TXPointFixed
  7300. Fp2 TXPointFixed
  7301. }
  7302. type T_XLinearGradient = TXLinearGradient
  7303. type TXRadialGradient = struct {
  7304. Finner TXCircle
  7305. Fouter TXCircle
  7306. }
  7307. type T_XRadialGradient = TXRadialGradient
  7308. type TXConicalGradient = struct {
  7309. Fcenter TXPointFixed
  7310. Fangle TXFixed
  7311. }
  7312. type T_XConicalGradient = TXConicalGradient
  7313. type TXRenderVisual = struct {
  7314. Fvisual uintptr
  7315. Fformat uintptr
  7316. }
  7317. type TXRenderDepth = struct {
  7318. Fdepth int32
  7319. Fnvisuals int32
  7320. Fvisuals uintptr
  7321. }
  7322. type TXRenderScreen = struct {
  7323. Fdepths uintptr
  7324. Fndepths int32
  7325. Ffallback uintptr
  7326. Fsubpixel int32
  7327. }
  7328. type TXRenderInfo = struct {
  7329. Fmajor_version int32
  7330. Fminor_version int32
  7331. Fformat uintptr
  7332. Fnformat int32
  7333. Fscreen uintptr
  7334. Fnscreen int32
  7335. Fdepth uintptr
  7336. Fndepth int32
  7337. Fvisual uintptr
  7338. Fnvisual int32
  7339. Fsubpixel uintptr
  7340. Fnsubpixel int32
  7341. Ffilter uintptr
  7342. Fnfilter int32
  7343. Ffilter_alias uintptr
  7344. Fnfilter_alias int32
  7345. }
  7346. type T_XRenderInfo = TXRenderInfo
  7347. type TXRenderExtDisplayInfo = struct {
  7348. Fnext uintptr
  7349. Fdisplay uintptr
  7350. Fcodes uintptr
  7351. Finfo uintptr
  7352. }
  7353. type T_XRenderExtDisplayInfo = TXRenderExtDisplayInfo
  7354. type TXRenderExtInfo = struct {
  7355. Fhead uintptr
  7356. Fcur uintptr
  7357. Fndisplays int32
  7358. }
  7359. type T_XRenderExtInfo = TXRenderExtInfo
  7360. /*
  7361. * Xlib uses long for 32-bit values. Xrender uses int. This
  7362. * matters on alpha. Note that this macro assumes that int is 32 bits
  7363. * except on WORD64 machines where it is 64 bits.
  7364. */
  7365. func XXRenderAddTraps(tls *libc.TLS, dpy uintptr, picture TPicture, xOff int32, yOff int32, traps uintptr, ntrap int32) {
  7366. bp := tls.Alloc(16)
  7367. defer tls.Free(16)
  7368. var _BRlen TCARD32
  7369. var info, req, p2, p3 uintptr
  7370. var len1 int64
  7371. var max_req, v1 uint64
  7372. var n int32
  7373. var _ /* _BRdat at bp+0 */ TCARD64
  7374. _, _, _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1, p2, p3
  7375. info = XXRenderFindDisplay(tls, dpy)
  7376. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7377. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  7378. } else {
  7379. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  7380. }
  7381. max_req = v1
  7382. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7383. return
  7384. }
  7385. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7386. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7387. }
  7388. for ntrap != 0 {
  7389. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddTraps), uint64(m_sz_xRenderAddTrapsReq))
  7390. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7391. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddTraps)
  7392. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  7393. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FxOff = int16(xOff)
  7394. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FyOff = int16(yOff)
  7395. n = ntrap
  7396. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7397. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) {
  7398. n = libc.Int32FromUint64((max_req - uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2)))
  7399. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7400. }
  7401. if libc.Int64FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7402. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7403. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7404. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7405. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7406. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7407. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7408. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7409. } else {
  7410. len1 = len1
  7411. p2 = req + 2
  7412. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7413. }
  7414. } else {
  7415. p3 = req + 2
  7416. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  7417. }
  7418. len1 <<= int64(2)
  7419. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  7420. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt32(int32(len1)))
  7421. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  7422. } else {
  7423. libx11.X_XSend(tls, dpy, traps, len1)
  7424. }
  7425. ntrap -= n
  7426. traps += uintptr(n) * 24
  7427. }
  7428. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7429. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7430. }
  7431. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7432. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7433. }
  7434. }
  7435. type Tfuncs = struct {
  7436. Fcreate_image uintptr
  7437. Fdestroy_image uintptr
  7438. Fget_pixel uintptr
  7439. Fput_pixel uintptr
  7440. Fsub_image uintptr
  7441. Fadd_pixel uintptr
  7442. }
  7443. /*
  7444. * Xlib uses long for 32-bit values. Xrender uses int. This
  7445. * matters on alpha. Note that this macro assumes that int is 32 bits
  7446. * except on WORD64 machines where it is 64 bits.
  7447. */
  7448. func XXRenderParseColor(tls *libc.TLS, dpy uintptr, spec uintptr, def uintptr) (r int32) {
  7449. bp := tls.Alloc(32)
  7450. defer tls.Free(32)
  7451. var c uint8
  7452. var colormap TColormap
  7453. var i, n, v2 int32
  7454. var pShort, v3, p4, p5, p6 uintptr
  7455. var _ /* coreColor at bp+8 */ TXColor
  7456. var _ /* elements at bp+0 */ [4]uint16
  7457. _, _, _, _, _, _, _, _, _, _ = c, colormap, i, n, pShort, v2, v3, p4, p5, p6
  7458. if !(libc.Xstrncmp(tls, spec, __ccgo_ts, uint64(5)) != 0) {
  7459. spec += uintptr(5)
  7460. /*
  7461. * Attempt to parse the value portion.
  7462. */
  7463. pShort = bp
  7464. i = 0
  7465. for {
  7466. if !(i < int32(4)) {
  7467. break
  7468. }
  7469. n = 0
  7470. *(*uint16)(unsafe.Pointer(pShort)) = uint16(0)
  7471. for libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(spec))) != int32('/') && libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(spec))) != int32('\000') {
  7472. n++
  7473. v2 = n
  7474. if v2 > int32(4) {
  7475. return 0
  7476. }
  7477. v3 = spec
  7478. spec++
  7479. c = *(*uint8)(unsafe.Pointer(v3))
  7480. p4 = pShort
  7481. *(*uint16)(unsafe.Pointer(p4)) = uint16(int32(*(*uint16)(unsafe.Pointer(p4))) << libc.Int32FromInt32(4))
  7482. if libc.Int32FromUint8(c) >= int32('0') && libc.Int32FromUint8(c) <= int32('9') {
  7483. p5 = pShort
  7484. *(*uint16)(unsafe.Pointer(p5)) = uint16(int32(*(*uint16)(unsafe.Pointer(p5))) | (libc.Int32FromUint8(c) - libc.Int32FromUint8('0')))
  7485. } else {
  7486. if libc.Int32FromUint8(c) >= int32('a') && libc.Int32FromUint8(c) <= int32('f') {
  7487. p6 = pShort
  7488. *(*uint16)(unsafe.Pointer(p6)) = uint16(int32(*(*uint16)(unsafe.Pointer(p6))) | (libc.Int32FromUint8(c) - (libc.Int32FromUint8('a') - libc.Int32FromInt32(10))))
  7489. } else {
  7490. return 0
  7491. }
  7492. }
  7493. }
  7494. if n == 0 {
  7495. return 0
  7496. }
  7497. if n < int32(4) {
  7498. *(*uint16)(unsafe.Pointer(pShort)) = uint16(uint64(*(*uint16)(unsafe.Pointer(pShort))) * uint64(0xFFFF) / libc.Uint64FromInt32(libc.Int32FromInt32(1)<<(n*libc.Int32FromInt32(4))-libc.Int32FromInt32(1)))
  7499. }
  7500. goto _1
  7501. _1:
  7502. ;
  7503. i++
  7504. pShort += 2
  7505. spec++
  7506. }
  7507. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*[4]uint16)(unsafe.Pointer(bp)))[0]
  7508. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(1)]
  7509. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(2)]
  7510. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(3)]
  7511. } else {
  7512. colormap = (*TScreen)(unsafe.Pointer((*struct {
  7513. Fext_data uintptr
  7514. Fprivate1 uintptr
  7515. Ffd int32
  7516. Fprivate2 int32
  7517. Fproto_major_version int32
  7518. Fproto_minor_version int32
  7519. Fvendor uintptr
  7520. Fprivate3 TXID
  7521. Fprivate4 TXID
  7522. Fprivate5 TXID
  7523. Fprivate6 int32
  7524. Fresource_alloc uintptr
  7525. Fbyte_order int32
  7526. Fbitmap_unit int32
  7527. Fbitmap_pad int32
  7528. Fbitmap_bit_order int32
  7529. Fnformats int32
  7530. Fpixmap_format uintptr
  7531. Fprivate8 int32
  7532. Frelease int32
  7533. Fprivate9 uintptr
  7534. Fprivate10 uintptr
  7535. Fqlen int32
  7536. Flast_request_read uint64
  7537. Frequest uint64
  7538. Fprivate11 TXPointer
  7539. Fprivate12 TXPointer
  7540. Fprivate13 TXPointer
  7541. Fprivate14 TXPointer
  7542. Fmax_request_size uint32
  7543. Fdb uintptr
  7544. Fprivate15 uintptr
  7545. Fdisplay_name uintptr
  7546. Fdefault_screen int32
  7547. Fnscreens int32
  7548. Fscreens uintptr
  7549. Fmotion_buffer uint64
  7550. Fprivate16 uint64
  7551. Fmin_keycode int32
  7552. Fmax_keycode int32
  7553. Fprivate17 TXPointer
  7554. Fprivate18 TXPointer
  7555. Fprivate19 int32
  7556. Fxdefaults uintptr
  7557. })(unsafe.Pointer(dpy)).Fscreens + uintptr((*struct {
  7558. Fext_data uintptr
  7559. Fprivate1 uintptr
  7560. Ffd int32
  7561. Fprivate2 int32
  7562. Fproto_major_version int32
  7563. Fproto_minor_version int32
  7564. Fvendor uintptr
  7565. Fprivate3 TXID
  7566. Fprivate4 TXID
  7567. Fprivate5 TXID
  7568. Fprivate6 int32
  7569. Fresource_alloc uintptr
  7570. Fbyte_order int32
  7571. Fbitmap_unit int32
  7572. Fbitmap_pad int32
  7573. Fbitmap_bit_order int32
  7574. Fnformats int32
  7575. Fpixmap_format uintptr
  7576. Fprivate8 int32
  7577. Frelease int32
  7578. Fprivate9 uintptr
  7579. Fprivate10 uintptr
  7580. Fqlen int32
  7581. Flast_request_read uint64
  7582. Frequest uint64
  7583. Fprivate11 TXPointer
  7584. Fprivate12 TXPointer
  7585. Fprivate13 TXPointer
  7586. Fprivate14 TXPointer
  7587. Fmax_request_size uint32
  7588. Fdb uintptr
  7589. Fprivate15 uintptr
  7590. Fdisplay_name uintptr
  7591. Fdefault_screen int32
  7592. Fnscreens int32
  7593. Fscreens uintptr
  7594. Fmotion_buffer uint64
  7595. Fprivate16 uint64
  7596. Fmin_keycode int32
  7597. Fmax_keycode int32
  7598. Fprivate17 TXPointer
  7599. Fprivate18 TXPointer
  7600. Fprivate19 int32
  7601. Fxdefaults uintptr
  7602. })(unsafe.Pointer(dpy)).Fdefault_screen)*128)).Fcmap
  7603. if !(libx11.XXParseColor(tls, dpy, colormap, spec, bp+8) != 0) {
  7604. return 0
  7605. }
  7606. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fred
  7607. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fgreen
  7608. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fblue
  7609. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = uint16(0xffff)
  7610. }
  7611. (*TXRenderColor)(unsafe.Pointer(def)).Fred = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fred)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7612. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fgreen)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7613. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fblue)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7614. return int32(1)
  7615. }
  7616. /*
  7617. * Xlib uses long for 32-bit values. Xrender uses int. This
  7618. * matters on alpha. Note that this macro assumes that int is 32 bits
  7619. * except on WORD64 machines where it is 64 bits.
  7620. */
  7621. func XXRenderComposite(tls *libc.TLS, dpy uintptr, op int32, src TPicture, mask TPicture, dst TPicture, src_x int32, src_y int32, mask_x int32, mask_y int32, dst_x int32, dst_y int32, width uint32, height uint32) {
  7622. var info, req uintptr
  7623. _, _ = info, req
  7624. info = XXRenderFindDisplay(tls, dpy)
  7625. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7626. return
  7627. }
  7628. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7629. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7630. }
  7631. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderComposite), uint64(m_sz_xRenderCompositeReq))
  7632. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7633. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderComposite)
  7634. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7635. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  7636. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fmask = uint32(mask)
  7637. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7638. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxSrc = int16(src_x)
  7639. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FySrc = int16(src_y)
  7640. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxMask = int16(mask_x)
  7641. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyMask = int16(mask_y)
  7642. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxDst = int16(dst_x)
  7643. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyDst = int16(dst_y)
  7644. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fwidth = uint16(width)
  7645. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fheight = uint16(height)
  7646. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7647. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7648. }
  7649. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7650. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7651. }
  7652. }
  7653. /*
  7654. * Xlib uses long for 32-bit values. Xrender uses int. This
  7655. * matters on alpha. Note that this macro assumes that int is 32 bits
  7656. * except on WORD64 machines where it is 64 bits.
  7657. */
  7658. func XXRenderCreateCursor(tls *libc.TLS, dpy uintptr, source TPicture, x uint32, y uint32) (r TCursor) {
  7659. var cid, v1 TCursor
  7660. var info, req uintptr
  7661. _, _, _, _ = cid, info, req, v1
  7662. info = XXRenderFindDisplay(tls, dpy)
  7663. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7664. return uint64(0)
  7665. }
  7666. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7667. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7668. }
  7669. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateCursor), uint64(m_sz_xRenderCreateCursorReq))
  7670. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7671. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateCursor)
  7672. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  7673. Fext_data uintptr
  7674. Fprivate1 uintptr
  7675. Ffd int32
  7676. Fprivate2 int32
  7677. Fproto_major_version int32
  7678. Fproto_minor_version int32
  7679. Fvendor uintptr
  7680. Fprivate3 TXID
  7681. Fprivate4 TXID
  7682. Fprivate5 TXID
  7683. Fprivate6 int32
  7684. Fresource_alloc uintptr
  7685. Fbyte_order int32
  7686. Fbitmap_unit int32
  7687. Fbitmap_pad int32
  7688. Fbitmap_bit_order int32
  7689. Fnformats int32
  7690. Fpixmap_format uintptr
  7691. Fprivate8 int32
  7692. Frelease int32
  7693. Fprivate9 uintptr
  7694. Fprivate10 uintptr
  7695. Fqlen int32
  7696. Flast_request_read uint64
  7697. Frequest uint64
  7698. Fprivate11 TXPointer
  7699. Fprivate12 TXPointer
  7700. Fprivate13 TXPointer
  7701. Fprivate14 TXPointer
  7702. Fmax_request_size uint32
  7703. Fdb uintptr
  7704. Fprivate15 uintptr
  7705. Fdisplay_name uintptr
  7706. Fdefault_screen int32
  7707. Fnscreens int32
  7708. Fscreens uintptr
  7709. Fmotion_buffer uint64
  7710. Fprivate16 uint64
  7711. Fmin_keycode int32
  7712. Fmax_keycode int32
  7713. Fprivate17 TXPointer
  7714. Fprivate18 TXPointer
  7715. Fprivate19 int32
  7716. Fxdefaults uintptr
  7717. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  7718. cid = v1
  7719. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  7720. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fsrc = uint32(source)
  7721. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fx = uint16(x)
  7722. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fy = uint16(y)
  7723. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7724. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7725. }
  7726. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7727. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7728. }
  7729. return cid
  7730. }
  7731. func XXRenderCreateAnimCursor(tls *libc.TLS, dpy uintptr, ncursor int32, cursors uintptr) (r TCursor) {
  7732. bp := tls.Alloc(16)
  7733. defer tls.Free(16)
  7734. var _BRlen TCARD32
  7735. var cid, v1 TCursor
  7736. var info, req, p2, p3 uintptr
  7737. var len1 int64
  7738. var _ /* _BRdat at bp+0 */ TCARD64
  7739. _, _, _, _, _, _, _, _ = _BRlen, cid, info, len1, req, v1, p2, p3
  7740. info = XXRenderFindDisplay(tls, dpy)
  7741. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7742. return uint64(0)
  7743. }
  7744. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7745. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7746. }
  7747. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateAnimCursor), uint64(m_sz_xRenderCreateAnimCursorReq))
  7748. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7749. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateAnimCursor)
  7750. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  7751. Fext_data uintptr
  7752. Fprivate1 uintptr
  7753. Ffd int32
  7754. Fprivate2 int32
  7755. Fproto_major_version int32
  7756. Fproto_minor_version int32
  7757. Fvendor uintptr
  7758. Fprivate3 TXID
  7759. Fprivate4 TXID
  7760. Fprivate5 TXID
  7761. Fprivate6 int32
  7762. Fresource_alloc uintptr
  7763. Fbyte_order int32
  7764. Fbitmap_unit int32
  7765. Fbitmap_pad int32
  7766. Fbitmap_bit_order int32
  7767. Fnformats int32
  7768. Fpixmap_format uintptr
  7769. Fprivate8 int32
  7770. Frelease int32
  7771. Fprivate9 uintptr
  7772. Fprivate10 uintptr
  7773. Fqlen int32
  7774. Flast_request_read uint64
  7775. Frequest uint64
  7776. Fprivate11 TXPointer
  7777. Fprivate12 TXPointer
  7778. Fprivate13 TXPointer
  7779. Fprivate14 TXPointer
  7780. Fmax_request_size uint32
  7781. Fdb uintptr
  7782. Fprivate15 uintptr
  7783. Fdisplay_name uintptr
  7784. Fdefault_screen int32
  7785. Fnscreens int32
  7786. Fscreens uintptr
  7787. Fmotion_buffer uint64
  7788. Fprivate16 uint64
  7789. Fmin_keycode int32
  7790. Fmax_keycode int32
  7791. Fprivate17 TXPointer
  7792. Fprivate18 TXPointer
  7793. Fprivate19 int32
  7794. Fxdefaults uintptr
  7795. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  7796. cid = v1
  7797. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  7798. len1 = int64(ncursor) * int64(m_sz_xAnimCursorElt) >> int32(2)
  7799. if libc.Int64FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7800. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7801. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7802. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7803. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7804. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7805. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7806. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7807. } else {
  7808. len1 = len1
  7809. p2 = req + 2
  7810. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7811. }
  7812. } else {
  7813. p3 = req + 2
  7814. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  7815. }
  7816. len1 <<= int64(2)
  7817. libx11.X_XData32(tls, dpy, cursors, libc.Uint32FromInt64(len1))
  7818. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7819. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7820. }
  7821. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7822. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7823. }
  7824. return cid
  7825. }
  7826. /*
  7827. * Xlib uses long for 32-bit values. Xrender uses int. This
  7828. * matters on alpha. Note that this macro assumes that int is 32 bits
  7829. * except on WORD64 machines where it is 64 bits.
  7830. */
  7831. /* precompute the maximum size of batching request allowed */
  7832. func XXRenderFillRectangle(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, x int32, y int32, width uint32, height uint32) {
  7833. var info, rect, req, p1 uintptr
  7834. _, _, _, _ = info, rect, req, p1
  7835. info = XXRenderFindDisplay(tls, dpy)
  7836. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7837. return
  7838. }
  7839. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7840. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7841. }
  7842. req = (*TDisplay)(unsafe.Pointer(dpy)).Flast_req
  7843. /* if same as previous request, with same drawable, batch requests */
  7844. if libc.Int32FromUint8((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType) == (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode && libc.Int32FromUint8((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType) == int32(m_X_RenderFillRectangles) && libc.Int32FromUint8((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop) == op && uint64((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst) == dst && libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred) == libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(color)).Fred) && libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen) == libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(color)).Fgreen) && libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue) == libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(color)).Fblue) && libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha) == libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(color)).Falpha) && (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(m_sz_xRectangle) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax && int64((*TDisplay)(unsafe.Pointer(dpy)).Fbufptr)-int64(req) < int64(libc.Int32FromInt32(m_sz_xRenderFillRectanglesReq)+libc.Int32FromInt32(m_FRCTSPERBATCH)*libc.Int32FromInt32(m_sz_xRectangle)) {
  7845. p1 = req + 2
  7846. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + libc.Int32FromInt32(m_sz_xRectangle)>>libc.Int32FromInt32(2))
  7847. rect = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  7848. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(m_sz_xRectangle)
  7849. } else {
  7850. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderFillRectanglesReq)+libc.Int32FromInt32(m_sz_xRectangle)))
  7851. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7852. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  7853. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7854. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7855. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  7856. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  7857. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  7858. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  7859. rect = req + libc.UintptrFromInt32(1)*20
  7860. }
  7861. (*TxRectangle)(unsafe.Pointer(rect)).Fx = int16(x)
  7862. (*TxRectangle)(unsafe.Pointer(rect)).Fy = int16(y)
  7863. (*TxRectangle)(unsafe.Pointer(rect)).Fwidth = uint16(width)
  7864. (*TxRectangle)(unsafe.Pointer(rect)).Fheight = uint16(height)
  7865. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7866. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7867. }
  7868. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7869. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7870. }
  7871. }
  7872. /*
  7873. * Xlib uses long for 32-bit values. Xrender uses int. This
  7874. * matters on alpha. Note that this macro assumes that int is 32 bits
  7875. * except on WORD64 machines where it is 64 bits.
  7876. */
  7877. /* precompute the maximum size of batching request allowed */
  7878. func XXRenderFillRectangles(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, rectangles uintptr, n_rects int32) {
  7879. bp := tls.Alloc(16)
  7880. defer tls.Free(16)
  7881. var _BRlen TCARD32
  7882. var info, req, p1, p2 uintptr
  7883. var len1 int64
  7884. var n int32
  7885. var _ /* _BRdat at bp+0 */ TCARD64
  7886. _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, p1, p2
  7887. info = XXRenderFindDisplay(tls, dpy)
  7888. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7889. return
  7890. }
  7891. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7892. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7893. }
  7894. for n_rects != 0 {
  7895. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), uint64(m_sz_xRenderFillRectanglesReq))
  7896. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7897. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  7898. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7899. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7900. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  7901. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  7902. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  7903. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  7904. n = n_rects
  7905. len1 = int64(n) << int32(1)
  7906. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) {
  7907. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) >> int32(1))
  7908. len1 = int64(n) << int32(1)
  7909. }
  7910. if libc.Int64FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7911. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7912. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7913. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7914. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7915. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7916. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7917. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7918. } else {
  7919. len1 = len1
  7920. p1 = req + 2
  7921. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  7922. }
  7923. } else {
  7924. p2 = req + 2
  7925. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7926. }
  7927. len1 <<= int64(2) /* watch out for macros... */
  7928. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  7929. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rectangles, libc.Uint64FromInt32(int32(len1)))
  7930. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  7931. } else {
  7932. libx11.X_XSend(tls, dpy, rectangles, len1)
  7933. }
  7934. n_rects -= n
  7935. rectangles += uintptr(n) * 8
  7936. }
  7937. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7938. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7939. }
  7940. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7941. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7942. }
  7943. }
  7944. const m_ARG_MAX = 131072
  7945. const m_BC_BASE_MAX = 99
  7946. const m_BC_DIM_MAX = 2048
  7947. const m_BC_SCALE_MAX = 99
  7948. const m_BC_STRING_MAX = 1000
  7949. const m_CHARCLASS_NAME_MAX = 14
  7950. const m_CHAR_BIT = 8
  7951. const m_CHAR_MAX = 255
  7952. const m_CHAR_MIN = 0
  7953. const m_COLL_WEIGHTS_MAX = 2
  7954. const m_DELAYTIMER_MAX = 0x7fffffff
  7955. const m_EXPR_NEST_MAX = 32
  7956. const m_FILESIZEBITS = 64
  7957. const m_HOST_NAME_MAX = 255
  7958. const m_INT_MAX = 2147483647
  7959. const m_IOV_MAX = 1024
  7960. const m_LINE_MAX = 4096
  7961. const m_LLONG_MAX = 0x7fffffffffffffff
  7962. const m_LOGIN_NAME_MAX = 256
  7963. const m_LONG_BIT = 64
  7964. const m_LONG_MAX = "__LONG_MAX"
  7965. const m_MB_LEN_MAX = 4
  7966. const m_MQ_PRIO_MAX = 32768
  7967. const m_NAME_MAX = 255
  7968. const m_NGROUPS_MAX = 32
  7969. const m_NL_ARGMAX = 9
  7970. const m_NL_LANGMAX = 32
  7971. const m_NL_MSGMAX = 32767
  7972. const m_NL_NMAX = 16
  7973. const m_NL_SETMAX = 255
  7974. const m_NL_TEXTMAX = 2048
  7975. const m_NZERO = 20
  7976. const m_PATH_MAX = 4096
  7977. const m_PIPE_BUF = 4096
  7978. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  7979. const m_PTHREAD_KEYS_MAX = 128
  7980. const m_PTHREAD_STACK_MIN = 2048
  7981. const m_RE_DUP_MAX = 255
  7982. const m_SCHAR_MAX = 127
  7983. const m_SEM_NSEMS_MAX = 256
  7984. const m_SEM_VALUE_MAX = 0x7fffffff
  7985. const m_SHRT_MAX = 0x7fff
  7986. const m_SSIZE_MAX = "LONG_MAX"
  7987. const m_SYMLOOP_MAX = 40
  7988. const m_TTY_NAME_MAX = 32
  7989. const m_TZNAME_MAX = 6
  7990. const m_UCHAR_MAX = 255
  7991. const m_UINT_MAX = 0xffffffff
  7992. const m_USHRT_MAX = 0xffff
  7993. const m_WORD_BIT = 32
  7994. const m__POSIX2_BC_BASE_MAX = 99
  7995. const m__POSIX2_BC_DIM_MAX = 2048
  7996. const m__POSIX2_BC_SCALE_MAX = 99
  7997. const m__POSIX2_BC_STRING_MAX = 1000
  7998. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  7999. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  8000. const m__POSIX2_EXPR_NEST_MAX = 32
  8001. const m__POSIX2_LINE_MAX = 2048
  8002. const m__POSIX2_RE_DUP_MAX = 255
  8003. const m__POSIX_AIO_LISTIO_MAX = 2
  8004. const m__POSIX_AIO_MAX = 1
  8005. const m__POSIX_ARG_MAX = 4096
  8006. const m__POSIX_CHILD_MAX = 25
  8007. const m__POSIX_CLOCKRES_MIN = 20000000
  8008. const m__POSIX_DELAYTIMER_MAX = 32
  8009. const m__POSIX_HOST_NAME_MAX = 255
  8010. const m__POSIX_LINK_MAX = 8
  8011. const m__POSIX_LOGIN_NAME_MAX = 9
  8012. const m__POSIX_MAX_CANON = 255
  8013. const m__POSIX_MAX_INPUT = 255
  8014. const m__POSIX_MQ_OPEN_MAX = 8
  8015. const m__POSIX_MQ_PRIO_MAX = 32
  8016. const m__POSIX_NAME_MAX = 14
  8017. const m__POSIX_NGROUPS_MAX = 8
  8018. const m__POSIX_OPEN_MAX = 20
  8019. const m__POSIX_PATH_MAX = 256
  8020. const m__POSIX_PIPE_BUF = 512
  8021. const m__POSIX_RE_DUP_MAX = 255
  8022. const m__POSIX_RTSIG_MAX = 8
  8023. const m__POSIX_SEM_NSEMS_MAX = 256
  8024. const m__POSIX_SEM_VALUE_MAX = 32767
  8025. const m__POSIX_SIGQUEUE_MAX = 32
  8026. const m__POSIX_SSIZE_MAX = 32767
  8027. const m__POSIX_SS_REPL_MAX = 4
  8028. const m__POSIX_STREAM_MAX = 8
  8029. const m__POSIX_SYMLINK_MAX = 255
  8030. const m__POSIX_SYMLOOP_MAX = 8
  8031. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  8032. const m__POSIX_THREAD_KEYS_MAX = 128
  8033. const m__POSIX_THREAD_THREADS_MAX = 64
  8034. const m__POSIX_TIMER_MAX = 32
  8035. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  8036. const m__POSIX_TRACE_NAME_MAX = 8
  8037. const m__POSIX_TRACE_SYS_MAX = 8
  8038. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  8039. const m__POSIX_TTY_NAME_MAX = 9
  8040. const m__POSIX_TZNAME_MAX = 6
  8041. const m__XOPEN_IOV_MAX = 16
  8042. const m__XOPEN_NAME_MAX = 255
  8043. const m__XOPEN_PATH_MAX = 1024
  8044. /*
  8045. * Xlib uses long for 32-bit values. Xrender uses int. This
  8046. * matters on alpha. Note that this macro assumes that int is 32 bits
  8047. * except on WORD64 machines where it is 64 bits.
  8048. */
  8049. /* Support signed or unsigned plain-char */
  8050. /* Implementation choices... */
  8051. /* Arbitrary numbers... */
  8052. /* POSIX/SUS requirements follow. These numbers come directly
  8053. * from SUS and have nothing to do with the host system. */
  8054. func XXRenderQueryFilters(tls *libc.TLS, dpy uintptr, drawable TDrawable) (r uintptr) {
  8055. bp := tls.Alloc(48)
  8056. defer tls.Free(48)
  8057. var filters, info, name, req, xri uintptr
  8058. var i, l int32
  8059. var nbytes, nbytesAlias, nbytesName, reply_left, v1 uint64
  8060. var _ /* len at bp+32 */ uint8
  8061. var _ /* rep at bp+0 */ TxRenderQueryFiltersReply
  8062. _, _, _, _, _, _, _, _, _, _, _, _ = filters, i, info, l, name, nbytes, nbytesAlias, nbytesName, reply_left, req, xri, v1
  8063. info = XXRenderFindDisplay(tls, dpy)
  8064. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8065. return libc.UintptrFromInt32(0)
  8066. }
  8067. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  8068. return libc.UintptrFromInt32(0)
  8069. }
  8070. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  8071. if (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version < int32(6) {
  8072. return libc.UintptrFromInt32(0)
  8073. }
  8074. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8075. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8076. }
  8077. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryFilters), uint64(m_sz_xRenderQueryFiltersReq))
  8078. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8079. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryFilters)
  8080. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  8081. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  8082. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8083. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8084. }
  8085. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8086. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8087. }
  8088. return libc.UintptrFromInt32(0)
  8089. }
  8090. /*
  8091. * Limit each component of combined size to 1/4 the max, which is far
  8092. * more than they should ever possibly need.
  8093. */
  8094. if (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m_INT_MAX)>>libc.Int32FromInt32(2)) && uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(8) && uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(2) {
  8095. /*
  8096. * Compute total number of bytes for filter names
  8097. */
  8098. nbytes = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength) << int32(2)
  8099. nbytesAlias = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases * uint32(2))
  8100. if (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases&uint32(1) != 0 {
  8101. nbytesAlias += uint64(2)
  8102. }
  8103. nbytesName = nbytes - nbytesAlias
  8104. /*
  8105. * Allocate one giant block for the whole data structure
  8106. */
  8107. if uint64(32)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*uint64(8)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*uint64(2)+nbytesName == uint64(0) {
  8108. v1 = uint64(1)
  8109. } else {
  8110. v1 = uint64(32) + uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*uint64(8) + uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*uint64(2) + nbytesName
  8111. }
  8112. filters = libc.Xmalloc(tls, v1)
  8113. } else {
  8114. filters = libc.UintptrFromInt32(0)
  8115. }
  8116. if !(filters != 0) {
  8117. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength))
  8118. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8119. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8120. }
  8121. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8122. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8123. }
  8124. return libc.UintptrFromInt32(0)
  8125. }
  8126. /*
  8127. * Layout:
  8128. * XFilters
  8129. * numFilters char * pointers to filter names
  8130. * numAliases short alias values
  8131. * nbytesName char strings
  8132. */
  8133. (*TXFilters)(unsafe.Pointer(filters)).Fnfilter = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)
  8134. (*TXFilters)(unsafe.Pointer(filters)).Fnalias = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8135. (*TXFilters)(unsafe.Pointer(filters)).Ffilter = filters + libc.UintptrFromInt32(1)*32
  8136. (*TXFilters)(unsafe.Pointer(filters)).Falias = (*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*8
  8137. name = (*TXFilters)(unsafe.Pointer(filters)).Falias + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2
  8138. /*
  8139. * Read the filter aliases
  8140. */
  8141. libx11.X_XReadPad(tls, dpy, (*TXFilters)(unsafe.Pointer(filters)).Falias, libc.Int64FromUint32(libc.Uint32FromInt32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases))
  8142. reply_left = uint64(uint32(8) + (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength - uint32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8143. /*
  8144. * Read the filter names
  8145. */
  8146. i = 0
  8147. for {
  8148. if !(libc.Uint32FromInt32(i) < (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters) {
  8149. break
  8150. }
  8151. libx11.X_XRead(tls, dpy, bp+32, int64(1))
  8152. reply_left--
  8153. l = libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 32))) & int32(0xff)
  8154. if libc.Uint64FromInt32(l)+uint64(1) > nbytesName {
  8155. libx11.X_XEatDataWords(tls, dpy, reply_left)
  8156. libc.Xfree(tls, filters)
  8157. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8158. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8159. }
  8160. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8161. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8162. }
  8163. return libc.UintptrFromInt32(0)
  8164. }
  8165. nbytesName -= libc.Uint64FromInt32(l + int32(1))
  8166. *(*uintptr)(unsafe.Pointer((*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr(i)*8)) = name
  8167. libx11.X_XRead(tls, dpy, name, int64(l))
  8168. reply_left -= libc.Uint64FromInt32(l)
  8169. *(*uint8)(unsafe.Pointer(name + uintptr(l))) = uint8('\000')
  8170. name += uintptr(l + int32(1))
  8171. goto _2
  8172. _2:
  8173. ;
  8174. i++
  8175. }
  8176. i = int32(int64(name) - int64((*TXFilters)(unsafe.Pointer(filters)).Falias+uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2))
  8177. if i&int32(3) != 0 {
  8178. libx11.X_XEatData(tls, dpy, libc.Uint64FromInt32(int32(4)-i&int32(3)))
  8179. }
  8180. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8181. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8182. }
  8183. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8184. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8185. }
  8186. return filters
  8187. }
  8188. func XXRenderSetPictureFilter(tls *libc.TLS, dpy uintptr, picture TPicture, filter uintptr, params uintptr, nparams int32) {
  8189. var info, req, p1 uintptr
  8190. var nbytes int32
  8191. _, _, _, _ = info, nbytes, req, p1
  8192. info = XXRenderFindDisplay(tls, dpy)
  8193. nbytes = libc.Int32FromUint64(libc.Xstrlen(tls, filter))
  8194. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8195. return
  8196. }
  8197. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8198. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8199. }
  8200. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureFilter), uint64(m_sz_xRenderSetPictureFilterReq))
  8201. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8202. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureFilter)
  8203. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  8204. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fnbytes = libc.Uint16FromInt32(nbytes)
  8205. p1 = req + 2
  8206. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + ((nbytes+libc.Int32FromInt32(3))>>libc.Int32FromInt32(2) + nparams))
  8207. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8208. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, filter, libc.Uint64FromInt32(nbytes))
  8209. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbytes + int32(3)) & ^libc.Int32FromInt32(3))
  8210. } else {
  8211. libx11.X_XSend(tls, dpy, filter, int64(nbytes))
  8212. }
  8213. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nparams<<libc.Int32FromInt32(2)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8214. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, params, libc.Uint64FromInt32(nparams<<libc.Int32FromInt32(2)))
  8215. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nparams<<int32(2) + int32(3)) & ^libc.Int32FromInt32(3))
  8216. } else {
  8217. libx11.X_XSend(tls, dpy, params, int64(nparams<<int32(2)))
  8218. }
  8219. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8220. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8221. }
  8222. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8223. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8224. }
  8225. }
  8226. /*
  8227. * Xlib uses long for 32-bit values. Xrender uses int. This
  8228. * matters on alpha. Note that this macro assumes that int is 32 bits
  8229. * except on WORD64 machines where it is 64 bits.
  8230. */
  8231. func XXRenderCreateGlyphSet(tls *libc.TLS, dpy uintptr, format uintptr) (r TGlyphSet) {
  8232. var gsid, v1 TGlyphSet
  8233. var info, req uintptr
  8234. _, _, _, _ = gsid, info, req, v1
  8235. info = XXRenderFindDisplay(tls, dpy)
  8236. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8237. return uint64(0)
  8238. }
  8239. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8240. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8241. }
  8242. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateGlyphSet), uint64(m_sz_xRenderCreateGlyphSetReq))
  8243. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8244. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateGlyphSet)
  8245. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8246. Fext_data uintptr
  8247. Fprivate1 uintptr
  8248. Ffd int32
  8249. Fprivate2 int32
  8250. Fproto_major_version int32
  8251. Fproto_minor_version int32
  8252. Fvendor uintptr
  8253. Fprivate3 TXID
  8254. Fprivate4 TXID
  8255. Fprivate5 TXID
  8256. Fprivate6 int32
  8257. Fresource_alloc uintptr
  8258. Fbyte_order int32
  8259. Fbitmap_unit int32
  8260. Fbitmap_pad int32
  8261. Fbitmap_bit_order int32
  8262. Fnformats int32
  8263. Fpixmap_format uintptr
  8264. Fprivate8 int32
  8265. Frelease int32
  8266. Fprivate9 uintptr
  8267. Fprivate10 uintptr
  8268. Fqlen int32
  8269. Flast_request_read uint64
  8270. Frequest uint64
  8271. Fprivate11 TXPointer
  8272. Fprivate12 TXPointer
  8273. Fprivate13 TXPointer
  8274. Fprivate14 TXPointer
  8275. Fmax_request_size uint32
  8276. Fdb uintptr
  8277. Fprivate15 uintptr
  8278. Fdisplay_name uintptr
  8279. Fdefault_screen int32
  8280. Fnscreens int32
  8281. Fscreens uintptr
  8282. Fmotion_buffer uint64
  8283. Fprivate16 uint64
  8284. Fmin_keycode int32
  8285. Fmax_keycode int32
  8286. Fprivate17 TXPointer
  8287. Fprivate18 TXPointer
  8288. Fprivate19 int32
  8289. Fxdefaults uintptr
  8290. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8291. gsid = v1
  8292. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8293. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  8294. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8295. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8296. }
  8297. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8298. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8299. }
  8300. return gsid
  8301. }
  8302. func XXRenderReferenceGlyphSet(tls *libc.TLS, dpy uintptr, existing TGlyphSet) (r TGlyphSet) {
  8303. var gsid, v1 TGlyphSet
  8304. var info, req uintptr
  8305. _, _, _, _ = gsid, info, req, v1
  8306. info = XXRenderFindDisplay(tls, dpy)
  8307. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8308. return uint64(0)
  8309. }
  8310. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8311. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8312. }
  8313. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderReferenceGlyphSet), uint64(m_sz_xRenderReferenceGlyphSetReq))
  8314. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8315. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderReferenceGlyphSet)
  8316. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8317. Fext_data uintptr
  8318. Fprivate1 uintptr
  8319. Ffd int32
  8320. Fprivate2 int32
  8321. Fproto_major_version int32
  8322. Fproto_minor_version int32
  8323. Fvendor uintptr
  8324. Fprivate3 TXID
  8325. Fprivate4 TXID
  8326. Fprivate5 TXID
  8327. Fprivate6 int32
  8328. Fresource_alloc uintptr
  8329. Fbyte_order int32
  8330. Fbitmap_unit int32
  8331. Fbitmap_pad int32
  8332. Fbitmap_bit_order int32
  8333. Fnformats int32
  8334. Fpixmap_format uintptr
  8335. Fprivate8 int32
  8336. Frelease int32
  8337. Fprivate9 uintptr
  8338. Fprivate10 uintptr
  8339. Fqlen int32
  8340. Flast_request_read uint64
  8341. Frequest uint64
  8342. Fprivate11 TXPointer
  8343. Fprivate12 TXPointer
  8344. Fprivate13 TXPointer
  8345. Fprivate14 TXPointer
  8346. Fmax_request_size uint32
  8347. Fdb uintptr
  8348. Fprivate15 uintptr
  8349. Fdisplay_name uintptr
  8350. Fdefault_screen int32
  8351. Fnscreens int32
  8352. Fscreens uintptr
  8353. Fmotion_buffer uint64
  8354. Fprivate16 uint64
  8355. Fmin_keycode int32
  8356. Fmax_keycode int32
  8357. Fprivate17 TXPointer
  8358. Fprivate18 TXPointer
  8359. Fprivate19 int32
  8360. Fxdefaults uintptr
  8361. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8362. gsid = v1
  8363. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8364. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fexisting = uint32(existing)
  8365. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8366. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8367. }
  8368. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8369. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8370. }
  8371. return gsid
  8372. }
  8373. func XXRenderFreeGlyphSet(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet) {
  8374. var info, req uintptr
  8375. _, _ = info, req
  8376. info = XXRenderFindDisplay(tls, dpy)
  8377. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8378. return
  8379. }
  8380. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8381. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8382. }
  8383. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphSet), uint64(m_sz_xRenderFreeGlyphSetReq))
  8384. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8385. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphSet)
  8386. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8387. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8388. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8389. }
  8390. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8391. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8392. }
  8393. }
  8394. func XXRenderAddGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, glyphs uintptr, nglyphs int32, images uintptr, nbyte_images int32) {
  8395. bp := tls.Alloc(16)
  8396. defer tls.Free(16)
  8397. var _BRlen TCARD32
  8398. var info, req, p1, p2 uintptr
  8399. var len1 int64
  8400. var _ /* _BRdat at bp+0 */ TCARD64
  8401. _, _, _, _, _, _ = _BRlen, info, len1, req, p1, p2
  8402. info = XXRenderFindDisplay(tls, dpy)
  8403. if nbyte_images&int32(3) != 0 {
  8404. nbyte_images += int32(4) - nbyte_images&int32(3)
  8405. }
  8406. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8407. return
  8408. }
  8409. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8410. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8411. }
  8412. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddGlyphs), uint64(m_sz_xRenderAddGlyphsReq))
  8413. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8414. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddGlyphs)
  8415. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8416. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fnglyphs = libc.Uint32FromInt32(nglyphs)
  8417. len1 = int64((nglyphs*(libc.Int32FromInt32(m_sz_xGlyphInfo)+libc.Int32FromInt32(4)) + nbyte_images) >> int32(2))
  8418. if libc.Int64FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8419. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8420. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  8421. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8422. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8423. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8424. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  8425. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8426. } else {
  8427. len1 = len1
  8428. p1 = req + 2
  8429. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  8430. }
  8431. } else {
  8432. p2 = req + 2
  8433. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  8434. }
  8435. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt32(nglyphs*int32(4)))
  8436. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8437. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, glyphs, libc.Uint64FromInt32(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8438. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nglyphs*int32(m_sz_xGlyphInfo) + int32(3)) & ^libc.Int32FromInt32(3))
  8439. } else {
  8440. libx11.X_XSend(tls, dpy, glyphs, int64(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8441. }
  8442. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbyte_images) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8443. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, images, libc.Uint64FromInt32(nbyte_images))
  8444. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbyte_images + int32(3)) & ^libc.Int32FromInt32(3))
  8445. } else {
  8446. libx11.X_XSend(tls, dpy, images, int64(nbyte_images))
  8447. }
  8448. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8449. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8450. }
  8451. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8452. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8453. }
  8454. }
  8455. func XXRenderFreeGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, nglyphs int32) {
  8456. bp := tls.Alloc(16)
  8457. defer tls.Free(16)
  8458. var _BRlen TCARD32
  8459. var info, req, p1, p2 uintptr
  8460. var len1 int64
  8461. var _ /* _BRdat at bp+0 */ TCARD64
  8462. _, _, _, _, _, _ = _BRlen, info, len1, req, p1, p2
  8463. info = XXRenderFindDisplay(tls, dpy)
  8464. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8465. return
  8466. }
  8467. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8468. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8469. }
  8470. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphs), uint64(m_sz_xRenderFreeGlyphsReq))
  8471. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8472. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphs)
  8473. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8474. len1 = int64(nglyphs)
  8475. if libc.Int64FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8476. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8477. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  8478. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8479. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8480. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8481. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  8482. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8483. } else {
  8484. len1 = len1
  8485. p1 = req + 2
  8486. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  8487. }
  8488. } else {
  8489. p2 = req + 2
  8490. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  8491. }
  8492. len1 <<= int64(2)
  8493. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt64(len1))
  8494. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8495. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8496. }
  8497. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8498. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8499. }
  8500. }
  8501. func XXRenderCompositeString8(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, glyphset TGlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string1 uintptr, nchar int32) {
  8502. var elt, info, req, p2 uintptr
  8503. var len1 int64
  8504. var nbytes int32
  8505. var v1 uint64
  8506. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8507. info = XXRenderFindDisplay(tls, dpy)
  8508. if !(nchar != 0) {
  8509. return
  8510. }
  8511. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8512. return
  8513. }
  8514. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8515. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8516. }
  8517. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  8518. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8519. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  8520. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8521. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8522. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8523. if maskFormat != 0 {
  8524. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8525. } else {
  8526. v1 = uint64(0)
  8527. }
  8528. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8529. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8530. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8531. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8532. /*
  8533. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8534. * easily done by filling no more than 252 glyphs in each
  8535. * bucket
  8536. */
  8537. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(252)-int32(1))/int32(252)) + nchar)
  8538. p2 = req + 2
  8539. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8540. /*
  8541. * If the entire request does not fit into the remaining space in the
  8542. * buffer, flush the buffer first.
  8543. */
  8544. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8545. libx11.X_XFlush(tls, dpy)
  8546. }
  8547. for nchar > int32(252) {
  8548. nbytes = libc.Int32FromInt32(252) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8549. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8550. libx11.X_XFlush(tls, dpy)
  8551. }
  8552. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8553. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8554. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8555. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(252)
  8556. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8557. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8558. xDst = 0
  8559. yDst = 0
  8560. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, uint64(252))
  8561. nchar = nchar - int32(252)
  8562. string1 += uintptr(252)
  8563. }
  8564. if nchar != 0 {
  8565. nbytes = (nchar + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  8566. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8567. libx11.X_XFlush(tls, dpy)
  8568. }
  8569. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8570. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8571. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8572. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8573. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8574. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8575. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar))
  8576. }
  8577. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8578. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8579. }
  8580. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8581. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8582. }
  8583. }
  8584. func XXRenderCompositeString16(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, glyphset TGlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string1 uintptr, nchar int32) {
  8585. var elt, info, req, p2 uintptr
  8586. var len1 int64
  8587. var nbytes int32
  8588. var v1 uint64
  8589. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8590. info = XXRenderFindDisplay(tls, dpy)
  8591. if !(nchar != 0) {
  8592. return
  8593. }
  8594. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8595. return
  8596. }
  8597. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8598. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8599. }
  8600. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  8601. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8602. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  8603. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8604. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8605. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8606. if maskFormat != 0 {
  8607. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8608. } else {
  8609. v1 = uint64(0)
  8610. }
  8611. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8612. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8613. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8614. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8615. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(2))
  8616. p2 = req + 2
  8617. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8618. /*
  8619. * If the entire request does not fit into the remaining space in the
  8620. * buffer, flush the buffer first.
  8621. */
  8622. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8623. libx11.X_XFlush(tls, dpy)
  8624. }
  8625. for nchar > int32(254) {
  8626. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(2) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8627. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8628. libx11.X_XFlush(tls, dpy)
  8629. }
  8630. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8631. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8632. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8633. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  8634. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8635. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8636. xDst = 0
  8637. yDst = 0
  8638. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(2)))
  8639. nchar = nchar - int32(254)
  8640. string1 += uintptr(254) * 2
  8641. }
  8642. if nchar != 0 {
  8643. nbytes = (nchar*int32(2) + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  8644. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8645. libx11.X_XFlush(tls, dpy)
  8646. }
  8647. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8648. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8649. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8650. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8651. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8652. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8653. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(2)))
  8654. }
  8655. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8656. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8657. }
  8658. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8659. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8660. }
  8661. }
  8662. func XXRenderCompositeString32(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, glyphset TGlyphSet, xSrc int32, ySrc int32, xDst int32, yDst int32, string1 uintptr, nchar int32) {
  8663. var elt, info, req, p2 uintptr
  8664. var len1 int64
  8665. var nbytes int32
  8666. var v1 uint64
  8667. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8668. info = XXRenderFindDisplay(tls, dpy)
  8669. if !(nchar != 0) {
  8670. return
  8671. }
  8672. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8673. return
  8674. }
  8675. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8676. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8677. }
  8678. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  8679. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8680. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  8681. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8682. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8683. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8684. if maskFormat != 0 {
  8685. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8686. } else {
  8687. v1 = uint64(0)
  8688. }
  8689. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8690. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8691. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8692. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8693. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(4))
  8694. p2 = req + 2
  8695. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8696. /*
  8697. * If the entire request does not fit into the remaining space in the
  8698. * buffer, flush the buffer first.
  8699. */
  8700. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8701. libx11.X_XFlush(tls, dpy)
  8702. }
  8703. for nchar > int32(254) {
  8704. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(4) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8705. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8706. libx11.X_XFlush(tls, dpy)
  8707. }
  8708. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8709. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8710. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8711. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  8712. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8713. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8714. xDst = 0
  8715. yDst = 0
  8716. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(4)))
  8717. nchar = nchar - int32(254)
  8718. string1 += uintptr(254) * 4
  8719. }
  8720. if nchar != 0 {
  8721. nbytes = nchar*int32(4) + int32(m_sz_xGlyphElt)
  8722. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8723. libx11.X_XFlush(tls, dpy)
  8724. }
  8725. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8726. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8727. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8728. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8729. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8730. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8731. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(4)))
  8732. }
  8733. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8734. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8735. }
  8736. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8737. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8738. }
  8739. }
  8740. func XXRenderCompositeText8(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) {
  8741. bp := tls.Alloc(16)
  8742. defer tls.Free(16)
  8743. var chars, elt, info, req, p3 uintptr
  8744. var elen, len1 int64
  8745. var i, nchars, this_chars, v5 int32
  8746. var v1 uint64
  8747. var _ /* glyphset at bp+0 */ TGlyphSet
  8748. _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_chars, v1, v5, p3
  8749. info = XXRenderFindDisplay(tls, dpy)
  8750. if !(nelt != 0) {
  8751. return
  8752. }
  8753. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8754. return
  8755. }
  8756. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8757. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8758. }
  8759. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  8760. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8761. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  8762. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8763. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8764. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8765. if maskFormat != 0 {
  8766. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8767. } else {
  8768. v1 = uint64(0)
  8769. }
  8770. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8771. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset)
  8772. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8773. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8774. /*
  8775. * Compute the space necessary
  8776. */
  8777. len1 = 0
  8778. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  8779. i = 0
  8780. for {
  8781. if !(i < nelt) {
  8782. break
  8783. }
  8784. /*
  8785. * Check for glyphset change
  8786. */
  8787. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8788. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8789. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  8790. }
  8791. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8792. /*
  8793. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8794. * easily done by filling no more than 252 glyphs in each
  8795. * bucket
  8796. */
  8797. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(252)-int32(1))/int32(252)) + nchars)
  8798. len1 += (elen + int64(3)) >> int32(2)
  8799. goto _2
  8800. _2:
  8801. ;
  8802. i++
  8803. }
  8804. p3 = req + 2
  8805. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  8806. /*
  8807. * Send the glyphs
  8808. */
  8809. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  8810. i = 0
  8811. for {
  8812. if !(i < nelt) {
  8813. break
  8814. }
  8815. /*
  8816. * Switch glyphsets
  8817. */
  8818. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8819. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8820. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8821. libx11.X_XFlush(tls, dpy)
  8822. }
  8823. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8824. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8825. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8826. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  8827. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  8828. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  8829. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8830. }
  8831. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8832. xDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  8833. yDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  8834. chars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  8835. for nchars != 0 {
  8836. if nchars > int32(252) {
  8837. v5 = int32(252)
  8838. } else {
  8839. v5 = nchars
  8840. }
  8841. this_chars = v5
  8842. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8843. libx11.X_XFlush(tls, dpy)
  8844. }
  8845. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8846. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8847. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8848. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  8849. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8850. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8851. xDst = 0
  8852. yDst = 0
  8853. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_chars) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8854. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_chars))
  8855. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_chars + int32(3)) & ^libc.Int32FromInt32(3))
  8856. } else {
  8857. libx11.X_XSend(tls, dpy, chars, int64(this_chars))
  8858. }
  8859. nchars -= this_chars
  8860. chars += uintptr(this_chars)
  8861. }
  8862. goto _4
  8863. _4:
  8864. ;
  8865. i++
  8866. }
  8867. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8868. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8869. }
  8870. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8871. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8872. }
  8873. }
  8874. func XXRenderCompositeText16(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) {
  8875. bp := tls.Alloc(16)
  8876. defer tls.Free(16)
  8877. var chars, elt, info, req, p3 uintptr
  8878. var elen, len1 int64
  8879. var i, nchars, this_bytes, this_chars, v5 int32
  8880. var v1 uint64
  8881. var _ /* glyphset at bp+0 */ TGlyphSet
  8882. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  8883. info = XXRenderFindDisplay(tls, dpy)
  8884. if !(nelt != 0) {
  8885. return
  8886. }
  8887. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8888. return
  8889. }
  8890. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8891. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8892. }
  8893. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  8894. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8895. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  8896. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8897. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8898. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8899. if maskFormat != 0 {
  8900. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8901. } else {
  8902. v1 = uint64(0)
  8903. }
  8904. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8905. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset)
  8906. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8907. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8908. /*
  8909. * Compute the space necessary
  8910. */
  8911. len1 = 0
  8912. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  8913. i = 0
  8914. for {
  8915. if !(i < nelt) {
  8916. break
  8917. }
  8918. /*
  8919. * Check for glyphset change
  8920. */
  8921. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8922. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8923. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  8924. }
  8925. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8926. /*
  8927. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8928. * easily done by filling no more than 254 glyphs in each
  8929. * bucket
  8930. */
  8931. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(2))
  8932. len1 += (elen + int64(3)) >> int32(2)
  8933. goto _2
  8934. _2:
  8935. ;
  8936. i++
  8937. }
  8938. p3 = req + 2
  8939. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  8940. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  8941. i = 0
  8942. for {
  8943. if !(i < nelt) {
  8944. break
  8945. }
  8946. /*
  8947. * Switch glyphsets
  8948. */
  8949. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8950. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8951. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8952. libx11.X_XFlush(tls, dpy)
  8953. }
  8954. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8955. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8956. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8957. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  8958. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  8959. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  8960. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8961. }
  8962. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8963. xDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  8964. yDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  8965. chars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  8966. for nchars != 0 {
  8967. if nchars > int32(254) {
  8968. v5 = int32(254)
  8969. } else {
  8970. v5 = nchars
  8971. }
  8972. this_chars = v5
  8973. this_bytes = this_chars * int32(2)
  8974. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8975. libx11.X_XFlush(tls, dpy)
  8976. }
  8977. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8978. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8979. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8980. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  8981. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8982. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8983. xDst = 0
  8984. yDst = 0
  8985. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8986. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  8987. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + int32(3)) & ^libc.Int32FromInt32(3))
  8988. } else {
  8989. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  8990. }
  8991. nchars -= this_chars
  8992. chars += uintptr(this_chars) * 2
  8993. }
  8994. goto _4
  8995. _4:
  8996. ;
  8997. i++
  8998. }
  8999. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9000. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9001. }
  9002. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9003. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9004. }
  9005. }
  9006. func XXRenderCompositeText32(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, elts uintptr, nelt int32) {
  9007. bp := tls.Alloc(16)
  9008. defer tls.Free(16)
  9009. var chars, elt, info, req, p3 uintptr
  9010. var elen, len1 int64
  9011. var i, nchars, this_bytes, this_chars, v5 int32
  9012. var v1 uint64
  9013. var _ /* glyphset at bp+0 */ TGlyphSet
  9014. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  9015. info = XXRenderFindDisplay(tls, dpy)
  9016. if !(nelt != 0) {
  9017. return
  9018. }
  9019. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9020. return
  9021. }
  9022. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9023. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9024. }
  9025. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  9026. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9027. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  9028. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9029. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9030. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9031. if maskFormat != 0 {
  9032. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9033. } else {
  9034. v1 = uint64(0)
  9035. }
  9036. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9037. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset)
  9038. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9039. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9040. /*
  9041. * Compute the space necessary
  9042. */
  9043. len1 = 0
  9044. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9045. i = 0
  9046. for {
  9047. if !(i < nelt) {
  9048. break
  9049. }
  9050. /*
  9051. * Check for glyphset change
  9052. */
  9053. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9054. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9055. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  9056. }
  9057. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9058. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(4))
  9059. len1 += (elen + int64(3)) >> int32(2)
  9060. goto _2
  9061. _2:
  9062. ;
  9063. i++
  9064. }
  9065. p3 = req + 2
  9066. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9067. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9068. i = 0
  9069. for {
  9070. if !(i < nelt) {
  9071. break
  9072. }
  9073. /*
  9074. * Switch glyphsets
  9075. */
  9076. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9077. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9078. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9079. libx11.X_XFlush(tls, dpy)
  9080. }
  9081. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9082. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9083. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9084. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9085. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9086. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9087. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9088. }
  9089. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9090. xDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9091. yDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9092. chars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9093. for nchars != 0 {
  9094. if nchars > int32(254) {
  9095. v5 = int32(254)
  9096. } else {
  9097. v5 = nchars
  9098. }
  9099. this_chars = v5
  9100. this_bytes = this_chars * int32(4)
  9101. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9102. libx11.X_XFlush(tls, dpy)
  9103. }
  9104. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9105. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9106. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9107. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9108. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9109. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9110. xDst = 0
  9111. yDst = 0
  9112. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9113. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  9114. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + int32(3)) & ^libc.Int32FromInt32(3))
  9115. } else {
  9116. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  9117. }
  9118. nchars -= this_chars
  9119. chars += uintptr(this_chars) * 4
  9120. }
  9121. goto _4
  9122. _4:
  9123. ;
  9124. i++
  9125. }
  9126. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9127. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9128. }
  9129. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9130. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9131. }
  9132. }
  9133. const m_FALSE = 0
  9134. const m_MAXSHORT = 32767
  9135. const m_NUMPTSTOBUFFER = 200
  9136. const m_TRUE = 1
  9137. type T_XRegion = struct {
  9138. Fsize int64
  9139. FnumRects int64
  9140. Frects uintptr
  9141. Fextents TBOX
  9142. }
  9143. type TBox = struct {
  9144. Fx1 int16
  9145. Fx2 int16
  9146. Fy1 int16
  9147. Fy2 int16
  9148. }
  9149. type TBOX = struct {
  9150. Fx1 int16
  9151. Fx2 int16
  9152. Fy1 int16
  9153. Fy2 int16
  9154. }
  9155. type TBoxRec = struct {
  9156. Fx1 int16
  9157. Fx2 int16
  9158. Fy1 int16
  9159. Fy2 int16
  9160. }
  9161. type TBoxPtr = uintptr
  9162. type TRECTANGLE = struct {
  9163. Fx int16
  9164. Fy int16
  9165. Fwidth int16
  9166. Fheight int16
  9167. }
  9168. type TRectangleRec = struct {
  9169. Fx int16
  9170. Fy int16
  9171. Fwidth int16
  9172. Fheight int16
  9173. }
  9174. type TRectanglePtr = uintptr
  9175. type TREGION = struct {
  9176. Fsize int64
  9177. FnumRects int64
  9178. Frects uintptr
  9179. Fextents TBOX
  9180. }
  9181. type TPOINTBLOCK = struct {
  9182. Fpts [200]TXPoint
  9183. Fnext uintptr
  9184. }
  9185. type T_POINTBLOCK = TPOINTBLOCK
  9186. func __XRenderProcessPictureAttributes(tls *libc.TLS, dpy uintptr, req uintptr, valuemask uint64, attributes uintptr) {
  9187. bp := tls.Alloc(256)
  9188. defer tls.Free(256)
  9189. var nvalues, v15 uint32
  9190. var value, v1, v10, v11, v12, v13, v2, v3, v4, v5, v6, v7, v8, v9, p14 uintptr
  9191. var _ /* values at bp+0 */ [32]uint64
  9192. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = nvalues, value, v1, v10, v11, v12, v13, v15, v2, v3, v4, v5, v6, v7, v8, v9, p14
  9193. value = bp
  9194. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  9195. v1 = value
  9196. value += 8
  9197. *(*uint64)(unsafe.Pointer(v1)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Frepeat)
  9198. }
  9199. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  9200. v2 = value
  9201. value += 8
  9202. *(*uint64)(unsafe.Pointer(v2)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_map
  9203. }
  9204. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  9205. v3 = value
  9206. value += 8
  9207. *(*uint64)(unsafe.Pointer(v3)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_x_origin)
  9208. }
  9209. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  9210. v4 = value
  9211. value += 8
  9212. *(*uint64)(unsafe.Pointer(v4)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_y_origin)
  9213. }
  9214. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  9215. v5 = value
  9216. value += 8
  9217. *(*uint64)(unsafe.Pointer(v5)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_x_origin)
  9218. }
  9219. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  9220. v6 = value
  9221. value += 8
  9222. *(*uint64)(unsafe.Pointer(v6)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_y_origin)
  9223. }
  9224. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  9225. v7 = value
  9226. value += 8
  9227. *(*uint64)(unsafe.Pointer(v7)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_mask
  9228. }
  9229. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  9230. v8 = value
  9231. value += 8
  9232. *(*uint64)(unsafe.Pointer(v8)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fgraphics_exposures)
  9233. }
  9234. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  9235. v9 = value
  9236. value += 8
  9237. *(*uint64)(unsafe.Pointer(v9)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fsubwindow_mode)
  9238. }
  9239. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  9240. v10 = value
  9241. value += 8
  9242. *(*uint64)(unsafe.Pointer(v10)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_edge)
  9243. }
  9244. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  9245. v11 = value
  9246. value += 8
  9247. *(*uint64)(unsafe.Pointer(v11)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_mode)
  9248. }
  9249. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  9250. v12 = value
  9251. value += 8
  9252. *(*uint64)(unsafe.Pointer(v12)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fdither
  9253. }
  9254. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(12)) != 0 {
  9255. v13 = value
  9256. value += 8
  9257. *(*uint64)(unsafe.Pointer(v13)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fcomponent_alpha)
  9258. }
  9259. p14 = req + 2
  9260. v15 = libc.Uint32FromInt64((int64(value) - t__predefined_ptrdiff_t(bp)) / 8)
  9261. nvalues = v15
  9262. *(*TCARD16)(unsafe.Pointer(p14)) = TCARD16(uint32(*(*TCARD16)(unsafe.Pointer(p14))) + v15)
  9263. nvalues <<= uint32(2) /* watch out for macros... */
  9264. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt64(libc.Int64FromUint32(nvalues)))
  9265. }
  9266. func XXRenderCreatePicture(tls *libc.TLS, dpy uintptr, drawable TDrawable, format uintptr, valuemask uint64, attributes uintptr) (r TPicture) {
  9267. var info, req uintptr
  9268. var pid, v1 TPicture
  9269. var v2 TCARD32
  9270. _, _, _, _, _ = info, pid, req, v1, v2
  9271. info = XXRenderFindDisplay(tls, dpy)
  9272. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9273. return uint64(0)
  9274. }
  9275. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9276. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9277. }
  9278. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreatePicture), uint64(m_sz_xRenderCreatePictureReq))
  9279. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9280. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreatePicture)
  9281. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9282. Fext_data uintptr
  9283. Fprivate1 uintptr
  9284. Ffd int32
  9285. Fprivate2 int32
  9286. Fproto_major_version int32
  9287. Fproto_minor_version int32
  9288. Fvendor uintptr
  9289. Fprivate3 TXID
  9290. Fprivate4 TXID
  9291. Fprivate5 TXID
  9292. Fprivate6 int32
  9293. Fresource_alloc uintptr
  9294. Fbyte_order int32
  9295. Fbitmap_unit int32
  9296. Fbitmap_pad int32
  9297. Fbitmap_bit_order int32
  9298. Fnformats int32
  9299. Fpixmap_format uintptr
  9300. Fprivate8 int32
  9301. Frelease int32
  9302. Fprivate9 uintptr
  9303. Fprivate10 uintptr
  9304. Fqlen int32
  9305. Flast_request_read uint64
  9306. Frequest uint64
  9307. Fprivate11 TXPointer
  9308. Fprivate12 TXPointer
  9309. Fprivate13 TXPointer
  9310. Fprivate14 TXPointer
  9311. Fmax_request_size uint32
  9312. Fdb uintptr
  9313. Fprivate15 uintptr
  9314. Fdisplay_name uintptr
  9315. Fdefault_screen int32
  9316. Fnscreens int32
  9317. Fscreens uintptr
  9318. Fmotion_buffer uint64
  9319. Fprivate16 uint64
  9320. Fmin_keycode int32
  9321. Fmax_keycode int32
  9322. Fprivate17 TXPointer
  9323. Fprivate18 TXPointer
  9324. Fprivate19 int32
  9325. Fxdefaults uintptr
  9326. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9327. pid = v1
  9328. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9329. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  9330. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  9331. v2 = uint32(valuemask)
  9332. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fmask = v2
  9333. if v2 != 0 {
  9334. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9335. }
  9336. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9337. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9338. }
  9339. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9340. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9341. }
  9342. return pid
  9343. }
  9344. func XXRenderChangePicture(tls *libc.TLS, dpy uintptr, picture TPicture, valuemask uint64, attributes uintptr) {
  9345. var info, req uintptr
  9346. _, _ = info, req
  9347. info = XXRenderFindDisplay(tls, dpy)
  9348. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9349. return
  9350. }
  9351. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9352. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9353. }
  9354. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderChangePicture), uint64(m_sz_xRenderChangePictureReq))
  9355. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9356. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderChangePicture)
  9357. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9358. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fmask = uint32(valuemask)
  9359. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9360. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9361. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9362. }
  9363. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9364. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9365. }
  9366. }
  9367. func __XRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, info uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9368. bp := tls.Alloc(16)
  9369. defer tls.Free(16)
  9370. var _BRlen TCARD32
  9371. var len1 int64
  9372. var req, p1, p2 uintptr
  9373. var _ /* _BRdat at bp+0 */ TCARD64
  9374. _, _, _, _, _ = _BRlen, len1, req, p1, p2
  9375. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureClipRectangles), uint64(m_sz_xRenderSetPictureClipRectanglesReq))
  9376. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9377. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureClipRectangles)
  9378. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9379. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FxOrigin = int16(xOrigin)
  9380. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FyOrigin = int16(yOrigin)
  9381. len1 = int64(n) << int32(1)
  9382. if libc.Int64FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9383. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9384. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9385. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9386. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9387. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9388. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9389. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9390. } else {
  9391. len1 = int64(1)
  9392. p1 = req + 2
  9393. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  9394. }
  9395. } else {
  9396. p2 = req + 2
  9397. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9398. }
  9399. len1 <<= int64(2)
  9400. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9401. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rects, libc.Uint64FromInt32(int32(len1)))
  9402. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  9403. } else {
  9404. libx11.X_XSend(tls, dpy, rects, len1)
  9405. }
  9406. }
  9407. func XXRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9408. var info uintptr
  9409. _ = info
  9410. info = XXRenderFindDisplay(tls, dpy)
  9411. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9412. return
  9413. }
  9414. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9415. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9416. }
  9417. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, xOrigin, yOrigin, rects, n)
  9418. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9419. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9420. }
  9421. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9422. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9423. }
  9424. }
  9425. func XXRenderSetPictureClipRegion(tls *libc.TLS, dpy uintptr, picture TPicture, r TRegion) {
  9426. var i, v3 int32
  9427. var info, pb, pr, xr, v1 uintptr
  9428. var total uint64
  9429. _, _, _, _, _, _, _, _ = i, info, pb, pr, total, xr, v1, v3
  9430. info = XXRenderFindDisplay(tls, dpy)
  9431. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9432. return
  9433. }
  9434. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9435. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9436. }
  9437. total = libc.Uint64FromInt64((*T_XRegion)(unsafe.Pointer(r)).FnumRects) * uint64(8)
  9438. v1 = libx11.X_XAllocTemp(tls, dpy, total)
  9439. xr = v1
  9440. if v1 != 0 {
  9441. pr = xr
  9442. pb = (*T_XRegion)(unsafe.Pointer(r)).Frects
  9443. i = int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects)
  9444. for {
  9445. i--
  9446. v3 = i
  9447. if !(v3 >= 0) {
  9448. break
  9449. }
  9450. (*TXRectangle)(unsafe.Pointer(pr)).Fx = (*TBOX)(unsafe.Pointer(pb)).Fx1
  9451. (*TXRectangle)(unsafe.Pointer(pr)).Fy = (*TBOX)(unsafe.Pointer(pb)).Fy1
  9452. (*TXRectangle)(unsafe.Pointer(pr)).Fwidth = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fx2) - int32((*TBOX)(unsafe.Pointer(pb)).Fx1))
  9453. (*TXRectangle)(unsafe.Pointer(pr)).Fheight = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fy2) - int32((*TBOX)(unsafe.Pointer(pb)).Fy1))
  9454. goto _2
  9455. _2:
  9456. ;
  9457. pr += 8
  9458. pb += 8
  9459. }
  9460. }
  9461. if xr != 0 || !((*T_XRegion)(unsafe.Pointer(r)).FnumRects != 0) {
  9462. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, 0, 0, xr, int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects))
  9463. }
  9464. if xr != 0 {
  9465. libx11.X_XFreeTemp(tls, dpy, xr, total)
  9466. }
  9467. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9468. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9469. }
  9470. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9471. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9472. }
  9473. }
  9474. func XXRenderSetPictureTransform(tls *libc.TLS, dpy uintptr, picture TPicture, transform uintptr) {
  9475. var info, req uintptr
  9476. _, _ = info, req
  9477. info = XXRenderFindDisplay(tls, dpy)
  9478. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9479. return
  9480. }
  9481. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9482. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9483. }
  9484. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureTransform), uint64(m_sz_xRenderSetPictureTransformReq))
  9485. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9486. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureTransform)
  9487. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9488. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix11 = *(*TXFixed)(unsafe.Pointer(transform))
  9489. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix12 = *(*TXFixed)(unsafe.Pointer(transform + 1*4))
  9490. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix13 = *(*TXFixed)(unsafe.Pointer(transform + 2*4))
  9491. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix21 = *(*TXFixed)(unsafe.Pointer(transform + 1*12))
  9492. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix22 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 1*4))
  9493. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix23 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 2*4))
  9494. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix31 = *(*TXFixed)(unsafe.Pointer(transform + 2*12))
  9495. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix32 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 1*4))
  9496. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix33 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 2*4))
  9497. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9498. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9499. }
  9500. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9501. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9502. }
  9503. }
  9504. func XXRenderFreePicture(tls *libc.TLS, dpy uintptr, picture TPicture) {
  9505. var info, req uintptr
  9506. _, _ = info, req
  9507. info = XXRenderFindDisplay(tls, dpy)
  9508. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9509. return
  9510. }
  9511. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9512. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9513. }
  9514. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreePicture), uint64(m_sz_xRenderFreePictureReq))
  9515. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9516. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreePicture)
  9517. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9518. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9519. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9520. }
  9521. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9522. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9523. }
  9524. }
  9525. func XXRenderCreateSolidFill(tls *libc.TLS, dpy uintptr, color uintptr) (r TPicture) {
  9526. var info, req uintptr
  9527. var pid, v1 TPicture
  9528. _, _, _, _ = info, pid, req, v1
  9529. info = XXRenderFindDisplay(tls, dpy)
  9530. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9531. return uint64(0)
  9532. }
  9533. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9534. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9535. }
  9536. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateSolidFill), uint64(m_sz_xRenderCreateSolidFillReq))
  9537. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9538. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateSolidFill)
  9539. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9540. Fext_data uintptr
  9541. Fprivate1 uintptr
  9542. Ffd int32
  9543. Fprivate2 int32
  9544. Fproto_major_version int32
  9545. Fproto_minor_version int32
  9546. Fvendor uintptr
  9547. Fprivate3 TXID
  9548. Fprivate4 TXID
  9549. Fprivate5 TXID
  9550. Fprivate6 int32
  9551. Fresource_alloc uintptr
  9552. Fbyte_order int32
  9553. Fbitmap_unit int32
  9554. Fbitmap_pad int32
  9555. Fbitmap_bit_order int32
  9556. Fnformats int32
  9557. Fpixmap_format uintptr
  9558. Fprivate8 int32
  9559. Frelease int32
  9560. Fprivate9 uintptr
  9561. Fprivate10 uintptr
  9562. Fqlen int32
  9563. Flast_request_read uint64
  9564. Frequest uint64
  9565. Fprivate11 TXPointer
  9566. Fprivate12 TXPointer
  9567. Fprivate13 TXPointer
  9568. Fprivate14 TXPointer
  9569. Fmax_request_size uint32
  9570. Fdb uintptr
  9571. Fprivate15 uintptr
  9572. Fdisplay_name uintptr
  9573. Fdefault_screen int32
  9574. Fnscreens int32
  9575. Fscreens uintptr
  9576. Fmotion_buffer uint64
  9577. Fprivate16 uint64
  9578. Fmin_keycode int32
  9579. Fmax_keycode int32
  9580. Fprivate17 TXPointer
  9581. Fprivate18 TXPointer
  9582. Fprivate19 int32
  9583. Fxdefaults uintptr
  9584. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9585. pid = v1
  9586. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9587. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  9588. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  9589. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  9590. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  9591. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9592. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9593. }
  9594. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9595. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9596. }
  9597. return pid
  9598. }
  9599. func XXRenderCreateLinearGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9600. bp := tls.Alloc(16)
  9601. defer tls.Free(16)
  9602. var _BRlen TCARD32
  9603. var info, req, p2, p3 uintptr
  9604. var len1 int64
  9605. var pid, v1 TPicture
  9606. var _ /* _BRdat at bp+0 */ TCARD64
  9607. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9608. info = XXRenderFindDisplay(tls, dpy)
  9609. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9610. return uint64(0)
  9611. }
  9612. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9613. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9614. }
  9615. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateLinearGradient), uint64(m_sz_xRenderCreateLinearGradientReq))
  9616. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9617. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateLinearGradient)
  9618. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9619. Fext_data uintptr
  9620. Fprivate1 uintptr
  9621. Ffd int32
  9622. Fprivate2 int32
  9623. Fproto_major_version int32
  9624. Fproto_minor_version int32
  9625. Fvendor uintptr
  9626. Fprivate3 TXID
  9627. Fprivate4 TXID
  9628. Fprivate5 TXID
  9629. Fprivate6 int32
  9630. Fresource_alloc uintptr
  9631. Fbyte_order int32
  9632. Fbitmap_unit int32
  9633. Fbitmap_pad int32
  9634. Fbitmap_bit_order int32
  9635. Fnformats int32
  9636. Fpixmap_format uintptr
  9637. Fprivate8 int32
  9638. Frelease int32
  9639. Fprivate9 uintptr
  9640. Fprivate10 uintptr
  9641. Fqlen int32
  9642. Flast_request_read uint64
  9643. Frequest uint64
  9644. Fprivate11 TXPointer
  9645. Fprivate12 TXPointer
  9646. Fprivate13 TXPointer
  9647. Fprivate14 TXPointer
  9648. Fmax_request_size uint32
  9649. Fdb uintptr
  9650. Fprivate15 uintptr
  9651. Fdisplay_name uintptr
  9652. Fdefault_screen int32
  9653. Fnscreens int32
  9654. Fscreens uintptr
  9655. Fmotion_buffer uint64
  9656. Fprivate16 uint64
  9657. Fmin_keycode int32
  9658. Fmax_keycode int32
  9659. Fprivate17 TXPointer
  9660. Fprivate18 TXPointer
  9661. Fprivate19 int32
  9662. Fxdefaults uintptr
  9663. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9664. pid = v1
  9665. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9666. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fx
  9667. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fy
  9668. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fx
  9669. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fy
  9670. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9671. len1 = int64(nStops) * int64(3)
  9672. if libc.Int64FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9673. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9674. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9675. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9676. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9677. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9678. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9679. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9680. } else {
  9681. len1 = int64(6)
  9682. p2 = req + 2
  9683. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9684. }
  9685. } else {
  9686. p3 = req + 2
  9687. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9688. }
  9689. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9690. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9691. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9692. } else {
  9693. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9694. }
  9695. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9696. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9697. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9698. } else {
  9699. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9700. }
  9701. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9702. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9703. }
  9704. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9705. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9706. }
  9707. return pid
  9708. }
  9709. func XXRenderCreateRadialGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9710. bp := tls.Alloc(16)
  9711. defer tls.Free(16)
  9712. var _BRlen TCARD32
  9713. var info, req, p2, p3 uintptr
  9714. var len1 int64
  9715. var pid, v1 TPicture
  9716. var _ /* _BRdat at bp+0 */ TCARD64
  9717. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9718. info = XXRenderFindDisplay(tls, dpy)
  9719. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9720. return uint64(0)
  9721. }
  9722. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9723. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9724. }
  9725. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateRadialGradient), uint64(m_sz_xRenderCreateRadialGradientReq))
  9726. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9727. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateRadialGradient)
  9728. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9729. Fext_data uintptr
  9730. Fprivate1 uintptr
  9731. Ffd int32
  9732. Fprivate2 int32
  9733. Fproto_major_version int32
  9734. Fproto_minor_version int32
  9735. Fvendor uintptr
  9736. Fprivate3 TXID
  9737. Fprivate4 TXID
  9738. Fprivate5 TXID
  9739. Fprivate6 int32
  9740. Fresource_alloc uintptr
  9741. Fbyte_order int32
  9742. Fbitmap_unit int32
  9743. Fbitmap_pad int32
  9744. Fbitmap_bit_order int32
  9745. Fnformats int32
  9746. Fpixmap_format uintptr
  9747. Fprivate8 int32
  9748. Frelease int32
  9749. Fprivate9 uintptr
  9750. Fprivate10 uintptr
  9751. Fqlen int32
  9752. Flast_request_read uint64
  9753. Frequest uint64
  9754. Fprivate11 TXPointer
  9755. Fprivate12 TXPointer
  9756. Fprivate13 TXPointer
  9757. Fprivate14 TXPointer
  9758. Fmax_request_size uint32
  9759. Fdb uintptr
  9760. Fprivate15 uintptr
  9761. Fdisplay_name uintptr
  9762. Fdefault_screen int32
  9763. Fnscreens int32
  9764. Fscreens uintptr
  9765. Fmotion_buffer uint64
  9766. Fprivate16 uint64
  9767. Fmin_keycode int32
  9768. Fmax_keycode int32
  9769. Fprivate17 TXPointer
  9770. Fprivate18 TXPointer
  9771. Fprivate19 int32
  9772. Fxdefaults uintptr
  9773. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9774. pid = v1
  9775. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9776. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fx
  9777. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fy
  9778. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fx
  9779. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fy
  9780. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fradius
  9781. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fradius
  9782. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9783. len1 = int64(nStops) * int64(3)
  9784. if libc.Int64FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9785. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9786. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9787. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9788. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9789. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9790. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9791. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9792. } else {
  9793. len1 = int64(6)
  9794. p2 = req + 2
  9795. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9796. }
  9797. } else {
  9798. p3 = req + 2
  9799. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9800. }
  9801. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9802. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9803. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9804. } else {
  9805. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9806. }
  9807. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9808. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9809. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9810. } else {
  9811. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9812. }
  9813. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9814. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9815. }
  9816. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9817. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9818. }
  9819. return pid
  9820. }
  9821. func XXRenderCreateConicalGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9822. bp := tls.Alloc(16)
  9823. defer tls.Free(16)
  9824. var _BRlen TCARD32
  9825. var info, req, p2, p3 uintptr
  9826. var len1 int64
  9827. var pid, v1 TPicture
  9828. var _ /* _BRdat at bp+0 */ TCARD64
  9829. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9830. info = XXRenderFindDisplay(tls, dpy)
  9831. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9832. return uint64(0)
  9833. }
  9834. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9835. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9836. }
  9837. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateConicalGradient), uint64(m_sz_xRenderCreateConicalGradientReq))
  9838. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9839. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateConicalGradient)
  9840. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9841. Fext_data uintptr
  9842. Fprivate1 uintptr
  9843. Ffd int32
  9844. Fprivate2 int32
  9845. Fproto_major_version int32
  9846. Fproto_minor_version int32
  9847. Fvendor uintptr
  9848. Fprivate3 TXID
  9849. Fprivate4 TXID
  9850. Fprivate5 TXID
  9851. Fprivate6 int32
  9852. Fresource_alloc uintptr
  9853. Fbyte_order int32
  9854. Fbitmap_unit int32
  9855. Fbitmap_pad int32
  9856. Fbitmap_bit_order int32
  9857. Fnformats int32
  9858. Fpixmap_format uintptr
  9859. Fprivate8 int32
  9860. Frelease int32
  9861. Fprivate9 uintptr
  9862. Fprivate10 uintptr
  9863. Fqlen int32
  9864. Flast_request_read uint64
  9865. Frequest uint64
  9866. Fprivate11 TXPointer
  9867. Fprivate12 TXPointer
  9868. Fprivate13 TXPointer
  9869. Fprivate14 TXPointer
  9870. Fmax_request_size uint32
  9871. Fdb uintptr
  9872. Fprivate15 uintptr
  9873. Fdisplay_name uintptr
  9874. Fdefault_screen int32
  9875. Fnscreens int32
  9876. Fscreens uintptr
  9877. Fmotion_buffer uint64
  9878. Fprivate16 uint64
  9879. Fmin_keycode int32
  9880. Fmax_keycode int32
  9881. Fprivate17 TXPointer
  9882. Fprivate18 TXPointer
  9883. Fprivate19 int32
  9884. Fxdefaults uintptr
  9885. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9886. pid = v1
  9887. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9888. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fx = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fx
  9889. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fy = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fy
  9890. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fangle = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fangle
  9891. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9892. len1 = int64(nStops) * int64(3)
  9893. if libc.Int64FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9894. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9895. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9896. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9897. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9898. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9899. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9900. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9901. } else {
  9902. len1 = int64(6)
  9903. p2 = req + 2
  9904. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9905. }
  9906. } else {
  9907. p3 = req + 2
  9908. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9909. }
  9910. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9911. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9912. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9913. } else {
  9914. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9915. }
  9916. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9917. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9918. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9919. } else {
  9920. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9921. }
  9922. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9923. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9924. }
  9925. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9926. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9927. }
  9928. return pid
  9929. }
  9930. /*
  9931. * Xlib uses long for 32-bit values. Xrender uses int. This
  9932. * matters on alpha. Note that this macro assumes that int is 32 bits
  9933. * except on WORD64 machines where it is 64 bits.
  9934. */
  9935. type TEdge = struct {
  9936. Fedge TXLineFixed
  9937. Fcurrent_x TXFixed
  9938. FclockWise int32
  9939. Fnext uintptr
  9940. Fprev uintptr
  9941. }
  9942. /*
  9943. * Xlib uses long for 32-bit values. Xrender uses int. This
  9944. * matters on alpha. Note that this macro assumes that int is 32 bits
  9945. * except on WORD64 machines where it is 64 bits.
  9946. */
  9947. type T_Edge = TEdge
  9948. func _CompareEdge(tls *libc.TLS, o1 uintptr, o2 uintptr) (r int32) {
  9949. var e1, e2 uintptr
  9950. _, _ = e1, e2
  9951. e1 = o1
  9952. e2 = o2
  9953. return (*TEdge)(unsafe.Pointer(e1)).Fedge.Fp1.Fy - (*TEdge)(unsafe.Pointer(e2)).Fedge.Fp1.Fy
  9954. }
  9955. func _XRenderComputeX(tls *libc.TLS, line uintptr, y TXFixed) (r TXFixed) {
  9956. var dx, dy TXFixed
  9957. var ex float64
  9958. _, _, _ = dx, dy, ex
  9959. dx = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fx - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx
  9960. ex = float64(float64(y-(*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy) * float64(dx))
  9961. dy = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fy - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy
  9962. return (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx + int32(ex/float64(dy))
  9963. }
  9964. func _XRenderComputeInverseSlope(tls *libc.TLS, l uintptr) (r float64) {
  9965. return float64((*TXLineFixed)(unsafe.Pointer(l)).Fp2.Fx-(*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fx) / libc.Float64FromInt32(65536) / (float64((*TXLineFixed)(unsafe.Pointer(l)).Fp2.Fy-(*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fy) / libc.Float64FromInt32(65536))
  9966. }
  9967. func _XRenderComputeXIntercept(tls *libc.TLS, l uintptr, inverse_slope float64) (r float64) {
  9968. return float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fx)/libc.Float64FromInt32(65536) - TXDouble(inverse_slope*(float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fy)/libc.Float64FromInt32(65536)))
  9969. }
  9970. func _XRenderComputeIntersect(tls *libc.TLS, l1 uintptr, l2 uintptr) (r TXFixed) {
  9971. var b1, b2, m1, m2 float64
  9972. _, _, _, _ = b1, b2, m1, m2
  9973. /*
  9974. * x = m1y + b1
  9975. * x = m2y + b2
  9976. * m1y + b1 = m2y + b2
  9977. * y * (m1 - m2) = b2 - b1
  9978. * y = (b2 - b1) / (m1 - m2)
  9979. */
  9980. m1 = _XRenderComputeInverseSlope(tls, l1)
  9981. b1 = _XRenderComputeXIntercept(tls, l1, m1)
  9982. m2 = _XRenderComputeInverseSlope(tls, l2)
  9983. b2 = _XRenderComputeXIntercept(tls, l2, m2)
  9984. return int32(float64((b2 - b1) / (m1 - m2) * libc.Float64FromInt32(65536)))
  9985. }
  9986. func _XRenderComputeTrapezoids(tls *libc.TLS, edges uintptr, nedges int32, winding int32, traps uintptr) (r int32) {
  9987. var active, e, en, next, v6 uintptr
  9988. var inactive, ntraps int32
  9989. var intersect, next_y, y TXFixed
  9990. var v7 bool
  9991. _, _, _, _, _, _, _, _, _, _, _ = active, e, en, inactive, intersect, next, next_y, ntraps, y, v6, v7
  9992. ntraps = 0
  9993. libc.Xqsort(tls, edges, libc.Uint64FromInt32(nedges), uint64(40), __ccgo_fp(_CompareEdge))
  9994. y = (*(*TEdge)(unsafe.Pointer(edges))).Fedge.Fp1.Fy
  9995. active = libc.UintptrFromInt32(0)
  9996. inactive = 0
  9997. for active != 0 || inactive < nedges {
  9998. /* insert new active edges into list */
  9999. for inactive < nedges {
  10000. e = edges + uintptr(inactive)*40
  10001. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp1.Fy > y {
  10002. break
  10003. }
  10004. /* move this edge into the active list */
  10005. inactive++
  10006. (*TEdge)(unsafe.Pointer(e)).Fnext = active
  10007. (*TEdge)(unsafe.Pointer(e)).Fprev = libc.UintptrFromInt32(0)
  10008. if active != 0 {
  10009. (*TEdge)(unsafe.Pointer(active)).Fprev = e
  10010. }
  10011. active = e
  10012. }
  10013. /* compute x coordinates along this group */
  10014. e = active
  10015. for {
  10016. if !(e != 0) {
  10017. break
  10018. }
  10019. (*TEdge)(unsafe.Pointer(e)).Fcurrent_x = _XRenderComputeX(tls, e, y)
  10020. goto _1
  10021. _1:
  10022. ;
  10023. e = (*TEdge)(unsafe.Pointer(e)).Fnext
  10024. }
  10025. /* sort active list */
  10026. e = active
  10027. for {
  10028. if !(e != 0) {
  10029. break
  10030. }
  10031. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10032. /*
  10033. * Find one later in the list that belongs before the
  10034. * current one
  10035. */
  10036. en = next
  10037. for {
  10038. if !(en != 0) {
  10039. break
  10040. }
  10041. if (*TEdge)(unsafe.Pointer(en)).Fcurrent_x < (*TEdge)(unsafe.Pointer(e)).Fcurrent_x || (*TEdge)(unsafe.Pointer(en)).Fcurrent_x == (*TEdge)(unsafe.Pointer(e)).Fcurrent_x && (*TEdge)(unsafe.Pointer(en)).Fedge.Fp2.Fx < (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fx {
  10042. /*
  10043. * insert en before e
  10044. *
  10045. * extract en
  10046. */
  10047. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(en)).Fnext
  10048. if (*TEdge)(unsafe.Pointer(en)).Fnext != 0 {
  10049. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(en)).Fprev
  10050. }
  10051. /*
  10052. * insert en
  10053. */
  10054. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10055. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = en
  10056. } else {
  10057. active = en
  10058. }
  10059. (*TEdge)(unsafe.Pointer(en)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10060. (*TEdge)(unsafe.Pointer(e)).Fprev = en
  10061. (*TEdge)(unsafe.Pointer(en)).Fnext = e
  10062. /*
  10063. * start over at en
  10064. */
  10065. next = en
  10066. break
  10067. }
  10068. goto _3
  10069. _3:
  10070. ;
  10071. en = (*TEdge)(unsafe.Pointer(en)).Fnext
  10072. }
  10073. goto _2
  10074. _2:
  10075. ;
  10076. e = next
  10077. }
  10078. /* find next inflection point */
  10079. next_y = (*TEdge)(unsafe.Pointer(active)).Fedge.Fp2.Fy
  10080. e = active
  10081. for {
  10082. if !(e != 0) {
  10083. break
  10084. }
  10085. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy < next_y {
  10086. next_y = (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy
  10087. }
  10088. en = (*TEdge)(unsafe.Pointer(e)).Fnext
  10089. /* check intersect */
  10090. if en != 0 && (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fx > (*TEdge)(unsafe.Pointer(en)).Fedge.Fp2.Fx {
  10091. intersect = _XRenderComputeIntersect(tls, e, (*TEdge)(unsafe.Pointer(e)).Fnext)
  10092. /* make sure this point is below the actual intersection */
  10093. intersect = intersect + int32(1)
  10094. if intersect < next_y {
  10095. next_y = intersect
  10096. }
  10097. }
  10098. goto _4
  10099. _4:
  10100. ;
  10101. e = en
  10102. }
  10103. /* check next inactive point */
  10104. if inactive < nedges && (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy < next_y {
  10105. next_y = (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy
  10106. }
  10107. /* walk the list generating trapezoids */
  10108. e = active
  10109. for {
  10110. if v7 = e != 0; v7 {
  10111. v6 = (*TEdge)(unsafe.Pointer(e)).Fnext
  10112. en = v6
  10113. }
  10114. if !(v7 && v6 != 0) {
  10115. break
  10116. }
  10117. (*TXTrapezoid)(unsafe.Pointer(traps)).Ftop = y
  10118. (*TXTrapezoid)(unsafe.Pointer(traps)).Fbottom = next_y
  10119. (*TXTrapezoid)(unsafe.Pointer(traps)).Fleft = (*TEdge)(unsafe.Pointer(e)).Fedge
  10120. (*TXTrapezoid)(unsafe.Pointer(traps)).Fright = (*TEdge)(unsafe.Pointer(en)).Fedge
  10121. traps += 40
  10122. ntraps++
  10123. goto _5
  10124. _5:
  10125. ;
  10126. e = (*TEdge)(unsafe.Pointer(en)).Fnext
  10127. }
  10128. y = next_y
  10129. /* delete inactive edges from list */
  10130. e = active
  10131. for {
  10132. if !(e != 0) {
  10133. break
  10134. }
  10135. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10136. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy <= y {
  10137. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10138. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(e)).Fnext
  10139. } else {
  10140. active = (*TEdge)(unsafe.Pointer(e)).Fnext
  10141. }
  10142. if (*TEdge)(unsafe.Pointer(e)).Fnext != 0 {
  10143. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10144. }
  10145. }
  10146. goto _8
  10147. _8:
  10148. ;
  10149. e = next
  10150. }
  10151. }
  10152. return ntraps
  10153. }
  10154. func XXRenderCompositeDoublePoly(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, xDst int32, yDst int32, fpoints uintptr, npoints int32, winding int32) {
  10155. var bottom, firstx, firsty, prevx, prevy, top, x, y TXFixed
  10156. var edges, traps uintptr
  10157. var i, nedges, ntraps int32
  10158. var v1 uint64
  10159. _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, edges, firstx, firsty, i, nedges, ntraps, prevx, prevy, top, traps, x, y, v1
  10160. prevx = 0
  10161. prevy = 0
  10162. firstx = 0
  10163. firsty = 0
  10164. top = 0
  10165. bottom = 0 /* GCCism */
  10166. if libc.Uint64FromInt32(npoints)*uint64(40)+libc.Uint64FromInt32(npoints*npoints)*uint64(40) == uint64(0) {
  10167. v1 = uint64(1)
  10168. } else {
  10169. v1 = libc.Uint64FromInt32(npoints)*uint64(40) + libc.Uint64FromInt32(npoints*npoints)*uint64(40)
  10170. }
  10171. edges = libc.Xmalloc(tls, v1)
  10172. if !(edges != 0) {
  10173. return
  10174. }
  10175. traps = edges + uintptr(npoints)*40
  10176. nedges = 0
  10177. i = 0
  10178. for {
  10179. if !(i <= npoints) {
  10180. break
  10181. }
  10182. if i == npoints {
  10183. x = firstx
  10184. y = firsty
  10185. } else {
  10186. x = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fx * libc.Float64FromInt32(65536)))
  10187. y = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fy * libc.Float64FromInt32(65536)))
  10188. }
  10189. if i != 0 {
  10190. if y < top {
  10191. top = y
  10192. } else {
  10193. if y > bottom {
  10194. bottom = y
  10195. }
  10196. }
  10197. if prevy < y {
  10198. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = prevx
  10199. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = prevy
  10200. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = x
  10201. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = y
  10202. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = int32(m_True)
  10203. nedges++
  10204. } else {
  10205. if prevy > y {
  10206. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = x
  10207. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = y
  10208. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = prevx
  10209. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = prevy
  10210. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = m_False
  10211. nedges++
  10212. }
  10213. }
  10214. /* drop horizontal edges */
  10215. } else {
  10216. top = y
  10217. bottom = y
  10218. firstx = x
  10219. firsty = y
  10220. }
  10221. prevx = x
  10222. prevy = y
  10223. goto _2
  10224. _2:
  10225. ;
  10226. i++
  10227. }
  10228. ntraps = _XRenderComputeTrapezoids(tls, edges, nedges, winding, traps)
  10229. /* XXX adjust xSrc/xDst */
  10230. XXRenderCompositeTrapezoids(tls, dpy, op, src, dst, maskFormat, xSrc, ySrc, traps, ntraps)
  10231. libc.Xfree(tls, edges)
  10232. }
  10233. /*
  10234. * Xlib uses long for 32-bit values. Xrender uses int. This
  10235. * matters on alpha. Note that this macro assumes that int is 32 bits
  10236. * except on WORD64 machines where it is 64 bits.
  10237. */
  10238. func XXRenderCompositeTrapezoids(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, traps uintptr, ntrap int32) {
  10239. bp := tls.Alloc(16)
  10240. defer tls.Free(16)
  10241. var _BRlen TCARD32
  10242. var info, req, p3, p4 uintptr
  10243. var len1 int64
  10244. var max_req, v1, v2 uint64
  10245. var n int32
  10246. var _ /* _BRdat at bp+0 */ TCARD64
  10247. _, _, _, _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1, v2, p3, p4
  10248. info = XXRenderFindDisplay(tls, dpy)
  10249. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10250. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  10251. } else {
  10252. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  10253. }
  10254. max_req = v1
  10255. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10256. return
  10257. }
  10258. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10259. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10260. }
  10261. for ntrap != 0 {
  10262. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTrapezoids), uint64(m_sz_xRenderTrapezoidsReq))
  10263. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10264. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTrapezoids)
  10265. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10266. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10267. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10268. if maskFormat != 0 {
  10269. v2 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10270. } else {
  10271. v2 = uint64(0)
  10272. }
  10273. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v2)
  10274. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10275. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10276. n = ntrap
  10277. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10278. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) {
  10279. n = libc.Int32FromUint64((max_req - uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2)))
  10280. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10281. }
  10282. if libc.Int64FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10283. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10284. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10285. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10286. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10287. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10288. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10289. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10290. } else {
  10291. len1 = len1
  10292. p3 = req + 2
  10293. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10294. }
  10295. } else {
  10296. p4 = req + 2
  10297. *(*TCARD16)(unsafe.Pointer(p4)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p4))) + len1)
  10298. }
  10299. len1 <<= int64(2)
  10300. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10301. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt32(int32(len1)))
  10302. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10303. } else {
  10304. libx11.X_XSend(tls, dpy, traps, len1)
  10305. }
  10306. ntrap -= n
  10307. traps += uintptr(n) * 40
  10308. }
  10309. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10310. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10311. }
  10312. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10313. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10314. }
  10315. }
  10316. /*
  10317. * Xlib uses long for 32-bit values. Xrender uses int. This
  10318. * matters on alpha. Note that this macro assumes that int is 32 bits
  10319. * except on WORD64 machines where it is 64 bits.
  10320. */
  10321. func XXRenderCompositeTriangles(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, triangles uintptr, ntriangle int32) {
  10322. bp := tls.Alloc(16)
  10323. defer tls.Free(16)
  10324. var _BRlen TCARD32
  10325. var info, req, p2, p3 uintptr
  10326. var len1 int64
  10327. var n int32
  10328. var v1 uint64
  10329. var _ /* _BRdat at bp+0 */ TCARD64
  10330. _, _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1, p2, p3
  10331. info = XXRenderFindDisplay(tls, dpy)
  10332. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10333. return
  10334. }
  10335. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10336. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10337. }
  10338. for ntriangle != 0 {
  10339. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriangles), uint64(m_sz_xRenderTrianglesReq))
  10340. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10341. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriangles)
  10342. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10343. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10344. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10345. if maskFormat != 0 {
  10346. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10347. } else {
  10348. v1 = uint64(0)
  10349. }
  10350. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10351. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10352. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10353. n = ntriangle
  10354. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10355. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) {
  10356. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) / libc.Uint32FromInt32(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2)))
  10357. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10358. }
  10359. if libc.Int64FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10360. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10361. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10362. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10363. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10364. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10365. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10366. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10367. } else {
  10368. len1 = len1
  10369. p2 = req + 2
  10370. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10371. }
  10372. } else {
  10373. p3 = req + 2
  10374. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10375. }
  10376. len1 <<= int64(2)
  10377. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10378. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, triangles, libc.Uint64FromInt32(int32(len1)))
  10379. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10380. } else {
  10381. libx11.X_XSend(tls, dpy, triangles, len1)
  10382. }
  10383. ntriangle -= n
  10384. triangles += uintptr(n) * 24
  10385. }
  10386. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10387. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10388. }
  10389. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10390. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10391. }
  10392. }
  10393. func XXRenderCompositeTriStrip(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10394. bp := tls.Alloc(16)
  10395. defer tls.Free(16)
  10396. var _BRlen TCARD32
  10397. var info, req, p2, p3 uintptr
  10398. var len1 int64
  10399. var n int32
  10400. var v1 uint64
  10401. var _ /* _BRdat at bp+0 */ TCARD64
  10402. _, _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1, p2, p3
  10403. info = XXRenderFindDisplay(tls, dpy)
  10404. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10405. return
  10406. }
  10407. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10408. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10409. }
  10410. for npoint > int32(2) {
  10411. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriStrip), uint64(m_sz_xRenderTriStripReq))
  10412. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10413. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriStrip)
  10414. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10415. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10416. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10417. if maskFormat != 0 {
  10418. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10419. } else {
  10420. v1 = uint64(0)
  10421. }
  10422. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10423. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10424. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10425. n = npoint
  10426. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10427. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)) {
  10428. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)) / libc.Uint32FromInt32(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2)))
  10429. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10430. }
  10431. if libc.Int64FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10432. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10433. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10434. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10435. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10436. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10437. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10438. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10439. } else {
  10440. len1 = len1
  10441. p2 = req + 2
  10442. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10443. }
  10444. } else {
  10445. p3 = req + 2
  10446. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10447. }
  10448. len1 <<= int64(2)
  10449. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10450. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt32(int32(len1)))
  10451. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10452. } else {
  10453. libx11.X_XSend(tls, dpy, points, len1)
  10454. }
  10455. npoint -= n - int32(2)
  10456. points += uintptr(n-libc.Int32FromInt32(2)) * 8
  10457. }
  10458. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10459. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10460. }
  10461. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10462. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10463. }
  10464. }
  10465. func XXRenderCompositeTriFan(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10466. bp := tls.Alloc(16)
  10467. defer tls.Free(16)
  10468. var _BRlen TCARD32
  10469. var first, info, p, req, p2, p3 uintptr
  10470. var len1 int64
  10471. var n int32
  10472. var v1 uint64
  10473. var _ /* _BRdat at bp+0 */ TCARD64
  10474. _, _, _, _, _, _, _, _, _, _ = _BRlen, first, info, len1, n, p, req, v1, p2, p3
  10475. info = XXRenderFindDisplay(tls, dpy)
  10476. first = points
  10477. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10478. return
  10479. }
  10480. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10481. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10482. }
  10483. points += 8
  10484. npoint--
  10485. for npoint > int32(1) {
  10486. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriFan), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderTriFanReq)+libc.Int32FromInt32(m_sz_xPointFixed)))
  10487. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10488. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriFan)
  10489. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10490. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10491. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10492. if maskFormat != 0 {
  10493. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10494. } else {
  10495. v1 = uint64(0)
  10496. }
  10497. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10498. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10499. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10500. p = req + libc.UintptrFromInt32(1)*24
  10501. (*TxPointFixed)(unsafe.Pointer(p)).Fx = (*TXPointFixed)(unsafe.Pointer(first)).Fx
  10502. (*TxPointFixed)(unsafe.Pointer(p)).Fy = (*TXPointFixed)(unsafe.Pointer(first)).Fy
  10503. n = npoint
  10504. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10505. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)) {
  10506. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)) / libc.Uint32FromInt32(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2)))
  10507. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10508. }
  10509. if libc.Int64FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10510. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10511. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10512. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10513. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10514. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10515. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10516. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10517. } else {
  10518. len1 = len1
  10519. p2 = req + 2
  10520. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10521. }
  10522. } else {
  10523. p3 = req + 2
  10524. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10525. }
  10526. len1 <<= int64(2)
  10527. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10528. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt32(int32(len1)))
  10529. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10530. } else {
  10531. libx11.X_XSend(tls, dpy, points, len1)
  10532. }
  10533. npoint -= n - int32(1)
  10534. points += uintptr(n-libc.Int32FromInt32(1)) * 8
  10535. }
  10536. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10537. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10538. }
  10539. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10540. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10541. }
  10542. }
  10543. // C documentation
  10544. //
  10545. // /*
  10546. // * XRenderExtFindDisplay - look for a display in this extension; keeps a
  10547. // * cache of the most-recently used for efficiency. (Replaces
  10548. // * XextFindDisplay.)
  10549. // */
  10550. func _XRenderExtFindDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r uintptr) {
  10551. var dpyinfo, v1 uintptr
  10552. _, _ = dpyinfo, v1
  10553. /*
  10554. * see if this was the most recently accessed display
  10555. */
  10556. v1 = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur
  10557. dpyinfo = v1
  10558. if v1 != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  10559. return dpyinfo
  10560. }
  10561. /*
  10562. * look for display in list
  10563. */
  10564. if libx11.X_XLockMutex_fn != 0 {
  10565. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10566. }
  10567. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  10568. for {
  10569. if !(dpyinfo != 0) {
  10570. break
  10571. }
  10572. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  10573. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo /* cache most recently used */
  10574. if libx11.X_XUnlockMutex_fn != 0 {
  10575. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10576. }
  10577. return dpyinfo
  10578. }
  10579. goto _2
  10580. _2:
  10581. ;
  10582. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  10583. }
  10584. if libx11.X_XUnlockMutex_fn != 0 {
  10585. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10586. }
  10587. return libc.UintptrFromInt32(0)
  10588. }
  10589. /*
  10590. * If the server is missing support for any of the required depths on
  10591. * any screen, tell the application that Render is not present.
  10592. */
  10593. /*
  10594. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  10595. */
  10596. type TDepthCheckRec = struct {
  10597. Fnext uintptr
  10598. Fdpy uintptr
  10599. Fmissing TCARD32
  10600. Fserial uint64
  10601. }
  10602. /*
  10603. * If the server is missing support for any of the required depths on
  10604. * any screen, tell the application that Render is not present.
  10605. */
  10606. /*
  10607. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  10608. */
  10609. type T_DepthCheckRec = TDepthCheckRec
  10610. type TDepthCheckPtr = uintptr
  10611. var _depthChecks TDepthCheckPtr
  10612. func _XRenderDepthCheckErrorHandler(tls *libc.TLS, dpy uintptr, evt uintptr) (r int32) {
  10613. var d TDepthCheckPtr
  10614. _ = d
  10615. if libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Frequest_code) == int32(m_X_CreatePixmap) && libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Ferror_code) == int32(m_BadValue) {
  10616. if libx11.X_XLockMutex_fn != 0 {
  10617. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10618. }
  10619. d = _depthChecks
  10620. for {
  10621. if !(d != 0) {
  10622. break
  10623. }
  10624. if (*T_DepthCheckRec)(unsafe.Pointer(d)).Fdpy == dpy {
  10625. if libc.Int64FromUint64((*TXErrorEvent)(unsafe.Pointer(evt)).Fserial-(*T_DepthCheckRec)(unsafe.Pointer(d)).Fserial) >= 0 {
  10626. *(*TCARD32)(unsafe.Pointer(d + 16)) |= uint32(1) << ((*TXErrorEvent)(unsafe.Pointer(evt)).Fresourceid - uint64(1))
  10627. }
  10628. break
  10629. }
  10630. goto _1
  10631. _1:
  10632. ;
  10633. d = (*T_DepthCheckRec)(unsafe.Pointer(d)).Fnext
  10634. }
  10635. if libx11.X_XUnlockMutex_fn != 0 {
  10636. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10637. }
  10638. }
  10639. return 0
  10640. }
  10641. func _XRenderHasDepths(tls *libc.TLS, dpy uintptr) (r int32) {
  10642. bp := tls.Alloc(32)
  10643. defer tls.Free(32)
  10644. var d, s int32
  10645. var depths, missing TCARD32
  10646. var dp, scr uintptr
  10647. var p TPixmap
  10648. var previousHandler TXErrorHandler
  10649. var _ /* dc at bp+0 */ TDepthCheckRec
  10650. _, _, _, _, _, _, _, _ = d, depths, dp, missing, p, previousHandler, s, scr
  10651. s = 0
  10652. for {
  10653. if !(s < (*struct {
  10654. Fext_data uintptr
  10655. Fprivate1 uintptr
  10656. Ffd int32
  10657. Fprivate2 int32
  10658. Fproto_major_version int32
  10659. Fproto_minor_version int32
  10660. Fvendor uintptr
  10661. Fprivate3 TXID
  10662. Fprivate4 TXID
  10663. Fprivate5 TXID
  10664. Fprivate6 int32
  10665. Fresource_alloc uintptr
  10666. Fbyte_order int32
  10667. Fbitmap_unit int32
  10668. Fbitmap_pad int32
  10669. Fbitmap_bit_order int32
  10670. Fnformats int32
  10671. Fpixmap_format uintptr
  10672. Fprivate8 int32
  10673. Frelease int32
  10674. Fprivate9 uintptr
  10675. Fprivate10 uintptr
  10676. Fqlen int32
  10677. Flast_request_read uint64
  10678. Frequest uint64
  10679. Fprivate11 TXPointer
  10680. Fprivate12 TXPointer
  10681. Fprivate13 TXPointer
  10682. Fprivate14 TXPointer
  10683. Fmax_request_size uint32
  10684. Fdb uintptr
  10685. Fprivate15 uintptr
  10686. Fdisplay_name uintptr
  10687. Fdefault_screen int32
  10688. Fnscreens int32
  10689. Fscreens uintptr
  10690. Fmotion_buffer uint64
  10691. Fprivate16 uint64
  10692. Fmin_keycode int32
  10693. Fmax_keycode int32
  10694. Fprivate17 TXPointer
  10695. Fprivate18 TXPointer
  10696. Fprivate19 int32
  10697. Fxdefaults uintptr
  10698. })(unsafe.Pointer(dpy)).Fnscreens) {
  10699. break
  10700. }
  10701. depths = uint32(0)
  10702. scr = (*struct {
  10703. Fext_data uintptr
  10704. Fprivate1 uintptr
  10705. Ffd int32
  10706. Fprivate2 int32
  10707. Fproto_major_version int32
  10708. Fproto_minor_version int32
  10709. Fvendor uintptr
  10710. Fprivate3 TXID
  10711. Fprivate4 TXID
  10712. Fprivate5 TXID
  10713. Fprivate6 int32
  10714. Fresource_alloc uintptr
  10715. Fbyte_order int32
  10716. Fbitmap_unit int32
  10717. Fbitmap_pad int32
  10718. Fbitmap_bit_order int32
  10719. Fnformats int32
  10720. Fpixmap_format uintptr
  10721. Fprivate8 int32
  10722. Frelease int32
  10723. Fprivate9 uintptr
  10724. Fprivate10 uintptr
  10725. Fqlen int32
  10726. Flast_request_read uint64
  10727. Frequest uint64
  10728. Fprivate11 TXPointer
  10729. Fprivate12 TXPointer
  10730. Fprivate13 TXPointer
  10731. Fprivate14 TXPointer
  10732. Fmax_request_size uint32
  10733. Fdb uintptr
  10734. Fprivate15 uintptr
  10735. Fdisplay_name uintptr
  10736. Fdefault_screen int32
  10737. Fnscreens int32
  10738. Fscreens uintptr
  10739. Fmotion_buffer uint64
  10740. Fprivate16 uint64
  10741. Fmin_keycode int32
  10742. Fmax_keycode int32
  10743. Fprivate17 TXPointer
  10744. Fprivate18 TXPointer
  10745. Fprivate19 int32
  10746. Fxdefaults uintptr
  10747. })(unsafe.Pointer(dpy)).Fscreens + uintptr(s)*128
  10748. d = 0
  10749. for {
  10750. if !(d < (*TScreen)(unsafe.Pointer(scr)).Fndepths) {
  10751. break
  10752. }
  10753. depths |= uint32(1) << ((*(*TDepth)(unsafe.Pointer((*TScreen)(unsafe.Pointer(scr)).Fdepths + uintptr(d)*16))).Fdepth - int32(1))
  10754. goto _2
  10755. _2:
  10756. ;
  10757. d++
  10758. }
  10759. missing = ^depths & (libc.Uint32FromUint32(1)<<(libc.Int32FromInt32(1)-libc.Int32FromInt32(1)) | libc.Uint32FromUint32(1)<<(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)) | libc.Uint32FromUint32(1)<<(libc.Int32FromInt32(8)-libc.Int32FromInt32(1)) | libc.Uint32FromUint32(1)<<(libc.Int32FromInt32(24)-libc.Int32FromInt32(1)) | libc.Uint32FromUint32(1)<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(1)))
  10760. if missing != 0 {
  10761. /*
  10762. * Ok, this is ugly. It should be sufficient at this
  10763. * point to just return False, but Xinerama is broken at
  10764. * this point and only advertises depths which have an
  10765. * associated visual. Of course, the other depths still
  10766. * work, but the only way to find out is to try them.
  10767. */
  10768. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fdpy = dpy
  10769. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing = uint32(0)
  10770. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fserial = libx11.XXNextRequest(tls, dpy)
  10771. if libx11.X_XLockMutex_fn != 0 {
  10772. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10773. }
  10774. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext = _depthChecks
  10775. _depthChecks = bp
  10776. if libx11.X_XUnlockMutex_fn != 0 {
  10777. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10778. }
  10779. /*
  10780. * I suspect this is not really thread safe, but Xlib doesn't
  10781. * provide a lot of options here
  10782. */
  10783. previousHandler = libx11.XXSetErrorHandler(tls, __ccgo_fp(_XRenderDepthCheckErrorHandler))
  10784. /*
  10785. * Try each missing depth and see if pixmap creation succeeds
  10786. */
  10787. d = int32(1)
  10788. for {
  10789. if !(d <= int32(32)) {
  10790. break
  10791. }
  10792. /* don't check depth 1 == Xcursor recurses... */
  10793. if missing&(uint32(1)<<(d-int32(1))) != 0 && d != int32(1) {
  10794. p = libx11.XXCreatePixmap(tls, dpy, (*TScreen)(unsafe.Pointer((*struct {
  10795. Fext_data uintptr
  10796. Fprivate1 uintptr
  10797. Ffd int32
  10798. Fprivate2 int32
  10799. Fproto_major_version int32
  10800. Fproto_minor_version int32
  10801. Fvendor uintptr
  10802. Fprivate3 TXID
  10803. Fprivate4 TXID
  10804. Fprivate5 TXID
  10805. Fprivate6 int32
  10806. Fresource_alloc uintptr
  10807. Fbyte_order int32
  10808. Fbitmap_unit int32
  10809. Fbitmap_pad int32
  10810. Fbitmap_bit_order int32
  10811. Fnformats int32
  10812. Fpixmap_format uintptr
  10813. Fprivate8 int32
  10814. Frelease int32
  10815. Fprivate9 uintptr
  10816. Fprivate10 uintptr
  10817. Fqlen int32
  10818. Flast_request_read uint64
  10819. Frequest uint64
  10820. Fprivate11 TXPointer
  10821. Fprivate12 TXPointer
  10822. Fprivate13 TXPointer
  10823. Fprivate14 TXPointer
  10824. Fmax_request_size uint32
  10825. Fdb uintptr
  10826. Fprivate15 uintptr
  10827. Fdisplay_name uintptr
  10828. Fdefault_screen int32
  10829. Fnscreens int32
  10830. Fscreens uintptr
  10831. Fmotion_buffer uint64
  10832. Fprivate16 uint64
  10833. Fmin_keycode int32
  10834. Fmax_keycode int32
  10835. Fprivate17 TXPointer
  10836. Fprivate18 TXPointer
  10837. Fprivate19 int32
  10838. Fxdefaults uintptr
  10839. })(unsafe.Pointer(dpy)).Fscreens+uintptr(s)*128)).Froot, uint32(1), uint32(1), libc.Uint32FromInt32(d))
  10840. libx11.XXFreePixmap(tls, dpy, p)
  10841. }
  10842. goto _3
  10843. _3:
  10844. ;
  10845. d++
  10846. }
  10847. libx11.XXSync(tls, dpy, m_False)
  10848. libx11.XXSetErrorHandler(tls, previousHandler)
  10849. /*
  10850. * Unhook from the list of depth check records
  10851. */
  10852. if libx11.X_XLockMutex_fn != 0 {
  10853. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10854. }
  10855. dp = uintptr(unsafe.Pointer(&_depthChecks))
  10856. for {
  10857. if !(*(*uintptr)(unsafe.Pointer(dp)) != 0) {
  10858. break
  10859. }
  10860. if *(*uintptr)(unsafe.Pointer(dp)) == bp {
  10861. *(*uintptr)(unsafe.Pointer(dp)) = (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext
  10862. break
  10863. }
  10864. goto _4
  10865. _4:
  10866. ;
  10867. dp = *(*uintptr)(unsafe.Pointer(dp))
  10868. }
  10869. if libx11.X_XUnlockMutex_fn != 0 {
  10870. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10871. }
  10872. if (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing != 0 {
  10873. return m_False
  10874. }
  10875. }
  10876. goto _1
  10877. _1:
  10878. ;
  10879. s++
  10880. }
  10881. return int32(m_True)
  10882. }
  10883. // C documentation
  10884. //
  10885. // /*
  10886. // * XRenderExtAddDisplay - add a display to this extension. (Replaces
  10887. // * XextAddDisplay)
  10888. // */
  10889. func _XRenderExtAddDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr, ext_name uintptr) (r uintptr) {
  10890. var codes, dpyinfo uintptr
  10891. _, _ = codes, dpyinfo
  10892. dpyinfo = libc.Xmalloc(tls, libc.Uint64FromInt64(32))
  10893. if !(dpyinfo != 0) {
  10894. return libc.UintptrFromInt32(0)
  10895. }
  10896. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay = dpy
  10897. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Finfo = libc.UintptrFromInt32(0)
  10898. if _XRenderHasDepths(tls, dpy) != 0 {
  10899. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libx11.XXInitExtension(tls, dpy, ext_name)
  10900. } else {
  10901. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libc.UintptrFromInt32(0)
  10902. }
  10903. /*
  10904. * if the server has the extension, then we can initialize the
  10905. * appropriate function vectors
  10906. */
  10907. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes != 0 {
  10908. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  10909. } else {
  10910. /* The server doesn't have this extension.
  10911. * Use a private Xlib-internal extension to hang the close_display
  10912. * hook on so that the "cache" (extinfo->cur) is properly cleaned.
  10913. * (XBUG 7955)
  10914. */
  10915. codes = libx11.XXAddExtension(tls, dpy)
  10916. if !(codes != 0) {
  10917. libx11.XXFree(tls, dpyinfo)
  10918. return libc.UintptrFromInt32(0)
  10919. }
  10920. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer(codes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  10921. }
  10922. /*
  10923. * now, chain it onto the list
  10924. */
  10925. if libx11.X_XLockMutex_fn != 0 {
  10926. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10927. }
  10928. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  10929. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = dpyinfo
  10930. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo
  10931. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays++
  10932. if libx11.X_XUnlockMutex_fn != 0 {
  10933. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10934. }
  10935. return dpyinfo
  10936. }
  10937. // C documentation
  10938. //
  10939. // /*
  10940. // * XRenderExtRemoveDisplay - remove the indicated display from the
  10941. // * extension object. (Replaces XextRemoveDisplay.)
  10942. // */
  10943. func _XRenderExtRemoveDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r int32) {
  10944. var dpyinfo, prev uintptr
  10945. _, _ = dpyinfo, prev
  10946. /*
  10947. * locate this display and its back link so that it can be removed
  10948. */
  10949. if libx11.X_XLockMutex_fn != 0 {
  10950. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10951. }
  10952. prev = libc.UintptrFromInt32(0)
  10953. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  10954. for {
  10955. if !(dpyinfo != 0) {
  10956. break
  10957. }
  10958. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  10959. break
  10960. }
  10961. prev = dpyinfo
  10962. goto _1
  10963. _1:
  10964. ;
  10965. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  10966. }
  10967. if !(dpyinfo != 0) {
  10968. if libx11.X_XUnlockMutex_fn != 0 {
  10969. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10970. }
  10971. return 0 /* hmm, actually an error */
  10972. }
  10973. /*
  10974. * remove the display from the list; handles going to zero
  10975. */
  10976. if prev != 0 {
  10977. (*TXRenderExtDisplayInfo)(unsafe.Pointer(prev)).Fnext = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  10978. } else {
  10979. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  10980. }
  10981. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays--
  10982. if dpyinfo == (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur {
  10983. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = libc.UintptrFromInt32(0)
  10984. } /* flush cache */
  10985. if libx11.X_XUnlockMutex_fn != 0 {
  10986. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10987. }
  10988. libc.Xfree(tls, dpyinfo)
  10989. return int32(1)
  10990. }
  10991. func XXRenderFindDisplay(tls *libc.TLS, dpy uintptr) (r uintptr) {
  10992. var dpyinfo uintptr
  10993. _ = dpyinfo
  10994. dpyinfo = _XRenderExtFindDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  10995. if !(dpyinfo != 0) {
  10996. dpyinfo = _XRenderExtAddDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy, uintptr(unsafe.Pointer(&XXRenderExtensionName)))
  10997. }
  10998. return dpyinfo
  10999. }
  11000. func _XRenderCloseDisplay(tls *libc.TLS, dpy uintptr, codes uintptr) (r int32) {
  11001. var info uintptr
  11002. _ = info
  11003. info = XXRenderFindDisplay(tls, dpy)
  11004. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11005. libx11.XXFree(tls, (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo)
  11006. }
  11007. return _XRenderExtRemoveDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  11008. }
  11009. /****************************************************************************
  11010. * *
  11011. * Render public interfaces *
  11012. * *
  11013. ****************************************************************************/
  11014. func XXRenderQueryExtension(tls *libc.TLS, dpy uintptr, event_basep uintptr, error_basep uintptr) (r int32) {
  11015. var info uintptr
  11016. _ = info
  11017. info = XXRenderFindDisplay(tls, dpy)
  11018. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0 {
  11019. *(*int32)(unsafe.Pointer(event_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_event
  11020. *(*int32)(unsafe.Pointer(error_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_error
  11021. return int32(m_True)
  11022. } else {
  11023. return m_False
  11024. }
  11025. return r
  11026. }
  11027. func XXRenderQueryVersion(tls *libc.TLS, dpy uintptr, major_versionp uintptr, minor_versionp uintptr) (r int32) {
  11028. var info, xri uintptr
  11029. _, _ = info, xri
  11030. info = XXRenderFindDisplay(tls, dpy)
  11031. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11032. return 0
  11033. }
  11034. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11035. return 0
  11036. }
  11037. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11038. *(*int32)(unsafe.Pointer(major_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version
  11039. *(*int32)(unsafe.Pointer(minor_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version
  11040. return int32(1)
  11041. }
  11042. func __XRenderFindFormat(tls *libc.TLS, xri uintptr, format TPictFormat) (r uintptr) {
  11043. var nf int32
  11044. _ = nf
  11045. nf = 0
  11046. for {
  11047. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11048. break
  11049. }
  11050. if (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid == format {
  11051. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11052. }
  11053. goto _1
  11054. _1:
  11055. ;
  11056. nf++
  11057. }
  11058. return libc.UintptrFromInt32(0)
  11059. }
  11060. func __XRenderFindVisual(tls *libc.TLS, dpy uintptr, vid TVisualID) (r uintptr) {
  11061. return libx11.X_XVIDtoVisual(tls, dpy, vid)
  11062. }
  11063. type T_XrenderVersionState = struct {
  11064. Fversion_seq uint64
  11065. Ferror1 int32
  11066. Fmajor_version int32
  11067. Fminor_version int32
  11068. }
  11069. type T_renderVersionState = T_XrenderVersionState
  11070. func __XRenderVersionHandler(tls *libc.TLS, dpy uintptr, rep uintptr, buf uintptr, len1 int32, data TXPointer) (r int32) {
  11071. bp := tls.Alloc(32)
  11072. defer tls.Free(32)
  11073. var repl, state uintptr
  11074. var _ /* replbuf at bp+0 */ TxRenderQueryVersionReply
  11075. _, _ = repl, state
  11076. state = data
  11077. if (*TDisplay)(unsafe.Pointer(dpy)).Flast_request_read != (*T_XrenderVersionState)(unsafe.Pointer(state)).Fversion_seq {
  11078. return m_False
  11079. }
  11080. if libc.Int32FromUint8((*TxReply)(unsafe.Pointer(rep)).Fgeneric.Ftype1) == m_X_Error {
  11081. (*T_XrenderVersionState)(unsafe.Pointer(state)).Ferror1 = int32(m_True)
  11082. return m_False
  11083. }
  11084. repl = libx11.X_XGetAsyncReply(tls, dpy, bp, rep, buf, len1, (libc.Int32FromInt32(m_sz_xRenderQueryVersionReply)-libc.Int32FromInt32(m_sz_xReply))>>libc.Int32FromInt32(2), int32(m_True))
  11085. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fmajor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FmajorVersion)
  11086. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fminor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FminorVersion)
  11087. return int32(m_True)
  11088. }
  11089. func XXRenderQueryFormats(tls *libc.TLS, dpy uintptr) (r int32) {
  11090. bp := tls.Alloc(80)
  11091. defer tls.Free(80)
  11092. var depth, format, info, req, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri uintptr
  11093. var nbytes, rlength, v1, v2, v3 uint64
  11094. var nd, nf, ns, nv int32
  11095. var _ /* async at bp+0 */ T_XAsyncHandler
  11096. var _ /* async_state at bp+24 */ T_XrenderVersionState
  11097. var _ /* rep at bp+48 */ TxRenderQueryPictFormatsReply
  11098. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = depth, format, info, nbytes, nd, nf, ns, nv, req, rlength, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri, v1, v2, v3
  11099. info = XXRenderFindDisplay(tls, dpy)
  11100. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11101. return 0
  11102. }
  11103. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11104. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  11105. }
  11106. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11107. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11108. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11109. }
  11110. return int32(1)
  11111. }
  11112. vreq = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryVersion), uint64(m_sz_xRenderQueryVersionReq))
  11113. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11114. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FrenderReqType = uint8(m_X_RenderQueryVersion)
  11115. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FmajorVersion = uint32(m_RENDER_MAJOR)
  11116. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FminorVersion = uint32(m_RENDER_MINOR)
  11117. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fversion_seq = (*TDisplay)(unsafe.Pointer(dpy)).Frequest
  11118. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 = m_False
  11119. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fnext = (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers
  11120. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fhandler = __ccgo_fp(__XRenderVersionHandler)
  11121. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fdata = bp + 24
  11122. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = bp
  11123. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictFormats), uint64(m_sz_xRenderQueryPictFormatsReq))
  11124. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11125. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictFormats)
  11126. if !(libx11.X_XReply(tls, dpy, bp+48, 0, m_xFalse) != 0) {
  11127. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11128. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11129. } else {
  11130. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11131. }
  11132. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11133. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11134. }
  11135. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11136. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11137. }
  11138. return 0
  11139. }
  11140. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11141. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11142. } else {
  11143. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11144. }
  11145. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 != 0 {
  11146. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11147. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11148. }
  11149. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11150. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11151. }
  11152. return 0
  11153. }
  11154. /*
  11155. * Check for the lack of sub-pixel data
  11156. */
  11157. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version == 0 && (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version < int32(6) {
  11158. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel = uint32(0)
  11159. }
  11160. if uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(40) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(32) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(16) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals) < libc.Uint64FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(16) && (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel < libc.Uint32FromInt32(libc.Int32FromInt32(m_INT_MAX)/libc.Int32FromInt32(4)/libc.Int32FromInt32(4)) && (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m_INT_MAX)>>libc.Int32FromInt32(2)) {
  11161. if uint64(120)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*uint64(40)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*uint64(32)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*uint64(16)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)*uint64(16) == uint64(0) {
  11162. v1 = uint64(1)
  11163. } else {
  11164. v1 = uint64(120) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*uint64(40) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*uint64(32) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*uint64(16) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)*uint64(16)
  11165. }
  11166. xri = libc.Xmalloc(tls, v1)
  11167. rlength = uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*uint64(28) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*uint64(8) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*uint64(8) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)*uint64(8) + uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel*libc.Uint32FromInt32(4))
  11168. if rlength == uint64(0) {
  11169. v2 = uint64(1)
  11170. } else {
  11171. v2 = rlength
  11172. }
  11173. xData = libc.Xmalloc(tls, v2)
  11174. nbytes = uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength) << int32(2)
  11175. } else {
  11176. xri = libc.UintptrFromInt32(0)
  11177. xData = libc.UintptrFromInt32(0)
  11178. v3 = libc.Uint64FromInt32(0)
  11179. nbytes = v3
  11180. rlength = v3
  11181. }
  11182. if !(xri != 0) || !(xData != 0) || nbytes < rlength {
  11183. if xri != 0 {
  11184. libc.Xfree(tls, xri)
  11185. }
  11186. if xData != 0 {
  11187. libc.Xfree(tls, xData)
  11188. }
  11189. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11190. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11191. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11192. }
  11193. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11194. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11195. }
  11196. return 0
  11197. }
  11198. (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version
  11199. (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version
  11200. (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat = xri + libc.UintptrFromInt32(1)*120
  11201. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)
  11202. (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*40
  11203. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)
  11204. (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*32
  11205. (*TXRenderInfo)(unsafe.Pointer(xri)).Fndepth = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)
  11206. (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*16
  11207. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)
  11208. libx11.X_XRead(tls, dpy, xData, libc.Int64FromUint64(rlength))
  11209. format = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat
  11210. xFormat = xData
  11211. nf = 0
  11212. for {
  11213. if !(libc.Uint32FromInt32(nf) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats) {
  11214. break
  11215. }
  11216. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fid = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fid)
  11217. (*TXRenderPictFormat)(unsafe.Pointer(format)).Ftype1 = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Ftype1)
  11218. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdepth = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdepth)
  11219. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fred = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fred)
  11220. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FredMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FredMask)
  11221. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fgreen = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fgreen)
  11222. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FgreenMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FgreenMask)
  11223. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fblue = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fblue)
  11224. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FblueMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FblueMask)
  11225. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Falpha = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Falpha)
  11226. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FalphaMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FalphaMask)
  11227. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fcolormap = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fcolormap)
  11228. format += 40
  11229. xFormat += 28
  11230. goto _4
  11231. _4:
  11232. ;
  11233. nf++
  11234. }
  11235. xScreen = xFormat
  11236. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11237. depth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth
  11238. visual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11239. ns = 0
  11240. for {
  11241. if !(ns < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen) {
  11242. break
  11243. }
  11244. (*TXRenderScreen)(unsafe.Pointer(screen)).Fdepths = depth
  11245. (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths = libc.Int32FromUint32((*TxPictScreen)(unsafe.Pointer(xScreen)).FnDepth)
  11246. (*TXRenderScreen)(unsafe.Pointer(screen)).Ffallback = __XRenderFindFormat(tls, xri, uint64((*TxPictScreen)(unsafe.Pointer(xScreen)).Ffallback))
  11247. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = m_SubPixelUnknown
  11248. xDepth = xScreen + libc.UintptrFromInt32(1)*8
  11249. if libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths {
  11250. libc.Xfree(tls, xri)
  11251. libc.Xfree(tls, xData)
  11252. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11253. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11254. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11255. }
  11256. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11257. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11258. }
  11259. return 0
  11260. }
  11261. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths -= libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths)
  11262. nd = 0
  11263. for {
  11264. if !(nd < (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) {
  11265. break
  11266. }
  11267. (*TXRenderDepth)(unsafe.Pointer(depth)).Fdepth = libc.Int32FromUint8((*TxPictDepth)(unsafe.Pointer(xDepth)).Fdepth)
  11268. (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals = libc.Int32FromUint16((*TxPictDepth)(unsafe.Pointer(xDepth)).FnPictVisuals)
  11269. (*TXRenderDepth)(unsafe.Pointer(depth)).Fvisuals = visual
  11270. xVisual = xDepth + libc.UintptrFromInt32(1)*8
  11271. if libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals {
  11272. libc.Xfree(tls, xri)
  11273. libc.Xfree(tls, xData)
  11274. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11275. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11276. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11277. }
  11278. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11279. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11280. }
  11281. return 0
  11282. }
  11283. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals -= libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals)
  11284. nv = 0
  11285. for {
  11286. if !(nv < (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) {
  11287. break
  11288. }
  11289. (*TXRenderVisual)(unsafe.Pointer(visual)).Fvisual = __XRenderFindVisual(tls, dpy, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fvisual))
  11290. (*TXRenderVisual)(unsafe.Pointer(visual)).Fformat = __XRenderFindFormat(tls, xri, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fformat))
  11291. visual += 16
  11292. xVisual += 8
  11293. goto _7
  11294. _7:
  11295. ;
  11296. nv++
  11297. }
  11298. depth += 16
  11299. xDepth = xVisual
  11300. goto _6
  11301. _6:
  11302. ;
  11303. nd++
  11304. }
  11305. screen += 32
  11306. xScreen = xDepth
  11307. goto _5
  11308. _5:
  11309. ;
  11310. ns++
  11311. }
  11312. xSubpixel = xScreen
  11313. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11314. ns = 0
  11315. for {
  11316. if !(libc.Uint32FromInt32(ns) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel) {
  11317. break
  11318. }
  11319. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = libc.Int32FromUint32(*(*TCARD32)(unsafe.Pointer(xSubpixel)))
  11320. xSubpixel += 4
  11321. screen += 32
  11322. goto _8
  11323. _8:
  11324. ;
  11325. ns++
  11326. }
  11327. (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo = xri
  11328. /*
  11329. * Skip any extra data
  11330. */
  11331. if nbytes > rlength {
  11332. libx11.X_XEatData(tls, dpy, nbytes-rlength)
  11333. }
  11334. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11335. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11336. }
  11337. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11338. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11339. }
  11340. libc.Xfree(tls, xData)
  11341. return int32(1)
  11342. }
  11343. func XXRenderQuerySubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32) (r int32) {
  11344. var info, xri uintptr
  11345. _, _ = info, xri
  11346. info = XXRenderFindDisplay(tls, dpy)
  11347. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11348. return m_SubPixelUnknown
  11349. }
  11350. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11351. return m_SubPixelUnknown
  11352. }
  11353. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11354. return (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel
  11355. }
  11356. func XXRenderSetSubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32, subpixel int32) (r int32) {
  11357. var info, xri uintptr
  11358. _, _ = info, xri
  11359. info = XXRenderFindDisplay(tls, dpy)
  11360. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11361. return m_False
  11362. }
  11363. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11364. return m_False
  11365. }
  11366. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11367. (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel = subpixel
  11368. return int32(m_True)
  11369. }
  11370. func XXRenderFindVisualFormat(tls *libc.TLS, dpy uintptr, visual uintptr) (r uintptr) {
  11371. var info, xri, xrv uintptr
  11372. var nv int32
  11373. _, _, _, _ = info, nv, xri, xrv
  11374. info = XXRenderFindDisplay(tls, dpy)
  11375. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11376. return libc.UintptrFromInt32(0)
  11377. }
  11378. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11379. return libc.UintptrFromInt32(0)
  11380. }
  11381. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11382. nv = 0
  11383. xrv = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11384. for {
  11385. if !(nv < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual) {
  11386. break
  11387. }
  11388. if (*TXRenderVisual)(unsafe.Pointer(xrv)).Fvisual == visual {
  11389. return (*TXRenderVisual)(unsafe.Pointer(xrv)).Fformat
  11390. }
  11391. goto _1
  11392. _1:
  11393. ;
  11394. nv++
  11395. xrv += 16
  11396. }
  11397. return libc.UintptrFromInt32(0)
  11398. }
  11399. func XXRenderFindFormat(tls *libc.TLS, dpy uintptr, mask uint64, template uintptr, count int32) (r uintptr) {
  11400. var info, xri uintptr
  11401. var nf, v2 int32
  11402. _, _, _, _ = info, nf, xri, v2
  11403. info = XXRenderFindDisplay(tls, dpy)
  11404. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11405. return libc.UintptrFromInt32(0)
  11406. }
  11407. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11408. return libc.UintptrFromInt32(0)
  11409. }
  11410. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11411. nf = 0
  11412. for {
  11413. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11414. break
  11415. }
  11416. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  11417. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fid != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid {
  11418. goto _1
  11419. }
  11420. }
  11421. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  11422. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Ftype1 != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Ftype1 {
  11423. goto _1
  11424. }
  11425. }
  11426. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  11427. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fdepth != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdepth {
  11428. goto _1
  11429. }
  11430. }
  11431. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  11432. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fred) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fred) {
  11433. goto _1
  11434. }
  11435. }
  11436. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  11437. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FredMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FredMask) {
  11438. goto _1
  11439. }
  11440. }
  11441. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  11442. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fgreen) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fgreen) {
  11443. goto _1
  11444. }
  11445. }
  11446. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  11447. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FgreenMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FgreenMask) {
  11448. goto _1
  11449. }
  11450. }
  11451. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  11452. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fblue) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fblue) {
  11453. goto _1
  11454. }
  11455. }
  11456. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  11457. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FblueMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FblueMask) {
  11458. goto _1
  11459. }
  11460. }
  11461. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  11462. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Falpha) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Falpha) {
  11463. goto _1
  11464. }
  11465. }
  11466. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  11467. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FalphaMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FalphaMask) {
  11468. goto _1
  11469. }
  11470. }
  11471. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  11472. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fcolormap != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fcolormap {
  11473. goto _1
  11474. }
  11475. }
  11476. v2 = count
  11477. count--
  11478. if v2 == 0 {
  11479. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11480. }
  11481. goto _1
  11482. _1:
  11483. ;
  11484. nf++
  11485. }
  11486. return libc.UintptrFromInt32(0)
  11487. }
  11488. func XXRenderFindStandardFormat(tls *libc.TLS, dpy uintptr, format int32) (r uintptr) {
  11489. if 0 <= format && format < int32(m_PictStandardNUM) {
  11490. return XXRenderFindFormat(tls, dpy, _standardFormats[format].Fmask, uintptr(unsafe.Pointer(&_standardFormats))+uintptr(format)*48, 0)
  11491. }
  11492. return libc.UintptrFromInt32(0)
  11493. }
  11494. var _standardFormats = [5]struct {
  11495. Ftempl TXRenderPictFormat
  11496. Fmask uint64
  11497. }{
  11498. 0: {
  11499. Ftempl: TXRenderPictFormat{
  11500. Ftype1: int32(m_PictTypeDirect),
  11501. Fdepth: int32(32),
  11502. Fdirect: TXRenderDirectFormat{
  11503. Fred: int16(16),
  11504. FredMask: int16(0xff),
  11505. Fgreen: int16(8),
  11506. FgreenMask: int16(0xff),
  11507. FblueMask: int16(0xff),
  11508. Falpha: int16(24),
  11509. FalphaMask: int16(0xff),
  11510. },
  11511. },
  11512. Fmask: libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(2) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(3) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(4) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(5) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(6) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(7) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(9) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)),
  11513. },
  11514. 1: {
  11515. Ftempl: TXRenderPictFormat{
  11516. Ftype1: int32(m_PictTypeDirect),
  11517. Fdepth: int32(24),
  11518. Fdirect: TXRenderDirectFormat{
  11519. Fred: int16(16),
  11520. FredMask: int16(0xff),
  11521. Fgreen: int16(8),
  11522. FgreenMask: int16(0xff),
  11523. FblueMask: int16(0xff),
  11524. },
  11525. },
  11526. Fmask: libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(2) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(3) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(4) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(5) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(6) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(7) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)),
  11527. },
  11528. 2: {
  11529. Ftempl: TXRenderPictFormat{
  11530. Ftype1: int32(m_PictTypeDirect),
  11531. Fdepth: int32(8),
  11532. Fdirect: TXRenderDirectFormat{
  11533. FalphaMask: int16(0xff),
  11534. },
  11535. },
  11536. Fmask: libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(2) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(4) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(6) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(9) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)),
  11537. },
  11538. 3: {
  11539. Ftempl: TXRenderPictFormat{
  11540. Ftype1: int32(m_PictTypeDirect),
  11541. Fdepth: int32(4),
  11542. Fdirect: TXRenderDirectFormat{
  11543. FalphaMask: int16(0x0f),
  11544. },
  11545. },
  11546. Fmask: libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(2) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(4) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(6) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(9) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)),
  11547. },
  11548. 4: {
  11549. Ftempl: TXRenderPictFormat{
  11550. Ftype1: int32(m_PictTypeDirect),
  11551. Fdepth: int32(1),
  11552. Fdirect: TXRenderDirectFormat{
  11553. FalphaMask: int16(0x01),
  11554. },
  11555. },
  11556. Fmask: libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(2) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(4) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(6) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(8) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(9) | libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)),
  11557. },
  11558. }
  11559. func XXRenderQueryPictIndexValues(tls *libc.TLS, dpy uintptr, format uintptr, num uintptr) (r uintptr) {
  11560. bp := tls.Alloc(48)
  11561. defer tls.Free(48)
  11562. var i, nbytes, nread, rlength, v1, v2, v3 uint32
  11563. var info, req, values uintptr
  11564. var _ /* rep at bp+0 */ TxRenderQueryPictIndexValuesReply
  11565. var _ /* value at bp+32 */ TxIndexValue
  11566. _, _, _, _, _, _, _, _, _, _ = i, info, nbytes, nread, req, rlength, values, v1, v2, v3
  11567. info = XXRenderFindDisplay(tls, dpy)
  11568. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11569. return libc.UintptrFromInt32(0)
  11570. }
  11571. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11572. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  11573. }
  11574. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictIndexValues), uint64(m_sz_xRenderQueryPictIndexValuesReq))
  11575. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11576. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictIndexValues)
  11577. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  11578. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  11579. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11580. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11581. }
  11582. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11583. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11584. }
  11585. return libc.UintptrFromInt32(0)
  11586. }
  11587. if (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m_INT_MAX)>>libc.Int32FromInt32(2)) && uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) < libc.Uint64FromInt32(m_INT_MAX)/libc.Uint64FromInt64(16) {
  11588. /* request data length */
  11589. nbytes = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength << int32(2)
  11590. /* bytes of actual data in the request */
  11591. nread = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues * uint32(m_sz_xIndexValue)
  11592. /* size of array returned to application */
  11593. rlength = uint32(uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) * uint64(16))
  11594. /* allocate returned data */
  11595. if rlength == uint32(0) {
  11596. v1 = uint32(1)
  11597. } else {
  11598. v1 = rlength
  11599. }
  11600. values = libc.Xmalloc(tls, uint64(v1))
  11601. } else {
  11602. v3 = libc.Uint32FromInt32(0)
  11603. rlength = v3
  11604. v2 = v3
  11605. nread = v2
  11606. nbytes = v2
  11607. values = libc.UintptrFromInt32(0)
  11608. }
  11609. if !(values != 0) {
  11610. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength))
  11611. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11612. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11613. }
  11614. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11615. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11616. }
  11617. return libc.UintptrFromInt32(0)
  11618. }
  11619. /* read the values one at a time and convert */
  11620. *(*int32)(unsafe.Pointer(num)) = libc.Int32FromUint32((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues)
  11621. i = uint32(0)
  11622. for {
  11623. if !(i < (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) {
  11624. break
  11625. }
  11626. libx11.X_XRead(tls, dpy, bp+32, int64(m_sz_xIndexValue))
  11627. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fpixel = uint64((*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fpixel)
  11628. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fred = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fred
  11629. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fgreen = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fgreen
  11630. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fblue = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fblue
  11631. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Falpha = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Falpha
  11632. goto _4
  11633. _4:
  11634. ;
  11635. i++
  11636. }
  11637. /* skip any padding */
  11638. if nbytes > nread {
  11639. libx11.X_XEatData(tls, dpy, uint64(nbytes-nread))
  11640. }
  11641. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11642. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11643. }
  11644. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11645. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11646. }
  11647. return values
  11648. }
  11649. func __ccgo_fp(f interface{}) uintptr {
  11650. type iface [2]uintptr
  11651. return (*iface)(unsafe.Pointer(&f))[1]
  11652. }
  11653. /*
  11654. * Xlib uses long for 32-bit values. Xrender uses int. This
  11655. * matters on alpha. Note that this macro assumes that int is 32 bits
  11656. * except on WORD64 machines where it is 64 bits.
  11657. */
  11658. /* Support signed or unsigned plain-char */
  11659. /* Implementation choices... */
  11660. /* Arbitrary numbers... */
  11661. /* POSIX/SUS requirements follow. These numbers come directly
  11662. * from SUS and have nothing to do with the host system. */
  11663. var XXRenderExtensionInfo TXRenderExtInfo
  11664. var XXRenderExtensionName = [7]uint8{'R', 'E', 'N', 'D', 'E', 'R'}
  11665. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  11666. var __ccgo_ts1 = "rgba:\x00"