ccgo_linux_loong64.go 397 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436
  1. // Code generated for linux/loong64 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/cznic/src/modernc.org/builder/.exclude/modernc.org/libX11/include/linux/loong64 -lX11 -o libxrender.go --package-name libxrender src/.libs/libXrender.a', DO NOT EDIT.
  2. //go:build linux && loong64
  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 = "EDEADLK"
  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_combining_acute = 0x1000301
  2141. const m_XK_combining_belowdot = 0x1000323
  2142. const m_XK_combining_grave = 0x1000300
  2143. const m_XK_combining_hook = 0x1000309
  2144. const m_XK_combining_tilde = 0x1000303
  2145. const m_XK_comma = 0x002c
  2146. const m_XK_containsas = 0x100220B
  2147. const m_XK_copyright = 0x00a9
  2148. const m_XK_cuberoot = 0x100221B
  2149. const m_XK_currency = 0x00a4
  2150. const m_XK_d = 0x0064
  2151. const m_XK_dabovedot = 0x1001e0b
  2152. const m_XK_dcaron = 0x01ef
  2153. const m_XK_dead_A = 0xfe81
  2154. const m_XK_dead_E = 0xfe83
  2155. const m_XK_dead_I = 0xfe85
  2156. const m_XK_dead_O = 0xfe87
  2157. const m_XK_dead_U = 0xfe89
  2158. const m_XK_dead_a = 0xfe80
  2159. const m_XK_dead_abovecomma = 0xfe64
  2160. const m_XK_dead_abovedot = 0xfe56
  2161. const m_XK_dead_abovereversedcomma = 0xfe65
  2162. const m_XK_dead_abovering = 0xfe58
  2163. const m_XK_dead_aboveverticalline = 0xfe91
  2164. const m_XK_dead_acute = 0xfe51
  2165. const m_XK_dead_belowbreve = 0xfe6b
  2166. const m_XK_dead_belowcircumflex = 0xfe69
  2167. const m_XK_dead_belowcomma = 0xfe6e
  2168. const m_XK_dead_belowdiaeresis = 0xfe6c
  2169. const m_XK_dead_belowdot = 0xfe60
  2170. const m_XK_dead_belowmacron = 0xfe68
  2171. const m_XK_dead_belowring = 0xfe67
  2172. const m_XK_dead_belowtilde = 0xfe6a
  2173. const m_XK_dead_belowverticalline = 0xfe92
  2174. const m_XK_dead_breve = 0xfe55
  2175. const m_XK_dead_capital_schwa = 0xfe8b
  2176. const m_XK_dead_caron = 0xfe5a
  2177. const m_XK_dead_cedilla = 0xfe5b
  2178. const m_XK_dead_circumflex = 0xfe52
  2179. const m_XK_dead_currency = 0xfe6f
  2180. const m_XK_dead_dasia = 0xfe65
  2181. const m_XK_dead_diaeresis = 0xfe57
  2182. const m_XK_dead_doubleacute = 0xfe59
  2183. const m_XK_dead_doublegrave = 0xfe66
  2184. const m_XK_dead_e = 0xfe82
  2185. const m_XK_dead_grave = 0xfe50
  2186. const m_XK_dead_greek = 0xfe8c
  2187. const m_XK_dead_hook = 0xfe61
  2188. const m_XK_dead_horn = 0xfe62
  2189. const m_XK_dead_i = 0xfe84
  2190. const m_XK_dead_invertedbreve = 0xfe6d
  2191. const m_XK_dead_iota = 0xfe5d
  2192. const m_XK_dead_longsolidusoverlay = 0xfe93
  2193. const m_XK_dead_lowline = 0xfe90
  2194. const m_XK_dead_macron = 0xfe54
  2195. const m_XK_dead_o = 0xfe86
  2196. const m_XK_dead_ogonek = 0xfe5c
  2197. const m_XK_dead_perispomeni = 0xfe53
  2198. const m_XK_dead_psili = 0xfe64
  2199. const m_XK_dead_semivoiced_sound = 0xfe5f
  2200. const m_XK_dead_small_schwa = 0xfe8a
  2201. const m_XK_dead_stroke = 0xfe63
  2202. const m_XK_dead_tilde = 0xfe53
  2203. const m_XK_dead_u = 0xfe88
  2204. const m_XK_dead_voiced_sound = 0xfe5e
  2205. const m_XK_degree = 0x00b0
  2206. const m_XK_diaeresis = 0x00a8
  2207. const m_XK_dintegral = 0x100222C
  2208. const m_XK_division = 0x00f7
  2209. const m_XK_dollar = 0x0024
  2210. const m_XK_doubleacute = 0x01bd
  2211. const m_XK_dstroke = 0x01f0
  2212. const m_XK_e = 0x0065
  2213. const m_XK_eabovedot = 0x03ec
  2214. const m_XK_eacute = 0x00e9
  2215. const m_XK_ebelowdot = 0x1001eb9
  2216. const m_XK_ecaron = 0x01ec
  2217. const m_XK_ecircumflex = 0x00ea
  2218. const m_XK_ecircumflexacute = 0x1001ebf
  2219. const m_XK_ecircumflexbelowdot = 0x1001ec7
  2220. const m_XK_ecircumflexgrave = 0x1001ec1
  2221. const m_XK_ecircumflexhook = 0x1001ec3
  2222. const m_XK_ecircumflextilde = 0x1001ec5
  2223. const m_XK_ediaeresis = 0x00eb
  2224. const m_XK_egrave = 0x00e8
  2225. const m_XK_ehook = 0x1001ebb
  2226. const m_XK_eightsubscript = 0x1002088
  2227. const m_XK_eightsuperior = 0x1002078
  2228. const m_XK_elementof = 0x1002208
  2229. const m_XK_emacron = 0x03ba
  2230. const m_XK_emptyset = 0x1002205
  2231. const m_XK_eng = 0x03bf
  2232. const m_XK_eogonek = 0x01ea
  2233. const m_XK_equal = 0x003d
  2234. const m_XK_eth = 0x00f0
  2235. const m_XK_etilde = 0x1001ebd
  2236. const m_XK_exclam = 0x0021
  2237. const m_XK_exclamdown = 0x00a1
  2238. const m_XK_ezh = 0x1000292
  2239. const m_XK_f = 0x0066
  2240. const m_XK_fabovedot = 0x1001e1f
  2241. const m_XK_fivesubscript = 0x1002085
  2242. const m_XK_fivesuperior = 0x1002075
  2243. const m_XK_foursubscript = 0x1002084
  2244. const m_XK_foursuperior = 0x1002074
  2245. const m_XK_fourthroot = 0x100221C
  2246. const m_XK_g = 0x0067
  2247. const m_XK_gabovedot = 0x02f5
  2248. const m_XK_gbreve = 0x02bb
  2249. const m_XK_gcaron = 0x10001e7
  2250. const m_XK_gcedilla = 0x03bb
  2251. const m_XK_gcircumflex = 0x02f8
  2252. const m_XK_grave = 0x0060
  2253. const m_XK_greater = 0x003e
  2254. const m_XK_guillemotleft = 0x00ab
  2255. const m_XK_guillemotright = 0x00bb
  2256. const m_XK_h = 0x0068
  2257. const m_XK_hcircumflex = 0x02b6
  2258. const m_XK_hebrew_aleph = 0x0ce0
  2259. const m_XK_hebrew_ayin = 0x0cf2
  2260. const m_XK_hebrew_bet = 0x0ce1
  2261. const m_XK_hebrew_beth = 0x0ce1
  2262. const m_XK_hebrew_chet = 0x0ce7
  2263. const m_XK_hebrew_dalet = 0x0ce3
  2264. const m_XK_hebrew_daleth = 0x0ce3
  2265. const m_XK_hebrew_doublelowline = 0x0cdf
  2266. const m_XK_hebrew_finalkaph = 0x0cea
  2267. const m_XK_hebrew_finalmem = 0x0ced
  2268. const m_XK_hebrew_finalnun = 0x0cef
  2269. const m_XK_hebrew_finalpe = 0x0cf3
  2270. const m_XK_hebrew_finalzade = 0x0cf5
  2271. const m_XK_hebrew_finalzadi = 0x0cf5
  2272. const m_XK_hebrew_gimel = 0x0ce2
  2273. const m_XK_hebrew_gimmel = 0x0ce2
  2274. const m_XK_hebrew_he = 0x0ce4
  2275. const m_XK_hebrew_het = 0x0ce7
  2276. const m_XK_hebrew_kaph = 0x0ceb
  2277. const m_XK_hebrew_kuf = 0x0cf7
  2278. const m_XK_hebrew_lamed = 0x0cec
  2279. const m_XK_hebrew_mem = 0x0cee
  2280. const m_XK_hebrew_nun = 0x0cf0
  2281. const m_XK_hebrew_pe = 0x0cf4
  2282. const m_XK_hebrew_qoph = 0x0cf7
  2283. const m_XK_hebrew_resh = 0x0cf8
  2284. const m_XK_hebrew_samech = 0x0cf1
  2285. const m_XK_hebrew_samekh = 0x0cf1
  2286. const m_XK_hebrew_shin = 0x0cf9
  2287. const m_XK_hebrew_taf = 0x0cfa
  2288. const m_XK_hebrew_taw = 0x0cfa
  2289. const m_XK_hebrew_tet = 0x0ce8
  2290. const m_XK_hebrew_teth = 0x0ce8
  2291. const m_XK_hebrew_waw = 0x0ce5
  2292. const m_XK_hebrew_yod = 0x0ce9
  2293. const m_XK_hebrew_zade = 0x0cf6
  2294. const m_XK_hebrew_zadi = 0x0cf6
  2295. const m_XK_hebrew_zain = 0x0ce6
  2296. const m_XK_hebrew_zayin = 0x0ce6
  2297. const m_XK_hstroke = 0x02b1
  2298. const m_XK_hyphen = 0x00ad
  2299. const m_XK_i = 0x0069
  2300. const m_XK_iacute = 0x00ed
  2301. const m_XK_ibelowdot = 0x1001ecb
  2302. const m_XK_ibreve = 0x100012d
  2303. const m_XK_icircumflex = 0x00ee
  2304. const m_XK_idiaeresis = 0x00ef
  2305. const m_XK_idotless = 0x02b9
  2306. const m_XK_igrave = 0x00ec
  2307. const m_XK_ihook = 0x1001ec9
  2308. const m_XK_imacron = 0x03ef
  2309. const m_XK_iogonek = 0x03e7
  2310. const m_XK_itilde = 0x03b5
  2311. const m_XK_j = 0x006a
  2312. const m_XK_jcircumflex = 0x02bc
  2313. const m_XK_k = 0x006b
  2314. const m_XK_kana_A = 0x04b1
  2315. const m_XK_kana_CHI = 0x04c1
  2316. const m_XK_kana_E = 0x04b4
  2317. const m_XK_kana_FU = 0x04cc
  2318. const m_XK_kana_HA = 0x04ca
  2319. const m_XK_kana_HE = 0x04cd
  2320. const m_XK_kana_HI = 0x04cb
  2321. const m_XK_kana_HO = 0x04ce
  2322. const m_XK_kana_HU = 0x04cc
  2323. const m_XK_kana_I = 0x04b2
  2324. const m_XK_kana_KA = 0x04b6
  2325. const m_XK_kana_KE = 0x04b9
  2326. const m_XK_kana_KI = 0x04b7
  2327. const m_XK_kana_KO = 0x04ba
  2328. const m_XK_kana_KU = 0x04b8
  2329. const m_XK_kana_MA = 0x04cf
  2330. const m_XK_kana_ME = 0x04d2
  2331. const m_XK_kana_MI = 0x04d0
  2332. const m_XK_kana_MO = 0x04d3
  2333. const m_XK_kana_MU = 0x04d1
  2334. const m_XK_kana_N = 0x04dd
  2335. const m_XK_kana_NA = 0x04c5
  2336. const m_XK_kana_NE = 0x04c8
  2337. const m_XK_kana_NI = 0x04c6
  2338. const m_XK_kana_NO = 0x04c9
  2339. const m_XK_kana_NU = 0x04c7
  2340. const m_XK_kana_O = 0x04b5
  2341. const m_XK_kana_RA = 0x04d7
  2342. const m_XK_kana_RE = 0x04da
  2343. const m_XK_kana_RI = 0x04d8
  2344. const m_XK_kana_RO = 0x04db
  2345. const m_XK_kana_RU = 0x04d9
  2346. const m_XK_kana_SA = 0x04bb
  2347. const m_XK_kana_SE = 0x04be
  2348. const m_XK_kana_SHI = 0x04bc
  2349. const m_XK_kana_SO = 0x04bf
  2350. const m_XK_kana_SU = 0x04bd
  2351. const m_XK_kana_TA = 0x04c0
  2352. const m_XK_kana_TE = 0x04c3
  2353. const m_XK_kana_TI = 0x04c1
  2354. const m_XK_kana_TO = 0x04c4
  2355. const m_XK_kana_TSU = 0x04c2
  2356. const m_XK_kana_TU = 0x04c2
  2357. const m_XK_kana_U = 0x04b3
  2358. const m_XK_kana_WA = 0x04dc
  2359. const m_XK_kana_WO = 0x04a6
  2360. const m_XK_kana_YA = 0x04d4
  2361. const m_XK_kana_YO = 0x04d6
  2362. const m_XK_kana_YU = 0x04d5
  2363. const m_XK_kana_a = 0x04a7
  2364. const m_XK_kana_closingbracket = 0x04a3
  2365. const m_XK_kana_comma = 0x04a4
  2366. const m_XK_kana_conjunctive = 0x04a5
  2367. const m_XK_kana_e = 0x04aa
  2368. const m_XK_kana_fullstop = 0x04a1
  2369. const m_XK_kana_i = 0x04a8
  2370. const m_XK_kana_middledot = 0x04a5
  2371. const m_XK_kana_o = 0x04ab
  2372. const m_XK_kana_openingbracket = 0x04a2
  2373. const m_XK_kana_switch = 0xff7e
  2374. const m_XK_kana_tsu = 0x04af
  2375. const m_XK_kana_tu = 0x04af
  2376. const m_XK_kana_u = 0x04a9
  2377. const m_XK_kana_ya = 0x04ac
  2378. const m_XK_kana_yo = 0x04ae
  2379. const m_XK_kana_yu = 0x04ad
  2380. const m_XK_kappa = 0x03a2
  2381. const m_XK_kcedilla = 0x03f3
  2382. const m_XK_kra = 0x03a2
  2383. const m_XK_l = 0x006c
  2384. const m_XK_lacute = 0x01e5
  2385. const m_XK_lbelowdot = 0x1001e37
  2386. const m_XK_lcaron = 0x01b5
  2387. const m_XK_lcedilla = 0x03b6
  2388. const m_XK_less = 0x003c
  2389. const m_XK_lstroke = 0x01b3
  2390. const m_XK_m = 0x006d
  2391. const m_XK_mabovedot = 0x1001e41
  2392. const m_XK_macron = 0x00af
  2393. const m_XK_masculine = 0x00ba
  2394. const m_XK_minus = 0x002d
  2395. const m_XK_mu = 0x00b5
  2396. const m_XK_multiply = 0x00d7
  2397. const m_XK_n = 0x006e
  2398. const m_XK_nacute = 0x01f1
  2399. const m_XK_ncaron = 0x01f2
  2400. const m_XK_ncedilla = 0x03f1
  2401. const m_XK_ninesubscript = 0x1002089
  2402. const m_XK_ninesuperior = 0x1002079
  2403. const m_XK_nobreakspace = 0x00a0
  2404. const m_XK_notapproxeq = 0x1002247
  2405. const m_XK_notelementof = 0x1002209
  2406. const m_XK_notidentical = 0x1002262
  2407. const m_XK_notsign = 0x00ac
  2408. const m_XK_ntilde = 0x00f1
  2409. const m_XK_numbersign = 0x0023
  2410. const m_XK_numerosign = 0x06b0
  2411. const m_XK_o = 0x006f
  2412. const m_XK_oacute = 0x00f3
  2413. const m_XK_obarred = 0x1000275
  2414. const m_XK_obelowdot = 0x1001ecd
  2415. const m_XK_ocaron = 0x10001d2
  2416. const m_XK_ocircumflex = 0x00f4
  2417. const m_XK_ocircumflexacute = 0x1001ed1
  2418. const m_XK_ocircumflexbelowdot = 0x1001ed9
  2419. const m_XK_ocircumflexgrave = 0x1001ed3
  2420. const m_XK_ocircumflexhook = 0x1001ed5
  2421. const m_XK_ocircumflextilde = 0x1001ed7
  2422. const m_XK_odiaeresis = 0x00f6
  2423. const m_XK_odoubleacute = 0x01f5
  2424. const m_XK_oe = 0x13bd
  2425. const m_XK_ogonek = 0x01b2
  2426. const m_XK_ograve = 0x00f2
  2427. const m_XK_ohook = 0x1001ecf
  2428. const m_XK_ohorn = 0x10001a1
  2429. const m_XK_ohornacute = 0x1001edb
  2430. const m_XK_ohornbelowdot = 0x1001ee3
  2431. const m_XK_ohorngrave = 0x1001edd
  2432. const m_XK_ohornhook = 0x1001edf
  2433. const m_XK_ohorntilde = 0x1001ee1
  2434. const m_XK_omacron = 0x03f2
  2435. const m_XK_onehalf = 0x00bd
  2436. const m_XK_onequarter = 0x00bc
  2437. const m_XK_onesubscript = 0x1002081
  2438. const m_XK_onesuperior = 0x00b9
  2439. const m_XK_ooblique = 0x00f8
  2440. const m_XK_ordfeminine = 0x00aa
  2441. const m_XK_oslash = 0x00f8
  2442. const m_XK_otilde = 0x00f5
  2443. const m_XK_overline = 0x047e
  2444. const m_XK_p = 0x0070
  2445. const m_XK_pabovedot = 0x1001e57
  2446. const m_XK_paragraph = 0x00b6
  2447. const m_XK_parenleft = 0x0028
  2448. const m_XK_parenright = 0x0029
  2449. const m_XK_partdifferential = 0x1002202
  2450. const m_XK_percent = 0x0025
  2451. const m_XK_period = 0x002e
  2452. const m_XK_periodcentered = 0x00b7
  2453. const m_XK_plus = 0x002b
  2454. const m_XK_plusminus = 0x00b1
  2455. const m_XK_prolongedsound = 0x04b0
  2456. const m_XK_q = 0x0071
  2457. const m_XK_question = 0x003f
  2458. const m_XK_questiondown = 0x00bf
  2459. const m_XK_quotedbl = 0x0022
  2460. const m_XK_quoteleft = 0x0060
  2461. const m_XK_quoteright = 0x0027
  2462. const m_XK_r = 0x0072
  2463. const m_XK_racute = 0x01e0
  2464. const m_XK_rcaron = 0x01f8
  2465. const m_XK_rcedilla = 0x03b3
  2466. const m_XK_registered = 0x00ae
  2467. const m_XK_s = 0x0073
  2468. const m_XK_sabovedot = 0x1001e61
  2469. const m_XK_sacute = 0x01b6
  2470. const m_XK_scaron = 0x01b9
  2471. const m_XK_scedilla = 0x01ba
  2472. const m_XK_schwa = 0x1000259
  2473. const m_XK_scircumflex = 0x02fe
  2474. const m_XK_script_switch = 0xff7e
  2475. const m_XK_section = 0x00a7
  2476. const m_XK_semicolon = 0x003b
  2477. const m_XK_semivoicedsound = 0x04df
  2478. const m_XK_sevensubscript = 0x1002087
  2479. const m_XK_sevensuperior = 0x1002077
  2480. const m_XK_sixsubscript = 0x1002086
  2481. const m_XK_sixsuperior = 0x1002076
  2482. const m_XK_slash = 0x002f
  2483. const m_XK_space = 0x0020
  2484. const m_XK_squareroot = 0x100221A
  2485. const m_XK_ssharp = 0x00df
  2486. const m_XK_sterling = 0x00a3
  2487. const m_XK_stricteq = 0x1002263
  2488. const m_XK_t = 0x0074
  2489. const m_XK_tabovedot = 0x1001e6b
  2490. const m_XK_tcaron = 0x01bb
  2491. const m_XK_tcedilla = 0x01fe
  2492. const m_XK_thorn = 0x00fe
  2493. const m_XK_threequarters = 0x00be
  2494. const m_XK_threesubscript = 0x1002083
  2495. const m_XK_threesuperior = 0x00b3
  2496. const m_XK_tintegral = 0x100222D
  2497. const m_XK_tslash = 0x03bc
  2498. const m_XK_twosubscript = 0x1002082
  2499. const m_XK_twosuperior = 0x00b2
  2500. const m_XK_u = 0x0075
  2501. const m_XK_uacute = 0x00fa
  2502. const m_XK_ubelowdot = 0x1001ee5
  2503. const m_XK_ubreve = 0x02fd
  2504. const m_XK_ucircumflex = 0x00fb
  2505. const m_XK_udiaeresis = 0x00fc
  2506. const m_XK_udoubleacute = 0x01fb
  2507. const m_XK_ugrave = 0x00f9
  2508. const m_XK_uhook = 0x1001ee7
  2509. const m_XK_uhorn = 0x10001b0
  2510. const m_XK_uhornacute = 0x1001ee9
  2511. const m_XK_uhornbelowdot = 0x1001ef1
  2512. const m_XK_uhorngrave = 0x1001eeb
  2513. const m_XK_uhornhook = 0x1001eed
  2514. const m_XK_uhorntilde = 0x1001eef
  2515. const m_XK_umacron = 0x03fe
  2516. const m_XK_underscore = 0x005f
  2517. const m_XK_uogonek = 0x03f9
  2518. const m_XK_uring = 0x01f9
  2519. const m_XK_utilde = 0x03fd
  2520. const m_XK_v = 0x0076
  2521. const m_XK_voicedsound = 0x04de
  2522. const m_XK_w = 0x0077
  2523. const m_XK_wacute = 0x1001e83
  2524. const m_XK_wcircumflex = 0x1000175
  2525. const m_XK_wdiaeresis = 0x1001e85
  2526. const m_XK_wgrave = 0x1001e81
  2527. const m_XK_x = 0x0078
  2528. const m_XK_xabovedot = 0x1001e8b
  2529. const m_XK_y = 0x0079
  2530. const m_XK_yacute = 0x00fd
  2531. const m_XK_ybelowdot = 0x1001ef5
  2532. const m_XK_ycircumflex = 0x1000177
  2533. const m_XK_ydiaeresis = 0x00ff
  2534. const m_XK_yen = 0x00a5
  2535. const m_XK_ygrave = 0x1001ef3
  2536. const m_XK_yhook = 0x1001ef7
  2537. const m_XK_ytilde = 0x1001ef9
  2538. const m_XK_z = 0x007a
  2539. const m_XK_zabovedot = 0x01bf
  2540. const m_XK_zacute = 0x01bc
  2541. const m_XK_zcaron = 0x01be
  2542. const m_XK_zerosubscript = 0x1002080
  2543. const m_XK_zerosuperior = 0x1002070
  2544. const m_XK_zstroke = 0x10001b6
  2545. const m_XLookupBoth = 4
  2546. const m_XLookupChars = 2
  2547. const m_XLookupKeySym = 3
  2548. const m_XLookupNone = 1
  2549. const m_XMD_H = 1
  2550. const m_XNArea = "area"
  2551. const m_XNAreaNeeded = "areaNeeded"
  2552. const m_XNBackground = "background"
  2553. const m_XNBackgroundPixmap = "backgroundPixmap"
  2554. const m_XNBaseFontName = "baseFontName"
  2555. const m_XNClientWindow = "clientWindow"
  2556. const m_XNColormap = "colorMap"
  2557. const m_XNContextualDrawing = "contextualDrawing"
  2558. const m_XNCursor = "cursor"
  2559. const m_XNDefaultString = "defaultString"
  2560. const m_XNDestroyCallback = "destroyCallback"
  2561. const m_XNDirectionalDependentDrawing = "directionalDependentDrawing"
  2562. const m_XNFilterEvents = "filterEvents"
  2563. const m_XNFocusWindow = "focusWindow"
  2564. const m_XNFontInfo = "fontInfo"
  2565. const m_XNFontSet = "fontSet"
  2566. const m_XNForeground = "foreground"
  2567. const m_XNGeometryCallback = "geometryCallback"
  2568. const m_XNHotKey = "hotKey"
  2569. const m_XNHotKeyState = "hotKeyState"
  2570. const m_XNInputStyle = "inputStyle"
  2571. const m_XNLineSpace = "lineSpace"
  2572. const m_XNMissingCharSet = "missingCharSet"
  2573. const m_XNOMAutomatic = "omAutomatic"
  2574. const m_XNOrientation = "orientation"
  2575. const m_XNPreeditAttributes = "preeditAttributes"
  2576. const m_XNPreeditCaretCallback = "preeditCaretCallback"
  2577. const m_XNPreeditDoneCallback = "preeditDoneCallback"
  2578. const m_XNPreeditDrawCallback = "preeditDrawCallback"
  2579. const m_XNPreeditStartCallback = "preeditStartCallback"
  2580. const m_XNPreeditState = "preeditState"
  2581. const m_XNPreeditStateNotifyCallback = "preeditStateNotifyCallback"
  2582. const m_XNQueryICValuesList = "queryICValuesList"
  2583. const m_XNQueryIMValuesList = "queryIMValuesList"
  2584. const m_XNQueryInputStyle = "queryInputStyle"
  2585. const m_XNQueryOrientation = "queryOrientation"
  2586. const m_XNR6PreeditCallback = "r6PreeditCallback"
  2587. const m_XNRequiredCharSet = "requiredCharSet"
  2588. const m_XNResetState = "resetState"
  2589. const m_XNResourceClass = "resourceClass"
  2590. const m_XNResourceName = "resourceName"
  2591. const m_XNSeparatorofNestedList = "separatorofNestedList"
  2592. const m_XNSpotLocation = "spotLocation"
  2593. const m_XNStatusAttributes = "statusAttributes"
  2594. const m_XNStatusDoneCallback = "statusDoneCallback"
  2595. const m_XNStatusDrawCallback = "statusDrawCallback"
  2596. const m_XNStatusStartCallback = "statusStartCallback"
  2597. const m_XNStdColormap = "stdColorMap"
  2598. const m_XNStringConversion = "stringConversion"
  2599. const m_XNStringConversionCallback = "stringConversionCallback"
  2600. const m_XNVaNestedList = "XNVaNestedList"
  2601. const m_XNVisiblePosition = "visiblePosition"
  2602. const m_XNegative = 0x0010
  2603. const m_XTHREADS = 1
  2604. const m_XUSE_MTSAFE_API = 1
  2605. const m_XValue = 0x0001
  2606. const m_XYBitmap = 0
  2607. const m_XYPixmap = 1
  2608. const m_X_AllocColor = 84
  2609. const m_X_AllocColorCells = 86
  2610. const m_X_AllocColorPlanes = 87
  2611. const m_X_AllocNamedColor = 85
  2612. const m_X_AllowEvents = 35
  2613. const m_X_Bell = 104
  2614. const m_X_ChangeActivePointerGrab = 30
  2615. const m_X_ChangeGC = 56
  2616. const m_X_ChangeHosts = 109
  2617. const m_X_ChangeKeyboardControl = 102
  2618. const m_X_ChangeKeyboardMapping = 100
  2619. const m_X_ChangePointerControl = 105
  2620. const m_X_ChangeProperty = 18
  2621. const m_X_ChangeSaveSet = 6
  2622. const m_X_ChangeWindowAttributes = 2
  2623. const m_X_CirculateWindow = 13
  2624. const m_X_ClearArea = 61
  2625. const m_X_CloseFont = 46
  2626. const m_X_ConfigureWindow = 12
  2627. const m_X_ConvertSelection = 24
  2628. const m_X_CopyArea = 62
  2629. const m_X_CopyColormapAndFree = 80
  2630. const m_X_CopyGC = 57
  2631. const m_X_CopyPlane = 63
  2632. const m_X_CreateColormap = 78
  2633. const m_X_CreateCursor = 93
  2634. const m_X_CreateGC = 55
  2635. const m_X_CreateGlyphCursor = 94
  2636. const m_X_CreatePixmap = 53
  2637. const m_X_CreateWindow = 1
  2638. const m_X_DeleteProperty = 19
  2639. const m_X_DestroySubwindows = 5
  2640. const m_X_DestroyWindow = 4
  2641. const m_X_Error = 0
  2642. const m_X_FillPoly = 69
  2643. const m_X_ForceScreenSaver = 115
  2644. const m_X_FreeColormap = 79
  2645. const m_X_FreeColors = 88
  2646. const m_X_FreeCursor = 95
  2647. const m_X_FreeGC = 60
  2648. const m_X_FreePixmap = 54
  2649. const m_X_GetAtomName = 17
  2650. const m_X_GetFontPath = 52
  2651. const m_X_GetGeometry = 14
  2652. const m_X_GetImage = 73
  2653. const m_X_GetInputFocus = 43
  2654. const m_X_GetKeyboardControl = 103
  2655. const m_X_GetKeyboardMapping = 101
  2656. const m_X_GetModifierMapping = 119
  2657. const m_X_GetMotionEvents = 39
  2658. const m_X_GetPointerControl = 106
  2659. const m_X_GetPointerMapping = 117
  2660. const m_X_GetProperty = 20
  2661. const m_X_GetScreenSaver = 108
  2662. const m_X_GetSelectionOwner = 23
  2663. const m_X_GetWindowAttributes = 3
  2664. const m_X_GrabButton = 28
  2665. const m_X_GrabKey = 33
  2666. const m_X_GrabKeyboard = 31
  2667. const m_X_GrabPointer = 26
  2668. const m_X_GrabServer = 36
  2669. const m_X_HAVE_UTF8_STRING = 1
  2670. const m_X_ImageText16 = 77
  2671. const m_X_ImageText8 = 76
  2672. const m_X_InstallColormap = 81
  2673. const m_X_InternAtom = 16
  2674. const m_X_KillClient = 113
  2675. const m_X_ListExtensions = 99
  2676. const m_X_ListFonts = 49
  2677. const m_X_ListFontsWithInfo = 50
  2678. const m_X_ListHosts = 110
  2679. const m_X_ListInstalledColormaps = 83
  2680. const m_X_ListProperties = 21
  2681. const m_X_LookupColor = 92
  2682. const m_X_MapSubwindows = 9
  2683. const m_X_MapWindow = 8
  2684. const m_X_NoOperation = 127
  2685. const m_X_OpenFont = 45
  2686. const m_X_PROTOCOL = 11
  2687. const m_X_PROTOCOL_REVISION = 0
  2688. const m_X_PolyArc = 68
  2689. const m_X_PolyFillArc = 71
  2690. const m_X_PolyFillRectangle = 70
  2691. const m_X_PolyLine = 65
  2692. const m_X_PolyPoint = 64
  2693. const m_X_PolyRectangle = 67
  2694. const m_X_PolySegment = 66
  2695. const m_X_PolyText16 = 75
  2696. const m_X_PolyText8 = 74
  2697. const m_X_PutImage = 72
  2698. const m_X_QueryBestSize = 97
  2699. const m_X_QueryColors = 91
  2700. const m_X_QueryExtension = 98
  2701. const m_X_QueryFont = 47
  2702. const m_X_QueryKeymap = 44
  2703. const m_X_QueryPointer = 38
  2704. const m_X_QueryTextExtents = 48
  2705. const m_X_QueryTree = 15
  2706. const m_X_RecolorCursor = 96
  2707. const m_X_RenderAddGlyphs = 20
  2708. const m_X_RenderAddGlyphsFromPicture = 21
  2709. const m_X_RenderAddTraps = 32
  2710. const m_X_RenderChangePicture = 5
  2711. const m_X_RenderColorTrapezoids = 14
  2712. const m_X_RenderColorTriangles = 15
  2713. const m_X_RenderComposite = 8
  2714. const m_X_RenderCompositeGlyphs16 = 24
  2715. const m_X_RenderCompositeGlyphs32 = 25
  2716. const m_X_RenderCompositeGlyphs8 = 23
  2717. const m_X_RenderCreateAnimCursor = 31
  2718. const m_X_RenderCreateConicalGradient = 36
  2719. const m_X_RenderCreateCursor = 27
  2720. const m_X_RenderCreateGlyphSet = 17
  2721. const m_X_RenderCreateLinearGradient = 34
  2722. const m_X_RenderCreatePicture = 4
  2723. const m_X_RenderCreateRadialGradient = 35
  2724. const m_X_RenderCreateSolidFill = 33
  2725. const m_X_RenderFillRectangles = 26
  2726. const m_X_RenderFreeGlyphSet = 19
  2727. const m_X_RenderFreeGlyphs = 22
  2728. const m_X_RenderFreePicture = 7
  2729. const m_X_RenderQueryDithers = 3
  2730. const m_X_RenderQueryFilters = 29
  2731. const m_X_RenderQueryPictFormats = 1
  2732. const m_X_RenderQueryPictIndexValues = 2
  2733. const m_X_RenderQueryVersion = 0
  2734. const m_X_RenderReferenceGlyphSet = 18
  2735. const m_X_RenderScale = 9
  2736. const m_X_RenderSetPictureClipRectangles = 6
  2737. const m_X_RenderSetPictureFilter = 30
  2738. const m_X_RenderSetPictureTransform = 28
  2739. const m_X_RenderTrapezoids = 10
  2740. const m_X_RenderTriFan = 13
  2741. const m_X_RenderTriStrip = 12
  2742. const m_X_RenderTriangles = 11
  2743. const m_X_ReparentWindow = 7
  2744. const m_X_Reply = 1
  2745. const m_X_RotateProperties = 114
  2746. const m_X_SendEvent = 25
  2747. const m_X_SetAccessControl = 111
  2748. const m_X_SetClipRectangles = 59
  2749. const m_X_SetCloseDownMode = 112
  2750. const m_X_SetDashes = 58
  2751. const m_X_SetFontPath = 51
  2752. const m_X_SetInputFocus = 42
  2753. const m_X_SetModifierMapping = 118
  2754. const m_X_SetPointerMapping = 116
  2755. const m_X_SetScreenSaver = 107
  2756. const m_X_SetSelectionOwner = 22
  2757. const m_X_StoreColors = 89
  2758. const m_X_StoreNamedColor = 90
  2759. const m_X_TCP_PORT = 6000
  2760. const m_X_TranslateCoords = 40
  2761. const m_X_UngrabButton = 29
  2762. const m_X_UngrabKey = 34
  2763. const m_X_UngrabKeyboard = 32
  2764. const m_X_UngrabPointer = 27
  2765. const m_X_UngrabServer = 37
  2766. const m_X_UninstallColormap = 82
  2767. const m_X_UnmapSubwindows = 11
  2768. const m_X_UnmapWindow = 10
  2769. const m_X_WarpPointer = 41
  2770. const m_XlibSpecificationRelease = 6
  2771. const m_YNegative = 0x0020
  2772. const m_YSorted = 1
  2773. const m_YValue = 0x0002
  2774. const m_YXBanded = 3
  2775. const m_YXSorted = 2
  2776. const m_ZLNSPERBATCH = 1024
  2777. const m_ZPixmap = 2
  2778. const m_ZRCTSPERBATCH = 256
  2779. const m_ZoomState = 2
  2780. const m__ABILP64 = 3
  2781. const m__GNU_SOURCE = 1
  2782. const m__LOONGARCH_ARCH = "la64v1.0"
  2783. const m__LOONGARCH_FPSET = 32
  2784. const m__LOONGARCH_SIM = "_ABILP64"
  2785. const m__LOONGARCH_SPFPSET = 32
  2786. const m__LOONGARCH_SZINT = 32
  2787. const m__LOONGARCH_SZLONG = 64
  2788. const m__LOONGARCH_SZPTR = 64
  2789. const m__LOONGARCH_TUNE = "generic"
  2790. const m__LP64 = 1
  2791. const m__STDC_PREDEF_H = 1
  2792. const m__X11_XLIBINT_H_ = 1
  2793. const m__XBCOPYFUNC = "_Xbcopy"
  2794. const m__X_INLINE = "inline"
  2795. const m__X_RESTRICT_KYWD = "restrict"
  2796. const m__Xconst = "const"
  2797. const m___ACCUM_EPSILON__ = "0x1P-15K"
  2798. const m___ACCUM_FBIT__ = 15
  2799. const m___ACCUM_IBIT__ = 16
  2800. const m___ACCUM_MAX__ = "0X7FFFFFFFP-15K"
  2801. const m___ATOMIC_ACQUIRE = 2
  2802. const m___ATOMIC_ACQ_REL = 4
  2803. const m___ATOMIC_CONSUME = 1
  2804. const m___ATOMIC_RELAXED = 0
  2805. const m___ATOMIC_RELEASE = 3
  2806. const m___ATOMIC_SEQ_CST = 5
  2807. const m___BIGGEST_ALIGNMENT__ = 16
  2808. const m___BIG_ENDIAN = 4321
  2809. const m___BYTE_ORDER = 1234
  2810. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  2811. const m___CCGO__ = 1
  2812. const m___CHAR_BIT__ = 8
  2813. const m___DA_FBIT__ = 31
  2814. const m___DA_IBIT__ = 32
  2815. const m___DBL_DECIMAL_DIG__ = 17
  2816. const m___DBL_DIG__ = 15
  2817. const m___DBL_HAS_DENORM__ = 1
  2818. const m___DBL_HAS_INFINITY__ = 1
  2819. const m___DBL_HAS_QUIET_NAN__ = 1
  2820. const m___DBL_IS_IEC_60559__ = 1
  2821. const m___DBL_MANT_DIG__ = 53
  2822. const m___DBL_MAX_10_EXP__ = 308
  2823. const m___DBL_MAX_EXP__ = 1024
  2824. const m___DECIMAL_DIG__ = 36
  2825. const m___DEC_EVAL_METHOD__ = 2
  2826. const m___DQ_FBIT__ = 63
  2827. const m___DQ_IBIT__ = 0
  2828. const m___ELF__ = 1
  2829. const m___FINITE_MATH_ONLY__ = 0
  2830. const m___FLOAT128_TYPE__ = 1
  2831. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  2832. const m___FLT128_DECIMAL_DIG__ = 36
  2833. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  2834. const m___FLT128_DIG__ = 33
  2835. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  2836. const m___FLT128_HAS_DENORM__ = 1
  2837. const m___FLT128_HAS_INFINITY__ = 1
  2838. const m___FLT128_HAS_QUIET_NAN__ = 1
  2839. const m___FLT128_IS_IEC_60559__ = 1
  2840. const m___FLT128_MANT_DIG__ = 113
  2841. const m___FLT128_MAX_10_EXP__ = 4932
  2842. const m___FLT128_MAX_EXP__ = 16384
  2843. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2844. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  2845. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2846. const m___FLT32X_DECIMAL_DIG__ = 17
  2847. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  2848. const m___FLT32X_DIG__ = 15
  2849. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  2850. const m___FLT32X_HAS_DENORM__ = 1
  2851. const m___FLT32X_HAS_INFINITY__ = 1
  2852. const m___FLT32X_HAS_QUIET_NAN__ = 1
  2853. const m___FLT32X_IS_IEC_60559__ = 1
  2854. const m___FLT32X_MANT_DIG__ = 53
  2855. const m___FLT32X_MAX_10_EXP__ = 308
  2856. const m___FLT32X_MAX_EXP__ = 1024
  2857. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  2858. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  2859. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  2860. const m___FLT32_DECIMAL_DIG__ = 9
  2861. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  2862. const m___FLT32_DIG__ = 6
  2863. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  2864. const m___FLT32_HAS_DENORM__ = 1
  2865. const m___FLT32_HAS_INFINITY__ = 1
  2866. const m___FLT32_HAS_QUIET_NAN__ = 1
  2867. const m___FLT32_IS_IEC_60559__ = 1
  2868. const m___FLT32_MANT_DIG__ = 24
  2869. const m___FLT32_MAX_10_EXP__ = 38
  2870. const m___FLT32_MAX_EXP__ = 128
  2871. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  2872. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  2873. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  2874. const m___FLT64X_DECIMAL_DIG__ = 36
  2875. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  2876. const m___FLT64X_DIG__ = 33
  2877. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  2878. const m___FLT64X_HAS_DENORM__ = 1
  2879. const m___FLT64X_HAS_INFINITY__ = 1
  2880. const m___FLT64X_HAS_QUIET_NAN__ = 1
  2881. const m___FLT64X_IS_IEC_60559__ = 1
  2882. const m___FLT64X_MANT_DIG__ = 113
  2883. const m___FLT64X_MAX_10_EXP__ = 4932
  2884. const m___FLT64X_MAX_EXP__ = 16384
  2885. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2886. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  2887. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  2888. const m___FLT64_DECIMAL_DIG__ = 17
  2889. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  2890. const m___FLT64_DIG__ = 15
  2891. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  2892. const m___FLT64_HAS_DENORM__ = 1
  2893. const m___FLT64_HAS_INFINITY__ = 1
  2894. const m___FLT64_HAS_QUIET_NAN__ = 1
  2895. const m___FLT64_IS_IEC_60559__ = 1
  2896. const m___FLT64_MANT_DIG__ = 53
  2897. const m___FLT64_MAX_10_EXP__ = 308
  2898. const m___FLT64_MAX_EXP__ = 1024
  2899. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  2900. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  2901. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  2902. const m___FLT_DECIMAL_DIG__ = 9
  2903. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  2904. const m___FLT_DIG__ = 6
  2905. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  2906. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  2907. const m___FLT_EVAL_METHOD__ = 0
  2908. const m___FLT_HAS_DENORM__ = 1
  2909. const m___FLT_HAS_INFINITY__ = 1
  2910. const m___FLT_HAS_QUIET_NAN__ = 1
  2911. const m___FLT_IS_IEC_60559__ = 1
  2912. const m___FLT_MANT_DIG__ = 24
  2913. const m___FLT_MAX_10_EXP__ = 38
  2914. const m___FLT_MAX_EXP__ = 128
  2915. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  2916. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  2917. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  2918. const m___FLT_RADIX__ = 2
  2919. const m___FP_FAST_FMA = 1
  2920. const m___FP_FAST_FMAF = 1
  2921. const m___FP_FAST_FMAF32 = 1
  2922. const m___FP_FAST_FMAF32x = 1
  2923. const m___FP_FAST_FMAF64 = 1
  2924. const m___FRACT_EPSILON__ = "0x1P-15R"
  2925. const m___FRACT_FBIT__ = 15
  2926. const m___FRACT_IBIT__ = 0
  2927. const m___FRACT_MAX__ = "0X7FFFP-15R"
  2928. const m___FUNCTION__ = "__func__"
  2929. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  2930. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  2931. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  2932. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  2933. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  2934. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  2935. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  2936. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  2937. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  2938. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  2939. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  2940. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  2941. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  2942. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  2943. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  2944. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  2945. const m___GCC_IEC_559 = 2
  2946. const m___GCC_IEC_559_COMPLEX = 2
  2947. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  2948. const m___GNUC_MINOR__ = 2
  2949. const m___GNUC_PATCHLEVEL__ = 1
  2950. const m___GNUC_RH_RELEASE__ = 6
  2951. const m___GNUC_STDC_INLINE__ = 1
  2952. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  2953. const m___GNUC__ = 14
  2954. const m___GXX_ABI_VERSION = 1019
  2955. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  2956. const m___HA_FBIT__ = 7
  2957. const m___HA_IBIT__ = 8
  2958. const m___HQ_FBIT__ = 15
  2959. const m___HQ_IBIT__ = 0
  2960. const m___INT16_MAX__ = 0x7fff
  2961. const m___INT32_MAX__ = 0x7fffffff
  2962. const m___INT32_TYPE__ = "int"
  2963. const m___INT64_MAX__ = 0x7fffffffffffffff
  2964. const m___INT8_MAX__ = 0x7f
  2965. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  2966. const m___INTMAX_WIDTH__ = 64
  2967. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  2968. const m___INTPTR_WIDTH__ = 64
  2969. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  2970. const m___INT_FAST16_WIDTH__ = 64
  2971. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  2972. const m___INT_FAST32_WIDTH__ = 64
  2973. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  2974. const m___INT_FAST64_WIDTH__ = 64
  2975. const m___INT_FAST8_MAX__ = 0x7f
  2976. const m___INT_FAST8_WIDTH__ = 8
  2977. const m___INT_LEAST16_MAX__ = 0x7fff
  2978. const m___INT_LEAST16_WIDTH__ = 16
  2979. const m___INT_LEAST32_MAX__ = 0x7fffffff
  2980. const m___INT_LEAST32_TYPE__ = "int"
  2981. const m___INT_LEAST32_WIDTH__ = 32
  2982. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  2983. const m___INT_LEAST64_WIDTH__ = 64
  2984. const m___INT_LEAST8_MAX__ = 0x7f
  2985. const m___INT_LEAST8_WIDTH__ = 8
  2986. const m___INT_MAX__ = 0x7fffffff
  2987. const m___INT_WIDTH__ = 32
  2988. const m___LACCUM_EPSILON__ = "0x1P-31LK"
  2989. const m___LACCUM_FBIT__ = 31
  2990. const m___LACCUM_IBIT__ = 32
  2991. const m___LACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LK"
  2992. const m___LDBL_DECIMAL_DIG__ = 36
  2993. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  2994. const m___LDBL_DIG__ = 33
  2995. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  2996. const m___LDBL_HAS_DENORM__ = 1
  2997. const m___LDBL_HAS_INFINITY__ = 1
  2998. const m___LDBL_HAS_QUIET_NAN__ = 1
  2999. const m___LDBL_IS_IEC_60559__ = 1
  3000. const m___LDBL_MANT_DIG__ = 113
  3001. const m___LDBL_MAX_10_EXP__ = 4932
  3002. const m___LDBL_MAX_EXP__ = 16384
  3003. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  3004. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  3005. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  3006. const m___LFRACT_EPSILON__ = "0x1P-31LR"
  3007. const m___LFRACT_FBIT__ = 31
  3008. const m___LFRACT_IBIT__ = 0
  3009. const m___LFRACT_MAX__ = "0X7FFFFFFFP-31LR"
  3010. const m___LITTLE_ENDIAN = 1234
  3011. const m___LLACCUM_EPSILON__ = "0x1P-63LLK"
  3012. const m___LLACCUM_FBIT__ = 63
  3013. const m___LLACCUM_IBIT__ = 64
  3014. const m___LLACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-63LLK"
  3015. const m___LLFRACT_EPSILON__ = "0x1P-63LLR"
  3016. const m___LLFRACT_FBIT__ = 63
  3017. const m___LLFRACT_IBIT__ = 0
  3018. const m___LLFRACT_MAX__ = "0X7FFFFFFFFFFFFFFFP-63LLR"
  3019. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  3020. const m___LONG_LONG_WIDTH__ = 64
  3021. const m___LONG_MAX = 0x7fffffffffffffff
  3022. const m___LONG_MAX__ = 0x7fffffffffffffff
  3023. const m___LONG_WIDTH__ = 64
  3024. const m___LP64__ = 1
  3025. const m___NO_INLINE__ = 1
  3026. const m___ORDER_BIG_ENDIAN__ = 4321
  3027. const m___ORDER_LITTLE_ENDIAN__ = 1234
  3028. const m___ORDER_PDP_ENDIAN__ = 3412
  3029. const m___PDP_ENDIAN = 3412
  3030. const m___PRAGMA_REDEFINE_EXTNAME = 1
  3031. const m___PRETTY_FUNCTION__ = "__func__"
  3032. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  3033. const m___PTRDIFF_WIDTH__ = 64
  3034. const m___QQ_FBIT__ = 7
  3035. const m___QQ_IBIT__ = 0
  3036. const m___REGISTER_PREFIX__ = "$"
  3037. const m___SACCUM_EPSILON__ = "0x1P-7HK"
  3038. const m___SACCUM_FBIT__ = 7
  3039. const m___SACCUM_IBIT__ = 8
  3040. const m___SACCUM_MAX__ = "0X7FFFP-7HK"
  3041. const m___SA_FBIT__ = 15
  3042. const m___SA_IBIT__ = 16
  3043. const m___SCHAR_MAX__ = 0x7f
  3044. const m___SCHAR_WIDTH__ = 8
  3045. const m___SFRACT_EPSILON__ = "0x1P-7HR"
  3046. const m___SFRACT_FBIT__ = 7
  3047. const m___SFRACT_IBIT__ = 0
  3048. const m___SFRACT_MAX__ = "0X7FP-7HR"
  3049. const m___SHRT_MAX__ = 0x7fff
  3050. const m___SHRT_WIDTH__ = 16
  3051. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  3052. const m___SIG_ATOMIC_TYPE__ = "int"
  3053. const m___SIG_ATOMIC_WIDTH__ = 32
  3054. const m___SIZEOF_DOUBLE__ = 8
  3055. const m___SIZEOF_FLOAT__ = 4
  3056. const m___SIZEOF_INT128__ = 16
  3057. const m___SIZEOF_INT__ = 4
  3058. const m___SIZEOF_LONG_DOUBLE__ = 8
  3059. const m___SIZEOF_LONG_LONG__ = 8
  3060. const m___SIZEOF_LONG__ = 8
  3061. const m___SIZEOF_POINTER__ = 8
  3062. const m___SIZEOF_PTRDIFF_T__ = 8
  3063. const m___SIZEOF_SHORT__ = 2
  3064. const m___SIZEOF_SIZE_T__ = 8
  3065. const m___SIZEOF_WCHAR_T__ = 4
  3066. const m___SIZEOF_WINT_T__ = 4
  3067. const m___SIZE_MAX__ = 0xffffffffffffffff
  3068. const m___SIZE_WIDTH__ = 64
  3069. const m___SQ_FBIT__ = 31
  3070. const m___SQ_IBIT__ = 0
  3071. const m___STDC_HOSTED__ = 1
  3072. const m___STDC_IEC_559_COMPLEX__ = 1
  3073. const m___STDC_IEC_559__ = 1
  3074. const m___STDC_IEC_60559_BFP__ = 201404
  3075. const m___STDC_IEC_60559_COMPLEX__ = 201404
  3076. const m___STDC_ISO_10646__ = 201706
  3077. const m___STDC_UTF_16__ = 1
  3078. const m___STDC_UTF_32__ = 1
  3079. const m___STDC_VERSION__ = 201710
  3080. const m___STDC__ = 1
  3081. const m___TA_FBIT__ = 63
  3082. const m___TA_IBIT__ = 64
  3083. const m___TQ_FBIT__ = 127
  3084. const m___TQ_IBIT__ = 0
  3085. const m___UACCUM_EPSILON__ = "0x1P-16UK"
  3086. const m___UACCUM_FBIT__ = 16
  3087. const m___UACCUM_IBIT__ = 16
  3088. const m___UACCUM_MAX__ = "0XFFFFFFFFP-16UK"
  3089. const m___UACCUM_MIN__ = "0.0UK"
  3090. const m___UDA_FBIT__ = 32
  3091. const m___UDA_IBIT__ = 32
  3092. const m___UDQ_FBIT__ = 64
  3093. const m___UDQ_IBIT__ = 0
  3094. const m___UFRACT_EPSILON__ = "0x1P-16UR"
  3095. const m___UFRACT_FBIT__ = 16
  3096. const m___UFRACT_IBIT__ = 0
  3097. const m___UFRACT_MAX__ = "0XFFFFP-16UR"
  3098. const m___UFRACT_MIN__ = "0.0UR"
  3099. const m___UHA_FBIT__ = 8
  3100. const m___UHA_IBIT__ = 8
  3101. const m___UHQ_FBIT__ = 16
  3102. const m___UHQ_IBIT__ = 0
  3103. const m___UINT16_MAX__ = 0xffff
  3104. const m___UINT32_MAX__ = 0xffffffff
  3105. const m___UINT64_MAX__ = 0xffffffffffffffff
  3106. const m___UINT8_MAX__ = 0xff
  3107. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  3108. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  3109. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  3110. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  3111. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  3112. const m___UINT_FAST8_MAX__ = 0xff
  3113. const m___UINT_LEAST16_MAX__ = 0xffff
  3114. const m___UINT_LEAST32_MAX__ = 0xffffffff
  3115. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  3116. const m___UINT_LEAST8_MAX__ = 0xff
  3117. const m___ULACCUM_EPSILON__ = "0x1P-32ULK"
  3118. const m___ULACCUM_FBIT__ = 32
  3119. const m___ULACCUM_IBIT__ = 32
  3120. const m___ULACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULK"
  3121. const m___ULACCUM_MIN__ = "0.0ULK"
  3122. const m___ULFRACT_EPSILON__ = "0x1P-32ULR"
  3123. const m___ULFRACT_FBIT__ = 32
  3124. const m___ULFRACT_IBIT__ = 0
  3125. const m___ULFRACT_MAX__ = "0XFFFFFFFFP-32ULR"
  3126. const m___ULFRACT_MIN__ = "0.0ULR"
  3127. const m___ULLACCUM_EPSILON__ = "0x1P-64ULLK"
  3128. const m___ULLACCUM_FBIT__ = 64
  3129. const m___ULLACCUM_IBIT__ = 64
  3130. const m___ULLACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-64ULLK"
  3131. const m___ULLACCUM_MIN__ = "0.0ULLK"
  3132. const m___ULLFRACT_EPSILON__ = "0x1P-64ULLR"
  3133. const m___ULLFRACT_FBIT__ = 64
  3134. const m___ULLFRACT_IBIT__ = 0
  3135. const m___ULLFRACT_MAX__ = "0XFFFFFFFFFFFFFFFFP-64ULLR"
  3136. const m___ULLFRACT_MIN__ = "0.0ULLR"
  3137. const m___UQQ_FBIT__ = 8
  3138. const m___UQQ_IBIT__ = 0
  3139. const m___USACCUM_EPSILON__ = "0x1P-8UHK"
  3140. const m___USACCUM_FBIT__ = 8
  3141. const m___USACCUM_IBIT__ = 8
  3142. const m___USACCUM_MAX__ = "0XFFFFP-8UHK"
  3143. const m___USACCUM_MIN__ = "0.0UHK"
  3144. const m___USA_FBIT__ = 16
  3145. const m___USA_IBIT__ = 16
  3146. const m___USE_TIME_BITS64 = 1
  3147. const m___USFRACT_EPSILON__ = "0x1P-8UHR"
  3148. const m___USFRACT_FBIT__ = 8
  3149. const m___USFRACT_IBIT__ = 0
  3150. const m___USFRACT_MAX__ = "0XFFP-8UHR"
  3151. const m___USFRACT_MIN__ = "0.0UHR"
  3152. const m___USQ_FBIT__ = 32
  3153. const m___USQ_IBIT__ = 0
  3154. const m___UTA_FBIT__ = 64
  3155. const m___UTA_IBIT__ = 64
  3156. const m___UTQ_FBIT__ = 128
  3157. const m___UTQ_IBIT__ = 0
  3158. const m___VERSION__ = "14.2.1 20241104 (Red Hat 14.2.1-6)"
  3159. const m___WCHAR_MAX__ = 0x7fffffff
  3160. const m___WCHAR_TYPE__ = "int"
  3161. const m___WCHAR_WIDTH__ = 32
  3162. const m___WINT_MAX__ = 0xffffffff
  3163. const m___WINT_MIN__ = 0
  3164. const m___WINT_WIDTH__ = 32
  3165. const m___builtin_copysignq = "__builtin_copysignf128"
  3166. const m___builtin_fabsq = "__builtin_fabsf128"
  3167. const m___builtin_huge_valq = "__builtin_huge_valf128"
  3168. const m___builtin_infq = "__builtin_inff128"
  3169. const m___builtin_nanq = "__builtin_nanf128"
  3170. const m___builtin_nansq = "__builtin_nansf128"
  3171. const m___gnu_linux__ = 1
  3172. const m___inline = "inline"
  3173. const m___linux = 1
  3174. const m___linux__ = 1
  3175. const m___loongarch64 = 1
  3176. const m___loongarch__ = 1
  3177. const m___loongarch_arch = "la64v1.0"
  3178. const m___loongarch_double_float = 1
  3179. const m___loongarch_frlen = 64
  3180. const m___loongarch_grlen = 64
  3181. const m___loongarch_hard_float = 1
  3182. const m___loongarch_lp64 = 1
  3183. const m___loongarch_simd = 1
  3184. const m___loongarch_simd_width = 128
  3185. const m___loongarch_sx = 1
  3186. const m___loongarch_tune = "generic"
  3187. const m___loongarch_version_major = 1
  3188. const m___loongarch_version_minor = 0
  3189. const m___restrict = "restrict"
  3190. const m___restrict_arr = "restrict"
  3191. const m___unix = 1
  3192. const m___unix__ = 1
  3193. const m_alloca = "__builtin_alloca"
  3194. const m_linux = 1
  3195. const m_sz_xAllocColorCellsReply = 32
  3196. const m_sz_xAllocColorCellsReq = 12
  3197. const m_sz_xAllocColorPlanesReply = 32
  3198. const m_sz_xAllocColorPlanesReq = 16
  3199. const m_sz_xAllocColorReply = 32
  3200. const m_sz_xAllocColorReq = 16
  3201. const m_sz_xAllocNamedColorReply = 32
  3202. const m_sz_xAllocNamedColorReq = 12
  3203. const m_sz_xAllowEventsReq = 8
  3204. const m_sz_xAnimCursorElt = 8
  3205. const m_sz_xArc = 12
  3206. const m_sz_xBellReq = 4
  3207. const m_sz_xChangeActivePointerGrabReq = 16
  3208. const m_sz_xChangeGCReq = 12
  3209. const m_sz_xChangeHostsReq = 8
  3210. const m_sz_xChangeKeyboardControlReq = 8
  3211. const m_sz_xChangeKeyboardMappingReq = 8
  3212. const m_sz_xChangeModeReq = 4
  3213. const m_sz_xChangePointerControlReq = 12
  3214. const m_sz_xChangePropertyReq = 24
  3215. const m_sz_xChangeSaveSetReq = 8
  3216. const m_sz_xChangeWindowAttributesReq = 12
  3217. const m_sz_xCharInfo = 12
  3218. const m_sz_xCirculateWindowReq = 8
  3219. const m_sz_xClearAreaReq = 16
  3220. const m_sz_xColorItem = 12
  3221. const m_sz_xConfigureWindowReq = 12
  3222. const m_sz_xConnClientPrefix = 12
  3223. const m_sz_xConnSetup = 32
  3224. const m_sz_xConnSetupPrefix = 8
  3225. const m_sz_xConvertSelectionReq = 24
  3226. const m_sz_xCopyAreaReq = 28
  3227. const m_sz_xCopyColormapAndFreeReq = 12
  3228. const m_sz_xCopyGCReq = 16
  3229. const m_sz_xCopyPlaneReq = 32
  3230. const m_sz_xCreateColormapReq = 16
  3231. const m_sz_xCreateCursorReq = 32
  3232. const m_sz_xCreateGCReq = 16
  3233. const m_sz_xCreateGlyphCursorReq = 32
  3234. const m_sz_xCreatePixmapReq = 16
  3235. const m_sz_xCreateWindowReq = 32
  3236. const m_sz_xDeletePropertyReq = 12
  3237. const m_sz_xDepth = 8
  3238. const m_sz_xDirectFormat = 16
  3239. const m_sz_xError = 32
  3240. const m_sz_xEvent = 32
  3241. const m_sz_xFillPolyReq = 16
  3242. const m_sz_xFontProp = 8
  3243. const m_sz_xForceScreenSaverReq = 4
  3244. const m_sz_xFreeColorsReq = 12
  3245. const m_sz_xGenericReply = 32
  3246. const m_sz_xGetAtomNameReply = 32
  3247. const m_sz_xGetFontPathReply = 32
  3248. const m_sz_xGetGeometryReply = 32
  3249. const m_sz_xGetImageReply = 32
  3250. const m_sz_xGetImageReq = 20
  3251. const m_sz_xGetInputFocusReply = 32
  3252. const m_sz_xGetKeyboardControlReply = 52
  3253. const m_sz_xGetKeyboardMappingReply = 32
  3254. const m_sz_xGetKeyboardMappingReq = 8
  3255. const m_sz_xGetModifierMappingReply = 32
  3256. const m_sz_xGetMotionEventsReply = 32
  3257. const m_sz_xGetMotionEventsReq = 16
  3258. const m_sz_xGetPointerControlReply = 32
  3259. const m_sz_xGetPointerMappingReply = 32
  3260. const m_sz_xGetPropertyReply = 32
  3261. const m_sz_xGetPropertyReq = 24
  3262. const m_sz_xGetScreenSaverReply = 32
  3263. const m_sz_xGetSelectionOwnerReply = 32
  3264. const m_sz_xGetWindowAttributesReply = 44
  3265. const m_sz_xGlyphElt = 8
  3266. const m_sz_xGlyphInfo = 12
  3267. const m_sz_xGrabButtonReq = 24
  3268. const m_sz_xGrabKeyReq = 16
  3269. const m_sz_xGrabKeyboardReply = 32
  3270. const m_sz_xGrabKeyboardReq = 16
  3271. const m_sz_xGrabPointerReply = 32
  3272. const m_sz_xGrabPointerReq = 24
  3273. const m_sz_xHostEntry = 4
  3274. const m_sz_xImageText16Req = 16
  3275. const m_sz_xImageText8Req = 16
  3276. const m_sz_xImageTextReq = 16
  3277. const m_sz_xIndexValue = 12
  3278. const m_sz_xInternAtomReply = 32
  3279. const m_sz_xInternAtomReq = 8
  3280. const m_sz_xKeymapEvent = 32
  3281. const m_sz_xLineFixed = 16
  3282. const m_sz_xListExtensionsReply = 32
  3283. const m_sz_xListFontsReply = 32
  3284. const m_sz_xListFontsReq = 8
  3285. const m_sz_xListFontsWithInfoReply = 60
  3286. const m_sz_xListFontsWithInfoReq = 8
  3287. const m_sz_xListHostsReply = 32
  3288. const m_sz_xListHostsReq = 4
  3289. const m_sz_xListInstalledColormapsReply = 32
  3290. const m_sz_xListPropertiesReply = 32
  3291. const m_sz_xLookupColorReply = 32
  3292. const m_sz_xLookupColorReq = 12
  3293. const m_sz_xOpenFontReq = 12
  3294. const m_sz_xPictDepth = 8
  3295. const m_sz_xPictFormInfo = 28
  3296. const m_sz_xPictScreen = 8
  3297. const m_sz_xPictVisual = 8
  3298. const m_sz_xPixmapFormat = 8
  3299. const m_sz_xPoint = 4
  3300. const m_sz_xPointFixed = 8
  3301. const m_sz_xPolyArcReq = 12
  3302. const m_sz_xPolyFillArcReq = 12
  3303. const m_sz_xPolyFillRectangleReq = 12
  3304. const m_sz_xPolyLineReq = 12
  3305. const m_sz_xPolyPointReq = 12
  3306. const m_sz_xPolyRectangleReq = 12
  3307. const m_sz_xPolySegmentReq = 12
  3308. const m_sz_xPolyText16Req = 16
  3309. const m_sz_xPolyText8Req = 16
  3310. const m_sz_xPolyTextReq = 16
  3311. const m_sz_xPropIconSize = 24
  3312. const m_sz_xPutImageReq = 24
  3313. const m_sz_xQueryBestSizeReply = 32
  3314. const m_sz_xQueryBestSizeReq = 12
  3315. const m_sz_xQueryColorsReply = 32
  3316. const m_sz_xQueryColorsReq = 8
  3317. const m_sz_xQueryExtensionReply = 32
  3318. const m_sz_xQueryExtensionReq = 8
  3319. const m_sz_xQueryFontReply = 60
  3320. const m_sz_xQueryKeymapReply = 40
  3321. const m_sz_xQueryPointerReply = 32
  3322. const m_sz_xQueryTextExtentsReply = 32
  3323. const m_sz_xQueryTextExtentsReq = 8
  3324. const m_sz_xQueryTreeReply = 32
  3325. const m_sz_xRecolorCursorReq = 20
  3326. const m_sz_xRectangle = 8
  3327. const m_sz_xRenderAddGlyphsReq = 12
  3328. const m_sz_xRenderAddTrapsReq = 12
  3329. const m_sz_xRenderChangePictureReq = 12
  3330. const m_sz_xRenderColor = 8
  3331. const m_sz_xRenderCompositeGlyphs16Req = 28
  3332. const m_sz_xRenderCompositeGlyphs32Req = 28
  3333. const m_sz_xRenderCompositeGlyphs8Req = 28
  3334. const m_sz_xRenderCompositeReq = 36
  3335. const m_sz_xRenderCreateAnimCursorReq = 8
  3336. const m_sz_xRenderCreateConicalGradientReq = 24
  3337. const m_sz_xRenderCreateCursorReq = 16
  3338. const m_sz_xRenderCreateGlyphSetReq = 12
  3339. const m_sz_xRenderCreateLinearGradientReq = 28
  3340. const m_sz_xRenderCreatePictureReq = 20
  3341. const m_sz_xRenderCreateRadialGradientReq = 36
  3342. const m_sz_xRenderCreateSolidFillReq = 16
  3343. const m_sz_xRenderFillRectanglesReq = 20
  3344. const m_sz_xRenderFreeGlyphSetReq = 8
  3345. const m_sz_xRenderFreeGlyphsReq = 8
  3346. const m_sz_xRenderFreePictureReq = 8
  3347. const m_sz_xRenderQueryFiltersReply = 32
  3348. const m_sz_xRenderQueryFiltersReq = 8
  3349. const m_sz_xRenderQueryPictFormatsReply = 32
  3350. const m_sz_xRenderQueryPictFormatsReq = 4
  3351. const m_sz_xRenderQueryPictIndexValuesReply = 32
  3352. const m_sz_xRenderQueryPictIndexValuesReq = 8
  3353. const m_sz_xRenderQueryVersionReply = 32
  3354. const m_sz_xRenderQueryVersionReq = 12
  3355. const m_sz_xRenderReferenceGlyphSetReq = 24
  3356. const m_sz_xRenderScaleReq = 32
  3357. const m_sz_xRenderSetPictureClipRectanglesReq = 12
  3358. const m_sz_xRenderSetPictureFilterReq = 12
  3359. const m_sz_xRenderSetPictureTransformReq = 44
  3360. const m_sz_xRenderTransform = 36
  3361. const m_sz_xRenderTrapezoidsReq = 24
  3362. const m_sz_xRenderTriFanReq = 24
  3363. const m_sz_xRenderTriStripReq = 24
  3364. const m_sz_xRenderTrianglesReq = 24
  3365. const m_sz_xReparentWindowReq = 16
  3366. const m_sz_xReply = 32
  3367. const m_sz_xReq = 4
  3368. const m_sz_xResourceReq = 8
  3369. const m_sz_xRotatePropertiesReq = 12
  3370. const m_sz_xSegment = 8
  3371. const m_sz_xSendEventReq = 44
  3372. const m_sz_xSetAccessControlReq = 4
  3373. const m_sz_xSetClipRectanglesReq = 12
  3374. const m_sz_xSetCloseDownModeReq = 4
  3375. const m_sz_xSetDashesReq = 12
  3376. const m_sz_xSetFontPathReq = 8
  3377. const m_sz_xSetInputFocusReq = 12
  3378. const m_sz_xSetMappingReply = 32
  3379. const m_sz_xSetModifierMappingReply = 32
  3380. const m_sz_xSetModifierMappingReq = 4
  3381. const m_sz_xSetPointerMappingReply = 32
  3382. const m_sz_xSetPointerMappingReq = 4
  3383. const m_sz_xSetScreenSaverReq = 12
  3384. const m_sz_xSetSelectionOwnerReq = 16
  3385. const m_sz_xSpanFix = 12
  3386. const m_sz_xStoreColorsReq = 8
  3387. const m_sz_xStoreNamedColorReq = 16
  3388. const m_sz_xTextElt = 2
  3389. const m_sz_xTimecoord = 8
  3390. const m_sz_xTranslateCoordsReply = 32
  3391. const m_sz_xTranslateCoordsReq = 16
  3392. const m_sz_xTrap = 24
  3393. const m_sz_xTrapezoid = 40
  3394. const m_sz_xTriangle = 24
  3395. const m_sz_xUngrabButtonReq = 12
  3396. const m_sz_xUngrabKeyReq = 12
  3397. const m_sz_xVisualType = 24
  3398. const m_sz_xWarpPointerReq = 24
  3399. const m_sz_xWindowRoot = 40
  3400. const m_sz_xrgb = 8
  3401. const m_unix = 1
  3402. const m_xFalse = 0
  3403. const m_xTrue = 1
  3404. type t__builtin_va_list = uintptr
  3405. type t__predefined_size_t = uint64
  3406. type t__predefined_wchar_t = int32
  3407. type t__predefined_ptrdiff_t = int64
  3408. type Tuintptr_t = uint64
  3409. type Tintptr_t = int64
  3410. type Tint8_t = int8
  3411. type Tint16_t = int16
  3412. type Tint32_t = int32
  3413. type Tint64_t = int64
  3414. type Tintmax_t = int64
  3415. type Tuint8_t = uint8
  3416. type Tuint16_t = uint16
  3417. type Tuint32_t = uint32
  3418. type Tuint64_t = uint64
  3419. type Tuintmax_t = uint64
  3420. type Tint_fast8_t = int8
  3421. type Tint_fast64_t = int64
  3422. type Tint_least8_t = int8
  3423. type Tint_least16_t = int16
  3424. type Tint_least32_t = int32
  3425. type Tint_least64_t = int64
  3426. type Tuint_fast8_t = uint8
  3427. type Tuint_fast64_t = uint64
  3428. type Tuint_least8_t = uint8
  3429. type Tuint_least16_t = uint16
  3430. type Tuint_least32_t = uint32
  3431. type Tuint_least64_t = uint64
  3432. type Tint_fast16_t = int32
  3433. type Tint_fast32_t = int32
  3434. type Tuint_fast16_t = uint32
  3435. type Tuint_fast32_t = uint32
  3436. type Tnlink_t = uint32
  3437. type Tblksize_t = int32
  3438. type Tsize_t = uint64
  3439. type Tssize_t = int64
  3440. type Tregister_t = int64
  3441. type Ttime_t = int64
  3442. type Tsuseconds_t = int64
  3443. type Tu_int64_t = uint64
  3444. type Tmode_t = uint32
  3445. type Toff_t = int64
  3446. type Tino_t = uint64
  3447. type Tdev_t = uint64
  3448. type Tblkcnt_t = int64
  3449. type Tfsblkcnt_t = uint64
  3450. type Tfsfilcnt_t = uint64
  3451. type Ttimer_t = uintptr
  3452. type Tclockid_t = int32
  3453. type Tclock_t = int64
  3454. type Tpid_t = int32
  3455. type Tid_t = uint32
  3456. type Tuid_t = uint32
  3457. type Tgid_t = uint32
  3458. type Tkey_t = int32
  3459. type Tuseconds_t = uint32
  3460. type Tpthread_t = uintptr
  3461. type Tpthread_once_t = int32
  3462. type Tpthread_key_t = uint32
  3463. type Tpthread_spinlock_t = int32
  3464. type Tpthread_mutexattr_t = struct {
  3465. F__attr uint32
  3466. }
  3467. type Tpthread_condattr_t = struct {
  3468. F__attr uint32
  3469. }
  3470. type Tpthread_barrierattr_t = struct {
  3471. F__attr uint32
  3472. }
  3473. type Tpthread_rwlockattr_t = struct {
  3474. F__attr [2]uint32
  3475. }
  3476. type Tpthread_attr_t = struct {
  3477. F__u struct {
  3478. F__vi [0][14]int32
  3479. F__s [0][7]uint64
  3480. F__i [14]int32
  3481. }
  3482. }
  3483. type Tpthread_mutex_t = struct {
  3484. F__u struct {
  3485. F__vi [0][10]int32
  3486. F__p [0][5]uintptr
  3487. F__i [10]int32
  3488. }
  3489. }
  3490. type Tpthread_cond_t = struct {
  3491. F__u struct {
  3492. F__vi [0][12]int32
  3493. F__p [0][6]uintptr
  3494. F__i [12]int32
  3495. }
  3496. }
  3497. type Tpthread_rwlock_t = struct {
  3498. F__u struct {
  3499. F__vi [0][14]int32
  3500. F__p [0][7]uintptr
  3501. F__i [14]int32
  3502. }
  3503. }
  3504. type Tpthread_barrier_t = struct {
  3505. F__u struct {
  3506. F__vi [0][8]int32
  3507. F__p [0][4]uintptr
  3508. F__i [8]int32
  3509. }
  3510. }
  3511. type Tu_int8_t = uint8
  3512. type Tu_int16_t = uint16
  3513. type Tu_int32_t = uint32
  3514. type Tcaddr_t = uintptr
  3515. type Tu_char = uint8
  3516. type Tu_short = uint16
  3517. type Tushort = uint16
  3518. type Tu_int = uint32
  3519. type Tuint = uint32
  3520. type Tu_long = uint64
  3521. type Tulong = uint64
  3522. type Tquad_t = int64
  3523. type Tu_quad_t = uint64
  3524. type Ttimeval = struct {
  3525. Ftv_sec Ttime_t
  3526. Ftv_usec Tsuseconds_t
  3527. }
  3528. type Ttimespec = struct {
  3529. Ftv_sec Ttime_t
  3530. Ftv_nsec int64
  3531. }
  3532. type Tsigset_t = struct {
  3533. F__bits [16]uint64
  3534. }
  3535. type t__sigset_t = Tsigset_t
  3536. type Tfd_mask = uint64
  3537. type Tfd_set = struct {
  3538. Ffds_bits [16]uint64
  3539. }
  3540. type TXID = uint64
  3541. type TMask = uint64
  3542. type TAtom = uint64
  3543. type TVisualID = uint64
  3544. type TTime = uint64
  3545. type TWindow = uint64
  3546. type TDrawable = uint64
  3547. type TFont = uint64
  3548. type TPixmap = uint64
  3549. type TCursor = uint64
  3550. type TColormap = uint64
  3551. type TGContext = uint64
  3552. type TKeySym = uint64
  3553. type TKeyCode = uint8
  3554. type Twchar_t = int32
  3555. type Tmax_align_t = struct {
  3556. F__ll int64
  3557. F__ld float64
  3558. }
  3559. type Tptrdiff_t = int64
  3560. type TXPointer = uintptr
  3561. type TXExtData = struct {
  3562. Fnumber int32
  3563. Fnext uintptr
  3564. Ffree_private uintptr
  3565. Fprivate_data TXPointer
  3566. }
  3567. type T_XExtData = TXExtData
  3568. type TXExtCodes = struct {
  3569. Fextension int32
  3570. Fmajor_opcode int32
  3571. Ffirst_event int32
  3572. Ffirst_error int32
  3573. }
  3574. type TXPixmapFormatValues = struct {
  3575. Fdepth int32
  3576. Fbits_per_pixel int32
  3577. Fscanline_pad int32
  3578. }
  3579. type TXGCValues = struct {
  3580. Ffunction int32
  3581. Fplane_mask uint64
  3582. Fforeground uint64
  3583. Fbackground uint64
  3584. Fline_width int32
  3585. Fline_style int32
  3586. Fcap_style int32
  3587. Fjoin_style int32
  3588. Ffill_style int32
  3589. Ffill_rule int32
  3590. Farc_mode int32
  3591. Ftile TPixmap
  3592. Fstipple TPixmap
  3593. Fts_x_origin int32
  3594. Fts_y_origin int32
  3595. Ffont TFont
  3596. Fsubwindow_mode int32
  3597. Fgraphics_exposures int32
  3598. Fclip_x_origin int32
  3599. Fclip_y_origin int32
  3600. Fclip_mask TPixmap
  3601. Fdash_offset int32
  3602. Fdashes int8
  3603. }
  3604. type TGC = uintptr
  3605. type T_XGC = struct {
  3606. Fext_data uintptr
  3607. Fgid TGContext
  3608. Frects int32
  3609. Fdashes int32
  3610. Fdirty uint64
  3611. Fvalues TXGCValues
  3612. }
  3613. type TVisual = struct {
  3614. Fext_data uintptr
  3615. Fvisualid TVisualID
  3616. Fclass int32
  3617. Fred_mask uint64
  3618. Fgreen_mask uint64
  3619. Fblue_mask uint64
  3620. Fbits_per_rgb int32
  3621. Fmap_entries int32
  3622. }
  3623. type TDepth = struct {
  3624. Fdepth int32
  3625. Fnvisuals int32
  3626. Fvisuals uintptr
  3627. }
  3628. type T_XDisplay = struct {
  3629. Fext_data uintptr
  3630. Ffree_funcs uintptr
  3631. Ffd int32
  3632. Fconn_checker int32
  3633. Fproto_major_version int32
  3634. Fproto_minor_version int32
  3635. Fvendor uintptr
  3636. Fresource_base TXID
  3637. Fresource_mask TXID
  3638. Fresource_id TXID
  3639. Fresource_shift int32
  3640. Fresource_alloc uintptr
  3641. Fbyte_order int32
  3642. Fbitmap_unit int32
  3643. Fbitmap_pad int32
  3644. Fbitmap_bit_order int32
  3645. Fnformats int32
  3646. Fpixmap_format uintptr
  3647. Fvnumber int32
  3648. Frelease int32
  3649. Fhead uintptr
  3650. Ftail uintptr
  3651. Fqlen int32
  3652. Flast_request_read uint64
  3653. Frequest uint64
  3654. Flast_req uintptr
  3655. Fbuffer uintptr
  3656. Fbufptr uintptr
  3657. Fbufmax uintptr
  3658. Fmax_request_size uint32
  3659. Fdb uintptr
  3660. Fsynchandler uintptr
  3661. Fdisplay_name uintptr
  3662. Fdefault_screen int32
  3663. Fnscreens int32
  3664. Fscreens uintptr
  3665. Fmotion_buffer uint64
  3666. Fflags uint64
  3667. Fmin_keycode int32
  3668. Fmax_keycode int32
  3669. Fkeysyms uintptr
  3670. Fmodifiermap uintptr
  3671. Fkeysyms_per_keycode int32
  3672. Fxdefaults uintptr
  3673. Fscratch_buffer uintptr
  3674. Fscratch_length uint64
  3675. Fext_number int32
  3676. Fext_procs uintptr
  3677. Fevent_vec [128]uintptr
  3678. Fwire_vec [128]uintptr
  3679. Flock_meaning TKeySym
  3680. Flock uintptr
  3681. Fasync_handlers uintptr
  3682. Fbigreq_size uint64
  3683. Flock_fns uintptr
  3684. Fidlist_alloc uintptr
  3685. Fkey_bindings uintptr
  3686. Fcursor_font TFont
  3687. Fatoms uintptr
  3688. Fmode_switch uint32
  3689. Fnum_lock uint32
  3690. Fcontext_db uintptr
  3691. Ferror_vec uintptr
  3692. Fcms struct {
  3693. FdefaultCCCs TXPointer
  3694. FclientCmaps TXPointer
  3695. FperVisualIntensityMaps TXPointer
  3696. }
  3697. Fim_filters uintptr
  3698. Fqfree uintptr
  3699. Fnext_event_serial_num uint64
  3700. Fflushes uintptr
  3701. Fim_fd_info uintptr
  3702. Fim_fd_length int32
  3703. Fconn_watchers uintptr
  3704. Fwatcher_count int32
  3705. Ffiledes TXPointer
  3706. Fsavedsynchandler uintptr
  3707. Fresource_max TXID
  3708. Fxcmisc_opcode int32
  3709. Fxkb_info uintptr
  3710. Ftrans_conn uintptr
  3711. Fxcb uintptr
  3712. Fnext_cookie uint32
  3713. Fgeneric_event_vec [128]uintptr
  3714. Fgeneric_event_copy_vec [128]uintptr
  3715. Fcookiejar uintptr
  3716. Ferror_threads uintptr
  3717. Fexit_handler TXIOErrorExitHandler
  3718. Fexit_handler_data uintptr
  3719. }
  3720. type TScreen = struct {
  3721. Fext_data uintptr
  3722. Fdisplay uintptr
  3723. Froot TWindow
  3724. Fwidth int32
  3725. Fheight int32
  3726. Fmwidth int32
  3727. Fmheight int32
  3728. Fndepths int32
  3729. Fdepths uintptr
  3730. Froot_depth int32
  3731. Froot_visual uintptr
  3732. Fdefault_gc TGC
  3733. Fcmap TColormap
  3734. Fwhite_pixel uint64
  3735. Fblack_pixel uint64
  3736. Fmax_maps int32
  3737. Fmin_maps int32
  3738. Fbacking_store int32
  3739. Fsave_unders int32
  3740. Froot_input_mask int64
  3741. }
  3742. type TScreenFormat = struct {
  3743. Fext_data uintptr
  3744. Fdepth int32
  3745. Fbits_per_pixel int32
  3746. Fscanline_pad int32
  3747. }
  3748. type TXSetWindowAttributes = struct {
  3749. Fbackground_pixmap TPixmap
  3750. Fbackground_pixel uint64
  3751. Fborder_pixmap TPixmap
  3752. Fborder_pixel uint64
  3753. Fbit_gravity int32
  3754. Fwin_gravity int32
  3755. Fbacking_store int32
  3756. Fbacking_planes uint64
  3757. Fbacking_pixel uint64
  3758. Fsave_under int32
  3759. Fevent_mask int64
  3760. Fdo_not_propagate_mask int64
  3761. Foverride_redirect int32
  3762. Fcolormap TColormap
  3763. Fcursor TCursor
  3764. }
  3765. type TXWindowAttributes = struct {
  3766. Fx int32
  3767. Fy int32
  3768. Fwidth int32
  3769. Fheight int32
  3770. Fborder_width int32
  3771. Fdepth int32
  3772. Fvisual uintptr
  3773. Froot TWindow
  3774. Fclass int32
  3775. Fbit_gravity int32
  3776. Fwin_gravity int32
  3777. Fbacking_store int32
  3778. Fbacking_planes uint64
  3779. Fbacking_pixel uint64
  3780. Fsave_under int32
  3781. Fcolormap TColormap
  3782. Fmap_installed int32
  3783. Fmap_state int32
  3784. Fall_event_masks int64
  3785. Fyour_event_mask int64
  3786. Fdo_not_propagate_mask int64
  3787. Foverride_redirect int32
  3788. Fscreen uintptr
  3789. }
  3790. type TXHostAddress = struct {
  3791. Ffamily int32
  3792. Flength int32
  3793. Faddress uintptr
  3794. }
  3795. type TXServerInterpretedAddress = struct {
  3796. Ftypelength int32
  3797. Fvaluelength int32
  3798. Ftype1 uintptr
  3799. Fvalue uintptr
  3800. }
  3801. type TXImage = struct {
  3802. Fwidth int32
  3803. Fheight int32
  3804. Fxoffset int32
  3805. Fformat int32
  3806. Fdata uintptr
  3807. Fbyte_order int32
  3808. Fbitmap_unit int32
  3809. Fbitmap_bit_order int32
  3810. Fbitmap_pad int32
  3811. Fdepth int32
  3812. Fbytes_per_line int32
  3813. Fbits_per_pixel int32
  3814. Fred_mask uint64
  3815. Fgreen_mask uint64
  3816. Fblue_mask uint64
  3817. Fobdata TXPointer
  3818. Ff Tfuncs
  3819. }
  3820. type T_XImage = TXImage
  3821. type TXWindowChanges = struct {
  3822. Fx int32
  3823. Fy int32
  3824. Fwidth int32
  3825. Fheight int32
  3826. Fborder_width int32
  3827. Fsibling TWindow
  3828. Fstack_mode int32
  3829. }
  3830. type TXColor = struct {
  3831. Fpixel uint64
  3832. Fred uint16
  3833. Fgreen uint16
  3834. Fblue uint16
  3835. Fflags int8
  3836. Fpad int8
  3837. }
  3838. type TXSegment = struct {
  3839. Fx1 int16
  3840. Fy1 int16
  3841. Fx2 int16
  3842. Fy2 int16
  3843. }
  3844. type TXPoint = struct {
  3845. Fx int16
  3846. Fy int16
  3847. }
  3848. type TXRectangle = struct {
  3849. Fx int16
  3850. Fy int16
  3851. Fwidth uint16
  3852. Fheight uint16
  3853. }
  3854. type TXArc = struct {
  3855. Fx int16
  3856. Fy int16
  3857. Fwidth uint16
  3858. Fheight uint16
  3859. Fangle1 int16
  3860. Fangle2 int16
  3861. }
  3862. type TXKeyboardControl = struct {
  3863. Fkey_click_percent int32
  3864. Fbell_percent int32
  3865. Fbell_pitch int32
  3866. Fbell_duration int32
  3867. Fled int32
  3868. Fled_mode int32
  3869. Fkey int32
  3870. Fauto_repeat_mode int32
  3871. }
  3872. type TXKeyboardState = struct {
  3873. Fkey_click_percent int32
  3874. Fbell_percent int32
  3875. Fbell_pitch uint32
  3876. Fbell_duration uint32
  3877. Fled_mask uint64
  3878. Fglobal_auto_repeat int32
  3879. Fauto_repeats [32]int8
  3880. }
  3881. type TXTimeCoord = struct {
  3882. Ftime TTime
  3883. Fx int16
  3884. Fy int16
  3885. }
  3886. type TXModifierKeymap = struct {
  3887. Fmax_keypermod int32
  3888. Fmodifiermap uintptr
  3889. }
  3890. type TDisplay = struct {
  3891. Fext_data uintptr
  3892. Ffree_funcs uintptr
  3893. Ffd int32
  3894. Fconn_checker int32
  3895. Fproto_major_version int32
  3896. Fproto_minor_version int32
  3897. Fvendor uintptr
  3898. Fresource_base TXID
  3899. Fresource_mask TXID
  3900. Fresource_id TXID
  3901. Fresource_shift int32
  3902. Fresource_alloc uintptr
  3903. Fbyte_order int32
  3904. Fbitmap_unit int32
  3905. Fbitmap_pad int32
  3906. Fbitmap_bit_order int32
  3907. Fnformats int32
  3908. Fpixmap_format uintptr
  3909. Fvnumber int32
  3910. Frelease int32
  3911. Fhead uintptr
  3912. Ftail uintptr
  3913. Fqlen int32
  3914. Flast_request_read uint64
  3915. Frequest uint64
  3916. Flast_req uintptr
  3917. Fbuffer uintptr
  3918. Fbufptr uintptr
  3919. Fbufmax uintptr
  3920. Fmax_request_size uint32
  3921. Fdb uintptr
  3922. Fsynchandler uintptr
  3923. Fdisplay_name uintptr
  3924. Fdefault_screen int32
  3925. Fnscreens int32
  3926. Fscreens uintptr
  3927. Fmotion_buffer uint64
  3928. Fflags uint64
  3929. Fmin_keycode int32
  3930. Fmax_keycode int32
  3931. Fkeysyms uintptr
  3932. Fmodifiermap uintptr
  3933. Fkeysyms_per_keycode int32
  3934. Fxdefaults uintptr
  3935. Fscratch_buffer uintptr
  3936. Fscratch_length uint64
  3937. Fext_number int32
  3938. Fext_procs uintptr
  3939. Fevent_vec [128]uintptr
  3940. Fwire_vec [128]uintptr
  3941. Flock_meaning TKeySym
  3942. Flock uintptr
  3943. Fasync_handlers uintptr
  3944. Fbigreq_size uint64
  3945. Flock_fns uintptr
  3946. Fidlist_alloc uintptr
  3947. Fkey_bindings uintptr
  3948. Fcursor_font TFont
  3949. Fatoms uintptr
  3950. Fmode_switch uint32
  3951. Fnum_lock uint32
  3952. Fcontext_db uintptr
  3953. Ferror_vec uintptr
  3954. Fcms struct {
  3955. FdefaultCCCs TXPointer
  3956. FclientCmaps TXPointer
  3957. FperVisualIntensityMaps TXPointer
  3958. }
  3959. Fim_filters uintptr
  3960. Fqfree uintptr
  3961. Fnext_event_serial_num uint64
  3962. Fflushes uintptr
  3963. Fim_fd_info uintptr
  3964. Fim_fd_length int32
  3965. Fconn_watchers uintptr
  3966. Fwatcher_count int32
  3967. Ffiledes TXPointer
  3968. Fsavedsynchandler uintptr
  3969. Fresource_max TXID
  3970. Fxcmisc_opcode int32
  3971. Fxkb_info uintptr
  3972. Ftrans_conn uintptr
  3973. Fxcb uintptr
  3974. Fnext_cookie uint32
  3975. Fgeneric_event_vec [128]uintptr
  3976. Fgeneric_event_copy_vec [128]uintptr
  3977. Fcookiejar uintptr
  3978. Ferror_threads uintptr
  3979. Fexit_handler TXIOErrorExitHandler
  3980. Fexit_handler_data uintptr
  3981. }
  3982. type T_XPrivDisplay = uintptr
  3983. type TXKeyEvent = struct {
  3984. Ftype1 int32
  3985. Fserial uint64
  3986. Fsend_event int32
  3987. Fdisplay uintptr
  3988. Fwindow TWindow
  3989. Froot TWindow
  3990. Fsubwindow TWindow
  3991. Ftime TTime
  3992. Fx int32
  3993. Fy int32
  3994. Fx_root int32
  3995. Fy_root int32
  3996. Fstate uint32
  3997. Fkeycode uint32
  3998. Fsame_screen int32
  3999. }
  4000. type TXKeyPressedEvent = struct {
  4001. Ftype1 int32
  4002. Fserial uint64
  4003. Fsend_event int32
  4004. Fdisplay uintptr
  4005. Fwindow TWindow
  4006. Froot TWindow
  4007. Fsubwindow TWindow
  4008. Ftime TTime
  4009. Fx int32
  4010. Fy int32
  4011. Fx_root int32
  4012. Fy_root int32
  4013. Fstate uint32
  4014. Fkeycode uint32
  4015. Fsame_screen int32
  4016. }
  4017. type TXKeyReleasedEvent = struct {
  4018. Ftype1 int32
  4019. Fserial uint64
  4020. Fsend_event int32
  4021. Fdisplay uintptr
  4022. Fwindow TWindow
  4023. Froot TWindow
  4024. Fsubwindow TWindow
  4025. Ftime TTime
  4026. Fx int32
  4027. Fy int32
  4028. Fx_root int32
  4029. Fy_root int32
  4030. Fstate uint32
  4031. Fkeycode uint32
  4032. Fsame_screen int32
  4033. }
  4034. type TXButtonEvent = struct {
  4035. Ftype1 int32
  4036. Fserial uint64
  4037. Fsend_event int32
  4038. Fdisplay uintptr
  4039. Fwindow TWindow
  4040. Froot TWindow
  4041. Fsubwindow TWindow
  4042. Ftime TTime
  4043. Fx int32
  4044. Fy int32
  4045. Fx_root int32
  4046. Fy_root int32
  4047. Fstate uint32
  4048. Fbutton uint32
  4049. Fsame_screen int32
  4050. }
  4051. type TXButtonPressedEvent = struct {
  4052. Ftype1 int32
  4053. Fserial uint64
  4054. Fsend_event int32
  4055. Fdisplay uintptr
  4056. Fwindow TWindow
  4057. Froot TWindow
  4058. Fsubwindow TWindow
  4059. Ftime TTime
  4060. Fx int32
  4061. Fy int32
  4062. Fx_root int32
  4063. Fy_root int32
  4064. Fstate uint32
  4065. Fbutton uint32
  4066. Fsame_screen int32
  4067. }
  4068. type TXButtonReleasedEvent = struct {
  4069. Ftype1 int32
  4070. Fserial uint64
  4071. Fsend_event int32
  4072. Fdisplay uintptr
  4073. Fwindow TWindow
  4074. Froot TWindow
  4075. Fsubwindow TWindow
  4076. Ftime TTime
  4077. Fx int32
  4078. Fy int32
  4079. Fx_root int32
  4080. Fy_root int32
  4081. Fstate uint32
  4082. Fbutton uint32
  4083. Fsame_screen int32
  4084. }
  4085. type TXMotionEvent = struct {
  4086. Ftype1 int32
  4087. Fserial uint64
  4088. Fsend_event int32
  4089. Fdisplay uintptr
  4090. Fwindow TWindow
  4091. Froot TWindow
  4092. Fsubwindow TWindow
  4093. Ftime TTime
  4094. Fx int32
  4095. Fy int32
  4096. Fx_root int32
  4097. Fy_root int32
  4098. Fstate uint32
  4099. Fis_hint int8
  4100. Fsame_screen int32
  4101. }
  4102. type TXPointerMovedEvent = struct {
  4103. Ftype1 int32
  4104. Fserial uint64
  4105. Fsend_event int32
  4106. Fdisplay uintptr
  4107. Fwindow TWindow
  4108. Froot TWindow
  4109. Fsubwindow TWindow
  4110. Ftime TTime
  4111. Fx int32
  4112. Fy int32
  4113. Fx_root int32
  4114. Fy_root int32
  4115. Fstate uint32
  4116. Fis_hint int8
  4117. Fsame_screen int32
  4118. }
  4119. type TXCrossingEvent = struct {
  4120. Ftype1 int32
  4121. Fserial uint64
  4122. Fsend_event int32
  4123. Fdisplay uintptr
  4124. Fwindow TWindow
  4125. Froot TWindow
  4126. Fsubwindow TWindow
  4127. Ftime TTime
  4128. Fx int32
  4129. Fy int32
  4130. Fx_root int32
  4131. Fy_root int32
  4132. Fmode int32
  4133. Fdetail int32
  4134. Fsame_screen int32
  4135. Ffocus int32
  4136. Fstate uint32
  4137. }
  4138. type TXEnterWindowEvent = struct {
  4139. Ftype1 int32
  4140. Fserial uint64
  4141. Fsend_event int32
  4142. Fdisplay uintptr
  4143. Fwindow TWindow
  4144. Froot TWindow
  4145. Fsubwindow TWindow
  4146. Ftime TTime
  4147. Fx int32
  4148. Fy int32
  4149. Fx_root int32
  4150. Fy_root int32
  4151. Fmode int32
  4152. Fdetail int32
  4153. Fsame_screen int32
  4154. Ffocus int32
  4155. Fstate uint32
  4156. }
  4157. type TXLeaveWindowEvent = struct {
  4158. Ftype1 int32
  4159. Fserial uint64
  4160. Fsend_event int32
  4161. Fdisplay uintptr
  4162. Fwindow TWindow
  4163. Froot TWindow
  4164. Fsubwindow TWindow
  4165. Ftime TTime
  4166. Fx int32
  4167. Fy int32
  4168. Fx_root int32
  4169. Fy_root int32
  4170. Fmode int32
  4171. Fdetail int32
  4172. Fsame_screen int32
  4173. Ffocus int32
  4174. Fstate uint32
  4175. }
  4176. type TXFocusChangeEvent = struct {
  4177. Ftype1 int32
  4178. Fserial uint64
  4179. Fsend_event int32
  4180. Fdisplay uintptr
  4181. Fwindow TWindow
  4182. Fmode int32
  4183. Fdetail int32
  4184. }
  4185. type TXFocusInEvent = struct {
  4186. Ftype1 int32
  4187. Fserial uint64
  4188. Fsend_event int32
  4189. Fdisplay uintptr
  4190. Fwindow TWindow
  4191. Fmode int32
  4192. Fdetail int32
  4193. }
  4194. type TXFocusOutEvent = struct {
  4195. Ftype1 int32
  4196. Fserial uint64
  4197. Fsend_event int32
  4198. Fdisplay uintptr
  4199. Fwindow TWindow
  4200. Fmode int32
  4201. Fdetail int32
  4202. }
  4203. type TXKeymapEvent = struct {
  4204. Ftype1 int32
  4205. Fserial uint64
  4206. Fsend_event int32
  4207. Fdisplay uintptr
  4208. Fwindow TWindow
  4209. Fkey_vector [32]int8
  4210. }
  4211. type TXExposeEvent = struct {
  4212. Ftype1 int32
  4213. Fserial uint64
  4214. Fsend_event int32
  4215. Fdisplay uintptr
  4216. Fwindow TWindow
  4217. Fx int32
  4218. Fy int32
  4219. Fwidth int32
  4220. Fheight int32
  4221. Fcount int32
  4222. }
  4223. type TXGraphicsExposeEvent = struct {
  4224. Ftype1 int32
  4225. Fserial uint64
  4226. Fsend_event int32
  4227. Fdisplay uintptr
  4228. Fdrawable TDrawable
  4229. Fx int32
  4230. Fy int32
  4231. Fwidth int32
  4232. Fheight int32
  4233. Fcount int32
  4234. Fmajor_code int32
  4235. Fminor_code int32
  4236. }
  4237. type TXNoExposeEvent = struct {
  4238. Ftype1 int32
  4239. Fserial uint64
  4240. Fsend_event int32
  4241. Fdisplay uintptr
  4242. Fdrawable TDrawable
  4243. Fmajor_code int32
  4244. Fminor_code int32
  4245. }
  4246. type TXVisibilityEvent = struct {
  4247. Ftype1 int32
  4248. Fserial uint64
  4249. Fsend_event int32
  4250. Fdisplay uintptr
  4251. Fwindow TWindow
  4252. Fstate int32
  4253. }
  4254. type TXCreateWindowEvent = struct {
  4255. Ftype1 int32
  4256. Fserial uint64
  4257. Fsend_event int32
  4258. Fdisplay uintptr
  4259. Fparent TWindow
  4260. Fwindow TWindow
  4261. Fx int32
  4262. Fy int32
  4263. Fwidth int32
  4264. Fheight int32
  4265. Fborder_width int32
  4266. Foverride_redirect int32
  4267. }
  4268. type TXDestroyWindowEvent = struct {
  4269. Ftype1 int32
  4270. Fserial uint64
  4271. Fsend_event int32
  4272. Fdisplay uintptr
  4273. Fevent TWindow
  4274. Fwindow TWindow
  4275. }
  4276. type TXUnmapEvent = struct {
  4277. Ftype1 int32
  4278. Fserial uint64
  4279. Fsend_event int32
  4280. Fdisplay uintptr
  4281. Fevent TWindow
  4282. Fwindow TWindow
  4283. Ffrom_configure int32
  4284. }
  4285. type TXMapEvent = struct {
  4286. Ftype1 int32
  4287. Fserial uint64
  4288. Fsend_event int32
  4289. Fdisplay uintptr
  4290. Fevent TWindow
  4291. Fwindow TWindow
  4292. Foverride_redirect int32
  4293. }
  4294. type TXMapRequestEvent = struct {
  4295. Ftype1 int32
  4296. Fserial uint64
  4297. Fsend_event int32
  4298. Fdisplay uintptr
  4299. Fparent TWindow
  4300. Fwindow TWindow
  4301. }
  4302. type TXReparentEvent = struct {
  4303. Ftype1 int32
  4304. Fserial uint64
  4305. Fsend_event int32
  4306. Fdisplay uintptr
  4307. Fevent TWindow
  4308. Fwindow TWindow
  4309. Fparent TWindow
  4310. Fx int32
  4311. Fy int32
  4312. Foverride_redirect int32
  4313. }
  4314. type TXConfigureEvent = struct {
  4315. Ftype1 int32
  4316. Fserial uint64
  4317. Fsend_event int32
  4318. Fdisplay uintptr
  4319. Fevent TWindow
  4320. Fwindow TWindow
  4321. Fx int32
  4322. Fy int32
  4323. Fwidth int32
  4324. Fheight int32
  4325. Fborder_width int32
  4326. Fabove TWindow
  4327. Foverride_redirect int32
  4328. }
  4329. type TXGravityEvent = struct {
  4330. Ftype1 int32
  4331. Fserial uint64
  4332. Fsend_event int32
  4333. Fdisplay uintptr
  4334. Fevent TWindow
  4335. Fwindow TWindow
  4336. Fx int32
  4337. Fy int32
  4338. }
  4339. type TXResizeRequestEvent = struct {
  4340. Ftype1 int32
  4341. Fserial uint64
  4342. Fsend_event int32
  4343. Fdisplay uintptr
  4344. Fwindow TWindow
  4345. Fwidth int32
  4346. Fheight int32
  4347. }
  4348. type TXConfigureRequestEvent = struct {
  4349. Ftype1 int32
  4350. Fserial uint64
  4351. Fsend_event int32
  4352. Fdisplay uintptr
  4353. Fparent TWindow
  4354. Fwindow TWindow
  4355. Fx int32
  4356. Fy int32
  4357. Fwidth int32
  4358. Fheight int32
  4359. Fborder_width int32
  4360. Fabove TWindow
  4361. Fdetail int32
  4362. Fvalue_mask uint64
  4363. }
  4364. type TXCirculateEvent = struct {
  4365. Ftype1 int32
  4366. Fserial uint64
  4367. Fsend_event int32
  4368. Fdisplay uintptr
  4369. Fevent TWindow
  4370. Fwindow TWindow
  4371. Fplace int32
  4372. }
  4373. type TXCirculateRequestEvent = struct {
  4374. Ftype1 int32
  4375. Fserial uint64
  4376. Fsend_event int32
  4377. Fdisplay uintptr
  4378. Fparent TWindow
  4379. Fwindow TWindow
  4380. Fplace int32
  4381. }
  4382. type TXPropertyEvent = struct {
  4383. Ftype1 int32
  4384. Fserial uint64
  4385. Fsend_event int32
  4386. Fdisplay uintptr
  4387. Fwindow TWindow
  4388. Fatom TAtom
  4389. Ftime TTime
  4390. Fstate int32
  4391. }
  4392. type TXSelectionClearEvent = struct {
  4393. Ftype1 int32
  4394. Fserial uint64
  4395. Fsend_event int32
  4396. Fdisplay uintptr
  4397. Fwindow TWindow
  4398. Fselection TAtom
  4399. Ftime TTime
  4400. }
  4401. type TXSelectionRequestEvent = struct {
  4402. Ftype1 int32
  4403. Fserial uint64
  4404. Fsend_event int32
  4405. Fdisplay uintptr
  4406. Fowner TWindow
  4407. Frequestor TWindow
  4408. Fselection TAtom
  4409. Ftarget TAtom
  4410. Fproperty TAtom
  4411. Ftime TTime
  4412. }
  4413. type TXSelectionEvent = struct {
  4414. Ftype1 int32
  4415. Fserial uint64
  4416. Fsend_event int32
  4417. Fdisplay uintptr
  4418. Frequestor TWindow
  4419. Fselection TAtom
  4420. Ftarget TAtom
  4421. Fproperty TAtom
  4422. Ftime TTime
  4423. }
  4424. type TXColormapEvent = struct {
  4425. Ftype1 int32
  4426. Fserial uint64
  4427. Fsend_event int32
  4428. Fdisplay uintptr
  4429. Fwindow TWindow
  4430. Fcolormap TColormap
  4431. Fnew1 int32
  4432. Fstate int32
  4433. }
  4434. type TXClientMessageEvent = struct {
  4435. Ftype1 int32
  4436. Fserial uint64
  4437. Fsend_event int32
  4438. Fdisplay uintptr
  4439. Fwindow TWindow
  4440. Fmessage_type TAtom
  4441. Fformat int32
  4442. Fdata struct {
  4443. Fs [0][10]int16
  4444. Fl [0][5]int64
  4445. Fb [20]int8
  4446. F__ccgo_pad3 [20]byte
  4447. }
  4448. }
  4449. type TXMappingEvent = struct {
  4450. Ftype1 int32
  4451. Fserial uint64
  4452. Fsend_event int32
  4453. Fdisplay uintptr
  4454. Fwindow TWindow
  4455. Frequest int32
  4456. Ffirst_keycode int32
  4457. Fcount int32
  4458. }
  4459. type TXErrorEvent = struct {
  4460. Ftype1 int32
  4461. Fdisplay uintptr
  4462. Fresourceid TXID
  4463. Fserial uint64
  4464. Ferror_code uint8
  4465. Frequest_code uint8
  4466. Fminor_code uint8
  4467. }
  4468. type TXAnyEvent = struct {
  4469. Ftype1 int32
  4470. Fserial uint64
  4471. Fsend_event int32
  4472. Fdisplay uintptr
  4473. Fwindow TWindow
  4474. }
  4475. type TXGenericEvent = struct {
  4476. Ftype1 int32
  4477. Fserial uint64
  4478. Fsend_event int32
  4479. Fdisplay uintptr
  4480. Fextension int32
  4481. Fevtype int32
  4482. }
  4483. type TXGenericEventCookie = struct {
  4484. Ftype1 int32
  4485. Fserial uint64
  4486. Fsend_event int32
  4487. Fdisplay uintptr
  4488. Fextension int32
  4489. Fevtype int32
  4490. Fcookie uint32
  4491. Fdata uintptr
  4492. }
  4493. type TXEvent = struct {
  4494. Fxany [0]TXAnyEvent
  4495. Fxkey [0]TXKeyEvent
  4496. Fxbutton [0]TXButtonEvent
  4497. Fxmotion [0]TXMotionEvent
  4498. Fxcrossing [0]TXCrossingEvent
  4499. Fxfocus [0]TXFocusChangeEvent
  4500. Fxexpose [0]TXExposeEvent
  4501. Fxgraphicsexpose [0]TXGraphicsExposeEvent
  4502. Fxnoexpose [0]TXNoExposeEvent
  4503. Fxvisibility [0]TXVisibilityEvent
  4504. Fxcreatewindow [0]TXCreateWindowEvent
  4505. Fxdestroywindow [0]TXDestroyWindowEvent
  4506. Fxunmap [0]TXUnmapEvent
  4507. Fxmap [0]TXMapEvent
  4508. Fxmaprequest [0]TXMapRequestEvent
  4509. Fxreparent [0]TXReparentEvent
  4510. Fxconfigure [0]TXConfigureEvent
  4511. Fxgravity [0]TXGravityEvent
  4512. Fxresizerequest [0]TXResizeRequestEvent
  4513. Fxconfigurerequest [0]TXConfigureRequestEvent
  4514. Fxcirculate [0]TXCirculateEvent
  4515. Fxcirculaterequest [0]TXCirculateRequestEvent
  4516. Fxproperty [0]TXPropertyEvent
  4517. Fxselectionclear [0]TXSelectionClearEvent
  4518. Fxselectionrequest [0]TXSelectionRequestEvent
  4519. Fxselection [0]TXSelectionEvent
  4520. Fxcolormap [0]TXColormapEvent
  4521. Fxclient [0]TXClientMessageEvent
  4522. Fxmapping [0]TXMappingEvent
  4523. Fxerror [0]TXErrorEvent
  4524. Fxkeymap [0]TXKeymapEvent
  4525. Fxgeneric [0]TXGenericEvent
  4526. Fxcookie [0]TXGenericEventCookie
  4527. Fpad [0][24]int64
  4528. Ftype1 int32
  4529. F__ccgo_pad35 [188]byte
  4530. }
  4531. type T_XEvent = TXEvent
  4532. type TXCharStruct = struct {
  4533. Flbearing int16
  4534. Frbearing int16
  4535. Fwidth int16
  4536. Fascent int16
  4537. Fdescent int16
  4538. Fattributes uint16
  4539. }
  4540. type TXFontProp = struct {
  4541. Fname TAtom
  4542. Fcard32 uint64
  4543. }
  4544. type TXFontStruct = struct {
  4545. Fext_data uintptr
  4546. Ffid TFont
  4547. Fdirection uint32
  4548. Fmin_char_or_byte2 uint32
  4549. Fmax_char_or_byte2 uint32
  4550. Fmin_byte1 uint32
  4551. Fmax_byte1 uint32
  4552. Fall_chars_exist int32
  4553. Fdefault_char uint32
  4554. Fn_properties int32
  4555. Fproperties uintptr
  4556. Fmin_bounds TXCharStruct
  4557. Fmax_bounds TXCharStruct
  4558. Fper_char uintptr
  4559. Fascent int32
  4560. Fdescent int32
  4561. }
  4562. type TXTextItem = struct {
  4563. Fchars uintptr
  4564. Fnchars int32
  4565. Fdelta int32
  4566. Ffont TFont
  4567. }
  4568. type TXChar2b = struct {
  4569. Fbyte1 uint8
  4570. Fbyte2 uint8
  4571. }
  4572. type TXTextItem16 = struct {
  4573. Fchars uintptr
  4574. Fnchars int32
  4575. Fdelta int32
  4576. Ffont TFont
  4577. }
  4578. type TXEDataObject = struct {
  4579. Fgc [0]TGC
  4580. Fvisual [0]uintptr
  4581. Fscreen [0]uintptr
  4582. Fpixmap_format [0]uintptr
  4583. Ffont [0]uintptr
  4584. Fdisplay uintptr
  4585. }
  4586. type TXFontSetExtents = struct {
  4587. Fmax_ink_extent TXRectangle
  4588. Fmax_logical_extent TXRectangle
  4589. }
  4590. type TXOM = uintptr
  4591. type TXOC = uintptr
  4592. type TXFontSet = uintptr
  4593. type TXmbTextItem = struct {
  4594. Fchars uintptr
  4595. Fnchars int32
  4596. Fdelta int32
  4597. Ffont_set TXFontSet
  4598. }
  4599. type TXwcTextItem = struct {
  4600. Fchars uintptr
  4601. Fnchars int32
  4602. Fdelta int32
  4603. Ffont_set TXFontSet
  4604. }
  4605. type TXOMCharSetList = struct {
  4606. Fcharset_count int32
  4607. Fcharset_list uintptr
  4608. }
  4609. type TXOrientation = int32
  4610. const _XOMOrientation_LTR_TTB = 0
  4611. const _XOMOrientation_RTL_TTB = 1
  4612. const _XOMOrientation_TTB_LTR = 2
  4613. const _XOMOrientation_TTB_RTL = 3
  4614. const _XOMOrientation_Context = 4
  4615. type TXOMOrientation = struct {
  4616. Fnum_orientation int32
  4617. Forientation uintptr
  4618. }
  4619. type TXOMFontInfo = struct {
  4620. Fnum_font int32
  4621. Ffont_struct_list uintptr
  4622. Ffont_name_list uintptr
  4623. }
  4624. type TXIM = uintptr
  4625. type TXIC = uintptr
  4626. type TXIMProc = uintptr
  4627. type TXICProc = uintptr
  4628. type TXIDProc = uintptr
  4629. type TXIMStyle = uint64
  4630. type TXIMStyles = struct {
  4631. Fcount_styles uint16
  4632. Fsupported_styles uintptr
  4633. }
  4634. type TXVaNestedList = uintptr
  4635. type TXIMCallback = struct {
  4636. Fclient_data TXPointer
  4637. Fcallback TXIMProc
  4638. }
  4639. type TXICCallback = struct {
  4640. Fclient_data TXPointer
  4641. Fcallback TXICProc
  4642. }
  4643. type TXIMFeedback = uint64
  4644. type TXIMText = struct {
  4645. Flength uint16
  4646. Ffeedback uintptr
  4647. Fencoding_is_wchar int32
  4648. Fstring1 struct {
  4649. Fwide_char [0]uintptr
  4650. Fmulti_byte uintptr
  4651. }
  4652. }
  4653. type T_XIMText = TXIMText
  4654. type TXIMPreeditState = uint64
  4655. type TXIMPreeditStateNotifyCallbackStruct = struct {
  4656. Fstate TXIMPreeditState
  4657. }
  4658. type T_XIMPreeditStateNotifyCallbackStruct = TXIMPreeditStateNotifyCallbackStruct
  4659. type TXIMResetState = uint64
  4660. type TXIMStringConversionFeedback = uint64
  4661. type TXIMStringConversionText = struct {
  4662. Flength uint16
  4663. Ffeedback uintptr
  4664. Fencoding_is_wchar int32
  4665. Fstring1 struct {
  4666. Fwcs [0]uintptr
  4667. Fmbs uintptr
  4668. }
  4669. }
  4670. type T_XIMStringConversionText = TXIMStringConversionText
  4671. type TXIMStringConversionPosition = uint16
  4672. type TXIMStringConversionType = uint16
  4673. type TXIMStringConversionOperation = uint16
  4674. type TXIMCaretDirection = int32
  4675. const _XIMForwardChar = 0
  4676. const _XIMBackwardChar = 1
  4677. const _XIMForwardWord = 2
  4678. const _XIMBackwardWord = 3
  4679. const _XIMCaretUp = 4
  4680. const _XIMCaretDown = 5
  4681. const _XIMNextLine = 6
  4682. const _XIMPreviousLine = 7
  4683. const _XIMLineStart = 8
  4684. const _XIMLineEnd = 9
  4685. const _XIMAbsolutePosition = 10
  4686. const _XIMDontChange = 11
  4687. type TXIMStringConversionCallbackStruct = struct {
  4688. Fposition TXIMStringConversionPosition
  4689. Fdirection TXIMCaretDirection
  4690. Foperation TXIMStringConversionOperation
  4691. Ffactor uint16
  4692. Ftext uintptr
  4693. }
  4694. type T_XIMStringConversionCallbackStruct = TXIMStringConversionCallbackStruct
  4695. type TXIMPreeditDrawCallbackStruct = struct {
  4696. Fcaret int32
  4697. Fchg_first int32
  4698. Fchg_length int32
  4699. Ftext uintptr
  4700. }
  4701. type T_XIMPreeditDrawCallbackStruct = TXIMPreeditDrawCallbackStruct
  4702. type TXIMCaretStyle = int32
  4703. const _XIMIsInvisible = 0
  4704. const _XIMIsPrimary = 1
  4705. const _XIMIsSecondary = 2
  4706. type TXIMPreeditCaretCallbackStruct = struct {
  4707. Fposition int32
  4708. Fdirection TXIMCaretDirection
  4709. Fstyle TXIMCaretStyle
  4710. }
  4711. type T_XIMPreeditCaretCallbackStruct = TXIMPreeditCaretCallbackStruct
  4712. type TXIMStatusDataType = int32
  4713. const _XIMTextType = 0
  4714. const _XIMBitmapType = 1
  4715. type TXIMStatusDrawCallbackStruct = struct {
  4716. Ftype1 TXIMStatusDataType
  4717. Fdata struct {
  4718. Fbitmap [0]TPixmap
  4719. Ftext uintptr
  4720. }
  4721. }
  4722. type T_XIMStatusDrawCallbackStruct = TXIMStatusDrawCallbackStruct
  4723. type TXIMHotKeyTrigger = struct {
  4724. Fkeysym TKeySym
  4725. Fmodifier int32
  4726. Fmodifier_mask int32
  4727. }
  4728. type T_XIMHotKeyTrigger = TXIMHotKeyTrigger
  4729. type TXIMHotKeyTriggers = struct {
  4730. Fnum_hot_key int32
  4731. Fkey uintptr
  4732. }
  4733. type T_XIMHotKeyTriggers = TXIMHotKeyTriggers
  4734. type TXIMHotKeyState = uint64
  4735. type TXIMValuesList = struct {
  4736. Fcount_values uint16
  4737. Fsupported_values uintptr
  4738. }
  4739. type TXErrorHandler = uintptr
  4740. type TXIOErrorHandler = uintptr
  4741. type TXIOErrorExitHandler = uintptr
  4742. type TXConnectionWatchProc = uintptr
  4743. type TINT64 = int64
  4744. type TINT32 = int32
  4745. type TINT16 = int16
  4746. type TINT8 = int8
  4747. type TCARD64 = uint64
  4748. type TCARD32 = uint32
  4749. type TCARD16 = uint16
  4750. type TCARD8 = uint8
  4751. type TBITS32 = uint32
  4752. type TBITS16 = uint16
  4753. type TBYTE = uint8
  4754. type TBOOL = uint8
  4755. type TxSegment = struct {
  4756. Fx1 TINT16
  4757. Fy1 TINT16
  4758. Fx2 TINT16
  4759. Fy2 TINT16
  4760. }
  4761. type T_xSegment = TxSegment
  4762. type TxPoint = struct {
  4763. Fx TINT16
  4764. Fy TINT16
  4765. }
  4766. type T_xPoint = TxPoint
  4767. type TxRectangle = struct {
  4768. Fx TINT16
  4769. Fy TINT16
  4770. Fwidth TCARD16
  4771. Fheight TCARD16
  4772. }
  4773. type T_xRectangle = TxRectangle
  4774. type TxArc = struct {
  4775. Fx TINT16
  4776. Fy TINT16
  4777. Fwidth TCARD16
  4778. Fheight TCARD16
  4779. Fangle1 TINT16
  4780. Fangle2 TINT16
  4781. }
  4782. type T_xArc = TxArc
  4783. type TKeyButMask = uint16
  4784. type TxConnClientPrefix = struct {
  4785. FbyteOrder TCARD8
  4786. Fpad TBYTE
  4787. FmajorVersion TCARD16
  4788. FminorVersion TCARD16
  4789. FnbytesAuthProto TCARD16
  4790. FnbytesAuthString TCARD16
  4791. Fpad2 TCARD16
  4792. }
  4793. type TxConnSetupPrefix = struct {
  4794. Fsuccess TCARD8
  4795. FlengthReason TBYTE
  4796. FmajorVersion TCARD16
  4797. FminorVersion TCARD16
  4798. Flength TCARD16
  4799. }
  4800. type TxConnSetup = struct {
  4801. Frelease TCARD32
  4802. FridBase TCARD32
  4803. FridMask TCARD32
  4804. FmotionBufferSize TCARD32
  4805. FnbytesVendor TCARD16
  4806. FmaxRequestSize TCARD16
  4807. FnumRoots TCARD8
  4808. FnumFormats TCARD8
  4809. FimageByteOrder TCARD8
  4810. FbitmapBitOrder TCARD8
  4811. FbitmapScanlineUnit TCARD8
  4812. FbitmapScanlinePad TCARD8
  4813. FminKeyCode TCARD8
  4814. FmaxKeyCode TCARD8
  4815. Fpad2 TCARD32
  4816. }
  4817. type TxPixmapFormat = struct {
  4818. Fdepth TCARD8
  4819. FbitsPerPixel TCARD8
  4820. FscanLinePad TCARD8
  4821. Fpad1 TCARD8
  4822. Fpad2 TCARD32
  4823. }
  4824. type TxDepth = struct {
  4825. Fdepth TCARD8
  4826. Fpad1 TCARD8
  4827. FnVisuals TCARD16
  4828. Fpad2 TCARD32
  4829. }
  4830. type TxVisualType = struct {
  4831. FvisualID TCARD32
  4832. Fclass TCARD8
  4833. FbitsPerRGB TCARD8
  4834. FcolormapEntries TCARD16
  4835. FredMask TCARD32
  4836. FgreenMask TCARD32
  4837. FblueMask TCARD32
  4838. Fpad TCARD32
  4839. }
  4840. type TxWindowRoot = struct {
  4841. FwindowId TCARD32
  4842. FdefaultColormap TCARD32
  4843. FwhitePixel TCARD32
  4844. FblackPixel TCARD32
  4845. FcurrentInputMask TCARD32
  4846. FpixWidth TCARD16
  4847. FpixHeight TCARD16
  4848. FmmWidth TCARD16
  4849. FmmHeight TCARD16
  4850. FminInstalledMaps TCARD16
  4851. FmaxInstalledMaps TCARD16
  4852. FrootVisualID TCARD32
  4853. FbackingStore TCARD8
  4854. FsaveUnders TBOOL
  4855. FrootDepth TCARD8
  4856. FnDepths TCARD8
  4857. }
  4858. type TxTimecoord = struct {
  4859. Ftime TCARD32
  4860. Fx TINT16
  4861. Fy TINT16
  4862. }
  4863. type TxHostEntry = struct {
  4864. Ffamily TCARD8
  4865. Fpad TBYTE
  4866. Flength TCARD16
  4867. }
  4868. type TxCharInfo = struct {
  4869. FleftSideBearing TINT16
  4870. FrightSideBearing TINT16
  4871. FcharacterWidth TINT16
  4872. Fascent TINT16
  4873. Fdescent TINT16
  4874. Fattributes TCARD16
  4875. }
  4876. type TxFontProp = struct {
  4877. Fname TCARD32
  4878. Fvalue TCARD32
  4879. }
  4880. type TxTextElt = struct {
  4881. Flen1 TCARD8
  4882. Fdelta TINT8
  4883. }
  4884. type TxColorItem = struct {
  4885. Fpixel TCARD32
  4886. Fred TCARD16
  4887. Fgreen TCARD16
  4888. Fblue TCARD16
  4889. Fflags TCARD8
  4890. Fpad TCARD8
  4891. }
  4892. type Txrgb = struct {
  4893. Fred TCARD16
  4894. Fgreen TCARD16
  4895. Fblue TCARD16
  4896. Fpad TCARD16
  4897. }
  4898. type TKEYCODE = uint8
  4899. type TxGenericReply = struct {
  4900. Ftype1 TBYTE
  4901. Fdata1 TBYTE
  4902. FsequenceNumber TCARD16
  4903. Flength TCARD32
  4904. Fdata00 TCARD32
  4905. Fdata01 TCARD32
  4906. Fdata02 TCARD32
  4907. Fdata03 TCARD32
  4908. Fdata04 TCARD32
  4909. Fdata05 TCARD32
  4910. }
  4911. type TxGetWindowAttributesReply = struct {
  4912. Ftype1 TBYTE
  4913. FbackingStore TCARD8
  4914. FsequenceNumber TCARD16
  4915. Flength TCARD32
  4916. FvisualID TCARD32
  4917. Fclass TCARD16
  4918. FbitGravity TCARD8
  4919. FwinGravity TCARD8
  4920. FbackingBitPlanes TCARD32
  4921. FbackingPixel TCARD32
  4922. FsaveUnder TBOOL
  4923. FmapInstalled TBOOL
  4924. FmapState TCARD8
  4925. Foverride TBOOL
  4926. Fcolormap TCARD32
  4927. FallEventMasks TCARD32
  4928. FyourEventMask TCARD32
  4929. FdoNotPropagateMask TCARD16
  4930. Fpad TCARD16
  4931. }
  4932. type TxGetGeometryReply = struct {
  4933. Ftype1 TBYTE
  4934. Fdepth TCARD8
  4935. FsequenceNumber TCARD16
  4936. Flength TCARD32
  4937. Froot TCARD32
  4938. Fx TINT16
  4939. Fy TINT16
  4940. Fwidth TCARD16
  4941. Fheight TCARD16
  4942. FborderWidth TCARD16
  4943. Fpad1 TCARD16
  4944. Fpad2 TCARD32
  4945. Fpad3 TCARD32
  4946. }
  4947. type TxQueryTreeReply = struct {
  4948. Ftype1 TBYTE
  4949. Fpad1 TBYTE
  4950. FsequenceNumber TCARD16
  4951. Flength TCARD32
  4952. Froot TCARD32
  4953. Fparent TCARD32
  4954. FnChildren TCARD16
  4955. Fpad2 TCARD16
  4956. Fpad3 TCARD32
  4957. Fpad4 TCARD32
  4958. Fpad5 TCARD32
  4959. }
  4960. type TxInternAtomReply = struct {
  4961. Ftype1 TBYTE
  4962. Fpad1 TBYTE
  4963. FsequenceNumber TCARD16
  4964. Flength TCARD32
  4965. Fatom TCARD32
  4966. Fpad2 TCARD32
  4967. Fpad3 TCARD32
  4968. Fpad4 TCARD32
  4969. Fpad5 TCARD32
  4970. Fpad6 TCARD32
  4971. }
  4972. type TxGetAtomNameReply = struct {
  4973. Ftype1 TBYTE
  4974. Fpad1 TBYTE
  4975. FsequenceNumber TCARD16
  4976. Flength TCARD32
  4977. FnameLength TCARD16
  4978. Fpad2 TCARD16
  4979. Fpad3 TCARD32
  4980. Fpad4 TCARD32
  4981. Fpad5 TCARD32
  4982. Fpad6 TCARD32
  4983. Fpad7 TCARD32
  4984. }
  4985. type TxGetPropertyReply = struct {
  4986. Ftype1 TBYTE
  4987. Fformat TCARD8
  4988. FsequenceNumber TCARD16
  4989. Flength TCARD32
  4990. FpropertyType TCARD32
  4991. FbytesAfter TCARD32
  4992. FnItems TCARD32
  4993. Fpad1 TCARD32
  4994. Fpad2 TCARD32
  4995. Fpad3 TCARD32
  4996. }
  4997. type TxListPropertiesReply = struct {
  4998. Ftype1 TBYTE
  4999. Fpad1 TBYTE
  5000. FsequenceNumber TCARD16
  5001. Flength TCARD32
  5002. FnProperties TCARD16
  5003. Fpad2 TCARD16
  5004. Fpad3 TCARD32
  5005. Fpad4 TCARD32
  5006. Fpad5 TCARD32
  5007. Fpad6 TCARD32
  5008. Fpad7 TCARD32
  5009. }
  5010. type TxGetSelectionOwnerReply = struct {
  5011. Ftype1 TBYTE
  5012. Fpad1 TBYTE
  5013. FsequenceNumber TCARD16
  5014. Flength TCARD32
  5015. Fowner TCARD32
  5016. Fpad2 TCARD32
  5017. Fpad3 TCARD32
  5018. Fpad4 TCARD32
  5019. Fpad5 TCARD32
  5020. Fpad6 TCARD32
  5021. }
  5022. type TxGrabPointerReply = struct {
  5023. Ftype1 TBYTE
  5024. Fstatus TBYTE
  5025. FsequenceNumber TCARD16
  5026. Flength TCARD32
  5027. Fpad1 TCARD32
  5028. Fpad2 TCARD32
  5029. Fpad3 TCARD32
  5030. Fpad4 TCARD32
  5031. Fpad5 TCARD32
  5032. Fpad6 TCARD32
  5033. }
  5034. type TxGrabKeyboardReply = struct {
  5035. Ftype1 TBYTE
  5036. Fstatus TBYTE
  5037. FsequenceNumber TCARD16
  5038. Flength TCARD32
  5039. Fpad1 TCARD32
  5040. Fpad2 TCARD32
  5041. Fpad3 TCARD32
  5042. Fpad4 TCARD32
  5043. Fpad5 TCARD32
  5044. Fpad6 TCARD32
  5045. }
  5046. type TxQueryPointerReply = struct {
  5047. Ftype1 TBYTE
  5048. FsameScreen TBOOL
  5049. FsequenceNumber TCARD16
  5050. Flength TCARD32
  5051. Froot TCARD32
  5052. Fchild TCARD32
  5053. FrootX TINT16
  5054. FrootY TINT16
  5055. FwinX TINT16
  5056. FwinY TINT16
  5057. Fmask TCARD16
  5058. Fpad1 TCARD16
  5059. Fpad TCARD32
  5060. }
  5061. type TxGetMotionEventsReply = struct {
  5062. Ftype1 TBYTE
  5063. Fpad1 TBYTE
  5064. FsequenceNumber TCARD16
  5065. Flength TCARD32
  5066. FnEvents TCARD32
  5067. Fpad2 TCARD32
  5068. Fpad3 TCARD32
  5069. Fpad4 TCARD32
  5070. Fpad5 TCARD32
  5071. Fpad6 TCARD32
  5072. }
  5073. type TxTranslateCoordsReply = struct {
  5074. Ftype1 TBYTE
  5075. FsameScreen TBOOL
  5076. FsequenceNumber TCARD16
  5077. Flength TCARD32
  5078. Fchild TCARD32
  5079. FdstX TINT16
  5080. FdstY TINT16
  5081. Fpad2 TCARD32
  5082. Fpad3 TCARD32
  5083. Fpad4 TCARD32
  5084. Fpad5 TCARD32
  5085. }
  5086. type TxGetInputFocusReply = struct {
  5087. Ftype1 TBYTE
  5088. FrevertTo TCARD8
  5089. FsequenceNumber TCARD16
  5090. Flength TCARD32
  5091. Ffocus TCARD32
  5092. Fpad1 TCARD32
  5093. Fpad2 TCARD32
  5094. Fpad3 TCARD32
  5095. Fpad4 TCARD32
  5096. Fpad5 TCARD32
  5097. }
  5098. type TxQueryKeymapReply = struct {
  5099. Ftype1 TBYTE
  5100. Fpad1 TBYTE
  5101. FsequenceNumber TCARD16
  5102. Flength TCARD32
  5103. Fmap1 [32]TBYTE
  5104. }
  5105. type TxQueryFontReply = struct {
  5106. Ftype1 TBYTE
  5107. Fpad1 TBYTE
  5108. FsequenceNumber TCARD16
  5109. Flength TCARD32
  5110. FminBounds TxCharInfo
  5111. Fwalign1 TCARD32
  5112. FmaxBounds TxCharInfo
  5113. Fwalign2 TCARD32
  5114. FminCharOrByte2 TCARD16
  5115. FmaxCharOrByte2 TCARD16
  5116. FdefaultChar TCARD16
  5117. FnFontProps TCARD16
  5118. FdrawDirection TCARD8
  5119. FminByte1 TCARD8
  5120. FmaxByte1 TCARD8
  5121. FallCharsExist TBOOL
  5122. FfontAscent TINT16
  5123. FfontDescent TINT16
  5124. FnCharInfos TCARD32
  5125. }
  5126. type T_xQueryFontReply = TxQueryFontReply
  5127. type TxQueryTextExtentsReply = struct {
  5128. Ftype1 TBYTE
  5129. FdrawDirection TCARD8
  5130. FsequenceNumber TCARD16
  5131. Flength TCARD32
  5132. FfontAscent TINT16
  5133. FfontDescent TINT16
  5134. FoverallAscent TINT16
  5135. FoverallDescent TINT16
  5136. FoverallWidth TINT32
  5137. FoverallLeft TINT32
  5138. FoverallRight TINT32
  5139. Fpad TCARD32
  5140. }
  5141. type TxListFontsReply = struct {
  5142. Ftype1 TBYTE
  5143. Fpad1 TBYTE
  5144. FsequenceNumber TCARD16
  5145. Flength TCARD32
  5146. FnFonts TCARD16
  5147. Fpad2 TCARD16
  5148. Fpad3 TCARD32
  5149. Fpad4 TCARD32
  5150. Fpad5 TCARD32
  5151. Fpad6 TCARD32
  5152. Fpad7 TCARD32
  5153. }
  5154. type TxListFontsWithInfoReply = struct {
  5155. Ftype1 TBYTE
  5156. FnameLength TCARD8
  5157. FsequenceNumber TCARD16
  5158. Flength TCARD32
  5159. FminBounds TxCharInfo
  5160. Fwalign1 TCARD32
  5161. FmaxBounds TxCharInfo
  5162. Fwalign2 TCARD32
  5163. FminCharOrByte2 TCARD16
  5164. FmaxCharOrByte2 TCARD16
  5165. FdefaultChar TCARD16
  5166. FnFontProps TCARD16
  5167. FdrawDirection TCARD8
  5168. FminByte1 TCARD8
  5169. FmaxByte1 TCARD8
  5170. FallCharsExist TBOOL
  5171. FfontAscent TINT16
  5172. FfontDescent TINT16
  5173. FnReplies TCARD32
  5174. }
  5175. type TxGetFontPathReply = struct {
  5176. Ftype1 TBYTE
  5177. Fpad1 TBYTE
  5178. FsequenceNumber TCARD16
  5179. Flength TCARD32
  5180. FnPaths TCARD16
  5181. Fpad2 TCARD16
  5182. Fpad3 TCARD32
  5183. Fpad4 TCARD32
  5184. Fpad5 TCARD32
  5185. Fpad6 TCARD32
  5186. Fpad7 TCARD32
  5187. }
  5188. type TxGetImageReply = struct {
  5189. Ftype1 TBYTE
  5190. Fdepth TCARD8
  5191. FsequenceNumber TCARD16
  5192. Flength TCARD32
  5193. Fvisual TCARD32
  5194. Fpad3 TCARD32
  5195. Fpad4 TCARD32
  5196. Fpad5 TCARD32
  5197. Fpad6 TCARD32
  5198. Fpad7 TCARD32
  5199. }
  5200. type TxListInstalledColormapsReply = struct {
  5201. Ftype1 TBYTE
  5202. Fpad1 TBYTE
  5203. FsequenceNumber TCARD16
  5204. Flength TCARD32
  5205. FnColormaps TCARD16
  5206. Fpad2 TCARD16
  5207. Fpad3 TCARD32
  5208. Fpad4 TCARD32
  5209. Fpad5 TCARD32
  5210. Fpad6 TCARD32
  5211. Fpad7 TCARD32
  5212. }
  5213. type TxAllocColorReply = struct {
  5214. Ftype1 TBYTE
  5215. Fpad1 TBYTE
  5216. FsequenceNumber TCARD16
  5217. Flength TCARD32
  5218. Fred TCARD16
  5219. Fgreen TCARD16
  5220. Fblue TCARD16
  5221. Fpad2 TCARD16
  5222. Fpixel TCARD32
  5223. Fpad3 TCARD32
  5224. Fpad4 TCARD32
  5225. Fpad5 TCARD32
  5226. }
  5227. type TxAllocNamedColorReply = struct {
  5228. Ftype1 TBYTE
  5229. Fpad1 TBYTE
  5230. FsequenceNumber TCARD16
  5231. Flength TCARD32
  5232. Fpixel TCARD32
  5233. FexactRed TCARD16
  5234. FexactGreen TCARD16
  5235. FexactBlue TCARD16
  5236. FscreenRed TCARD16
  5237. FscreenGreen TCARD16
  5238. FscreenBlue TCARD16
  5239. Fpad2 TCARD32
  5240. Fpad3 TCARD32
  5241. }
  5242. type TxAllocColorCellsReply = struct {
  5243. Ftype1 TBYTE
  5244. Fpad1 TBYTE
  5245. FsequenceNumber TCARD16
  5246. Flength TCARD32
  5247. FnPixels TCARD16
  5248. FnMasks TCARD16
  5249. Fpad3 TCARD32
  5250. Fpad4 TCARD32
  5251. Fpad5 TCARD32
  5252. Fpad6 TCARD32
  5253. Fpad7 TCARD32
  5254. }
  5255. type TxAllocColorPlanesReply = struct {
  5256. Ftype1 TBYTE
  5257. Fpad1 TBYTE
  5258. FsequenceNumber TCARD16
  5259. Flength TCARD32
  5260. FnPixels TCARD16
  5261. Fpad2 TCARD16
  5262. FredMask TCARD32
  5263. FgreenMask TCARD32
  5264. FblueMask TCARD32
  5265. Fpad3 TCARD32
  5266. Fpad4 TCARD32
  5267. }
  5268. type TxQueryColorsReply = struct {
  5269. Ftype1 TBYTE
  5270. Fpad1 TBYTE
  5271. FsequenceNumber TCARD16
  5272. Flength TCARD32
  5273. FnColors TCARD16
  5274. Fpad2 TCARD16
  5275. Fpad3 TCARD32
  5276. Fpad4 TCARD32
  5277. Fpad5 TCARD32
  5278. Fpad6 TCARD32
  5279. Fpad7 TCARD32
  5280. }
  5281. type TxLookupColorReply = struct {
  5282. Ftype1 TBYTE
  5283. Fpad1 TBYTE
  5284. FsequenceNumber TCARD16
  5285. Flength TCARD32
  5286. FexactRed TCARD16
  5287. FexactGreen TCARD16
  5288. FexactBlue TCARD16
  5289. FscreenRed TCARD16
  5290. FscreenGreen TCARD16
  5291. FscreenBlue TCARD16
  5292. Fpad3 TCARD32
  5293. Fpad4 TCARD32
  5294. Fpad5 TCARD32
  5295. }
  5296. type TxQueryBestSizeReply = struct {
  5297. Ftype1 TBYTE
  5298. Fpad1 TBYTE
  5299. FsequenceNumber TCARD16
  5300. Flength TCARD32
  5301. Fwidth TCARD16
  5302. Fheight TCARD16
  5303. Fpad3 TCARD32
  5304. Fpad4 TCARD32
  5305. Fpad5 TCARD32
  5306. Fpad6 TCARD32
  5307. Fpad7 TCARD32
  5308. }
  5309. type TxQueryExtensionReply = struct {
  5310. Ftype1 TBYTE
  5311. Fpad1 TBYTE
  5312. FsequenceNumber TCARD16
  5313. Flength TCARD32
  5314. Fpresent TBOOL
  5315. Fmajor_opcode TCARD8
  5316. Ffirst_event TCARD8
  5317. Ffirst_error TCARD8
  5318. Fpad3 TCARD32
  5319. Fpad4 TCARD32
  5320. Fpad5 TCARD32
  5321. Fpad6 TCARD32
  5322. Fpad7 TCARD32
  5323. }
  5324. type TxListExtensionsReply = struct {
  5325. Ftype1 TBYTE
  5326. FnExtensions TCARD8
  5327. FsequenceNumber TCARD16
  5328. Flength TCARD32
  5329. Fpad2 TCARD32
  5330. Fpad3 TCARD32
  5331. Fpad4 TCARD32
  5332. Fpad5 TCARD32
  5333. Fpad6 TCARD32
  5334. Fpad7 TCARD32
  5335. }
  5336. type TxSetMappingReply = struct {
  5337. Ftype1 TBYTE
  5338. Fsuccess TCARD8
  5339. FsequenceNumber TCARD16
  5340. Flength TCARD32
  5341. Fpad2 TCARD32
  5342. Fpad3 TCARD32
  5343. Fpad4 TCARD32
  5344. Fpad5 TCARD32
  5345. Fpad6 TCARD32
  5346. Fpad7 TCARD32
  5347. }
  5348. type TxSetPointerMappingReply = struct {
  5349. Ftype1 TBYTE
  5350. Fsuccess TCARD8
  5351. FsequenceNumber TCARD16
  5352. Flength TCARD32
  5353. Fpad2 TCARD32
  5354. Fpad3 TCARD32
  5355. Fpad4 TCARD32
  5356. Fpad5 TCARD32
  5357. Fpad6 TCARD32
  5358. Fpad7 TCARD32
  5359. }
  5360. type TxSetModifierMappingReply = struct {
  5361. Ftype1 TBYTE
  5362. Fsuccess TCARD8
  5363. FsequenceNumber TCARD16
  5364. Flength TCARD32
  5365. Fpad2 TCARD32
  5366. Fpad3 TCARD32
  5367. Fpad4 TCARD32
  5368. Fpad5 TCARD32
  5369. Fpad6 TCARD32
  5370. Fpad7 TCARD32
  5371. }
  5372. type TxGetPointerMappingReply = struct {
  5373. Ftype1 TBYTE
  5374. FnElts TCARD8
  5375. FsequenceNumber TCARD16
  5376. Flength TCARD32
  5377. Fpad2 TCARD32
  5378. Fpad3 TCARD32
  5379. Fpad4 TCARD32
  5380. Fpad5 TCARD32
  5381. Fpad6 TCARD32
  5382. Fpad7 TCARD32
  5383. }
  5384. type TxGetKeyboardMappingReply = struct {
  5385. Ftype1 TBYTE
  5386. FkeySymsPerKeyCode TCARD8
  5387. FsequenceNumber TCARD16
  5388. Flength TCARD32
  5389. Fpad2 TCARD32
  5390. Fpad3 TCARD32
  5391. Fpad4 TCARD32
  5392. Fpad5 TCARD32
  5393. Fpad6 TCARD32
  5394. Fpad7 TCARD32
  5395. }
  5396. type TxGetModifierMappingReply = struct {
  5397. Ftype1 TBYTE
  5398. FnumKeyPerModifier TCARD8
  5399. FsequenceNumber TCARD16
  5400. Flength TCARD32
  5401. Fpad1 TCARD32
  5402. Fpad2 TCARD32
  5403. Fpad3 TCARD32
  5404. Fpad4 TCARD32
  5405. Fpad5 TCARD32
  5406. Fpad6 TCARD32
  5407. }
  5408. type TxGetKeyboardControlReply = struct {
  5409. Ftype1 TBYTE
  5410. FglobalAutoRepeat TBOOL
  5411. FsequenceNumber TCARD16
  5412. Flength TCARD32
  5413. FledMask TCARD32
  5414. FkeyClickPercent TCARD8
  5415. FbellPercent TCARD8
  5416. FbellPitch TCARD16
  5417. FbellDuration TCARD16
  5418. Fpad TCARD16
  5419. Fmap1 [32]TBYTE
  5420. }
  5421. type TxGetPointerControlReply = struct {
  5422. Ftype1 TBYTE
  5423. Fpad1 TBYTE
  5424. FsequenceNumber TCARD16
  5425. Flength TCARD32
  5426. FaccelNumerator TCARD16
  5427. FaccelDenominator TCARD16
  5428. Fthreshold TCARD16
  5429. Fpad2 TCARD16
  5430. Fpad3 TCARD32
  5431. Fpad4 TCARD32
  5432. Fpad5 TCARD32
  5433. Fpad6 TCARD32
  5434. }
  5435. type TxGetScreenSaverReply = struct {
  5436. Ftype1 TBYTE
  5437. Fpad1 TBYTE
  5438. FsequenceNumber TCARD16
  5439. Flength TCARD32
  5440. Ftimeout TCARD16
  5441. Finterval TCARD16
  5442. FpreferBlanking TBOOL
  5443. FallowExposures TBOOL
  5444. Fpad2 TCARD16
  5445. Fpad3 TCARD32
  5446. Fpad4 TCARD32
  5447. Fpad5 TCARD32
  5448. Fpad6 TCARD32
  5449. }
  5450. type TxListHostsReply = struct {
  5451. Ftype1 TBYTE
  5452. Fenabled TBOOL
  5453. FsequenceNumber TCARD16
  5454. Flength TCARD32
  5455. FnHosts TCARD16
  5456. Fpad1 TCARD16
  5457. Fpad3 TCARD32
  5458. Fpad4 TCARD32
  5459. Fpad5 TCARD32
  5460. Fpad6 TCARD32
  5461. Fpad7 TCARD32
  5462. }
  5463. type TxError = struct {
  5464. Ftype1 TBYTE
  5465. FerrorCode TBYTE
  5466. FsequenceNumber TCARD16
  5467. FresourceID TCARD32
  5468. FminorCode TCARD16
  5469. FmajorCode TCARD8
  5470. Fpad1 TBYTE
  5471. Fpad3 TCARD32
  5472. Fpad4 TCARD32
  5473. Fpad5 TCARD32
  5474. Fpad6 TCARD32
  5475. Fpad7 TCARD32
  5476. }
  5477. type TxEvent = struct {
  5478. Fu struct {
  5479. FkeyButtonPointer [0]struct {
  5480. Fpad00 TCARD32
  5481. Ftime TCARD32
  5482. Froot TCARD32
  5483. Fevent TCARD32
  5484. Fchild TCARD32
  5485. FrootX TINT16
  5486. FrootY TINT16
  5487. FeventX TINT16
  5488. FeventY TINT16
  5489. Fstate TKeyButMask
  5490. FsameScreen TBOOL
  5491. Fpad1 TBYTE
  5492. }
  5493. FenterLeave [0]struct {
  5494. Fpad00 TCARD32
  5495. Ftime TCARD32
  5496. Froot TCARD32
  5497. Fevent TCARD32
  5498. Fchild TCARD32
  5499. FrootX TINT16
  5500. FrootY TINT16
  5501. FeventX TINT16
  5502. FeventY TINT16
  5503. Fstate TKeyButMask
  5504. Fmode TBYTE
  5505. Fflags TBYTE
  5506. }
  5507. Ffocus [0]struct {
  5508. Fpad00 TCARD32
  5509. Fwindow TCARD32
  5510. Fmode TBYTE
  5511. Fpad1 TBYTE
  5512. Fpad2 TBYTE
  5513. Fpad3 TBYTE
  5514. }
  5515. Fexpose [0]struct {
  5516. Fpad00 TCARD32
  5517. Fwindow TCARD32
  5518. Fx TCARD16
  5519. Fy TCARD16
  5520. Fwidth TCARD16
  5521. Fheight TCARD16
  5522. Fcount TCARD16
  5523. Fpad2 TCARD16
  5524. }
  5525. FgraphicsExposure [0]struct {
  5526. Fpad00 TCARD32
  5527. Fdrawable TCARD32
  5528. Fx TCARD16
  5529. Fy TCARD16
  5530. Fwidth TCARD16
  5531. Fheight TCARD16
  5532. FminorEvent TCARD16
  5533. Fcount TCARD16
  5534. FmajorEvent TBYTE
  5535. Fpad1 TBYTE
  5536. Fpad2 TBYTE
  5537. Fpad3 TBYTE
  5538. }
  5539. FnoExposure [0]struct {
  5540. Fpad00 TCARD32
  5541. Fdrawable TCARD32
  5542. FminorEvent TCARD16
  5543. FmajorEvent TBYTE
  5544. Fbpad TBYTE
  5545. }
  5546. Fvisibility [0]struct {
  5547. Fpad00 TCARD32
  5548. Fwindow TCARD32
  5549. Fstate TCARD8
  5550. Fpad1 TBYTE
  5551. Fpad2 TBYTE
  5552. Fpad3 TBYTE
  5553. }
  5554. FcreateNotify [0]struct {
  5555. Fpad00 TCARD32
  5556. Fparent TCARD32
  5557. Fwindow TCARD32
  5558. Fx TINT16
  5559. Fy TINT16
  5560. Fwidth TCARD16
  5561. Fheight TCARD16
  5562. FborderWidth TCARD16
  5563. Foverride TBOOL
  5564. Fbpad TBYTE
  5565. }
  5566. FdestroyNotify [0]struct {
  5567. Fpad00 TCARD32
  5568. Fevent TCARD32
  5569. Fwindow TCARD32
  5570. }
  5571. FunmapNotify [0]struct {
  5572. Fpad00 TCARD32
  5573. Fevent TCARD32
  5574. Fwindow TCARD32
  5575. FfromConfigure TBOOL
  5576. Fpad1 TBYTE
  5577. Fpad2 TBYTE
  5578. Fpad3 TBYTE
  5579. }
  5580. FmapNotify [0]struct {
  5581. Fpad00 TCARD32
  5582. Fevent TCARD32
  5583. Fwindow TCARD32
  5584. Foverride TBOOL
  5585. Fpad1 TBYTE
  5586. Fpad2 TBYTE
  5587. Fpad3 TBYTE
  5588. }
  5589. FmapRequest [0]struct {
  5590. Fpad00 TCARD32
  5591. Fparent TCARD32
  5592. Fwindow TCARD32
  5593. }
  5594. Freparent [0]struct {
  5595. Fpad00 TCARD32
  5596. Fevent TCARD32
  5597. Fwindow TCARD32
  5598. Fparent TCARD32
  5599. Fx TINT16
  5600. Fy TINT16
  5601. Foverride TBOOL
  5602. Fpad1 TBYTE
  5603. Fpad2 TBYTE
  5604. Fpad3 TBYTE
  5605. }
  5606. FconfigureNotify [0]struct {
  5607. Fpad00 TCARD32
  5608. Fevent TCARD32
  5609. Fwindow TCARD32
  5610. FaboveSibling TCARD32
  5611. Fx TINT16
  5612. Fy TINT16
  5613. Fwidth TCARD16
  5614. Fheight TCARD16
  5615. FborderWidth TCARD16
  5616. Foverride TBOOL
  5617. Fbpad TBYTE
  5618. }
  5619. FconfigureRequest [0]struct {
  5620. Fpad00 TCARD32
  5621. Fparent TCARD32
  5622. Fwindow TCARD32
  5623. Fsibling TCARD32
  5624. Fx TINT16
  5625. Fy TINT16
  5626. Fwidth TCARD16
  5627. Fheight TCARD16
  5628. FborderWidth TCARD16
  5629. FvalueMask TCARD16
  5630. Fpad1 TCARD32
  5631. }
  5632. Fgravity [0]struct {
  5633. Fpad00 TCARD32
  5634. Fevent TCARD32
  5635. Fwindow TCARD32
  5636. Fx TINT16
  5637. Fy TINT16
  5638. Fpad1 TCARD32
  5639. Fpad2 TCARD32
  5640. Fpad3 TCARD32
  5641. Fpad4 TCARD32
  5642. }
  5643. FresizeRequest [0]struct {
  5644. Fpad00 TCARD32
  5645. Fwindow TCARD32
  5646. Fwidth TCARD16
  5647. Fheight TCARD16
  5648. }
  5649. Fcirculate [0]struct {
  5650. Fpad00 TCARD32
  5651. Fevent TCARD32
  5652. Fwindow TCARD32
  5653. Fparent TCARD32
  5654. Fplace TBYTE
  5655. Fpad1 TBYTE
  5656. Fpad2 TBYTE
  5657. Fpad3 TBYTE
  5658. }
  5659. Fproperty [0]struct {
  5660. Fpad00 TCARD32
  5661. Fwindow TCARD32
  5662. Fatom TCARD32
  5663. Ftime TCARD32
  5664. Fstate TBYTE
  5665. Fpad1 TBYTE
  5666. Fpad2 TCARD16
  5667. }
  5668. FselectionClear [0]struct {
  5669. Fpad00 TCARD32
  5670. Ftime TCARD32
  5671. Fwindow TCARD32
  5672. Fatom TCARD32
  5673. }
  5674. FselectionRequest [0]struct {
  5675. Fpad00 TCARD32
  5676. Ftime TCARD32
  5677. Fowner TCARD32
  5678. Frequestor TCARD32
  5679. Fselection TCARD32
  5680. Ftarget TCARD32
  5681. Fproperty TCARD32
  5682. }
  5683. FselectionNotify [0]struct {
  5684. Fpad00 TCARD32
  5685. Ftime TCARD32
  5686. Frequestor TCARD32
  5687. Fselection TCARD32
  5688. Ftarget TCARD32
  5689. Fproperty TCARD32
  5690. }
  5691. Fcolormap [0]struct {
  5692. Fpad00 TCARD32
  5693. Fwindow TCARD32
  5694. Fcolormap TCARD32
  5695. Fnew1 TBOOL
  5696. Fstate TBYTE
  5697. Fpad1 TBYTE
  5698. Fpad2 TBYTE
  5699. }
  5700. FmappingNotify [0]struct {
  5701. Fpad00 TCARD32
  5702. Frequest TCARD8
  5703. FfirstKeyCode TCARD8
  5704. Fcount TCARD8
  5705. Fpad1 TBYTE
  5706. }
  5707. FclientMessage [0]struct {
  5708. Fpad00 TCARD32
  5709. Fwindow TCARD32
  5710. Fu struct {
  5711. Fs [0]struct {
  5712. Ftype1 TCARD32
  5713. Fshorts0 TINT16
  5714. Fshorts1 TINT16
  5715. Fshorts2 TINT16
  5716. Fshorts3 TINT16
  5717. Fshorts4 TINT16
  5718. Fshorts5 TINT16
  5719. Fshorts6 TINT16
  5720. Fshorts7 TINT16
  5721. Fshorts8 TINT16
  5722. Fshorts9 TINT16
  5723. }
  5724. Fb [0]struct {
  5725. Ftype1 TCARD32
  5726. Fbytes [20]TINT8
  5727. }
  5728. Fl struct {
  5729. Ftype1 TCARD32
  5730. Flongs0 TINT32
  5731. Flongs1 TINT32
  5732. Flongs2 TINT32
  5733. Flongs3 TINT32
  5734. Flongs4 TINT32
  5735. }
  5736. }
  5737. }
  5738. Fu struct {
  5739. Ftype1 TBYTE
  5740. Fdetail TBYTE
  5741. FsequenceNumber TCARD16
  5742. }
  5743. F__ccgo_pad26 [28]byte
  5744. }
  5745. }
  5746. type T_xEvent = TxEvent
  5747. type TxGenericEvent = struct {
  5748. Ftype1 TBYTE
  5749. Fextension TCARD8
  5750. FsequenceNumber TCARD16
  5751. Flength TCARD32
  5752. Fevtype TCARD16
  5753. Fpad2 TCARD16
  5754. Fpad3 TCARD32
  5755. Fpad4 TCARD32
  5756. Fpad5 TCARD32
  5757. Fpad6 TCARD32
  5758. Fpad7 TCARD32
  5759. }
  5760. type TxKeymapEvent = struct {
  5761. Ftype1 TBYTE
  5762. Fmap1 [31]TBYTE
  5763. }
  5764. type TxReply = struct {
  5765. Fgeom [0]TxGetGeometryReply
  5766. Ftree [0]TxQueryTreeReply
  5767. Fatom [0]TxInternAtomReply
  5768. FatomName [0]TxGetAtomNameReply
  5769. Fproperty [0]TxGetPropertyReply
  5770. FlistProperties [0]TxListPropertiesReply
  5771. Fselection [0]TxGetSelectionOwnerReply
  5772. FgrabPointer [0]TxGrabPointerReply
  5773. FgrabKeyboard [0]TxGrabKeyboardReply
  5774. Fpointer [0]TxQueryPointerReply
  5775. FmotionEvents [0]TxGetMotionEventsReply
  5776. Fcoords [0]TxTranslateCoordsReply
  5777. FinputFocus [0]TxGetInputFocusReply
  5778. FtextExtents [0]TxQueryTextExtentsReply
  5779. Ffonts [0]TxListFontsReply
  5780. FfontPath [0]TxGetFontPathReply
  5781. Fimage [0]TxGetImageReply
  5782. Fcolormaps [0]TxListInstalledColormapsReply
  5783. FallocColor [0]TxAllocColorReply
  5784. FallocNamedColor [0]TxAllocNamedColorReply
  5785. FcolorCells [0]TxAllocColorCellsReply
  5786. FcolorPlanes [0]TxAllocColorPlanesReply
  5787. Fcolors [0]TxQueryColorsReply
  5788. FlookupColor [0]TxLookupColorReply
  5789. FbestSize [0]TxQueryBestSizeReply
  5790. Fextension [0]TxQueryExtensionReply
  5791. Fextensions [0]TxListExtensionsReply
  5792. FsetModifierMapping [0]TxSetModifierMappingReply
  5793. FgetModifierMapping [0]TxGetModifierMappingReply
  5794. FsetPointerMapping [0]TxSetPointerMappingReply
  5795. FgetKeyboardMapping [0]TxGetKeyboardMappingReply
  5796. FgetPointerMapping [0]TxGetPointerMappingReply
  5797. FpointerControl [0]TxGetPointerControlReply
  5798. FscreenSaver [0]TxGetScreenSaverReply
  5799. Fhosts [0]TxListHostsReply
  5800. Ferror1 [0]TxError
  5801. Fevent [0]TxEvent
  5802. Fgeneric TxGenericReply
  5803. }
  5804. type TxReq = struct {
  5805. FreqType TCARD8
  5806. Fdata TCARD8
  5807. Flength TCARD16
  5808. }
  5809. type T_xReq = TxReq
  5810. type TxResourceReq = struct {
  5811. FreqType TCARD8
  5812. Fpad TBYTE
  5813. Flength TCARD16
  5814. Fid TCARD32
  5815. }
  5816. type TxCreateWindowReq = struct {
  5817. FreqType TCARD8
  5818. Fdepth TCARD8
  5819. Flength TCARD16
  5820. Fwid TCARD32
  5821. Fparent TCARD32
  5822. Fx TINT16
  5823. Fy TINT16
  5824. Fwidth TCARD16
  5825. Fheight TCARD16
  5826. FborderWidth TCARD16
  5827. Fclass TCARD16
  5828. Fvisual TCARD32
  5829. Fmask TCARD32
  5830. }
  5831. type TxChangeWindowAttributesReq = struct {
  5832. FreqType TCARD8
  5833. Fpad TBYTE
  5834. Flength TCARD16
  5835. Fwindow TCARD32
  5836. FvalueMask TCARD32
  5837. }
  5838. type TxChangeSaveSetReq = struct {
  5839. FreqType TCARD8
  5840. Fmode TBYTE
  5841. Flength TCARD16
  5842. Fwindow TCARD32
  5843. }
  5844. type TxReparentWindowReq = struct {
  5845. FreqType TCARD8
  5846. Fpad TBYTE
  5847. Flength TCARD16
  5848. Fwindow TCARD32
  5849. Fparent TCARD32
  5850. Fx TINT16
  5851. Fy TINT16
  5852. }
  5853. type TxConfigureWindowReq = struct {
  5854. FreqType TCARD8
  5855. Fpad TCARD8
  5856. Flength TCARD16
  5857. Fwindow TCARD32
  5858. Fmask TCARD16
  5859. Fpad2 TCARD16
  5860. }
  5861. type TxCirculateWindowReq = struct {
  5862. FreqType TCARD8
  5863. Fdirection TCARD8
  5864. Flength TCARD16
  5865. Fwindow TCARD32
  5866. }
  5867. type TxInternAtomReq = struct {
  5868. FreqType TCARD8
  5869. FonlyIfExists TBOOL
  5870. Flength TCARD16
  5871. Fnbytes TCARD16
  5872. Fpad TCARD16
  5873. }
  5874. type TxChangePropertyReq = struct {
  5875. FreqType TCARD8
  5876. Fmode TCARD8
  5877. Flength TCARD16
  5878. Fwindow TCARD32
  5879. Fproperty TCARD32
  5880. Ftype1 TCARD32
  5881. Fformat TCARD8
  5882. Fpad [3]TBYTE
  5883. FnUnits TCARD32
  5884. }
  5885. type TxDeletePropertyReq = struct {
  5886. FreqType TCARD8
  5887. Fpad TBYTE
  5888. Flength TCARD16
  5889. Fwindow TCARD32
  5890. Fproperty TCARD32
  5891. }
  5892. type TxGetPropertyReq = struct {
  5893. FreqType TCARD8
  5894. Fdelete1 TBOOL
  5895. Flength TCARD16
  5896. Fwindow TCARD32
  5897. Fproperty TCARD32
  5898. Ftype1 TCARD32
  5899. FlongOffset TCARD32
  5900. FlongLength TCARD32
  5901. }
  5902. type TxSetSelectionOwnerReq = struct {
  5903. FreqType TCARD8
  5904. Fpad TBYTE
  5905. Flength TCARD16
  5906. Fwindow TCARD32
  5907. Fselection TCARD32
  5908. Ftime TCARD32
  5909. }
  5910. type TxConvertSelectionReq = struct {
  5911. FreqType TCARD8
  5912. Fpad TBYTE
  5913. Flength TCARD16
  5914. Frequestor TCARD32
  5915. Fselection TCARD32
  5916. Ftarget TCARD32
  5917. Fproperty TCARD32
  5918. Ftime TCARD32
  5919. }
  5920. type TxSendEventReq = struct {
  5921. FreqType TCARD8
  5922. Fpropagate TBOOL
  5923. Flength TCARD16
  5924. Fdestination TCARD32
  5925. FeventMask TCARD32
  5926. Fevent TxEvent
  5927. }
  5928. type TxGrabPointerReq = struct {
  5929. FreqType TCARD8
  5930. FownerEvents TBOOL
  5931. Flength TCARD16
  5932. FgrabWindow TCARD32
  5933. FeventMask TCARD16
  5934. FpointerMode TBYTE
  5935. FkeyboardMode TBYTE
  5936. FconfineTo TCARD32
  5937. Fcursor TCARD32
  5938. Ftime TCARD32
  5939. }
  5940. type TxGrabButtonReq = struct {
  5941. FreqType TCARD8
  5942. FownerEvents TBOOL
  5943. Flength TCARD16
  5944. FgrabWindow TCARD32
  5945. FeventMask TCARD16
  5946. FpointerMode TBYTE
  5947. FkeyboardMode TBYTE
  5948. FconfineTo TCARD32
  5949. Fcursor TCARD32
  5950. Fbutton TCARD8
  5951. Fpad TBYTE
  5952. Fmodifiers TCARD16
  5953. }
  5954. type TxUngrabButtonReq = struct {
  5955. FreqType TCARD8
  5956. Fbutton TCARD8
  5957. Flength TCARD16
  5958. FgrabWindow TCARD32
  5959. Fmodifiers TCARD16
  5960. Fpad TCARD16
  5961. }
  5962. type TxChangeActivePointerGrabReq = struct {
  5963. FreqType TCARD8
  5964. Fpad TBYTE
  5965. Flength TCARD16
  5966. Fcursor TCARD32
  5967. Ftime TCARD32
  5968. FeventMask TCARD16
  5969. Fpad2 TCARD16
  5970. }
  5971. type TxGrabKeyboardReq = struct {
  5972. FreqType TCARD8
  5973. FownerEvents TBOOL
  5974. Flength TCARD16
  5975. FgrabWindow TCARD32
  5976. Ftime TCARD32
  5977. FpointerMode TBYTE
  5978. FkeyboardMode TBYTE
  5979. Fpad TCARD16
  5980. }
  5981. type TxGrabKeyReq = struct {
  5982. FreqType TCARD8
  5983. FownerEvents TBOOL
  5984. Flength TCARD16
  5985. FgrabWindow TCARD32
  5986. Fmodifiers TCARD16
  5987. Fkey TCARD8
  5988. FpointerMode TBYTE
  5989. FkeyboardMode TBYTE
  5990. Fpad1 TBYTE
  5991. Fpad2 TBYTE
  5992. Fpad3 TBYTE
  5993. }
  5994. type TxUngrabKeyReq = struct {
  5995. FreqType TCARD8
  5996. Fkey TCARD8
  5997. Flength TCARD16
  5998. FgrabWindow TCARD32
  5999. Fmodifiers TCARD16
  6000. Fpad TCARD16
  6001. }
  6002. type TxAllowEventsReq = struct {
  6003. FreqType TCARD8
  6004. Fmode TCARD8
  6005. Flength TCARD16
  6006. Ftime TCARD32
  6007. }
  6008. type TxGetMotionEventsReq = struct {
  6009. FreqType TCARD8
  6010. Fpad TBYTE
  6011. Flength TCARD16
  6012. Fwindow TCARD32
  6013. Fstart TCARD32
  6014. Fstop TCARD32
  6015. }
  6016. type TxTranslateCoordsReq = struct {
  6017. FreqType TCARD8
  6018. Fpad TBYTE
  6019. Flength TCARD16
  6020. FsrcWid TCARD32
  6021. FdstWid TCARD32
  6022. FsrcX TINT16
  6023. FsrcY TINT16
  6024. }
  6025. type TxWarpPointerReq = struct {
  6026. FreqType TCARD8
  6027. Fpad TBYTE
  6028. Flength TCARD16
  6029. FsrcWid TCARD32
  6030. FdstWid TCARD32
  6031. FsrcX TINT16
  6032. FsrcY TINT16
  6033. FsrcWidth TCARD16
  6034. FsrcHeight TCARD16
  6035. FdstX TINT16
  6036. FdstY TINT16
  6037. }
  6038. type TxSetInputFocusReq = struct {
  6039. FreqType TCARD8
  6040. FrevertTo TCARD8
  6041. Flength TCARD16
  6042. Ffocus TCARD32
  6043. Ftime TCARD32
  6044. }
  6045. type TxOpenFontReq = struct {
  6046. FreqType TCARD8
  6047. Fpad TBYTE
  6048. Flength TCARD16
  6049. Ffid TCARD32
  6050. Fnbytes TCARD16
  6051. Fpad1 TBYTE
  6052. Fpad2 TBYTE
  6053. }
  6054. type TxQueryTextExtentsReq = struct {
  6055. FreqType TCARD8
  6056. FoddLength TBOOL
  6057. Flength TCARD16
  6058. Ffid TCARD32
  6059. }
  6060. type TxListFontsReq = struct {
  6061. FreqType TCARD8
  6062. Fpad TBYTE
  6063. Flength TCARD16
  6064. FmaxNames TCARD16
  6065. Fnbytes TCARD16
  6066. }
  6067. type TxListFontsWithInfoReq = struct {
  6068. FreqType TCARD8
  6069. Fpad TBYTE
  6070. Flength TCARD16
  6071. FmaxNames TCARD16
  6072. Fnbytes TCARD16
  6073. }
  6074. type TxSetFontPathReq = struct {
  6075. FreqType TCARD8
  6076. Fpad TBYTE
  6077. Flength TCARD16
  6078. FnFonts TCARD16
  6079. Fpad1 TBYTE
  6080. Fpad2 TBYTE
  6081. }
  6082. type TxCreatePixmapReq = struct {
  6083. FreqType TCARD8
  6084. Fdepth TCARD8
  6085. Flength TCARD16
  6086. Fpid TCARD32
  6087. Fdrawable TCARD32
  6088. Fwidth TCARD16
  6089. Fheight TCARD16
  6090. }
  6091. type TxCreateGCReq = struct {
  6092. FreqType TCARD8
  6093. Fpad TBYTE
  6094. Flength TCARD16
  6095. Fgc TCARD32
  6096. Fdrawable TCARD32
  6097. Fmask TCARD32
  6098. }
  6099. type TxChangeGCReq = struct {
  6100. FreqType TCARD8
  6101. Fpad TBYTE
  6102. Flength TCARD16
  6103. Fgc TCARD32
  6104. Fmask TCARD32
  6105. }
  6106. type TxCopyGCReq = struct {
  6107. FreqType TCARD8
  6108. Fpad TBYTE
  6109. Flength TCARD16
  6110. FsrcGC TCARD32
  6111. FdstGC TCARD32
  6112. Fmask TCARD32
  6113. }
  6114. type TxSetDashesReq = struct {
  6115. FreqType TCARD8
  6116. Fpad TBYTE
  6117. Flength TCARD16
  6118. Fgc TCARD32
  6119. FdashOffset TCARD16
  6120. FnDashes TCARD16
  6121. }
  6122. type TxSetClipRectanglesReq = struct {
  6123. FreqType TCARD8
  6124. Fordering TBYTE
  6125. Flength TCARD16
  6126. Fgc TCARD32
  6127. FxOrigin TINT16
  6128. FyOrigin TINT16
  6129. }
  6130. type TxClearAreaReq = struct {
  6131. FreqType TCARD8
  6132. Fexposures TBOOL
  6133. Flength TCARD16
  6134. Fwindow TCARD32
  6135. Fx TINT16
  6136. Fy TINT16
  6137. Fwidth TCARD16
  6138. Fheight TCARD16
  6139. }
  6140. type TxCopyAreaReq = struct {
  6141. FreqType TCARD8
  6142. Fpad TBYTE
  6143. Flength TCARD16
  6144. FsrcDrawable TCARD32
  6145. FdstDrawable TCARD32
  6146. Fgc TCARD32
  6147. FsrcX TINT16
  6148. FsrcY TINT16
  6149. FdstX TINT16
  6150. FdstY TINT16
  6151. Fwidth TCARD16
  6152. Fheight TCARD16
  6153. }
  6154. type TxCopyPlaneReq = struct {
  6155. FreqType TCARD8
  6156. Fpad TBYTE
  6157. Flength TCARD16
  6158. FsrcDrawable TCARD32
  6159. FdstDrawable TCARD32
  6160. Fgc TCARD32
  6161. FsrcX TINT16
  6162. FsrcY TINT16
  6163. FdstX TINT16
  6164. FdstY TINT16
  6165. Fwidth TCARD16
  6166. Fheight TCARD16
  6167. FbitPlane TCARD32
  6168. }
  6169. type TxPolyPointReq = struct {
  6170. FreqType TCARD8
  6171. FcoordMode TBYTE
  6172. Flength TCARD16
  6173. Fdrawable TCARD32
  6174. Fgc TCARD32
  6175. }
  6176. type TxPolyLineReq = struct {
  6177. FreqType TCARD8
  6178. FcoordMode TBYTE
  6179. Flength TCARD16
  6180. Fdrawable TCARD32
  6181. Fgc TCARD32
  6182. }
  6183. type TxPolySegmentReq = struct {
  6184. FreqType TCARD8
  6185. Fpad TBYTE
  6186. Flength TCARD16
  6187. Fdrawable TCARD32
  6188. Fgc TCARD32
  6189. }
  6190. type TxPolyArcReq = struct {
  6191. FreqType TCARD8
  6192. Fpad TBYTE
  6193. Flength TCARD16
  6194. Fdrawable TCARD32
  6195. Fgc TCARD32
  6196. }
  6197. type TxPolyRectangleReq = struct {
  6198. FreqType TCARD8
  6199. Fpad TBYTE
  6200. Flength TCARD16
  6201. Fdrawable TCARD32
  6202. Fgc TCARD32
  6203. }
  6204. type TxPolyFillRectangleReq = struct {
  6205. FreqType TCARD8
  6206. Fpad TBYTE
  6207. Flength TCARD16
  6208. Fdrawable TCARD32
  6209. Fgc TCARD32
  6210. }
  6211. type TxPolyFillArcReq = struct {
  6212. FreqType TCARD8
  6213. Fpad TBYTE
  6214. Flength TCARD16
  6215. Fdrawable TCARD32
  6216. Fgc TCARD32
  6217. }
  6218. type TxFillPolyReq = struct {
  6219. FreqType TCARD8
  6220. Fpad TBYTE
  6221. Flength TCARD16
  6222. Fdrawable TCARD32
  6223. Fgc TCARD32
  6224. Fshape TBYTE
  6225. FcoordMode TBYTE
  6226. Fpad1 TCARD16
  6227. }
  6228. type T_FillPolyReq = TxFillPolyReq
  6229. type TxPutImageReq = struct {
  6230. FreqType TCARD8
  6231. Fformat TCARD8
  6232. Flength TCARD16
  6233. Fdrawable TCARD32
  6234. Fgc TCARD32
  6235. Fwidth TCARD16
  6236. Fheight TCARD16
  6237. FdstX TINT16
  6238. FdstY TINT16
  6239. FleftPad TCARD8
  6240. Fdepth TCARD8
  6241. Fpad TCARD16
  6242. }
  6243. type T_PutImageReq = TxPutImageReq
  6244. type TxGetImageReq = struct {
  6245. FreqType TCARD8
  6246. Fformat TCARD8
  6247. Flength TCARD16
  6248. Fdrawable TCARD32
  6249. Fx TINT16
  6250. Fy TINT16
  6251. Fwidth TCARD16
  6252. Fheight TCARD16
  6253. FplaneMask TCARD32
  6254. }
  6255. type TxPolyTextReq = struct {
  6256. FreqType TCARD8
  6257. Fpad TCARD8
  6258. Flength TCARD16
  6259. Fdrawable TCARD32
  6260. Fgc TCARD32
  6261. Fx TINT16
  6262. Fy TINT16
  6263. }
  6264. type TxPolyText8Req = struct {
  6265. FreqType TCARD8
  6266. Fpad TCARD8
  6267. Flength TCARD16
  6268. Fdrawable TCARD32
  6269. Fgc TCARD32
  6270. Fx TINT16
  6271. Fy TINT16
  6272. }
  6273. type TxPolyText16Req = struct {
  6274. FreqType TCARD8
  6275. Fpad TCARD8
  6276. Flength TCARD16
  6277. Fdrawable TCARD32
  6278. Fgc TCARD32
  6279. Fx TINT16
  6280. Fy TINT16
  6281. }
  6282. type TxImageTextReq = struct {
  6283. FreqType TCARD8
  6284. FnChars TBYTE
  6285. Flength TCARD16
  6286. Fdrawable TCARD32
  6287. Fgc TCARD32
  6288. Fx TINT16
  6289. Fy TINT16
  6290. }
  6291. type TxImageText8Req = struct {
  6292. FreqType TCARD8
  6293. FnChars TBYTE
  6294. Flength TCARD16
  6295. Fdrawable TCARD32
  6296. Fgc TCARD32
  6297. Fx TINT16
  6298. Fy TINT16
  6299. }
  6300. type TxImageText16Req = struct {
  6301. FreqType TCARD8
  6302. FnChars TBYTE
  6303. Flength TCARD16
  6304. Fdrawable TCARD32
  6305. Fgc TCARD32
  6306. Fx TINT16
  6307. Fy TINT16
  6308. }
  6309. type TxCreateColormapReq = struct {
  6310. FreqType TCARD8
  6311. Falloc TBYTE
  6312. Flength TCARD16
  6313. Fmid TCARD32
  6314. Fwindow TCARD32
  6315. Fvisual TCARD32
  6316. }
  6317. type TxCopyColormapAndFreeReq = struct {
  6318. FreqType TCARD8
  6319. Fpad TBYTE
  6320. Flength TCARD16
  6321. Fmid TCARD32
  6322. FsrcCmap TCARD32
  6323. }
  6324. type TxAllocColorReq = struct {
  6325. FreqType TCARD8
  6326. Fpad TBYTE
  6327. Flength TCARD16
  6328. Fcmap TCARD32
  6329. Fred TCARD16
  6330. Fgreen TCARD16
  6331. Fblue TCARD16
  6332. Fpad2 TCARD16
  6333. }
  6334. type TxAllocNamedColorReq = struct {
  6335. FreqType TCARD8
  6336. Fpad TBYTE
  6337. Flength TCARD16
  6338. Fcmap TCARD32
  6339. Fnbytes TCARD16
  6340. Fpad1 TBYTE
  6341. Fpad2 TBYTE
  6342. }
  6343. type TxAllocColorCellsReq = struct {
  6344. FreqType TCARD8
  6345. Fcontiguous TBOOL
  6346. Flength TCARD16
  6347. Fcmap TCARD32
  6348. Fcolors TCARD16
  6349. Fplanes TCARD16
  6350. }
  6351. type TxAllocColorPlanesReq = struct {
  6352. FreqType TCARD8
  6353. Fcontiguous TBOOL
  6354. Flength TCARD16
  6355. Fcmap TCARD32
  6356. Fcolors TCARD16
  6357. Fred TCARD16
  6358. Fgreen TCARD16
  6359. Fblue TCARD16
  6360. }
  6361. type TxFreeColorsReq = struct {
  6362. FreqType TCARD8
  6363. Fpad TBYTE
  6364. Flength TCARD16
  6365. Fcmap TCARD32
  6366. FplaneMask TCARD32
  6367. }
  6368. type TxStoreColorsReq = struct {
  6369. FreqType TCARD8
  6370. Fpad TBYTE
  6371. Flength TCARD16
  6372. Fcmap TCARD32
  6373. }
  6374. type TxStoreNamedColorReq = struct {
  6375. FreqType TCARD8
  6376. Fflags TCARD8
  6377. Flength TCARD16
  6378. Fcmap TCARD32
  6379. Fpixel TCARD32
  6380. Fnbytes TCARD16
  6381. Fpad1 TBYTE
  6382. Fpad2 TBYTE
  6383. }
  6384. type TxQueryColorsReq = struct {
  6385. FreqType TCARD8
  6386. Fpad TBYTE
  6387. Flength TCARD16
  6388. Fcmap TCARD32
  6389. }
  6390. type TxLookupColorReq = struct {
  6391. FreqType TCARD8
  6392. Fpad TBYTE
  6393. Flength TCARD16
  6394. Fcmap TCARD32
  6395. Fnbytes TCARD16
  6396. Fpad1 TBYTE
  6397. Fpad2 TBYTE
  6398. }
  6399. type TxCreateCursorReq = struct {
  6400. FreqType TCARD8
  6401. Fpad TBYTE
  6402. Flength TCARD16
  6403. Fcid TCARD32
  6404. Fsource TCARD32
  6405. Fmask TCARD32
  6406. FforeRed TCARD16
  6407. FforeGreen TCARD16
  6408. FforeBlue TCARD16
  6409. FbackRed TCARD16
  6410. FbackGreen TCARD16
  6411. FbackBlue TCARD16
  6412. Fx TCARD16
  6413. Fy TCARD16
  6414. }
  6415. type TxCreateGlyphCursorReq = struct {
  6416. FreqType TCARD8
  6417. Fpad TBYTE
  6418. Flength TCARD16
  6419. Fcid TCARD32
  6420. Fsource TCARD32
  6421. Fmask TCARD32
  6422. FsourceChar TCARD16
  6423. FmaskChar TCARD16
  6424. FforeRed TCARD16
  6425. FforeGreen TCARD16
  6426. FforeBlue TCARD16
  6427. FbackRed TCARD16
  6428. FbackGreen TCARD16
  6429. FbackBlue TCARD16
  6430. }
  6431. type TxRecolorCursorReq = struct {
  6432. FreqType TCARD8
  6433. Fpad TBYTE
  6434. Flength TCARD16
  6435. Fcursor TCARD32
  6436. FforeRed TCARD16
  6437. FforeGreen TCARD16
  6438. FforeBlue TCARD16
  6439. FbackRed TCARD16
  6440. FbackGreen TCARD16
  6441. FbackBlue TCARD16
  6442. }
  6443. type TxQueryBestSizeReq = struct {
  6444. FreqType TCARD8
  6445. Fclass TCARD8
  6446. Flength TCARD16
  6447. Fdrawable TCARD32
  6448. Fwidth TCARD16
  6449. Fheight TCARD16
  6450. }
  6451. type TxQueryExtensionReq = struct {
  6452. FreqType TCARD8
  6453. Fpad TBYTE
  6454. Flength TCARD16
  6455. Fnbytes TCARD16
  6456. Fpad1 TBYTE
  6457. Fpad2 TBYTE
  6458. }
  6459. type TxSetModifierMappingReq = struct {
  6460. FreqType TCARD8
  6461. FnumKeyPerModifier TCARD8
  6462. Flength TCARD16
  6463. }
  6464. type TxSetPointerMappingReq = struct {
  6465. FreqType TCARD8
  6466. FnElts TCARD8
  6467. Flength TCARD16
  6468. }
  6469. type TxGetKeyboardMappingReq = struct {
  6470. FreqType TCARD8
  6471. Fpad TBYTE
  6472. Flength TCARD16
  6473. FfirstKeyCode TCARD8
  6474. Fcount TCARD8
  6475. Fpad1 TCARD16
  6476. }
  6477. type TxChangeKeyboardMappingReq = struct {
  6478. FreqType TCARD8
  6479. FkeyCodes TCARD8
  6480. Flength TCARD16
  6481. FfirstKeyCode TCARD8
  6482. FkeySymsPerKeyCode TCARD8
  6483. Fpad1 TCARD16
  6484. }
  6485. type TxChangeKeyboardControlReq = struct {
  6486. FreqType TCARD8
  6487. Fpad TBYTE
  6488. Flength TCARD16
  6489. Fmask TCARD32
  6490. }
  6491. type TxBellReq = struct {
  6492. FreqType TCARD8
  6493. Fpercent TINT8
  6494. Flength TCARD16
  6495. }
  6496. type TxChangePointerControlReq = struct {
  6497. FreqType TCARD8
  6498. Fpad TBYTE
  6499. Flength TCARD16
  6500. FaccelNum TINT16
  6501. FaccelDenum TINT16
  6502. Fthreshold TINT16
  6503. FdoAccel TBOOL
  6504. FdoThresh TBOOL
  6505. }
  6506. type TxSetScreenSaverReq = struct {
  6507. FreqType TCARD8
  6508. Fpad TBYTE
  6509. Flength TCARD16
  6510. Ftimeout TINT16
  6511. Finterval TINT16
  6512. FpreferBlank TBYTE
  6513. FallowExpose TBYTE
  6514. Fpad2 TCARD16
  6515. }
  6516. type TxChangeHostsReq = struct {
  6517. FreqType TCARD8
  6518. Fmode TBYTE
  6519. Flength TCARD16
  6520. FhostFamily TCARD8
  6521. Fpad TBYTE
  6522. FhostLength TCARD16
  6523. }
  6524. type TxListHostsReq = struct {
  6525. FreqType TCARD8
  6526. Fpad TBYTE
  6527. Flength TCARD16
  6528. }
  6529. type TxChangeModeReq = struct {
  6530. FreqType TCARD8
  6531. Fmode TBYTE
  6532. Flength TCARD16
  6533. }
  6534. type TxSetAccessControlReq = struct {
  6535. FreqType TCARD8
  6536. Fmode TBYTE
  6537. Flength TCARD16
  6538. }
  6539. type TxSetCloseDownModeReq = struct {
  6540. FreqType TCARD8
  6541. Fmode TBYTE
  6542. Flength TCARD16
  6543. }
  6544. type TxForceScreenSaverReq = struct {
  6545. FreqType TCARD8
  6546. Fmode TBYTE
  6547. Flength TCARD16
  6548. }
  6549. type TxRotatePropertiesReq = struct {
  6550. FreqType TCARD8
  6551. Fpad TBYTE
  6552. Flength TCARD16
  6553. Fwindow TCARD32
  6554. FnAtoms TCARD16
  6555. FnPositions TINT16
  6556. }
  6557. type T_XQEvent = struct {
  6558. Fnext uintptr
  6559. Fevent TXEvent
  6560. Fqserial_num uint64
  6561. }
  6562. type T_XSQEvent = T_XQEvent
  6563. type Tlocale_t = uintptr
  6564. type Tdiv_t = struct {
  6565. Fquot int32
  6566. Frem int32
  6567. }
  6568. type Tldiv_t = struct {
  6569. Fquot int64
  6570. Frem int64
  6571. }
  6572. type Tlldiv_t = struct {
  6573. Fquot int64
  6574. Frem int64
  6575. }
  6576. type TLockInfoPtr = uintptr
  6577. type T_XLockPtrs = struct {
  6578. Flock_display uintptr
  6579. Funlock_display uintptr
  6580. }
  6581. type T_XAsyncHandler = struct {
  6582. Fnext uintptr
  6583. Fhandler uintptr
  6584. Fdata TXPointer
  6585. }
  6586. type T_XInternalAsync = T_XAsyncHandler
  6587. type T_XAsyncErrorState = struct {
  6588. Fmin_sequence_number uint64
  6589. Fmax_sequence_number uint64
  6590. Ferror_code uint8
  6591. Fmajor_opcode uint8
  6592. Fminor_opcode uint16
  6593. Flast_error_received uint8
  6594. Ferror_count int32
  6595. }
  6596. type T_XAsyncEState = T_XAsyncErrorState
  6597. type TFreeFuncType = uintptr
  6598. type TFreeModmapType = uintptr
  6599. type T_XFreeFuncRec = struct {
  6600. Fatoms TFreeFuncType
  6601. Fmodifiermap TFreeModmapType
  6602. Fkey_bindings TFreeFuncType
  6603. Fcontext_db TFreeFuncType
  6604. FdefaultCCCs TFreeFuncType
  6605. FclientCmaps TFreeFuncType
  6606. FintensityMaps TFreeFuncType
  6607. Fim_filters TFreeFuncType
  6608. Fxkb TFreeFuncType
  6609. }
  6610. type T_XFreeFuncs = T_XFreeFuncRec
  6611. type TCreateGCType = uintptr
  6612. type TCopyGCType = uintptr
  6613. type TFlushGCType = uintptr
  6614. type TFreeGCType = uintptr
  6615. type TCreateFontType = uintptr
  6616. type TFreeFontType = uintptr
  6617. type TCloseDisplayType = uintptr
  6618. type TErrorType = uintptr
  6619. type TErrorStringType = uintptr
  6620. type TPrintErrorType = uintptr
  6621. type TBeforeFlushType = uintptr
  6622. type T_XExtension = struct {
  6623. Fnext uintptr
  6624. Fcodes TXExtCodes
  6625. Fcreate_GC TCreateGCType
  6626. Fcopy_GC TCopyGCType
  6627. Fflush_GC TFlushGCType
  6628. Ffree_GC TFreeGCType
  6629. Fcreate_Font TCreateFontType
  6630. Ffree_Font TFreeFontType
  6631. Fclose_display TCloseDisplayType
  6632. Ferror1 TErrorType
  6633. Ferror_string TErrorStringType
  6634. Fname uintptr
  6635. Ferror_values TPrintErrorType
  6636. Fbefore_flush TBeforeFlushType
  6637. Fnext_flush uintptr
  6638. }
  6639. type T_XExten = T_XExtension
  6640. type T_XInternalConnectionProc = uintptr
  6641. type T_XConnectionInfo = struct {
  6642. Ffd int32
  6643. Fread_callback T_XInternalConnectionProc
  6644. Fcall_data TXPointer
  6645. Fwatch_data uintptr
  6646. Fnext uintptr
  6647. }
  6648. type T_XConnWatchInfo = struct {
  6649. Ffn TXConnectionWatchProc
  6650. Fclient_data TXPointer
  6651. Fnext uintptr
  6652. }
  6653. type TXSizeHints = struct {
  6654. Fflags int64
  6655. Fx int32
  6656. Fy int32
  6657. Fwidth int32
  6658. Fheight int32
  6659. Fmin_width int32
  6660. Fmin_height int32
  6661. Fmax_width int32
  6662. Fmax_height int32
  6663. Fwidth_inc int32
  6664. Fheight_inc int32
  6665. Fmin_aspect struct {
  6666. Fx int32
  6667. Fy int32
  6668. }
  6669. Fmax_aspect struct {
  6670. Fx int32
  6671. Fy int32
  6672. }
  6673. Fbase_width int32
  6674. Fbase_height int32
  6675. Fwin_gravity int32
  6676. }
  6677. type TXWMHints = struct {
  6678. Fflags int64
  6679. Finput int32
  6680. Finitial_state int32
  6681. Ficon_pixmap TPixmap
  6682. Ficon_window TWindow
  6683. Ficon_x int32
  6684. Ficon_y int32
  6685. Ficon_mask TPixmap
  6686. Fwindow_group TXID
  6687. }
  6688. type TXTextProperty = struct {
  6689. Fvalue uintptr
  6690. Fencoding TAtom
  6691. Fformat int32
  6692. Fnitems uint64
  6693. }
  6694. type TXICCEncodingStyle = int32
  6695. const _XStringStyle = 0
  6696. const _XCompoundTextStyle = 1
  6697. const _XTextStyle = 2
  6698. const _XStdICCTextStyle = 3
  6699. const _XUTF8StringStyle = 4
  6700. type TXIconSize = struct {
  6701. Fmin_width int32
  6702. Fmin_height int32
  6703. Fmax_width int32
  6704. Fmax_height int32
  6705. Fwidth_inc int32
  6706. Fheight_inc int32
  6707. }
  6708. type TXClassHint = struct {
  6709. Fres_name uintptr
  6710. Fres_class uintptr
  6711. }
  6712. type TXComposeStatus = struct {
  6713. Fcompose_ptr TXPointer
  6714. Fchars_matched int32
  6715. }
  6716. type T_XComposeStatus = TXComposeStatus
  6717. type TRegion = uintptr
  6718. type TXVisualInfo = struct {
  6719. Fvisual uintptr
  6720. Fvisualid TVisualID
  6721. Fscreen int32
  6722. Fdepth int32
  6723. Fclass int32
  6724. Fred_mask uint64
  6725. Fgreen_mask uint64
  6726. Fblue_mask uint64
  6727. Fcolormap_size int32
  6728. Fbits_per_rgb int32
  6729. }
  6730. type TXStandardColormap = struct {
  6731. Fcolormap TColormap
  6732. Fred_max uint64
  6733. Fred_mult uint64
  6734. Fgreen_max uint64
  6735. Fgreen_mult uint64
  6736. Fblue_max uint64
  6737. Fblue_mult uint64
  6738. Fbase_pixel uint64
  6739. Fvisualid TVisualID
  6740. Fkillid TXID
  6741. }
  6742. type TXContext = int32
  6743. type Tpointer = uintptr
  6744. type TClientPtr = uintptr
  6745. type TFontPtr = uintptr
  6746. type TFSID = uint64
  6747. type TAccContext = uint64
  6748. type TOSTimePtr = uintptr
  6749. type TBlockHandlerProcPtr = uintptr
  6750. type TGlyph = uint64
  6751. type TGlyphSet = uint64
  6752. type TPicture = uint64
  6753. type TPictFormat = uint64
  6754. type TxDirectFormat = struct {
  6755. Fred TCARD16
  6756. FredMask TCARD16
  6757. Fgreen TCARD16
  6758. FgreenMask TCARD16
  6759. Fblue TCARD16
  6760. FblueMask TCARD16
  6761. Falpha TCARD16
  6762. FalphaMask TCARD16
  6763. }
  6764. type TxPictFormInfo = struct {
  6765. Fid TCARD32
  6766. Ftype1 TCARD8
  6767. Fdepth TCARD8
  6768. Fpad1 TCARD16
  6769. Fdirect TxDirectFormat
  6770. Fcolormap TCARD32
  6771. }
  6772. type TxPictVisual = struct {
  6773. Fvisual TCARD32
  6774. Fformat TCARD32
  6775. }
  6776. type TxPictDepth = struct {
  6777. Fdepth TCARD8
  6778. Fpad1 TCARD8
  6779. FnPictVisuals TCARD16
  6780. Fpad2 TCARD32
  6781. }
  6782. type TxPictScreen = struct {
  6783. FnDepth TCARD32
  6784. Ffallback TCARD32
  6785. }
  6786. type TxIndexValue = struct {
  6787. Fpixel TCARD32
  6788. Fred TCARD16
  6789. Fgreen TCARD16
  6790. Fblue TCARD16
  6791. Falpha TCARD16
  6792. }
  6793. type TxRenderColor = struct {
  6794. Fred TCARD16
  6795. Fgreen TCARD16
  6796. Fblue TCARD16
  6797. Falpha TCARD16
  6798. }
  6799. type TxPointFixed = struct {
  6800. Fx TINT32
  6801. Fy TINT32
  6802. }
  6803. type TxLineFixed = struct {
  6804. Fp1 TxPointFixed
  6805. Fp2 TxPointFixed
  6806. }
  6807. type TxTriangle = struct {
  6808. Fp1 TxPointFixed
  6809. Fp2 TxPointFixed
  6810. Fp3 TxPointFixed
  6811. }
  6812. type TxTrapezoid = struct {
  6813. Ftop TINT32
  6814. Fbottom TINT32
  6815. Fleft TxLineFixed
  6816. Fright TxLineFixed
  6817. }
  6818. type TxGlyphInfo = struct {
  6819. Fwidth TCARD16
  6820. Fheight TCARD16
  6821. Fx TINT16
  6822. Fy TINT16
  6823. FxOff TINT16
  6824. FyOff TINT16
  6825. }
  6826. type TxGlyphElt = struct {
  6827. Flen1 TCARD8
  6828. Fpad1 TCARD8
  6829. Fpad2 TCARD16
  6830. Fdeltax TINT16
  6831. Fdeltay TINT16
  6832. }
  6833. type TxSpanFix = struct {
  6834. Fl TINT32
  6835. Fr TINT32
  6836. Fy TINT32
  6837. }
  6838. type TxTrap = struct {
  6839. Ftop TxSpanFix
  6840. Fbot TxSpanFix
  6841. }
  6842. type TxRenderQueryVersionReq = struct {
  6843. FreqType TCARD8
  6844. FrenderReqType TCARD8
  6845. Flength TCARD16
  6846. FmajorVersion TCARD32
  6847. FminorVersion TCARD32
  6848. }
  6849. type TxRenderQueryVersionReply = struct {
  6850. Ftype1 TBYTE
  6851. Fpad1 TBYTE
  6852. FsequenceNumber TCARD16
  6853. Flength TCARD32
  6854. FmajorVersion TCARD32
  6855. FminorVersion TCARD32
  6856. Fpad2 TCARD32
  6857. Fpad3 TCARD32
  6858. Fpad4 TCARD32
  6859. Fpad5 TCARD32
  6860. }
  6861. type TxRenderQueryPictFormatsReq = struct {
  6862. FreqType TCARD8
  6863. FrenderReqType TCARD8
  6864. Flength TCARD16
  6865. }
  6866. type TxRenderQueryPictFormatsReply = struct {
  6867. Ftype1 TBYTE
  6868. Fpad1 TBYTE
  6869. FsequenceNumber TCARD16
  6870. Flength TCARD32
  6871. FnumFormats TCARD32
  6872. FnumScreens TCARD32
  6873. FnumDepths TCARD32
  6874. FnumVisuals TCARD32
  6875. FnumSubpixel TCARD32
  6876. Fpad5 TCARD32
  6877. }
  6878. type TxRenderQueryPictIndexValuesReq = struct {
  6879. FreqType TCARD8
  6880. FrenderReqType TCARD8
  6881. Flength TCARD16
  6882. Fformat TCARD32
  6883. }
  6884. type TxRenderQueryPictIndexValuesReply = struct {
  6885. Ftype1 TBYTE
  6886. Fpad1 TBYTE
  6887. FsequenceNumber TCARD16
  6888. Flength TCARD32
  6889. FnumIndexValues TCARD32
  6890. Fpad2 TCARD32
  6891. Fpad3 TCARD32
  6892. Fpad4 TCARD32
  6893. Fpad5 TCARD32
  6894. Fpad6 TCARD32
  6895. }
  6896. type TxRenderCreatePictureReq = struct {
  6897. FreqType TCARD8
  6898. FrenderReqType TCARD8
  6899. Flength TCARD16
  6900. Fpid TCARD32
  6901. Fdrawable TCARD32
  6902. Fformat TCARD32
  6903. Fmask TCARD32
  6904. }
  6905. type TxRenderChangePictureReq = struct {
  6906. FreqType TCARD8
  6907. FrenderReqType TCARD8
  6908. Flength TCARD16
  6909. Fpicture TCARD32
  6910. Fmask TCARD32
  6911. }
  6912. type TxRenderSetPictureClipRectanglesReq = struct {
  6913. FreqType TCARD8
  6914. FrenderReqType TCARD8
  6915. Flength TCARD16
  6916. Fpicture TCARD32
  6917. FxOrigin TINT16
  6918. FyOrigin TINT16
  6919. }
  6920. type TxRenderFreePictureReq = struct {
  6921. FreqType TCARD8
  6922. FrenderReqType TCARD8
  6923. Flength TCARD16
  6924. Fpicture TCARD32
  6925. }
  6926. type TxRenderCompositeReq = struct {
  6927. FreqType TCARD8
  6928. FrenderReqType TCARD8
  6929. Flength TCARD16
  6930. Fop TCARD8
  6931. Fpad1 TCARD8
  6932. Fpad2 TCARD16
  6933. Fsrc TCARD32
  6934. Fmask TCARD32
  6935. Fdst TCARD32
  6936. FxSrc TINT16
  6937. FySrc TINT16
  6938. FxMask TINT16
  6939. FyMask TINT16
  6940. FxDst TINT16
  6941. FyDst TINT16
  6942. Fwidth TCARD16
  6943. Fheight TCARD16
  6944. }
  6945. type TxRenderScaleReq = struct {
  6946. FreqType TCARD8
  6947. FrenderReqType TCARD8
  6948. Flength TCARD16
  6949. Fsrc TCARD32
  6950. Fdst TCARD32
  6951. FcolorScale TCARD32
  6952. FalphaScale TCARD32
  6953. FxSrc TINT16
  6954. FySrc TINT16
  6955. FxDst TINT16
  6956. FyDst TINT16
  6957. Fwidth TCARD16
  6958. Fheight TCARD16
  6959. }
  6960. type TxRenderTrapezoidsReq = struct {
  6961. FreqType TCARD8
  6962. FrenderReqType TCARD8
  6963. Flength TCARD16
  6964. Fop TCARD8
  6965. Fpad1 TCARD8
  6966. Fpad2 TCARD16
  6967. Fsrc TCARD32
  6968. Fdst TCARD32
  6969. FmaskFormat TCARD32
  6970. FxSrc TINT16
  6971. FySrc TINT16
  6972. }
  6973. type TxRenderTrianglesReq = struct {
  6974. FreqType TCARD8
  6975. FrenderReqType TCARD8
  6976. Flength TCARD16
  6977. Fop TCARD8
  6978. Fpad1 TCARD8
  6979. Fpad2 TCARD16
  6980. Fsrc TCARD32
  6981. Fdst TCARD32
  6982. FmaskFormat TCARD32
  6983. FxSrc TINT16
  6984. FySrc TINT16
  6985. }
  6986. type TxRenderTriStripReq = struct {
  6987. FreqType TCARD8
  6988. FrenderReqType TCARD8
  6989. Flength TCARD16
  6990. Fop TCARD8
  6991. Fpad1 TCARD8
  6992. Fpad2 TCARD16
  6993. Fsrc TCARD32
  6994. Fdst TCARD32
  6995. FmaskFormat TCARD32
  6996. FxSrc TINT16
  6997. FySrc TINT16
  6998. }
  6999. type TxRenderTriFanReq = struct {
  7000. FreqType TCARD8
  7001. FrenderReqType TCARD8
  7002. Flength TCARD16
  7003. Fop TCARD8
  7004. Fpad1 TCARD8
  7005. Fpad2 TCARD16
  7006. Fsrc TCARD32
  7007. Fdst TCARD32
  7008. FmaskFormat TCARD32
  7009. FxSrc TINT16
  7010. FySrc TINT16
  7011. }
  7012. type TxRenderCreateGlyphSetReq = struct {
  7013. FreqType TCARD8
  7014. FrenderReqType TCARD8
  7015. Flength TCARD16
  7016. Fgsid TCARD32
  7017. Fformat TCARD32
  7018. }
  7019. type TxRenderReferenceGlyphSetReq = struct {
  7020. FreqType TCARD8
  7021. FrenderReqType TCARD8
  7022. Flength TCARD16
  7023. Fgsid TCARD32
  7024. Fexisting TCARD32
  7025. }
  7026. type TxRenderFreeGlyphSetReq = struct {
  7027. FreqType TCARD8
  7028. FrenderReqType TCARD8
  7029. Flength TCARD16
  7030. Fglyphset TCARD32
  7031. }
  7032. type TxRenderAddGlyphsReq = struct {
  7033. FreqType TCARD8
  7034. FrenderReqType TCARD8
  7035. Flength TCARD16
  7036. Fglyphset TCARD32
  7037. Fnglyphs TCARD32
  7038. }
  7039. type TxRenderFreeGlyphsReq = struct {
  7040. FreqType TCARD8
  7041. FrenderReqType TCARD8
  7042. Flength TCARD16
  7043. Fglyphset TCARD32
  7044. }
  7045. type TxRenderCompositeGlyphsReq = struct {
  7046. FreqType TCARD8
  7047. FrenderReqType TCARD8
  7048. Flength TCARD16
  7049. Fop TCARD8
  7050. Fpad1 TCARD8
  7051. Fpad2 TCARD16
  7052. Fsrc TCARD32
  7053. Fdst TCARD32
  7054. FmaskFormat TCARD32
  7055. Fglyphset TCARD32
  7056. FxSrc TINT16
  7057. FySrc TINT16
  7058. }
  7059. type TxRenderCompositeGlyphs8Req = struct {
  7060. FreqType TCARD8
  7061. FrenderReqType TCARD8
  7062. Flength TCARD16
  7063. Fop TCARD8
  7064. Fpad1 TCARD8
  7065. Fpad2 TCARD16
  7066. Fsrc TCARD32
  7067. Fdst TCARD32
  7068. FmaskFormat TCARD32
  7069. Fglyphset TCARD32
  7070. FxSrc TINT16
  7071. FySrc TINT16
  7072. }
  7073. type TxRenderCompositeGlyphs16Req = struct {
  7074. FreqType TCARD8
  7075. FrenderReqType TCARD8
  7076. Flength TCARD16
  7077. Fop TCARD8
  7078. Fpad1 TCARD8
  7079. Fpad2 TCARD16
  7080. Fsrc TCARD32
  7081. Fdst TCARD32
  7082. FmaskFormat TCARD32
  7083. Fglyphset TCARD32
  7084. FxSrc TINT16
  7085. FySrc TINT16
  7086. }
  7087. type TxRenderCompositeGlyphs32Req = struct {
  7088. FreqType TCARD8
  7089. FrenderReqType TCARD8
  7090. Flength TCARD16
  7091. Fop TCARD8
  7092. Fpad1 TCARD8
  7093. Fpad2 TCARD16
  7094. Fsrc TCARD32
  7095. Fdst TCARD32
  7096. FmaskFormat TCARD32
  7097. Fglyphset TCARD32
  7098. FxSrc TINT16
  7099. FySrc TINT16
  7100. }
  7101. type TxRenderFillRectanglesReq = struct {
  7102. FreqType TCARD8
  7103. FrenderReqType TCARD8
  7104. Flength TCARD16
  7105. Fop TCARD8
  7106. Fpad1 TCARD8
  7107. Fpad2 TCARD16
  7108. Fdst TCARD32
  7109. Fcolor TxRenderColor
  7110. }
  7111. type TxRenderCreateCursorReq = struct {
  7112. FreqType TCARD8
  7113. FrenderReqType TCARD8
  7114. Flength TCARD16
  7115. Fcid TCARD32
  7116. Fsrc TCARD32
  7117. Fx TCARD16
  7118. Fy TCARD16
  7119. }
  7120. type TxRenderTransform = struct {
  7121. Fmatrix11 TINT32
  7122. Fmatrix12 TINT32
  7123. Fmatrix13 TINT32
  7124. Fmatrix21 TINT32
  7125. Fmatrix22 TINT32
  7126. Fmatrix23 TINT32
  7127. Fmatrix31 TINT32
  7128. Fmatrix32 TINT32
  7129. Fmatrix33 TINT32
  7130. }
  7131. type TxRenderSetPictureTransformReq = struct {
  7132. FreqType TCARD8
  7133. FrenderReqType TCARD8
  7134. Flength TCARD16
  7135. Fpicture TCARD32
  7136. Ftransform TxRenderTransform
  7137. }
  7138. type TxRenderQueryFiltersReq = struct {
  7139. FreqType TCARD8
  7140. FrenderReqType TCARD8
  7141. Flength TCARD16
  7142. Fdrawable TCARD32
  7143. }
  7144. type TxRenderQueryFiltersReply = struct {
  7145. Ftype1 TBYTE
  7146. Fpad1 TBYTE
  7147. FsequenceNumber TCARD16
  7148. Flength TCARD32
  7149. FnumAliases TCARD32
  7150. FnumFilters TCARD32
  7151. Fpad2 TCARD32
  7152. Fpad3 TCARD32
  7153. Fpad4 TCARD32
  7154. Fpad5 TCARD32
  7155. }
  7156. type TxRenderSetPictureFilterReq = struct {
  7157. FreqType TCARD8
  7158. FrenderReqType TCARD8
  7159. Flength TCARD16
  7160. Fpicture TCARD32
  7161. Fnbytes TCARD16
  7162. Fpad TCARD16
  7163. }
  7164. type TxAnimCursorElt = struct {
  7165. Fcursor TCARD32
  7166. Fdelay TCARD32
  7167. }
  7168. type TxRenderCreateAnimCursorReq = struct {
  7169. FreqType TCARD8
  7170. FrenderReqType TCARD8
  7171. Flength TCARD16
  7172. Fcid TCARD32
  7173. }
  7174. type TxRenderAddTrapsReq = struct {
  7175. FreqType TCARD8
  7176. FrenderReqType TCARD8
  7177. Flength TCARD16
  7178. Fpicture TCARD32
  7179. FxOff TINT16
  7180. FyOff TINT16
  7181. }
  7182. type TxRenderCreateSolidFillReq = struct {
  7183. FreqType TCARD8
  7184. FrenderReqType TCARD8
  7185. Flength TCARD16
  7186. Fpid TCARD32
  7187. Fcolor TxRenderColor
  7188. }
  7189. type TxRenderCreateLinearGradientReq = struct {
  7190. FreqType TCARD8
  7191. FrenderReqType TCARD8
  7192. Flength TCARD16
  7193. Fpid TCARD32
  7194. Fp1 TxPointFixed
  7195. Fp2 TxPointFixed
  7196. FnStops TCARD32
  7197. }
  7198. type TxRenderCreateRadialGradientReq = struct {
  7199. FreqType TCARD8
  7200. FrenderReqType TCARD8
  7201. Flength TCARD16
  7202. Fpid TCARD32
  7203. Finner TxPointFixed
  7204. Fouter TxPointFixed
  7205. Finner_radius TINT32
  7206. Fouter_radius TINT32
  7207. FnStops TCARD32
  7208. }
  7209. type TxRenderCreateConicalGradientReq = struct {
  7210. FreqType TCARD8
  7211. FrenderReqType TCARD8
  7212. Flength TCARD16
  7213. Fpid TCARD32
  7214. Fcenter TxPointFixed
  7215. Fangle TINT32
  7216. FnStops TCARD32
  7217. }
  7218. type TXRenderDirectFormat = struct {
  7219. Fred int16
  7220. FredMask int16
  7221. Fgreen int16
  7222. FgreenMask int16
  7223. Fblue int16
  7224. FblueMask int16
  7225. Falpha int16
  7226. FalphaMask int16
  7227. }
  7228. type TXRenderPictFormat = struct {
  7229. Fid TPictFormat
  7230. Ftype1 int32
  7231. Fdepth int32
  7232. Fdirect TXRenderDirectFormat
  7233. Fcolormap TColormap
  7234. }
  7235. type TXRenderPictureAttributes = struct {
  7236. Frepeat int32
  7237. Falpha_map TPicture
  7238. Falpha_x_origin int32
  7239. Falpha_y_origin int32
  7240. Fclip_x_origin int32
  7241. Fclip_y_origin int32
  7242. Fclip_mask TPixmap
  7243. Fgraphics_exposures int32
  7244. Fsubwindow_mode int32
  7245. Fpoly_edge int32
  7246. Fpoly_mode int32
  7247. Fdither TAtom
  7248. Fcomponent_alpha int32
  7249. }
  7250. type T_XRenderPictureAttributes = TXRenderPictureAttributes
  7251. type TXRenderColor = struct {
  7252. Fred uint16
  7253. Fgreen uint16
  7254. Fblue uint16
  7255. Falpha uint16
  7256. }
  7257. type TXGlyphInfo = struct {
  7258. Fwidth uint16
  7259. Fheight uint16
  7260. Fx int16
  7261. Fy int16
  7262. FxOff int16
  7263. FyOff int16
  7264. }
  7265. type T_XGlyphInfo = TXGlyphInfo
  7266. type TXGlyphElt8 = struct {
  7267. Fglyphset TGlyphSet
  7268. Fchars uintptr
  7269. Fnchars int32
  7270. FxOff int32
  7271. FyOff int32
  7272. }
  7273. type T_XGlyphElt8 = TXGlyphElt8
  7274. type TXGlyphElt16 = struct {
  7275. Fglyphset TGlyphSet
  7276. Fchars uintptr
  7277. Fnchars int32
  7278. FxOff int32
  7279. FyOff int32
  7280. }
  7281. type T_XGlyphElt16 = TXGlyphElt16
  7282. type TXGlyphElt32 = struct {
  7283. Fglyphset TGlyphSet
  7284. Fchars uintptr
  7285. Fnchars int32
  7286. FxOff int32
  7287. FyOff int32
  7288. }
  7289. type T_XGlyphElt32 = TXGlyphElt32
  7290. type TXDouble = float64
  7291. type TXPointDouble = struct {
  7292. Fx TXDouble
  7293. Fy TXDouble
  7294. }
  7295. type T_XPointDouble = TXPointDouble
  7296. type TXFixed = int32
  7297. type TXPointFixed = struct {
  7298. Fx TXFixed
  7299. Fy TXFixed
  7300. }
  7301. type T_XPointFixed = TXPointFixed
  7302. type TXLineFixed = struct {
  7303. Fp1 TXPointFixed
  7304. Fp2 TXPointFixed
  7305. }
  7306. type T_XLineFixed = TXLineFixed
  7307. type TXTriangle = struct {
  7308. Fp1 TXPointFixed
  7309. Fp2 TXPointFixed
  7310. Fp3 TXPointFixed
  7311. }
  7312. type T_XTriangle = TXTriangle
  7313. type TXCircle = struct {
  7314. Fx TXFixed
  7315. Fy TXFixed
  7316. Fradius TXFixed
  7317. }
  7318. type T_XCircle = TXCircle
  7319. type TXTrapezoid = struct {
  7320. Ftop TXFixed
  7321. Fbottom TXFixed
  7322. Fleft TXLineFixed
  7323. Fright TXLineFixed
  7324. }
  7325. type T_XTrapezoid = TXTrapezoid
  7326. type TXTransform = struct {
  7327. Fmatrix [3][3]TXFixed
  7328. }
  7329. type T_XTransform = TXTransform
  7330. type TXFilters = struct {
  7331. Fnfilter int32
  7332. Ffilter uintptr
  7333. Fnalias int32
  7334. Falias uintptr
  7335. }
  7336. type T_XFilters = TXFilters
  7337. type TXIndexValue = struct {
  7338. Fpixel uint64
  7339. Fred uint16
  7340. Fgreen uint16
  7341. Fblue uint16
  7342. Falpha uint16
  7343. }
  7344. type T_XIndexValue = TXIndexValue
  7345. type TXAnimCursor = struct {
  7346. Fcursor TCursor
  7347. Fdelay uint64
  7348. }
  7349. type T_XAnimCursor = TXAnimCursor
  7350. type TXSpanFix = struct {
  7351. Fleft TXFixed
  7352. Fright TXFixed
  7353. Fy TXFixed
  7354. }
  7355. type T_XSpanFix = TXSpanFix
  7356. type TXTrap = struct {
  7357. Ftop TXSpanFix
  7358. Fbottom TXSpanFix
  7359. }
  7360. type T_XTrap = TXTrap
  7361. type TXLinearGradient = struct {
  7362. Fp1 TXPointFixed
  7363. Fp2 TXPointFixed
  7364. }
  7365. type T_XLinearGradient = TXLinearGradient
  7366. type TXRadialGradient = struct {
  7367. Finner TXCircle
  7368. Fouter TXCircle
  7369. }
  7370. type T_XRadialGradient = TXRadialGradient
  7371. type TXConicalGradient = struct {
  7372. Fcenter TXPointFixed
  7373. Fangle TXFixed
  7374. }
  7375. type T_XConicalGradient = TXConicalGradient
  7376. type TXRenderVisual = struct {
  7377. Fvisual uintptr
  7378. Fformat uintptr
  7379. }
  7380. type TXRenderDepth = struct {
  7381. Fdepth int32
  7382. Fnvisuals int32
  7383. Fvisuals uintptr
  7384. }
  7385. type TXRenderScreen = struct {
  7386. Fdepths uintptr
  7387. Fndepths int32
  7388. Ffallback uintptr
  7389. Fsubpixel int32
  7390. }
  7391. type TXRenderInfo = struct {
  7392. Fmajor_version int32
  7393. Fminor_version int32
  7394. Fformat uintptr
  7395. Fnformat int32
  7396. Fscreen uintptr
  7397. Fnscreen int32
  7398. Fdepth uintptr
  7399. Fndepth int32
  7400. Fvisual uintptr
  7401. Fnvisual int32
  7402. Fsubpixel uintptr
  7403. Fnsubpixel int32
  7404. Ffilter uintptr
  7405. Fnfilter int32
  7406. Ffilter_alias uintptr
  7407. Fnfilter_alias int32
  7408. }
  7409. type T_XRenderInfo = TXRenderInfo
  7410. type TXRenderExtDisplayInfo = struct {
  7411. Fnext uintptr
  7412. Fdisplay uintptr
  7413. Fcodes uintptr
  7414. Finfo uintptr
  7415. }
  7416. type T_XRenderExtDisplayInfo = TXRenderExtDisplayInfo
  7417. type TXRenderExtInfo = struct {
  7418. Fhead uintptr
  7419. Fcur uintptr
  7420. Fndisplays int32
  7421. }
  7422. type T_XRenderExtInfo = TXRenderExtInfo
  7423. /*
  7424. * Xlib uses long for 32-bit values. Xrender uses int. This
  7425. * matters on alpha. Note that this macro assumes that int is 32 bits
  7426. * except on WORD64 machines where it is 64 bits.
  7427. */
  7428. func XXRenderAddTraps(tls *libc.TLS, dpy uintptr, picture TPicture, xOff int32, yOff int32, traps uintptr, ntrap int32) {
  7429. bp := tls.Alloc(16)
  7430. defer tls.Free(16)
  7431. var _BRlen TCARD32
  7432. var info, req, p2, p3 uintptr
  7433. var len1 int64
  7434. var max_req, v1 uint64
  7435. var n int32
  7436. var _ /* _BRdat at bp+0 */ TCARD64
  7437. _, _, _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1, p2, p3
  7438. info = XXRenderFindDisplay(tls, dpy)
  7439. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7440. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  7441. } else {
  7442. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  7443. }
  7444. max_req = v1
  7445. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7446. return
  7447. }
  7448. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7449. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7450. }
  7451. for ntrap != 0 {
  7452. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddTraps), uint64(m_sz_xRenderAddTrapsReq))
  7453. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7454. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddTraps)
  7455. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  7456. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FxOff = int16(xOff)
  7457. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FyOff = int16(yOff)
  7458. n = ntrap
  7459. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7460. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) {
  7461. n = libc.Int32FromUint64((max_req - uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2)))
  7462. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7463. }
  7464. if libc.Int64FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7465. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7466. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7467. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7468. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7469. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7470. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7471. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7472. } else {
  7473. len1 = len1
  7474. p2 = req + 2
  7475. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7476. }
  7477. } else {
  7478. p3 = req + 2
  7479. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  7480. }
  7481. len1 <<= int64(2)
  7482. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  7483. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt32(int32(len1)))
  7484. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  7485. } else {
  7486. libx11.X_XSend(tls, dpy, traps, len1)
  7487. }
  7488. ntrap -= n
  7489. traps += uintptr(n) * 24
  7490. }
  7491. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7492. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7493. }
  7494. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7495. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7496. }
  7497. }
  7498. type Tfuncs = struct {
  7499. Fcreate_image uintptr
  7500. Fdestroy_image uintptr
  7501. Fget_pixel uintptr
  7502. Fput_pixel uintptr
  7503. Fsub_image uintptr
  7504. Fadd_pixel uintptr
  7505. }
  7506. /*
  7507. * Xlib uses long for 32-bit values. Xrender uses int. This
  7508. * matters on alpha. Note that this macro assumes that int is 32 bits
  7509. * except on WORD64 machines where it is 64 bits.
  7510. */
  7511. func XXRenderParseColor(tls *libc.TLS, dpy uintptr, spec uintptr, def uintptr) (r int32) {
  7512. bp := tls.Alloc(32)
  7513. defer tls.Free(32)
  7514. var c int8
  7515. var colormap TColormap
  7516. var i, n, v2 int32
  7517. var pShort, v3, p4, p5, p6 uintptr
  7518. var _ /* coreColor at bp+8 */ TXColor
  7519. var _ /* elements at bp+0 */ [4]uint16
  7520. _, _, _, _, _, _, _, _, _, _ = c, colormap, i, n, pShort, v2, v3, p4, p5, p6
  7521. if !(libc.Xstrncmp(tls, spec, __ccgo_ts, uint64(5)) != 0) {
  7522. spec += uintptr(5)
  7523. /*
  7524. * Attempt to parse the value portion.
  7525. */
  7526. pShort = bp
  7527. i = 0
  7528. for {
  7529. if !(i < int32(4)) {
  7530. break
  7531. }
  7532. n = 0
  7533. *(*uint16)(unsafe.Pointer(pShort)) = uint16(0)
  7534. for int32(*(*int8)(unsafe.Pointer(spec))) != int32('/') && int32(*(*int8)(unsafe.Pointer(spec))) != int32('\000') {
  7535. n++
  7536. v2 = n
  7537. if v2 > int32(4) {
  7538. return 0
  7539. }
  7540. v3 = spec
  7541. spec++
  7542. c = *(*int8)(unsafe.Pointer(v3))
  7543. p4 = pShort
  7544. *(*uint16)(unsafe.Pointer(p4)) = uint16(int32(*(*uint16)(unsafe.Pointer(p4))) << libc.Int32FromInt32(4))
  7545. if int32(c) >= int32('0') && int32(c) <= int32('9') {
  7546. p5 = pShort
  7547. *(*uint16)(unsafe.Pointer(p5)) = uint16(int32(*(*uint16)(unsafe.Pointer(p5))) | (int32(c) - libc.Int32FromUint8('0')))
  7548. } else {
  7549. if int32(c) >= int32('a') && int32(c) <= int32('f') {
  7550. p6 = pShort
  7551. *(*uint16)(unsafe.Pointer(p6)) = uint16(int32(*(*uint16)(unsafe.Pointer(p6))) | (int32(c) - (libc.Int32FromUint8('a') - libc.Int32FromInt32(10))))
  7552. } else {
  7553. return 0
  7554. }
  7555. }
  7556. }
  7557. if n == 0 {
  7558. return 0
  7559. }
  7560. if n < int32(4) {
  7561. *(*uint16)(unsafe.Pointer(pShort)) = uint16(uint64(*(*uint16)(unsafe.Pointer(pShort))) * uint64(0xFFFF) / libc.Uint64FromInt32(libc.Int32FromInt32(1)<<(n*libc.Int32FromInt32(4))-libc.Int32FromInt32(1)))
  7562. }
  7563. goto _1
  7564. _1:
  7565. ;
  7566. i++
  7567. pShort += 2
  7568. spec++
  7569. }
  7570. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*[4]uint16)(unsafe.Pointer(bp)))[0]
  7571. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(1)]
  7572. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(2)]
  7573. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(3)]
  7574. } else {
  7575. colormap = (*TScreen)(unsafe.Pointer((*struct {
  7576. Fext_data uintptr
  7577. Fprivate1 uintptr
  7578. Ffd int32
  7579. Fprivate2 int32
  7580. Fproto_major_version int32
  7581. Fproto_minor_version int32
  7582. Fvendor uintptr
  7583. Fprivate3 TXID
  7584. Fprivate4 TXID
  7585. Fprivate5 TXID
  7586. Fprivate6 int32
  7587. Fresource_alloc uintptr
  7588. Fbyte_order int32
  7589. Fbitmap_unit int32
  7590. Fbitmap_pad int32
  7591. Fbitmap_bit_order int32
  7592. Fnformats int32
  7593. Fpixmap_format uintptr
  7594. Fprivate8 int32
  7595. Frelease int32
  7596. Fprivate9 uintptr
  7597. Fprivate10 uintptr
  7598. Fqlen int32
  7599. Flast_request_read uint64
  7600. Frequest uint64
  7601. Fprivate11 TXPointer
  7602. Fprivate12 TXPointer
  7603. Fprivate13 TXPointer
  7604. Fprivate14 TXPointer
  7605. Fmax_request_size uint32
  7606. Fdb uintptr
  7607. Fprivate15 uintptr
  7608. Fdisplay_name uintptr
  7609. Fdefault_screen int32
  7610. Fnscreens int32
  7611. Fscreens uintptr
  7612. Fmotion_buffer uint64
  7613. Fprivate16 uint64
  7614. Fmin_keycode int32
  7615. Fmax_keycode int32
  7616. Fprivate17 TXPointer
  7617. Fprivate18 TXPointer
  7618. Fprivate19 int32
  7619. Fxdefaults uintptr
  7620. })(unsafe.Pointer(dpy)).Fscreens + uintptr((*struct {
  7621. Fext_data uintptr
  7622. Fprivate1 uintptr
  7623. Ffd int32
  7624. Fprivate2 int32
  7625. Fproto_major_version int32
  7626. Fproto_minor_version int32
  7627. Fvendor uintptr
  7628. Fprivate3 TXID
  7629. Fprivate4 TXID
  7630. Fprivate5 TXID
  7631. Fprivate6 int32
  7632. Fresource_alloc uintptr
  7633. Fbyte_order int32
  7634. Fbitmap_unit int32
  7635. Fbitmap_pad int32
  7636. Fbitmap_bit_order int32
  7637. Fnformats int32
  7638. Fpixmap_format uintptr
  7639. Fprivate8 int32
  7640. Frelease int32
  7641. Fprivate9 uintptr
  7642. Fprivate10 uintptr
  7643. Fqlen int32
  7644. Flast_request_read uint64
  7645. Frequest uint64
  7646. Fprivate11 TXPointer
  7647. Fprivate12 TXPointer
  7648. Fprivate13 TXPointer
  7649. Fprivate14 TXPointer
  7650. Fmax_request_size uint32
  7651. Fdb uintptr
  7652. Fprivate15 uintptr
  7653. Fdisplay_name uintptr
  7654. Fdefault_screen int32
  7655. Fnscreens int32
  7656. Fscreens uintptr
  7657. Fmotion_buffer uint64
  7658. Fprivate16 uint64
  7659. Fmin_keycode int32
  7660. Fmax_keycode int32
  7661. Fprivate17 TXPointer
  7662. Fprivate18 TXPointer
  7663. Fprivate19 int32
  7664. Fxdefaults uintptr
  7665. })(unsafe.Pointer(dpy)).Fdefault_screen)*128)).Fcmap
  7666. if !(libx11.XXParseColor(tls, dpy, colormap, spec, bp+8) != 0) {
  7667. return 0
  7668. }
  7669. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fred
  7670. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fgreen
  7671. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fblue
  7672. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = uint16(0xffff)
  7673. }
  7674. (*TXRenderColor)(unsafe.Pointer(def)).Fred = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fred)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7675. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fgreen)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7676. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fblue)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7677. return int32(1)
  7678. }
  7679. /*
  7680. * Xlib uses long for 32-bit values. Xrender uses int. This
  7681. * matters on alpha. Note that this macro assumes that int is 32 bits
  7682. * except on WORD64 machines where it is 64 bits.
  7683. */
  7684. 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) {
  7685. var info, req uintptr
  7686. _, _ = info, req
  7687. info = XXRenderFindDisplay(tls, dpy)
  7688. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7689. return
  7690. }
  7691. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7692. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7693. }
  7694. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderComposite), uint64(m_sz_xRenderCompositeReq))
  7695. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7696. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderComposite)
  7697. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7698. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  7699. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fmask = uint32(mask)
  7700. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7701. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxSrc = int16(src_x)
  7702. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FySrc = int16(src_y)
  7703. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxMask = int16(mask_x)
  7704. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyMask = int16(mask_y)
  7705. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxDst = int16(dst_x)
  7706. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyDst = int16(dst_y)
  7707. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fwidth = uint16(width)
  7708. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fheight = uint16(height)
  7709. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7710. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7711. }
  7712. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7713. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7714. }
  7715. }
  7716. /*
  7717. * Xlib uses long for 32-bit values. Xrender uses int. This
  7718. * matters on alpha. Note that this macro assumes that int is 32 bits
  7719. * except on WORD64 machines where it is 64 bits.
  7720. */
  7721. func XXRenderCreateCursor(tls *libc.TLS, dpy uintptr, source TPicture, x uint32, y uint32) (r TCursor) {
  7722. var cid, v1 TCursor
  7723. var info, req uintptr
  7724. _, _, _, _ = cid, info, req, v1
  7725. info = XXRenderFindDisplay(tls, dpy)
  7726. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7727. return uint64(0)
  7728. }
  7729. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7730. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7731. }
  7732. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateCursor), uint64(m_sz_xRenderCreateCursorReq))
  7733. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7734. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateCursor)
  7735. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  7736. Fext_data uintptr
  7737. Fprivate1 uintptr
  7738. Ffd int32
  7739. Fprivate2 int32
  7740. Fproto_major_version int32
  7741. Fproto_minor_version int32
  7742. Fvendor uintptr
  7743. Fprivate3 TXID
  7744. Fprivate4 TXID
  7745. Fprivate5 TXID
  7746. Fprivate6 int32
  7747. Fresource_alloc uintptr
  7748. Fbyte_order int32
  7749. Fbitmap_unit int32
  7750. Fbitmap_pad int32
  7751. Fbitmap_bit_order int32
  7752. Fnformats int32
  7753. Fpixmap_format uintptr
  7754. Fprivate8 int32
  7755. Frelease int32
  7756. Fprivate9 uintptr
  7757. Fprivate10 uintptr
  7758. Fqlen int32
  7759. Flast_request_read uint64
  7760. Frequest uint64
  7761. Fprivate11 TXPointer
  7762. Fprivate12 TXPointer
  7763. Fprivate13 TXPointer
  7764. Fprivate14 TXPointer
  7765. Fmax_request_size uint32
  7766. Fdb uintptr
  7767. Fprivate15 uintptr
  7768. Fdisplay_name uintptr
  7769. Fdefault_screen int32
  7770. Fnscreens int32
  7771. Fscreens uintptr
  7772. Fmotion_buffer uint64
  7773. Fprivate16 uint64
  7774. Fmin_keycode int32
  7775. Fmax_keycode int32
  7776. Fprivate17 TXPointer
  7777. Fprivate18 TXPointer
  7778. Fprivate19 int32
  7779. Fxdefaults uintptr
  7780. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  7781. cid = v1
  7782. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  7783. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fsrc = uint32(source)
  7784. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fx = uint16(x)
  7785. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fy = uint16(y)
  7786. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7787. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7788. }
  7789. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7790. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7791. }
  7792. return cid
  7793. }
  7794. func XXRenderCreateAnimCursor(tls *libc.TLS, dpy uintptr, ncursor int32, cursors uintptr) (r TCursor) {
  7795. bp := tls.Alloc(16)
  7796. defer tls.Free(16)
  7797. var _BRlen TCARD32
  7798. var cid, v1 TCursor
  7799. var info, req, p2, p3 uintptr
  7800. var len1 int64
  7801. var _ /* _BRdat at bp+0 */ TCARD64
  7802. _, _, _, _, _, _, _, _ = _BRlen, cid, info, len1, req, v1, p2, p3
  7803. info = XXRenderFindDisplay(tls, dpy)
  7804. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7805. return uint64(0)
  7806. }
  7807. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7808. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7809. }
  7810. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateAnimCursor), uint64(m_sz_xRenderCreateAnimCursorReq))
  7811. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7812. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateAnimCursor)
  7813. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  7814. Fext_data uintptr
  7815. Fprivate1 uintptr
  7816. Ffd int32
  7817. Fprivate2 int32
  7818. Fproto_major_version int32
  7819. Fproto_minor_version int32
  7820. Fvendor uintptr
  7821. Fprivate3 TXID
  7822. Fprivate4 TXID
  7823. Fprivate5 TXID
  7824. Fprivate6 int32
  7825. Fresource_alloc uintptr
  7826. Fbyte_order int32
  7827. Fbitmap_unit int32
  7828. Fbitmap_pad int32
  7829. Fbitmap_bit_order int32
  7830. Fnformats int32
  7831. Fpixmap_format uintptr
  7832. Fprivate8 int32
  7833. Frelease int32
  7834. Fprivate9 uintptr
  7835. Fprivate10 uintptr
  7836. Fqlen int32
  7837. Flast_request_read uint64
  7838. Frequest uint64
  7839. Fprivate11 TXPointer
  7840. Fprivate12 TXPointer
  7841. Fprivate13 TXPointer
  7842. Fprivate14 TXPointer
  7843. Fmax_request_size uint32
  7844. Fdb uintptr
  7845. Fprivate15 uintptr
  7846. Fdisplay_name uintptr
  7847. Fdefault_screen int32
  7848. Fnscreens int32
  7849. Fscreens uintptr
  7850. Fmotion_buffer uint64
  7851. Fprivate16 uint64
  7852. Fmin_keycode int32
  7853. Fmax_keycode int32
  7854. Fprivate17 TXPointer
  7855. Fprivate18 TXPointer
  7856. Fprivate19 int32
  7857. Fxdefaults uintptr
  7858. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  7859. cid = v1
  7860. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  7861. len1 = int64(ncursor) * int64(m_sz_xAnimCursorElt) >> int32(2)
  7862. if libc.Int64FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7863. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7864. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7865. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7866. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7867. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7868. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7869. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7870. } else {
  7871. len1 = len1
  7872. p2 = req + 2
  7873. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7874. }
  7875. } else {
  7876. p3 = req + 2
  7877. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  7878. }
  7879. len1 <<= int64(2)
  7880. libx11.X_XData32(tls, dpy, cursors, libc.Uint32FromInt64(len1))
  7881. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7882. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7883. }
  7884. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7885. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7886. }
  7887. return cid
  7888. }
  7889. /*
  7890. * Xlib uses long for 32-bit values. Xrender uses int. This
  7891. * matters on alpha. Note that this macro assumes that int is 32 bits
  7892. * except on WORD64 machines where it is 64 bits.
  7893. */
  7894. /* precompute the maximum size of batching request allowed */
  7895. func XXRenderFillRectangle(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, x int32, y int32, width uint32, height uint32) {
  7896. var info, rect, req, p1 uintptr
  7897. _, _, _, _ = info, rect, req, p1
  7898. info = XXRenderFindDisplay(tls, dpy)
  7899. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7900. return
  7901. }
  7902. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7903. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7904. }
  7905. req = (*TDisplay)(unsafe.Pointer(dpy)).Flast_req
  7906. /* if same as previous request, with same drawable, batch requests */
  7907. 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)) {
  7908. p1 = req + 2
  7909. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + libc.Int32FromInt32(m_sz_xRectangle)>>libc.Int32FromInt32(2))
  7910. rect = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  7911. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(m_sz_xRectangle)
  7912. } else {
  7913. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderFillRectanglesReq)+libc.Int32FromInt32(m_sz_xRectangle)))
  7914. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7915. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  7916. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7917. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7918. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  7919. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  7920. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  7921. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  7922. rect = req + libc.UintptrFromInt32(1)*20
  7923. }
  7924. (*TxRectangle)(unsafe.Pointer(rect)).Fx = int16(x)
  7925. (*TxRectangle)(unsafe.Pointer(rect)).Fy = int16(y)
  7926. (*TxRectangle)(unsafe.Pointer(rect)).Fwidth = uint16(width)
  7927. (*TxRectangle)(unsafe.Pointer(rect)).Fheight = uint16(height)
  7928. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7929. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7930. }
  7931. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7932. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7933. }
  7934. }
  7935. /*
  7936. * Xlib uses long for 32-bit values. Xrender uses int. This
  7937. * matters on alpha. Note that this macro assumes that int is 32 bits
  7938. * except on WORD64 machines where it is 64 bits.
  7939. */
  7940. /* precompute the maximum size of batching request allowed */
  7941. func XXRenderFillRectangles(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, rectangles uintptr, n_rects int32) {
  7942. bp := tls.Alloc(16)
  7943. defer tls.Free(16)
  7944. var _BRlen TCARD32
  7945. var info, req, p1, p2 uintptr
  7946. var len1 int64
  7947. var n int32
  7948. var _ /* _BRdat at bp+0 */ TCARD64
  7949. _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, p1, p2
  7950. info = XXRenderFindDisplay(tls, dpy)
  7951. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7952. return
  7953. }
  7954. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7955. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7956. }
  7957. for n_rects != 0 {
  7958. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), uint64(m_sz_xRenderFillRectanglesReq))
  7959. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7960. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  7961. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7962. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7963. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  7964. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  7965. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  7966. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  7967. n = n_rects
  7968. len1 = int64(n) << int32(1)
  7969. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) {
  7970. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) >> int32(1))
  7971. len1 = int64(n) << int32(1)
  7972. }
  7973. if libc.Int64FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7974. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7975. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  7976. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7977. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7978. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7979. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  7980. libx11.X_XData32(tls, dpy, bp, uint32(4))
  7981. } else {
  7982. len1 = len1
  7983. p1 = req + 2
  7984. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  7985. }
  7986. } else {
  7987. p2 = req + 2
  7988. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  7989. }
  7990. len1 <<= int64(2) /* watch out for macros... */
  7991. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  7992. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rectangles, libc.Uint64FromInt32(int32(len1)))
  7993. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  7994. } else {
  7995. libx11.X_XSend(tls, dpy, rectangles, len1)
  7996. }
  7997. n_rects -= n
  7998. rectangles += uintptr(n) * 8
  7999. }
  8000. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8001. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8002. }
  8003. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8004. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8005. }
  8006. }
  8007. const m_ARG_MAX = 131072
  8008. const m_BC_BASE_MAX = 99
  8009. const m_BC_DIM_MAX = 2048
  8010. const m_BC_SCALE_MAX = 99
  8011. const m_BC_STRING_MAX = 1000
  8012. const m_CHARCLASS_NAME_MAX = 14
  8013. const m_CHAR_BIT = 8
  8014. const m_CHAR_MAX = 255
  8015. const m_CHAR_MIN = 0
  8016. const m_COLL_WEIGHTS_MAX = 2
  8017. const m_DELAYTIMER_MAX = 0x7fffffff
  8018. const m_EXPR_NEST_MAX = 32
  8019. const m_FILESIZEBITS = 64
  8020. const m_HOST_NAME_MAX = 255
  8021. const m_INT_MAX = 2147483647
  8022. const m_IOV_MAX = 1024
  8023. const m_LINE_MAX = 4096
  8024. const m_LLONG_MAX = 0x7fffffffffffffff
  8025. const m_LOGIN_NAME_MAX = 256
  8026. const m_LONG_BIT = 64
  8027. const m_LONG_MAX = "__LONG_MAX"
  8028. const m_MB_LEN_MAX = 4
  8029. const m_MQ_PRIO_MAX = 32768
  8030. const m_NAME_MAX = 255
  8031. const m_NGROUPS_MAX = 32
  8032. const m_NL_ARGMAX = 9
  8033. const m_NL_LANGMAX = 32
  8034. const m_NL_MSGMAX = 32767
  8035. const m_NL_NMAX = 16
  8036. const m_NL_SETMAX = 255
  8037. const m_NL_TEXTMAX = 2048
  8038. const m_NZERO = 20
  8039. const m_PATH_MAX = 4096
  8040. const m_PIPE_BUF = 4096
  8041. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  8042. const m_PTHREAD_KEYS_MAX = 128
  8043. const m_PTHREAD_STACK_MIN = 2048
  8044. const m_RE_DUP_MAX = 255
  8045. const m_SCHAR_MAX = 127
  8046. const m_SEM_NSEMS_MAX = 256
  8047. const m_SEM_VALUE_MAX = 0x7fffffff
  8048. const m_SHRT_MAX = 0x7fff
  8049. const m_SSIZE_MAX = "LONG_MAX"
  8050. const m_SYMLOOP_MAX = 40
  8051. const m_TTY_NAME_MAX = 32
  8052. const m_TZNAME_MAX = 6
  8053. const m_UCHAR_MAX = 255
  8054. const m_UINT_MAX = 0xffffffff
  8055. const m_USHRT_MAX = 0xffff
  8056. const m_WORD_BIT = 32
  8057. const m__POSIX2_BC_BASE_MAX = 99
  8058. const m__POSIX2_BC_DIM_MAX = 2048
  8059. const m__POSIX2_BC_SCALE_MAX = 99
  8060. const m__POSIX2_BC_STRING_MAX = 1000
  8061. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  8062. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  8063. const m__POSIX2_EXPR_NEST_MAX = 32
  8064. const m__POSIX2_LINE_MAX = 2048
  8065. const m__POSIX2_RE_DUP_MAX = 255
  8066. const m__POSIX_AIO_LISTIO_MAX = 2
  8067. const m__POSIX_AIO_MAX = 1
  8068. const m__POSIX_ARG_MAX = 4096
  8069. const m__POSIX_CHILD_MAX = 25
  8070. const m__POSIX_CLOCKRES_MIN = 20000000
  8071. const m__POSIX_DELAYTIMER_MAX = 32
  8072. const m__POSIX_HOST_NAME_MAX = 255
  8073. const m__POSIX_LINK_MAX = 8
  8074. const m__POSIX_LOGIN_NAME_MAX = 9
  8075. const m__POSIX_MAX_CANON = 255
  8076. const m__POSIX_MAX_INPUT = 255
  8077. const m__POSIX_MQ_OPEN_MAX = 8
  8078. const m__POSIX_MQ_PRIO_MAX = 32
  8079. const m__POSIX_NAME_MAX = 14
  8080. const m__POSIX_NGROUPS_MAX = 8
  8081. const m__POSIX_OPEN_MAX = 20
  8082. const m__POSIX_PATH_MAX = 256
  8083. const m__POSIX_PIPE_BUF = 512
  8084. const m__POSIX_RE_DUP_MAX = 255
  8085. const m__POSIX_RTSIG_MAX = 8
  8086. const m__POSIX_SEM_NSEMS_MAX = 256
  8087. const m__POSIX_SEM_VALUE_MAX = 32767
  8088. const m__POSIX_SIGQUEUE_MAX = 32
  8089. const m__POSIX_SSIZE_MAX = 32767
  8090. const m__POSIX_SS_REPL_MAX = 4
  8091. const m__POSIX_STREAM_MAX = 8
  8092. const m__POSIX_SYMLINK_MAX = 255
  8093. const m__POSIX_SYMLOOP_MAX = 8
  8094. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  8095. const m__POSIX_THREAD_KEYS_MAX = 128
  8096. const m__POSIX_THREAD_THREADS_MAX = 64
  8097. const m__POSIX_TIMER_MAX = 32
  8098. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  8099. const m__POSIX_TRACE_NAME_MAX = 8
  8100. const m__POSIX_TRACE_SYS_MAX = 8
  8101. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  8102. const m__POSIX_TTY_NAME_MAX = 9
  8103. const m__POSIX_TZNAME_MAX = 6
  8104. const m__XOPEN_IOV_MAX = 16
  8105. const m__XOPEN_NAME_MAX = 255
  8106. const m__XOPEN_PATH_MAX = 1024
  8107. /*
  8108. * Xlib uses long for 32-bit values. Xrender uses int. This
  8109. * matters on alpha. Note that this macro assumes that int is 32 bits
  8110. * except on WORD64 machines where it is 64 bits.
  8111. */
  8112. /* Support signed or unsigned plain-char */
  8113. /* Implementation choices... */
  8114. /* Arbitrary numbers... */
  8115. /* POSIX/SUS requirements follow. These numbers come directly
  8116. * from SUS and have nothing to do with the host system. */
  8117. func XXRenderQueryFilters(tls *libc.TLS, dpy uintptr, drawable TDrawable) (r uintptr) {
  8118. bp := tls.Alloc(48)
  8119. defer tls.Free(48)
  8120. var filters, info, name, req, xri uintptr
  8121. var i, l int32
  8122. var nbytes, nbytesAlias, nbytesName, reply_left, v1 uint64
  8123. var _ /* len at bp+32 */ int8
  8124. var _ /* rep at bp+0 */ TxRenderQueryFiltersReply
  8125. _, _, _, _, _, _, _, _, _, _, _, _ = filters, i, info, l, name, nbytes, nbytesAlias, nbytesName, reply_left, req, xri, v1
  8126. info = XXRenderFindDisplay(tls, dpy)
  8127. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8128. return libc.UintptrFromInt32(0)
  8129. }
  8130. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  8131. return libc.UintptrFromInt32(0)
  8132. }
  8133. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  8134. if (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version < int32(6) {
  8135. return libc.UintptrFromInt32(0)
  8136. }
  8137. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8138. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8139. }
  8140. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryFilters), uint64(m_sz_xRenderQueryFiltersReq))
  8141. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8142. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryFilters)
  8143. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  8144. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  8145. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8146. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8147. }
  8148. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8149. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8150. }
  8151. return libc.UintptrFromInt32(0)
  8152. }
  8153. /*
  8154. * Limit each component of combined size to 1/4 the max, which is far
  8155. * more than they should ever possibly need.
  8156. */
  8157. 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) {
  8158. /*
  8159. * Compute total number of bytes for filter names
  8160. */
  8161. nbytes = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength) << int32(2)
  8162. nbytesAlias = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases * uint32(2))
  8163. if (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases&uint32(1) != 0 {
  8164. nbytesAlias += uint64(2)
  8165. }
  8166. nbytesName = nbytes - nbytesAlias
  8167. /*
  8168. * Allocate one giant block for the whole data structure
  8169. */
  8170. if uint64(32)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*uint64(8)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*uint64(2)+nbytesName == uint64(0) {
  8171. v1 = uint64(1)
  8172. } else {
  8173. v1 = uint64(32) + uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*uint64(8) + uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*uint64(2) + nbytesName
  8174. }
  8175. filters = libc.Xmalloc(tls, v1)
  8176. } else {
  8177. filters = libc.UintptrFromInt32(0)
  8178. }
  8179. if !(filters != 0) {
  8180. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength))
  8181. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8182. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8183. }
  8184. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8185. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8186. }
  8187. return libc.UintptrFromInt32(0)
  8188. }
  8189. /*
  8190. * Layout:
  8191. * XFilters
  8192. * numFilters char * pointers to filter names
  8193. * numAliases short alias values
  8194. * nbytesName char strings
  8195. */
  8196. (*TXFilters)(unsafe.Pointer(filters)).Fnfilter = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)
  8197. (*TXFilters)(unsafe.Pointer(filters)).Fnalias = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8198. (*TXFilters)(unsafe.Pointer(filters)).Ffilter = filters + libc.UintptrFromInt32(1)*32
  8199. (*TXFilters)(unsafe.Pointer(filters)).Falias = (*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*8
  8200. name = (*TXFilters)(unsafe.Pointer(filters)).Falias + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2
  8201. /*
  8202. * Read the filter aliases
  8203. */
  8204. libx11.X_XReadPad(tls, dpy, (*TXFilters)(unsafe.Pointer(filters)).Falias, libc.Int64FromUint32(libc.Uint32FromInt32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases))
  8205. reply_left = uint64(uint32(8) + (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength - uint32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8206. /*
  8207. * Read the filter names
  8208. */
  8209. i = 0
  8210. for {
  8211. if !(libc.Uint32FromInt32(i) < (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters) {
  8212. break
  8213. }
  8214. libx11.X_XRead(tls, dpy, bp+32, int64(1))
  8215. reply_left--
  8216. l = int32(*(*int8)(unsafe.Pointer(bp + 32))) & int32(0xff)
  8217. if libc.Uint64FromInt32(l)+uint64(1) > nbytesName {
  8218. libx11.X_XEatDataWords(tls, dpy, reply_left)
  8219. libc.Xfree(tls, filters)
  8220. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8221. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8222. }
  8223. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8224. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8225. }
  8226. return libc.UintptrFromInt32(0)
  8227. }
  8228. nbytesName -= libc.Uint64FromInt32(l + int32(1))
  8229. *(*uintptr)(unsafe.Pointer((*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr(i)*8)) = name
  8230. libx11.X_XRead(tls, dpy, name, int64(l))
  8231. reply_left -= libc.Uint64FromInt32(l)
  8232. *(*int8)(unsafe.Pointer(name + uintptr(l))) = int8('\000')
  8233. name += uintptr(l + int32(1))
  8234. goto _2
  8235. _2:
  8236. ;
  8237. i++
  8238. }
  8239. i = int32(int64(name) - int64((*TXFilters)(unsafe.Pointer(filters)).Falias+uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2))
  8240. if i&int32(3) != 0 {
  8241. libx11.X_XEatData(tls, dpy, libc.Uint64FromInt32(int32(4)-i&int32(3)))
  8242. }
  8243. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8244. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8245. }
  8246. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8247. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8248. }
  8249. return filters
  8250. }
  8251. func XXRenderSetPictureFilter(tls *libc.TLS, dpy uintptr, picture TPicture, filter uintptr, params uintptr, nparams int32) {
  8252. var info, req, p1 uintptr
  8253. var nbytes int32
  8254. _, _, _, _ = info, nbytes, req, p1
  8255. info = XXRenderFindDisplay(tls, dpy)
  8256. nbytes = libc.Int32FromUint64(libc.Xstrlen(tls, filter))
  8257. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8258. return
  8259. }
  8260. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8261. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8262. }
  8263. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureFilter), uint64(m_sz_xRenderSetPictureFilterReq))
  8264. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8265. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureFilter)
  8266. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  8267. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fnbytes = libc.Uint16FromInt32(nbytes)
  8268. p1 = req + 2
  8269. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + ((nbytes+libc.Int32FromInt32(3))>>libc.Int32FromInt32(2) + nparams))
  8270. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8271. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, filter, libc.Uint64FromInt32(nbytes))
  8272. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbytes + int32(3)) & ^libc.Int32FromInt32(3))
  8273. } else {
  8274. libx11.X_XSend(tls, dpy, filter, int64(nbytes))
  8275. }
  8276. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nparams<<libc.Int32FromInt32(2)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8277. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, params, libc.Uint64FromInt32(nparams<<libc.Int32FromInt32(2)))
  8278. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nparams<<int32(2) + int32(3)) & ^libc.Int32FromInt32(3))
  8279. } else {
  8280. libx11.X_XSend(tls, dpy, params, int64(nparams<<int32(2)))
  8281. }
  8282. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8283. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8284. }
  8285. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8286. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8287. }
  8288. }
  8289. /*
  8290. * Xlib uses long for 32-bit values. Xrender uses int. This
  8291. * matters on alpha. Note that this macro assumes that int is 32 bits
  8292. * except on WORD64 machines where it is 64 bits.
  8293. */
  8294. func XXRenderCreateGlyphSet(tls *libc.TLS, dpy uintptr, format uintptr) (r TGlyphSet) {
  8295. var gsid, v1 TGlyphSet
  8296. var info, req uintptr
  8297. _, _, _, _ = gsid, info, req, v1
  8298. info = XXRenderFindDisplay(tls, dpy)
  8299. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8300. return uint64(0)
  8301. }
  8302. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8303. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8304. }
  8305. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateGlyphSet), uint64(m_sz_xRenderCreateGlyphSetReq))
  8306. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8307. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateGlyphSet)
  8308. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8309. Fext_data uintptr
  8310. Fprivate1 uintptr
  8311. Ffd int32
  8312. Fprivate2 int32
  8313. Fproto_major_version int32
  8314. Fproto_minor_version int32
  8315. Fvendor uintptr
  8316. Fprivate3 TXID
  8317. Fprivate4 TXID
  8318. Fprivate5 TXID
  8319. Fprivate6 int32
  8320. Fresource_alloc uintptr
  8321. Fbyte_order int32
  8322. Fbitmap_unit int32
  8323. Fbitmap_pad int32
  8324. Fbitmap_bit_order int32
  8325. Fnformats int32
  8326. Fpixmap_format uintptr
  8327. Fprivate8 int32
  8328. Frelease int32
  8329. Fprivate9 uintptr
  8330. Fprivate10 uintptr
  8331. Fqlen int32
  8332. Flast_request_read uint64
  8333. Frequest uint64
  8334. Fprivate11 TXPointer
  8335. Fprivate12 TXPointer
  8336. Fprivate13 TXPointer
  8337. Fprivate14 TXPointer
  8338. Fmax_request_size uint32
  8339. Fdb uintptr
  8340. Fprivate15 uintptr
  8341. Fdisplay_name uintptr
  8342. Fdefault_screen int32
  8343. Fnscreens int32
  8344. Fscreens uintptr
  8345. Fmotion_buffer uint64
  8346. Fprivate16 uint64
  8347. Fmin_keycode int32
  8348. Fmax_keycode int32
  8349. Fprivate17 TXPointer
  8350. Fprivate18 TXPointer
  8351. Fprivate19 int32
  8352. Fxdefaults uintptr
  8353. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8354. gsid = v1
  8355. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8356. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  8357. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8358. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8359. }
  8360. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8361. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8362. }
  8363. return gsid
  8364. }
  8365. func XXRenderReferenceGlyphSet(tls *libc.TLS, dpy uintptr, existing TGlyphSet) (r TGlyphSet) {
  8366. var gsid, v1 TGlyphSet
  8367. var info, req uintptr
  8368. _, _, _, _ = gsid, info, req, v1
  8369. info = XXRenderFindDisplay(tls, dpy)
  8370. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8371. return uint64(0)
  8372. }
  8373. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8374. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8375. }
  8376. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderReferenceGlyphSet), uint64(m_sz_xRenderReferenceGlyphSetReq))
  8377. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8378. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderReferenceGlyphSet)
  8379. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8380. Fext_data uintptr
  8381. Fprivate1 uintptr
  8382. Ffd int32
  8383. Fprivate2 int32
  8384. Fproto_major_version int32
  8385. Fproto_minor_version int32
  8386. Fvendor uintptr
  8387. Fprivate3 TXID
  8388. Fprivate4 TXID
  8389. Fprivate5 TXID
  8390. Fprivate6 int32
  8391. Fresource_alloc uintptr
  8392. Fbyte_order int32
  8393. Fbitmap_unit int32
  8394. Fbitmap_pad int32
  8395. Fbitmap_bit_order int32
  8396. Fnformats int32
  8397. Fpixmap_format uintptr
  8398. Fprivate8 int32
  8399. Frelease int32
  8400. Fprivate9 uintptr
  8401. Fprivate10 uintptr
  8402. Fqlen int32
  8403. Flast_request_read uint64
  8404. Frequest uint64
  8405. Fprivate11 TXPointer
  8406. Fprivate12 TXPointer
  8407. Fprivate13 TXPointer
  8408. Fprivate14 TXPointer
  8409. Fmax_request_size uint32
  8410. Fdb uintptr
  8411. Fprivate15 uintptr
  8412. Fdisplay_name uintptr
  8413. Fdefault_screen int32
  8414. Fnscreens int32
  8415. Fscreens uintptr
  8416. Fmotion_buffer uint64
  8417. Fprivate16 uint64
  8418. Fmin_keycode int32
  8419. Fmax_keycode int32
  8420. Fprivate17 TXPointer
  8421. Fprivate18 TXPointer
  8422. Fprivate19 int32
  8423. Fxdefaults uintptr
  8424. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8425. gsid = v1
  8426. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8427. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fexisting = uint32(existing)
  8428. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8429. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8430. }
  8431. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8432. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8433. }
  8434. return gsid
  8435. }
  8436. func XXRenderFreeGlyphSet(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet) {
  8437. var info, req uintptr
  8438. _, _ = info, req
  8439. info = XXRenderFindDisplay(tls, dpy)
  8440. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8441. return
  8442. }
  8443. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8444. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8445. }
  8446. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphSet), uint64(m_sz_xRenderFreeGlyphSetReq))
  8447. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8448. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphSet)
  8449. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8450. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8451. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8452. }
  8453. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8454. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8455. }
  8456. }
  8457. func XXRenderAddGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, glyphs uintptr, nglyphs int32, images uintptr, nbyte_images int32) {
  8458. bp := tls.Alloc(16)
  8459. defer tls.Free(16)
  8460. var _BRlen TCARD32
  8461. var info, req, p1, p2 uintptr
  8462. var len1 int64
  8463. var _ /* _BRdat at bp+0 */ TCARD64
  8464. _, _, _, _, _, _ = _BRlen, info, len1, req, p1, p2
  8465. info = XXRenderFindDisplay(tls, dpy)
  8466. if nbyte_images&int32(3) != 0 {
  8467. nbyte_images += int32(4) - nbyte_images&int32(3)
  8468. }
  8469. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8470. return
  8471. }
  8472. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8473. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8474. }
  8475. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddGlyphs), uint64(m_sz_xRenderAddGlyphsReq))
  8476. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8477. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddGlyphs)
  8478. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8479. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fnglyphs = libc.Uint32FromInt32(nglyphs)
  8480. len1 = int64((nglyphs*(libc.Int32FromInt32(m_sz_xGlyphInfo)+libc.Int32FromInt32(4)) + nbyte_images) >> int32(2))
  8481. if libc.Int64FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8482. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8483. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  8484. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8485. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8486. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8487. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  8488. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8489. } else {
  8490. len1 = len1
  8491. p1 = req + 2
  8492. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  8493. }
  8494. } else {
  8495. p2 = req + 2
  8496. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  8497. }
  8498. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt32(nglyphs*int32(4)))
  8499. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8500. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, glyphs, libc.Uint64FromInt32(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8501. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nglyphs*int32(m_sz_xGlyphInfo) + int32(3)) & ^libc.Int32FromInt32(3))
  8502. } else {
  8503. libx11.X_XSend(tls, dpy, glyphs, int64(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8504. }
  8505. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbyte_images) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8506. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, images, libc.Uint64FromInt32(nbyte_images))
  8507. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nbyte_images + int32(3)) & ^libc.Int32FromInt32(3))
  8508. } else {
  8509. libx11.X_XSend(tls, dpy, images, int64(nbyte_images))
  8510. }
  8511. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8512. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8513. }
  8514. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8515. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8516. }
  8517. }
  8518. func XXRenderFreeGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, nglyphs int32) {
  8519. bp := tls.Alloc(16)
  8520. defer tls.Free(16)
  8521. var _BRlen TCARD32
  8522. var info, req, p1, p2 uintptr
  8523. var len1 int64
  8524. var _ /* _BRdat at bp+0 */ TCARD64
  8525. _, _, _, _, _, _ = _BRlen, info, len1, req, p1, p2
  8526. info = XXRenderFindDisplay(tls, dpy)
  8527. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8528. return
  8529. }
  8530. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8531. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8532. }
  8533. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphs), uint64(m_sz_xRenderFreeGlyphsReq))
  8534. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8535. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphs)
  8536. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8537. len1 = int64(nglyphs)
  8538. if libc.Int64FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8539. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8540. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  8541. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8542. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8543. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8544. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  8545. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8546. } else {
  8547. len1 = len1
  8548. p1 = req + 2
  8549. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  8550. }
  8551. } else {
  8552. p2 = req + 2
  8553. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  8554. }
  8555. len1 <<= int64(2)
  8556. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt64(len1))
  8557. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8558. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8559. }
  8560. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8561. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8562. }
  8563. }
  8564. 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) {
  8565. var elt, info, req, p2 uintptr
  8566. var len1 int64
  8567. var nbytes int32
  8568. var v1 uint64
  8569. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8570. info = XXRenderFindDisplay(tls, dpy)
  8571. if !(nchar != 0) {
  8572. return
  8573. }
  8574. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8575. return
  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)).Flock_display})))(tls, dpy)
  8579. }
  8580. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  8581. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8582. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  8583. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8584. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8585. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8586. if maskFormat != 0 {
  8587. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8588. } else {
  8589. v1 = uint64(0)
  8590. }
  8591. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8592. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8593. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8594. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8595. /*
  8596. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8597. * easily done by filling no more than 252 glyphs in each
  8598. * bucket
  8599. */
  8600. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(252)-int32(1))/int32(252)) + nchar)
  8601. p2 = req + 2
  8602. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8603. /*
  8604. * If the entire request does not fit into the remaining space in the
  8605. * buffer, flush the buffer first.
  8606. */
  8607. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8608. libx11.X_XFlush(tls, dpy)
  8609. }
  8610. for nchar > int32(252) {
  8611. nbytes = libc.Int32FromInt32(252) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8612. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8613. libx11.X_XFlush(tls, dpy)
  8614. }
  8615. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8616. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8617. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8618. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(252)
  8619. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8620. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8621. xDst = 0
  8622. yDst = 0
  8623. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, uint64(252))
  8624. nchar = nchar - int32(252)
  8625. string1 += uintptr(252)
  8626. }
  8627. if nchar != 0 {
  8628. nbytes = (nchar + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  8629. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8630. libx11.X_XFlush(tls, dpy)
  8631. }
  8632. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8633. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8634. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8635. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8636. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8637. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8638. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar))
  8639. }
  8640. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8641. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8642. }
  8643. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8644. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8645. }
  8646. }
  8647. 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) {
  8648. var elt, info, req, p2 uintptr
  8649. var len1 int64
  8650. var nbytes int32
  8651. var v1 uint64
  8652. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8653. info = XXRenderFindDisplay(tls, dpy)
  8654. if !(nchar != 0) {
  8655. return
  8656. }
  8657. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8658. return
  8659. }
  8660. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8661. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8662. }
  8663. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  8664. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8665. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  8666. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8667. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8668. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8669. if maskFormat != 0 {
  8670. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8671. } else {
  8672. v1 = uint64(0)
  8673. }
  8674. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8675. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8676. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8677. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8678. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(2))
  8679. p2 = req + 2
  8680. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8681. /*
  8682. * If the entire request does not fit into the remaining space in the
  8683. * buffer, flush the buffer first.
  8684. */
  8685. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8686. libx11.X_XFlush(tls, dpy)
  8687. }
  8688. for nchar > int32(254) {
  8689. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(2) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8690. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8691. libx11.X_XFlush(tls, dpy)
  8692. }
  8693. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8694. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8695. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8696. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  8697. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8698. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8699. xDst = 0
  8700. yDst = 0
  8701. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(2)))
  8702. nchar = nchar - int32(254)
  8703. string1 += uintptr(254) * 2
  8704. }
  8705. if nchar != 0 {
  8706. nbytes = (nchar*int32(2) + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  8707. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8708. libx11.X_XFlush(tls, dpy)
  8709. }
  8710. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8711. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8712. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8713. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8714. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8715. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8716. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(2)))
  8717. }
  8718. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8719. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8720. }
  8721. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8722. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8723. }
  8724. }
  8725. 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) {
  8726. var elt, info, req, p2 uintptr
  8727. var len1 int64
  8728. var nbytes int32
  8729. var v1 uint64
  8730. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8731. info = XXRenderFindDisplay(tls, dpy)
  8732. if !(nchar != 0) {
  8733. return
  8734. }
  8735. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8736. return
  8737. }
  8738. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8739. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8740. }
  8741. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  8742. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8743. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  8744. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8745. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8746. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8747. if maskFormat != 0 {
  8748. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8749. } else {
  8750. v1 = uint64(0)
  8751. }
  8752. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8753. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8754. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8755. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8756. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(4))
  8757. p2 = req + 2
  8758. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  8759. /*
  8760. * If the entire request does not fit into the remaining space in the
  8761. * buffer, flush the buffer first.
  8762. */
  8763. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8764. libx11.X_XFlush(tls, dpy)
  8765. }
  8766. for nchar > int32(254) {
  8767. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(4) + libc.Int32FromInt32(m_sz_xGlyphElt)
  8768. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8769. libx11.X_XFlush(tls, dpy)
  8770. }
  8771. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8772. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8773. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8774. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  8775. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8776. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8777. xDst = 0
  8778. yDst = 0
  8779. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(4)))
  8780. nchar = nchar - int32(254)
  8781. string1 += uintptr(254) * 4
  8782. }
  8783. if nchar != 0 {
  8784. nbytes = nchar*int32(4) + int32(m_sz_xGlyphElt)
  8785. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8786. libx11.X_XFlush(tls, dpy)
  8787. }
  8788. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8789. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  8790. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  8791. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  8792. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8793. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8794. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(4)))
  8795. }
  8796. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8797. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8798. }
  8799. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8800. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8801. }
  8802. }
  8803. 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) {
  8804. bp := tls.Alloc(16)
  8805. defer tls.Free(16)
  8806. var chars, elt, info, req, p3 uintptr
  8807. var elen, len1 int64
  8808. var i, nchars, this_chars, v5 int32
  8809. var v1 uint64
  8810. var _ /* glyphset at bp+0 */ TGlyphSet
  8811. _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_chars, v1, v5, p3
  8812. info = XXRenderFindDisplay(tls, dpy)
  8813. if !(nelt != 0) {
  8814. return
  8815. }
  8816. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8817. return
  8818. }
  8819. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8820. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8821. }
  8822. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  8823. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8824. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  8825. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8826. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8827. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8828. if maskFormat != 0 {
  8829. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8830. } else {
  8831. v1 = uint64(0)
  8832. }
  8833. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8834. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset)
  8835. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8836. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8837. /*
  8838. * Compute the space necessary
  8839. */
  8840. len1 = 0
  8841. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  8842. i = 0
  8843. for {
  8844. if !(i < nelt) {
  8845. break
  8846. }
  8847. /*
  8848. * Check for glyphset change
  8849. */
  8850. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8851. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8852. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  8853. }
  8854. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8855. /*
  8856. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8857. * easily done by filling no more than 252 glyphs in each
  8858. * bucket
  8859. */
  8860. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(252)-int32(1))/int32(252)) + nchars)
  8861. len1 += (elen + int64(3)) >> int32(2)
  8862. goto _2
  8863. _2:
  8864. ;
  8865. i++
  8866. }
  8867. p3 = req + 2
  8868. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  8869. /*
  8870. * Send the glyphs
  8871. */
  8872. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  8873. i = 0
  8874. for {
  8875. if !(i < nelt) {
  8876. break
  8877. }
  8878. /*
  8879. * Switch glyphsets
  8880. */
  8881. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8882. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8883. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8884. libx11.X_XFlush(tls, dpy)
  8885. }
  8886. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8887. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8888. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8889. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  8890. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  8891. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  8892. libx11.X_XData32(tls, dpy, bp, uint32(4))
  8893. }
  8894. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8895. xDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  8896. yDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  8897. chars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  8898. for nchars != 0 {
  8899. if nchars > int32(252) {
  8900. v5 = int32(252)
  8901. } else {
  8902. v5 = nchars
  8903. }
  8904. this_chars = v5
  8905. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8906. libx11.X_XFlush(tls, dpy)
  8907. }
  8908. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8909. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  8910. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  8911. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  8912. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  8913. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  8914. xDst = 0
  8915. yDst = 0
  8916. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_chars) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8917. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_chars))
  8918. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_chars + int32(3)) & ^libc.Int32FromInt32(3))
  8919. } else {
  8920. libx11.X_XSend(tls, dpy, chars, int64(this_chars))
  8921. }
  8922. nchars -= this_chars
  8923. chars += uintptr(this_chars)
  8924. }
  8925. goto _4
  8926. _4:
  8927. ;
  8928. i++
  8929. }
  8930. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8931. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8932. }
  8933. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8934. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8935. }
  8936. }
  8937. 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) {
  8938. bp := tls.Alloc(16)
  8939. defer tls.Free(16)
  8940. var chars, elt, info, req, p3 uintptr
  8941. var elen, len1 int64
  8942. var i, nchars, this_bytes, this_chars, v5 int32
  8943. var v1 uint64
  8944. var _ /* glyphset at bp+0 */ TGlyphSet
  8945. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  8946. info = XXRenderFindDisplay(tls, dpy)
  8947. if !(nelt != 0) {
  8948. return
  8949. }
  8950. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8951. return
  8952. }
  8953. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8954. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8955. }
  8956. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  8957. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8958. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  8959. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8960. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8961. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8962. if maskFormat != 0 {
  8963. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8964. } else {
  8965. v1 = uint64(0)
  8966. }
  8967. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8968. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset)
  8969. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8970. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8971. /*
  8972. * Compute the space necessary
  8973. */
  8974. len1 = 0
  8975. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  8976. i = 0
  8977. for {
  8978. if !(i < nelt) {
  8979. break
  8980. }
  8981. /*
  8982. * Check for glyphset change
  8983. */
  8984. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  8985. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  8986. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  8987. }
  8988. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  8989. /*
  8990. * xGlyphElt must be aligned on a 32-bit boundary; this is
  8991. * easily done by filling no more than 254 glyphs in each
  8992. * bucket
  8993. */
  8994. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(2))
  8995. len1 += (elen + int64(3)) >> int32(2)
  8996. goto _2
  8997. _2:
  8998. ;
  8999. i++
  9000. }
  9001. p3 = req + 2
  9002. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9003. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  9004. i = 0
  9005. for {
  9006. if !(i < nelt) {
  9007. break
  9008. }
  9009. /*
  9010. * Switch glyphsets
  9011. */
  9012. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9013. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9014. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9015. libx11.X_XFlush(tls, dpy)
  9016. }
  9017. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9018. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9019. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9020. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9021. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9022. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9023. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9024. }
  9025. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9026. xDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9027. yDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9028. chars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9029. for nchars != 0 {
  9030. if nchars > int32(254) {
  9031. v5 = int32(254)
  9032. } else {
  9033. v5 = nchars
  9034. }
  9035. this_chars = v5
  9036. this_bytes = this_chars * int32(2)
  9037. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9038. libx11.X_XFlush(tls, dpy)
  9039. }
  9040. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9041. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9042. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9043. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9044. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9045. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9046. xDst = 0
  9047. yDst = 0
  9048. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9049. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  9050. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + int32(3)) & ^libc.Int32FromInt32(3))
  9051. } else {
  9052. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  9053. }
  9054. nchars -= this_chars
  9055. chars += uintptr(this_chars) * 2
  9056. }
  9057. goto _4
  9058. _4:
  9059. ;
  9060. i++
  9061. }
  9062. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9063. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9064. }
  9065. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9066. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9067. }
  9068. }
  9069. 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) {
  9070. bp := tls.Alloc(16)
  9071. defer tls.Free(16)
  9072. var chars, elt, info, req, p3 uintptr
  9073. var elen, len1 int64
  9074. var i, nchars, this_bytes, this_chars, v5 int32
  9075. var v1 uint64
  9076. var _ /* glyphset at bp+0 */ TGlyphSet
  9077. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  9078. info = XXRenderFindDisplay(tls, dpy)
  9079. if !(nelt != 0) {
  9080. return
  9081. }
  9082. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9083. return
  9084. }
  9085. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9086. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9087. }
  9088. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  9089. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9090. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  9091. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9092. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9093. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9094. if maskFormat != 0 {
  9095. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9096. } else {
  9097. v1 = uint64(0)
  9098. }
  9099. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9100. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset)
  9101. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9102. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9103. /*
  9104. * Compute the space necessary
  9105. */
  9106. len1 = 0
  9107. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9108. i = 0
  9109. for {
  9110. if !(i < nelt) {
  9111. break
  9112. }
  9113. /*
  9114. * Check for glyphset change
  9115. */
  9116. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9117. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9118. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  9119. }
  9120. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9121. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(4))
  9122. len1 += (elen + int64(3)) >> int32(2)
  9123. goto _2
  9124. _2:
  9125. ;
  9126. i++
  9127. }
  9128. p3 = req + 2
  9129. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9130. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9131. i = 0
  9132. for {
  9133. if !(i < nelt) {
  9134. break
  9135. }
  9136. /*
  9137. * Switch glyphsets
  9138. */
  9139. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9140. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9141. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9142. libx11.X_XFlush(tls, dpy)
  9143. }
  9144. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9145. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9146. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9147. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9148. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9149. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9150. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9151. }
  9152. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9153. xDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9154. yDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9155. chars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9156. for nchars != 0 {
  9157. if nchars > int32(254) {
  9158. v5 = int32(254)
  9159. } else {
  9160. v5 = nchars
  9161. }
  9162. this_chars = v5
  9163. this_bytes = this_chars * int32(4)
  9164. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9165. libx11.X_XFlush(tls, dpy)
  9166. }
  9167. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9168. libc.Xmemset(tls, elt, int32('\000'), uint64(m_sz_xGlyphElt))
  9169. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9170. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9171. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9172. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9173. xDst = 0
  9174. yDst = 0
  9175. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9176. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  9177. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((this_bytes + int32(3)) & ^libc.Int32FromInt32(3))
  9178. } else {
  9179. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  9180. }
  9181. nchars -= this_chars
  9182. chars += uintptr(this_chars) * 4
  9183. }
  9184. goto _4
  9185. _4:
  9186. ;
  9187. i++
  9188. }
  9189. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9190. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9191. }
  9192. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9193. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9194. }
  9195. }
  9196. const m_FALSE = 0
  9197. const m_MAXSHORT = 32767
  9198. const m_NUMPTSTOBUFFER = 200
  9199. const m_TRUE = 1
  9200. type T_XRegion = struct {
  9201. Fsize int64
  9202. FnumRects int64
  9203. Frects uintptr
  9204. Fextents TBOX
  9205. }
  9206. type TBox = struct {
  9207. Fx1 int16
  9208. Fx2 int16
  9209. Fy1 int16
  9210. Fy2 int16
  9211. }
  9212. type TBOX = struct {
  9213. Fx1 int16
  9214. Fx2 int16
  9215. Fy1 int16
  9216. Fy2 int16
  9217. }
  9218. type TBoxRec = struct {
  9219. Fx1 int16
  9220. Fx2 int16
  9221. Fy1 int16
  9222. Fy2 int16
  9223. }
  9224. type TBoxPtr = uintptr
  9225. type TRECTANGLE = struct {
  9226. Fx int16
  9227. Fy int16
  9228. Fwidth int16
  9229. Fheight int16
  9230. }
  9231. type TRectangleRec = struct {
  9232. Fx int16
  9233. Fy int16
  9234. Fwidth int16
  9235. Fheight int16
  9236. }
  9237. type TRectanglePtr = uintptr
  9238. type TREGION = struct {
  9239. Fsize int64
  9240. FnumRects int64
  9241. Frects uintptr
  9242. Fextents TBOX
  9243. }
  9244. type TPOINTBLOCK = struct {
  9245. Fpts [200]TXPoint
  9246. Fnext uintptr
  9247. }
  9248. type T_POINTBLOCK = TPOINTBLOCK
  9249. func __XRenderProcessPictureAttributes(tls *libc.TLS, dpy uintptr, req uintptr, valuemask uint64, attributes uintptr) {
  9250. bp := tls.Alloc(256)
  9251. defer tls.Free(256)
  9252. var nvalues, v15 uint32
  9253. var value, v1, v10, v11, v12, v13, v2, v3, v4, v5, v6, v7, v8, v9, p14 uintptr
  9254. var _ /* values at bp+0 */ [32]uint64
  9255. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = nvalues, value, v1, v10, v11, v12, v13, v15, v2, v3, v4, v5, v6, v7, v8, v9, p14
  9256. value = bp
  9257. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  9258. v1 = value
  9259. value += 8
  9260. *(*uint64)(unsafe.Pointer(v1)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Frepeat)
  9261. }
  9262. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  9263. v2 = value
  9264. value += 8
  9265. *(*uint64)(unsafe.Pointer(v2)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_map
  9266. }
  9267. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  9268. v3 = value
  9269. value += 8
  9270. *(*uint64)(unsafe.Pointer(v3)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_x_origin)
  9271. }
  9272. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  9273. v4 = value
  9274. value += 8
  9275. *(*uint64)(unsafe.Pointer(v4)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_y_origin)
  9276. }
  9277. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  9278. v5 = value
  9279. value += 8
  9280. *(*uint64)(unsafe.Pointer(v5)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_x_origin)
  9281. }
  9282. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  9283. v6 = value
  9284. value += 8
  9285. *(*uint64)(unsafe.Pointer(v6)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_y_origin)
  9286. }
  9287. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  9288. v7 = value
  9289. value += 8
  9290. *(*uint64)(unsafe.Pointer(v7)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_mask
  9291. }
  9292. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  9293. v8 = value
  9294. value += 8
  9295. *(*uint64)(unsafe.Pointer(v8)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fgraphics_exposures)
  9296. }
  9297. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  9298. v9 = value
  9299. value += 8
  9300. *(*uint64)(unsafe.Pointer(v9)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fsubwindow_mode)
  9301. }
  9302. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  9303. v10 = value
  9304. value += 8
  9305. *(*uint64)(unsafe.Pointer(v10)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_edge)
  9306. }
  9307. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  9308. v11 = value
  9309. value += 8
  9310. *(*uint64)(unsafe.Pointer(v11)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_mode)
  9311. }
  9312. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  9313. v12 = value
  9314. value += 8
  9315. *(*uint64)(unsafe.Pointer(v12)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fdither
  9316. }
  9317. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(12)) != 0 {
  9318. v13 = value
  9319. value += 8
  9320. *(*uint64)(unsafe.Pointer(v13)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fcomponent_alpha)
  9321. }
  9322. p14 = req + 2
  9323. v15 = libc.Uint32FromInt64((int64(value) - t__predefined_ptrdiff_t(bp)) / 8)
  9324. nvalues = v15
  9325. *(*TCARD16)(unsafe.Pointer(p14)) = TCARD16(uint32(*(*TCARD16)(unsafe.Pointer(p14))) + v15)
  9326. nvalues <<= uint32(2) /* watch out for macros... */
  9327. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt64(libc.Int64FromUint32(nvalues)))
  9328. }
  9329. func XXRenderCreatePicture(tls *libc.TLS, dpy uintptr, drawable TDrawable, format uintptr, valuemask uint64, attributes uintptr) (r TPicture) {
  9330. var info, req uintptr
  9331. var pid, v1 TPicture
  9332. var v2 TCARD32
  9333. _, _, _, _, _ = info, pid, req, v1, v2
  9334. info = XXRenderFindDisplay(tls, dpy)
  9335. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9336. return uint64(0)
  9337. }
  9338. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9339. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9340. }
  9341. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreatePicture), uint64(m_sz_xRenderCreatePictureReq))
  9342. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9343. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreatePicture)
  9344. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9345. Fext_data uintptr
  9346. Fprivate1 uintptr
  9347. Ffd int32
  9348. Fprivate2 int32
  9349. Fproto_major_version int32
  9350. Fproto_minor_version int32
  9351. Fvendor uintptr
  9352. Fprivate3 TXID
  9353. Fprivate4 TXID
  9354. Fprivate5 TXID
  9355. Fprivate6 int32
  9356. Fresource_alloc uintptr
  9357. Fbyte_order int32
  9358. Fbitmap_unit int32
  9359. Fbitmap_pad int32
  9360. Fbitmap_bit_order int32
  9361. Fnformats int32
  9362. Fpixmap_format uintptr
  9363. Fprivate8 int32
  9364. Frelease int32
  9365. Fprivate9 uintptr
  9366. Fprivate10 uintptr
  9367. Fqlen int32
  9368. Flast_request_read uint64
  9369. Frequest uint64
  9370. Fprivate11 TXPointer
  9371. Fprivate12 TXPointer
  9372. Fprivate13 TXPointer
  9373. Fprivate14 TXPointer
  9374. Fmax_request_size uint32
  9375. Fdb uintptr
  9376. Fprivate15 uintptr
  9377. Fdisplay_name uintptr
  9378. Fdefault_screen int32
  9379. Fnscreens int32
  9380. Fscreens uintptr
  9381. Fmotion_buffer uint64
  9382. Fprivate16 uint64
  9383. Fmin_keycode int32
  9384. Fmax_keycode int32
  9385. Fprivate17 TXPointer
  9386. Fprivate18 TXPointer
  9387. Fprivate19 int32
  9388. Fxdefaults uintptr
  9389. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9390. pid = v1
  9391. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9392. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  9393. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  9394. v2 = uint32(valuemask)
  9395. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fmask = v2
  9396. if v2 != 0 {
  9397. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9398. }
  9399. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9400. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9401. }
  9402. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9403. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9404. }
  9405. return pid
  9406. }
  9407. func XXRenderChangePicture(tls *libc.TLS, dpy uintptr, picture TPicture, valuemask uint64, attributes uintptr) {
  9408. var info, req uintptr
  9409. _, _ = info, req
  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. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderChangePicture), uint64(m_sz_xRenderChangePictureReq))
  9418. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9419. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderChangePicture)
  9420. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9421. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fmask = uint32(valuemask)
  9422. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9423. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9424. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9425. }
  9426. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9427. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9428. }
  9429. }
  9430. func __XRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, info uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9431. bp := tls.Alloc(16)
  9432. defer tls.Free(16)
  9433. var _BRlen TCARD32
  9434. var len1 int64
  9435. var req, p1, p2 uintptr
  9436. var _ /* _BRdat at bp+0 */ TCARD64
  9437. _, _, _, _, _ = _BRlen, len1, req, p1, p2
  9438. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureClipRectangles), uint64(m_sz_xRenderSetPictureClipRectanglesReq))
  9439. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9440. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureClipRectangles)
  9441. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9442. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FxOrigin = int16(xOrigin)
  9443. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FyOrigin = int16(yOrigin)
  9444. len1 = int64(n) << int32(1)
  9445. if libc.Int64FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9446. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9447. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9448. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9449. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9450. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9451. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9452. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9453. } else {
  9454. len1 = int64(1)
  9455. p1 = req + 2
  9456. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p1))) + len1)
  9457. }
  9458. } else {
  9459. p2 = req + 2
  9460. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9461. }
  9462. len1 <<= int64(2)
  9463. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9464. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rects, libc.Uint64FromInt32(int32(len1)))
  9465. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  9466. } else {
  9467. libx11.X_XSend(tls, dpy, rects, len1)
  9468. }
  9469. }
  9470. func XXRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9471. var info uintptr
  9472. _ = info
  9473. info = XXRenderFindDisplay(tls, dpy)
  9474. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9475. return
  9476. }
  9477. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9478. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9479. }
  9480. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, xOrigin, yOrigin, rects, n)
  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)).Funlock_display})))(tls, dpy)
  9483. }
  9484. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9485. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9486. }
  9487. }
  9488. func XXRenderSetPictureClipRegion(tls *libc.TLS, dpy uintptr, picture TPicture, r TRegion) {
  9489. var i, v3 int32
  9490. var info, pb, pr, xr, v1 uintptr
  9491. var total uint64
  9492. _, _, _, _, _, _, _, _ = i, info, pb, pr, total, xr, v1, v3
  9493. info = XXRenderFindDisplay(tls, dpy)
  9494. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9495. return
  9496. }
  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)).Flock_display})))(tls, dpy)
  9499. }
  9500. total = libc.Uint64FromInt64((*T_XRegion)(unsafe.Pointer(r)).FnumRects) * uint64(8)
  9501. v1 = libx11.X_XAllocTemp(tls, dpy, total)
  9502. xr = v1
  9503. if v1 != 0 {
  9504. pr = xr
  9505. pb = (*T_XRegion)(unsafe.Pointer(r)).Frects
  9506. i = int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects)
  9507. for {
  9508. i--
  9509. v3 = i
  9510. if !(v3 >= 0) {
  9511. break
  9512. }
  9513. (*TXRectangle)(unsafe.Pointer(pr)).Fx = (*TBOX)(unsafe.Pointer(pb)).Fx1
  9514. (*TXRectangle)(unsafe.Pointer(pr)).Fy = (*TBOX)(unsafe.Pointer(pb)).Fy1
  9515. (*TXRectangle)(unsafe.Pointer(pr)).Fwidth = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fx2) - int32((*TBOX)(unsafe.Pointer(pb)).Fx1))
  9516. (*TXRectangle)(unsafe.Pointer(pr)).Fheight = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fy2) - int32((*TBOX)(unsafe.Pointer(pb)).Fy1))
  9517. goto _2
  9518. _2:
  9519. ;
  9520. pr += 8
  9521. pb += 8
  9522. }
  9523. }
  9524. if xr != 0 || !((*T_XRegion)(unsafe.Pointer(r)).FnumRects != 0) {
  9525. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, 0, 0, xr, int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects))
  9526. }
  9527. if xr != 0 {
  9528. libx11.X_XFreeTemp(tls, dpy, xr, total)
  9529. }
  9530. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9531. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9532. }
  9533. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9534. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9535. }
  9536. }
  9537. func XXRenderSetPictureTransform(tls *libc.TLS, dpy uintptr, picture TPicture, transform uintptr) {
  9538. var info, req uintptr
  9539. _, _ = info, req
  9540. info = XXRenderFindDisplay(tls, dpy)
  9541. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9542. return
  9543. }
  9544. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9545. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9546. }
  9547. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureTransform), uint64(m_sz_xRenderSetPictureTransformReq))
  9548. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9549. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureTransform)
  9550. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9551. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix11 = *(*TXFixed)(unsafe.Pointer(transform))
  9552. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix12 = *(*TXFixed)(unsafe.Pointer(transform + 1*4))
  9553. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix13 = *(*TXFixed)(unsafe.Pointer(transform + 2*4))
  9554. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix21 = *(*TXFixed)(unsafe.Pointer(transform + 1*12))
  9555. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix22 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 1*4))
  9556. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix23 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 2*4))
  9557. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix31 = *(*TXFixed)(unsafe.Pointer(transform + 2*12))
  9558. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix32 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 1*4))
  9559. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix33 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 2*4))
  9560. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9561. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9562. }
  9563. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9564. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9565. }
  9566. }
  9567. func XXRenderFreePicture(tls *libc.TLS, dpy uintptr, picture TPicture) {
  9568. var info, req uintptr
  9569. _, _ = info, req
  9570. info = XXRenderFindDisplay(tls, dpy)
  9571. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9572. return
  9573. }
  9574. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9575. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9576. }
  9577. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreePicture), uint64(m_sz_xRenderFreePictureReq))
  9578. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9579. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreePicture)
  9580. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9581. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9582. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9583. }
  9584. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9585. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9586. }
  9587. }
  9588. func XXRenderCreateSolidFill(tls *libc.TLS, dpy uintptr, color uintptr) (r TPicture) {
  9589. var info, req uintptr
  9590. var pid, v1 TPicture
  9591. _, _, _, _ = info, pid, req, v1
  9592. info = XXRenderFindDisplay(tls, dpy)
  9593. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9594. return uint64(0)
  9595. }
  9596. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9597. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9598. }
  9599. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateSolidFill), uint64(m_sz_xRenderCreateSolidFillReq))
  9600. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9601. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateSolidFill)
  9602. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9603. Fext_data uintptr
  9604. Fprivate1 uintptr
  9605. Ffd int32
  9606. Fprivate2 int32
  9607. Fproto_major_version int32
  9608. Fproto_minor_version int32
  9609. Fvendor uintptr
  9610. Fprivate3 TXID
  9611. Fprivate4 TXID
  9612. Fprivate5 TXID
  9613. Fprivate6 int32
  9614. Fresource_alloc uintptr
  9615. Fbyte_order int32
  9616. Fbitmap_unit int32
  9617. Fbitmap_pad int32
  9618. Fbitmap_bit_order int32
  9619. Fnformats int32
  9620. Fpixmap_format uintptr
  9621. Fprivate8 int32
  9622. Frelease int32
  9623. Fprivate9 uintptr
  9624. Fprivate10 uintptr
  9625. Fqlen int32
  9626. Flast_request_read uint64
  9627. Frequest uint64
  9628. Fprivate11 TXPointer
  9629. Fprivate12 TXPointer
  9630. Fprivate13 TXPointer
  9631. Fprivate14 TXPointer
  9632. Fmax_request_size uint32
  9633. Fdb uintptr
  9634. Fprivate15 uintptr
  9635. Fdisplay_name uintptr
  9636. Fdefault_screen int32
  9637. Fnscreens int32
  9638. Fscreens uintptr
  9639. Fmotion_buffer uint64
  9640. Fprivate16 uint64
  9641. Fmin_keycode int32
  9642. Fmax_keycode int32
  9643. Fprivate17 TXPointer
  9644. Fprivate18 TXPointer
  9645. Fprivate19 int32
  9646. Fxdefaults uintptr
  9647. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9648. pid = v1
  9649. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9650. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  9651. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  9652. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  9653. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  9654. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9655. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9656. }
  9657. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9658. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9659. }
  9660. return pid
  9661. }
  9662. func XXRenderCreateLinearGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9663. bp := tls.Alloc(16)
  9664. defer tls.Free(16)
  9665. var _BRlen TCARD32
  9666. var info, req, p2, p3 uintptr
  9667. var len1 int64
  9668. var pid, v1 TPicture
  9669. var _ /* _BRdat at bp+0 */ TCARD64
  9670. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9671. info = XXRenderFindDisplay(tls, dpy)
  9672. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9673. return uint64(0)
  9674. }
  9675. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9676. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9677. }
  9678. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateLinearGradient), uint64(m_sz_xRenderCreateLinearGradientReq))
  9679. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9680. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateLinearGradient)
  9681. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9682. Fext_data uintptr
  9683. Fprivate1 uintptr
  9684. Ffd int32
  9685. Fprivate2 int32
  9686. Fproto_major_version int32
  9687. Fproto_minor_version int32
  9688. Fvendor uintptr
  9689. Fprivate3 TXID
  9690. Fprivate4 TXID
  9691. Fprivate5 TXID
  9692. Fprivate6 int32
  9693. Fresource_alloc uintptr
  9694. Fbyte_order int32
  9695. Fbitmap_unit int32
  9696. Fbitmap_pad int32
  9697. Fbitmap_bit_order int32
  9698. Fnformats int32
  9699. Fpixmap_format uintptr
  9700. Fprivate8 int32
  9701. Frelease int32
  9702. Fprivate9 uintptr
  9703. Fprivate10 uintptr
  9704. Fqlen int32
  9705. Flast_request_read uint64
  9706. Frequest uint64
  9707. Fprivate11 TXPointer
  9708. Fprivate12 TXPointer
  9709. Fprivate13 TXPointer
  9710. Fprivate14 TXPointer
  9711. Fmax_request_size uint32
  9712. Fdb uintptr
  9713. Fprivate15 uintptr
  9714. Fdisplay_name uintptr
  9715. Fdefault_screen int32
  9716. Fnscreens int32
  9717. Fscreens uintptr
  9718. Fmotion_buffer uint64
  9719. Fprivate16 uint64
  9720. Fmin_keycode int32
  9721. Fmax_keycode int32
  9722. Fprivate17 TXPointer
  9723. Fprivate18 TXPointer
  9724. Fprivate19 int32
  9725. Fxdefaults uintptr
  9726. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9727. pid = v1
  9728. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9729. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fx
  9730. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fy
  9731. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fx
  9732. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fy
  9733. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9734. len1 = int64(nStops) * int64(3)
  9735. if libc.Int64FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9736. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9737. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9738. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9739. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9740. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9741. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9742. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9743. } else {
  9744. len1 = int64(6)
  9745. p2 = req + 2
  9746. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9747. }
  9748. } else {
  9749. p3 = req + 2
  9750. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9751. }
  9752. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9753. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9754. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9755. } else {
  9756. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9757. }
  9758. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9759. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9760. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9761. } else {
  9762. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9763. }
  9764. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9765. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9766. }
  9767. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9768. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9769. }
  9770. return pid
  9771. }
  9772. func XXRenderCreateRadialGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9773. bp := tls.Alloc(16)
  9774. defer tls.Free(16)
  9775. var _BRlen TCARD32
  9776. var info, req, p2, p3 uintptr
  9777. var len1 int64
  9778. var pid, v1 TPicture
  9779. var _ /* _BRdat at bp+0 */ TCARD64
  9780. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9781. info = XXRenderFindDisplay(tls, dpy)
  9782. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9783. return uint64(0)
  9784. }
  9785. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9786. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9787. }
  9788. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateRadialGradient), uint64(m_sz_xRenderCreateRadialGradientReq))
  9789. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9790. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateRadialGradient)
  9791. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9792. Fext_data uintptr
  9793. Fprivate1 uintptr
  9794. Ffd int32
  9795. Fprivate2 int32
  9796. Fproto_major_version int32
  9797. Fproto_minor_version int32
  9798. Fvendor uintptr
  9799. Fprivate3 TXID
  9800. Fprivate4 TXID
  9801. Fprivate5 TXID
  9802. Fprivate6 int32
  9803. Fresource_alloc uintptr
  9804. Fbyte_order int32
  9805. Fbitmap_unit int32
  9806. Fbitmap_pad int32
  9807. Fbitmap_bit_order int32
  9808. Fnformats int32
  9809. Fpixmap_format uintptr
  9810. Fprivate8 int32
  9811. Frelease int32
  9812. Fprivate9 uintptr
  9813. Fprivate10 uintptr
  9814. Fqlen int32
  9815. Flast_request_read uint64
  9816. Frequest uint64
  9817. Fprivate11 TXPointer
  9818. Fprivate12 TXPointer
  9819. Fprivate13 TXPointer
  9820. Fprivate14 TXPointer
  9821. Fmax_request_size uint32
  9822. Fdb uintptr
  9823. Fprivate15 uintptr
  9824. Fdisplay_name uintptr
  9825. Fdefault_screen int32
  9826. Fnscreens int32
  9827. Fscreens uintptr
  9828. Fmotion_buffer uint64
  9829. Fprivate16 uint64
  9830. Fmin_keycode int32
  9831. Fmax_keycode int32
  9832. Fprivate17 TXPointer
  9833. Fprivate18 TXPointer
  9834. Fprivate19 int32
  9835. Fxdefaults uintptr
  9836. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9837. pid = v1
  9838. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9839. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fx
  9840. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fy
  9841. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fx
  9842. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fy
  9843. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fradius
  9844. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fradius
  9845. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9846. len1 = int64(nStops) * int64(3)
  9847. if libc.Int64FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9848. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9849. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9850. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9851. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9852. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9853. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9854. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9855. } else {
  9856. len1 = int64(6)
  9857. p2 = req + 2
  9858. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9859. }
  9860. } else {
  9861. p3 = req + 2
  9862. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9863. }
  9864. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9865. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9866. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9867. } else {
  9868. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9869. }
  9870. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9871. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9872. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9873. } else {
  9874. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9875. }
  9876. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9877. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9878. }
  9879. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9880. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9881. }
  9882. return pid
  9883. }
  9884. func XXRenderCreateConicalGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  9885. bp := tls.Alloc(16)
  9886. defer tls.Free(16)
  9887. var _BRlen TCARD32
  9888. var info, req, p2, p3 uintptr
  9889. var len1 int64
  9890. var pid, v1 TPicture
  9891. var _ /* _BRdat at bp+0 */ TCARD64
  9892. _, _, _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1, p2, p3
  9893. info = XXRenderFindDisplay(tls, dpy)
  9894. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9895. return uint64(0)
  9896. }
  9897. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9898. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9899. }
  9900. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateConicalGradient), uint64(m_sz_xRenderCreateConicalGradientReq))
  9901. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9902. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateConicalGradient)
  9903. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9904. Fext_data uintptr
  9905. Fprivate1 uintptr
  9906. Ffd int32
  9907. Fprivate2 int32
  9908. Fproto_major_version int32
  9909. Fproto_minor_version int32
  9910. Fvendor uintptr
  9911. Fprivate3 TXID
  9912. Fprivate4 TXID
  9913. Fprivate5 TXID
  9914. Fprivate6 int32
  9915. Fresource_alloc uintptr
  9916. Fbyte_order int32
  9917. Fbitmap_unit int32
  9918. Fbitmap_pad int32
  9919. Fbitmap_bit_order int32
  9920. Fnformats int32
  9921. Fpixmap_format uintptr
  9922. Fprivate8 int32
  9923. Frelease int32
  9924. Fprivate9 uintptr
  9925. Fprivate10 uintptr
  9926. Fqlen int32
  9927. Flast_request_read uint64
  9928. Frequest uint64
  9929. Fprivate11 TXPointer
  9930. Fprivate12 TXPointer
  9931. Fprivate13 TXPointer
  9932. Fprivate14 TXPointer
  9933. Fmax_request_size uint32
  9934. Fdb uintptr
  9935. Fprivate15 uintptr
  9936. Fdisplay_name uintptr
  9937. Fdefault_screen int32
  9938. Fnscreens int32
  9939. Fscreens uintptr
  9940. Fmotion_buffer uint64
  9941. Fprivate16 uint64
  9942. Fmin_keycode int32
  9943. Fmax_keycode int32
  9944. Fprivate17 TXPointer
  9945. Fprivate18 TXPointer
  9946. Fprivate19 int32
  9947. Fxdefaults uintptr
  9948. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9949. pid = v1
  9950. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9951. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fx = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fx
  9952. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fy = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fy
  9953. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fangle = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fangle
  9954. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  9955. len1 = int64(nStops) * int64(3)
  9956. if libc.Int64FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9957. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9958. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) - int32(1))
  9959. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9960. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9961. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9962. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  9963. libx11.X_XData32(tls, dpy, bp, uint32(4))
  9964. } else {
  9965. len1 = int64(6)
  9966. p2 = req + 2
  9967. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  9968. }
  9969. } else {
  9970. p3 = req + 2
  9971. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9972. }
  9973. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9974. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  9975. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(4) + int32(3)) & ^libc.Int32FromInt32(3))
  9976. } else {
  9977. libx11.X_XSend(tls, dpy, stops, int64(nStops*int32(4)))
  9978. }
  9979. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9980. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  9981. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((nStops*int32(8) + int32(3)) & ^libc.Int32FromInt32(3))
  9982. } else {
  9983. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  9984. }
  9985. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9986. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9987. }
  9988. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9989. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9990. }
  9991. return pid
  9992. }
  9993. /*
  9994. * Xlib uses long for 32-bit values. Xrender uses int. This
  9995. * matters on alpha. Note that this macro assumes that int is 32 bits
  9996. * except on WORD64 machines where it is 64 bits.
  9997. */
  9998. type TEdge = struct {
  9999. Fedge TXLineFixed
  10000. Fcurrent_x TXFixed
  10001. FclockWise int32
  10002. Fnext uintptr
  10003. Fprev uintptr
  10004. }
  10005. /*
  10006. * Xlib uses long for 32-bit values. Xrender uses int. This
  10007. * matters on alpha. Note that this macro assumes that int is 32 bits
  10008. * except on WORD64 machines where it is 64 bits.
  10009. */
  10010. type T_Edge = TEdge
  10011. func _CompareEdge(tls *libc.TLS, o1 uintptr, o2 uintptr) (r int32) {
  10012. var e1, e2 uintptr
  10013. _, _ = e1, e2
  10014. e1 = o1
  10015. e2 = o2
  10016. return (*TEdge)(unsafe.Pointer(e1)).Fedge.Fp1.Fy - (*TEdge)(unsafe.Pointer(e2)).Fedge.Fp1.Fy
  10017. }
  10018. func _XRenderComputeX(tls *libc.TLS, line uintptr, y TXFixed) (r TXFixed) {
  10019. var dx, dy TXFixed
  10020. var ex float64
  10021. _, _, _ = dx, dy, ex
  10022. dx = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fx - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx
  10023. ex = float64(float64(y-(*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy) * float64(dx))
  10024. dy = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fy - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy
  10025. return (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx + int32(ex/float64(dy))
  10026. }
  10027. func _XRenderComputeInverseSlope(tls *libc.TLS, l uintptr) (r float64) {
  10028. 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))
  10029. }
  10030. func _XRenderComputeXIntercept(tls *libc.TLS, l uintptr, inverse_slope float64) (r float64) {
  10031. return float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fx)/libc.Float64FromInt32(65536) - TXDouble(inverse_slope*(float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fy)/libc.Float64FromInt32(65536)))
  10032. }
  10033. func _XRenderComputeIntersect(tls *libc.TLS, l1 uintptr, l2 uintptr) (r TXFixed) {
  10034. var b1, b2, m1, m2 float64
  10035. _, _, _, _ = b1, b2, m1, m2
  10036. /*
  10037. * x = m1y + b1
  10038. * x = m2y + b2
  10039. * m1y + b1 = m2y + b2
  10040. * y * (m1 - m2) = b2 - b1
  10041. * y = (b2 - b1) / (m1 - m2)
  10042. */
  10043. m1 = _XRenderComputeInverseSlope(tls, l1)
  10044. b1 = _XRenderComputeXIntercept(tls, l1, m1)
  10045. m2 = _XRenderComputeInverseSlope(tls, l2)
  10046. b2 = _XRenderComputeXIntercept(tls, l2, m2)
  10047. return int32(float64((b2 - b1) / (m1 - m2) * libc.Float64FromInt32(65536)))
  10048. }
  10049. func _XRenderComputeTrapezoids(tls *libc.TLS, edges uintptr, nedges int32, winding int32, traps uintptr) (r int32) {
  10050. var active, e, en, next, v6 uintptr
  10051. var inactive, ntraps int32
  10052. var intersect, next_y, y TXFixed
  10053. var v7 bool
  10054. _, _, _, _, _, _, _, _, _, _, _ = active, e, en, inactive, intersect, next, next_y, ntraps, y, v6, v7
  10055. ntraps = 0
  10056. libc.Xqsort(tls, edges, libc.Uint64FromInt32(nedges), uint64(40), __ccgo_fp(_CompareEdge))
  10057. y = (*(*TEdge)(unsafe.Pointer(edges))).Fedge.Fp1.Fy
  10058. active = libc.UintptrFromInt32(0)
  10059. inactive = 0
  10060. for active != 0 || inactive < nedges {
  10061. /* insert new active edges into list */
  10062. for inactive < nedges {
  10063. e = edges + uintptr(inactive)*40
  10064. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp1.Fy > y {
  10065. break
  10066. }
  10067. /* move this edge into the active list */
  10068. inactive++
  10069. (*TEdge)(unsafe.Pointer(e)).Fnext = active
  10070. (*TEdge)(unsafe.Pointer(e)).Fprev = libc.UintptrFromInt32(0)
  10071. if active != 0 {
  10072. (*TEdge)(unsafe.Pointer(active)).Fprev = e
  10073. }
  10074. active = e
  10075. }
  10076. /* compute x coordinates along this group */
  10077. e = active
  10078. for {
  10079. if !(e != 0) {
  10080. break
  10081. }
  10082. (*TEdge)(unsafe.Pointer(e)).Fcurrent_x = _XRenderComputeX(tls, e, y)
  10083. goto _1
  10084. _1:
  10085. ;
  10086. e = (*TEdge)(unsafe.Pointer(e)).Fnext
  10087. }
  10088. /* sort active list */
  10089. e = active
  10090. for {
  10091. if !(e != 0) {
  10092. break
  10093. }
  10094. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10095. /*
  10096. * Find one later in the list that belongs before the
  10097. * current one
  10098. */
  10099. en = next
  10100. for {
  10101. if !(en != 0) {
  10102. break
  10103. }
  10104. 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 {
  10105. /*
  10106. * insert en before e
  10107. *
  10108. * extract en
  10109. */
  10110. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(en)).Fnext
  10111. if (*TEdge)(unsafe.Pointer(en)).Fnext != 0 {
  10112. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(en)).Fprev
  10113. }
  10114. /*
  10115. * insert en
  10116. */
  10117. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10118. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = en
  10119. } else {
  10120. active = en
  10121. }
  10122. (*TEdge)(unsafe.Pointer(en)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10123. (*TEdge)(unsafe.Pointer(e)).Fprev = en
  10124. (*TEdge)(unsafe.Pointer(en)).Fnext = e
  10125. /*
  10126. * start over at en
  10127. */
  10128. next = en
  10129. break
  10130. }
  10131. goto _3
  10132. _3:
  10133. ;
  10134. en = (*TEdge)(unsafe.Pointer(en)).Fnext
  10135. }
  10136. goto _2
  10137. _2:
  10138. ;
  10139. e = next
  10140. }
  10141. /* find next inflection point */
  10142. next_y = (*TEdge)(unsafe.Pointer(active)).Fedge.Fp2.Fy
  10143. e = active
  10144. for {
  10145. if !(e != 0) {
  10146. break
  10147. }
  10148. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy < next_y {
  10149. next_y = (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy
  10150. }
  10151. en = (*TEdge)(unsafe.Pointer(e)).Fnext
  10152. /* check intersect */
  10153. if en != 0 && (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fx > (*TEdge)(unsafe.Pointer(en)).Fedge.Fp2.Fx {
  10154. intersect = _XRenderComputeIntersect(tls, e, (*TEdge)(unsafe.Pointer(e)).Fnext)
  10155. /* make sure this point is below the actual intersection */
  10156. intersect = intersect + int32(1)
  10157. if intersect < next_y {
  10158. next_y = intersect
  10159. }
  10160. }
  10161. goto _4
  10162. _4:
  10163. ;
  10164. e = en
  10165. }
  10166. /* check next inactive point */
  10167. if inactive < nedges && (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy < next_y {
  10168. next_y = (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy
  10169. }
  10170. /* walk the list generating trapezoids */
  10171. e = active
  10172. for {
  10173. if v7 = e != 0; v7 {
  10174. v6 = (*TEdge)(unsafe.Pointer(e)).Fnext
  10175. en = v6
  10176. }
  10177. if !(v7 && v6 != 0) {
  10178. break
  10179. }
  10180. (*TXTrapezoid)(unsafe.Pointer(traps)).Ftop = y
  10181. (*TXTrapezoid)(unsafe.Pointer(traps)).Fbottom = next_y
  10182. (*TXTrapezoid)(unsafe.Pointer(traps)).Fleft = (*TEdge)(unsafe.Pointer(e)).Fedge
  10183. (*TXTrapezoid)(unsafe.Pointer(traps)).Fright = (*TEdge)(unsafe.Pointer(en)).Fedge
  10184. traps += 40
  10185. ntraps++
  10186. goto _5
  10187. _5:
  10188. ;
  10189. e = (*TEdge)(unsafe.Pointer(en)).Fnext
  10190. }
  10191. y = next_y
  10192. /* delete inactive edges from list */
  10193. e = active
  10194. for {
  10195. if !(e != 0) {
  10196. break
  10197. }
  10198. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10199. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy <= y {
  10200. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10201. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(e)).Fnext
  10202. } else {
  10203. active = (*TEdge)(unsafe.Pointer(e)).Fnext
  10204. }
  10205. if (*TEdge)(unsafe.Pointer(e)).Fnext != 0 {
  10206. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10207. }
  10208. }
  10209. goto _8
  10210. _8:
  10211. ;
  10212. e = next
  10213. }
  10214. }
  10215. return ntraps
  10216. }
  10217. 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) {
  10218. var bottom, firstx, firsty, prevx, prevy, top, x, y TXFixed
  10219. var edges, traps uintptr
  10220. var i, nedges, ntraps int32
  10221. var v1 uint64
  10222. _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, edges, firstx, firsty, i, nedges, ntraps, prevx, prevy, top, traps, x, y, v1
  10223. prevx = 0
  10224. prevy = 0
  10225. firstx = 0
  10226. firsty = 0
  10227. top = 0
  10228. bottom = 0 /* GCCism */
  10229. if libc.Uint64FromInt32(npoints)*uint64(40)+libc.Uint64FromInt32(npoints*npoints)*uint64(40) == uint64(0) {
  10230. v1 = uint64(1)
  10231. } else {
  10232. v1 = libc.Uint64FromInt32(npoints)*uint64(40) + libc.Uint64FromInt32(npoints*npoints)*uint64(40)
  10233. }
  10234. edges = libc.Xmalloc(tls, v1)
  10235. if !(edges != 0) {
  10236. return
  10237. }
  10238. traps = edges + uintptr(npoints)*40
  10239. nedges = 0
  10240. i = 0
  10241. for {
  10242. if !(i <= npoints) {
  10243. break
  10244. }
  10245. if i == npoints {
  10246. x = firstx
  10247. y = firsty
  10248. } else {
  10249. x = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fx * libc.Float64FromInt32(65536)))
  10250. y = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fy * libc.Float64FromInt32(65536)))
  10251. }
  10252. if i != 0 {
  10253. if y < top {
  10254. top = y
  10255. } else {
  10256. if y > bottom {
  10257. bottom = y
  10258. }
  10259. }
  10260. if prevy < y {
  10261. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = prevx
  10262. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = prevy
  10263. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = x
  10264. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = y
  10265. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = int32(m_True)
  10266. nedges++
  10267. } else {
  10268. if prevy > y {
  10269. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = x
  10270. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = y
  10271. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = prevx
  10272. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = prevy
  10273. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = m_False
  10274. nedges++
  10275. }
  10276. }
  10277. /* drop horizontal edges */
  10278. } else {
  10279. top = y
  10280. bottom = y
  10281. firstx = x
  10282. firsty = y
  10283. }
  10284. prevx = x
  10285. prevy = y
  10286. goto _2
  10287. _2:
  10288. ;
  10289. i++
  10290. }
  10291. ntraps = _XRenderComputeTrapezoids(tls, edges, nedges, winding, traps)
  10292. /* XXX adjust xSrc/xDst */
  10293. XXRenderCompositeTrapezoids(tls, dpy, op, src, dst, maskFormat, xSrc, ySrc, traps, ntraps)
  10294. libc.Xfree(tls, edges)
  10295. }
  10296. /*
  10297. * Xlib uses long for 32-bit values. Xrender uses int. This
  10298. * matters on alpha. Note that this macro assumes that int is 32 bits
  10299. * except on WORD64 machines where it is 64 bits.
  10300. */
  10301. func XXRenderCompositeTrapezoids(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, traps uintptr, ntrap int32) {
  10302. bp := tls.Alloc(16)
  10303. defer tls.Free(16)
  10304. var _BRlen TCARD32
  10305. var info, req, p3, p4 uintptr
  10306. var len1 int64
  10307. var max_req, v1, v2 uint64
  10308. var n int32
  10309. var _ /* _BRdat at bp+0 */ TCARD64
  10310. _, _, _, _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1, v2, p3, p4
  10311. info = XXRenderFindDisplay(tls, dpy)
  10312. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10313. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  10314. } else {
  10315. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  10316. }
  10317. max_req = v1
  10318. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10319. return
  10320. }
  10321. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10322. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10323. }
  10324. for ntrap != 0 {
  10325. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTrapezoids), uint64(m_sz_xRenderTrapezoidsReq))
  10326. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10327. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTrapezoids)
  10328. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10329. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10330. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10331. if maskFormat != 0 {
  10332. v2 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10333. } else {
  10334. v2 = uint64(0)
  10335. }
  10336. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v2)
  10337. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10338. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10339. n = ntrap
  10340. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10341. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) {
  10342. n = libc.Int32FromUint64((max_req - uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2)))
  10343. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10344. }
  10345. if libc.Int64FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10346. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10347. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10348. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10349. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10350. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10351. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10352. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10353. } else {
  10354. len1 = len1
  10355. p3 = req + 2
  10356. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10357. }
  10358. } else {
  10359. p4 = req + 2
  10360. *(*TCARD16)(unsafe.Pointer(p4)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p4))) + len1)
  10361. }
  10362. len1 <<= int64(2)
  10363. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10364. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt32(int32(len1)))
  10365. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10366. } else {
  10367. libx11.X_XSend(tls, dpy, traps, len1)
  10368. }
  10369. ntrap -= n
  10370. traps += uintptr(n) * 40
  10371. }
  10372. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10373. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10374. }
  10375. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10376. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10377. }
  10378. }
  10379. /*
  10380. * Xlib uses long for 32-bit values. Xrender uses int. This
  10381. * matters on alpha. Note that this macro assumes that int is 32 bits
  10382. * except on WORD64 machines where it is 64 bits.
  10383. */
  10384. func XXRenderCompositeTriangles(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, triangles uintptr, ntriangle int32) {
  10385. bp := tls.Alloc(16)
  10386. defer tls.Free(16)
  10387. var _BRlen TCARD32
  10388. var info, req, p2, p3 uintptr
  10389. var len1 int64
  10390. var n int32
  10391. var v1 uint64
  10392. var _ /* _BRdat at bp+0 */ TCARD64
  10393. _, _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1, p2, p3
  10394. info = XXRenderFindDisplay(tls, dpy)
  10395. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10396. return
  10397. }
  10398. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10399. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10400. }
  10401. for ntriangle != 0 {
  10402. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriangles), uint64(m_sz_xRenderTrianglesReq))
  10403. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10404. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriangles)
  10405. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10406. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10407. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10408. if maskFormat != 0 {
  10409. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10410. } else {
  10411. v1 = uint64(0)
  10412. }
  10413. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10414. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10415. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10416. n = ntriangle
  10417. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10418. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) {
  10419. 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)))
  10420. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10421. }
  10422. if libc.Int64FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10423. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10424. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10425. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10426. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10427. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10428. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10429. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10430. } else {
  10431. len1 = len1
  10432. p2 = req + 2
  10433. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10434. }
  10435. } else {
  10436. p3 = req + 2
  10437. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10438. }
  10439. len1 <<= int64(2)
  10440. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10441. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, triangles, libc.Uint64FromInt32(int32(len1)))
  10442. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10443. } else {
  10444. libx11.X_XSend(tls, dpy, triangles, len1)
  10445. }
  10446. ntriangle -= n
  10447. triangles += uintptr(n) * 24
  10448. }
  10449. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10450. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10451. }
  10452. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10453. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10454. }
  10455. }
  10456. func XXRenderCompositeTriStrip(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10457. bp := tls.Alloc(16)
  10458. defer tls.Free(16)
  10459. var _BRlen TCARD32
  10460. var info, req, p2, p3 uintptr
  10461. var len1 int64
  10462. var n int32
  10463. var v1 uint64
  10464. var _ /* _BRdat at bp+0 */ TCARD64
  10465. _, _, _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1, p2, p3
  10466. info = XXRenderFindDisplay(tls, dpy)
  10467. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10468. return
  10469. }
  10470. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10471. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10472. }
  10473. for npoint > int32(2) {
  10474. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriStrip), uint64(m_sz_xRenderTriStripReq))
  10475. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10476. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriStrip)
  10477. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10478. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10479. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10480. if maskFormat != 0 {
  10481. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10482. } else {
  10483. v1 = uint64(0)
  10484. }
  10485. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10486. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10487. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10488. n = npoint
  10489. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10490. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)) {
  10491. 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)))
  10492. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10493. }
  10494. if libc.Int64FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10495. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10496. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10497. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10498. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10499. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10500. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10501. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10502. } else {
  10503. len1 = len1
  10504. p2 = req + 2
  10505. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10506. }
  10507. } else {
  10508. p3 = req + 2
  10509. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10510. }
  10511. len1 <<= int64(2)
  10512. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10513. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt32(int32(len1)))
  10514. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10515. } else {
  10516. libx11.X_XSend(tls, dpy, points, len1)
  10517. }
  10518. npoint -= n - int32(2)
  10519. points += uintptr(n-libc.Int32FromInt32(2)) * 8
  10520. }
  10521. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10522. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10523. }
  10524. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10525. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10526. }
  10527. }
  10528. func XXRenderCompositeTriFan(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10529. bp := tls.Alloc(16)
  10530. defer tls.Free(16)
  10531. var _BRlen TCARD32
  10532. var first, info, p, req, p2, p3 uintptr
  10533. var len1 int64
  10534. var n int32
  10535. var v1 uint64
  10536. var _ /* _BRdat at bp+0 */ TCARD64
  10537. _, _, _, _, _, _, _, _, _, _ = _BRlen, first, info, len1, n, p, req, v1, p2, p3
  10538. info = XXRenderFindDisplay(tls, dpy)
  10539. first = points
  10540. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10541. return
  10542. }
  10543. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10544. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10545. }
  10546. points += 8
  10547. npoint--
  10548. for npoint > int32(1) {
  10549. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriFan), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderTriFanReq)+libc.Int32FromInt32(m_sz_xPointFixed)))
  10550. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10551. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriFan)
  10552. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10553. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10554. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10555. if maskFormat != 0 {
  10556. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10557. } else {
  10558. v1 = uint64(0)
  10559. }
  10560. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10561. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10562. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10563. p = req + libc.UintptrFromInt32(1)*24
  10564. (*TxPointFixed)(unsafe.Pointer(p)).Fx = (*TXPointFixed)(unsafe.Pointer(first)).Fx
  10565. (*TxPointFixed)(unsafe.Pointer(p)).Fy = (*TXPointFixed)(unsafe.Pointer(first)).Fy
  10566. n = npoint
  10567. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10568. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)) {
  10569. 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)))
  10570. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10571. }
  10572. if libc.Int64FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10573. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10574. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength) - int32(1))
  10575. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10576. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10577. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10578. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = libc.Uint32FromInt64(libc.Int64FromUint32(_BRlen) + len1 + int64(2))
  10579. libx11.X_XData32(tls, dpy, bp, uint32(4))
  10580. } else {
  10581. len1 = len1
  10582. p2 = req + 2
  10583. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + len1)
  10584. }
  10585. } else {
  10586. p3 = req + 2
  10587. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  10588. }
  10589. len1 <<= int64(2)
  10590. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10591. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt32(int32(len1)))
  10592. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr((len1 + int64(3)) & int64(^libc.Int32FromInt32(3)))
  10593. } else {
  10594. libx11.X_XSend(tls, dpy, points, len1)
  10595. }
  10596. npoint -= n - int32(1)
  10597. points += uintptr(n-libc.Int32FromInt32(1)) * 8
  10598. }
  10599. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10600. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10601. }
  10602. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10603. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10604. }
  10605. }
  10606. // C documentation
  10607. //
  10608. // /*
  10609. // * XRenderExtFindDisplay - look for a display in this extension; keeps a
  10610. // * cache of the most-recently used for efficiency. (Replaces
  10611. // * XextFindDisplay.)
  10612. // */
  10613. func _XRenderExtFindDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r uintptr) {
  10614. var dpyinfo, v1 uintptr
  10615. _, _ = dpyinfo, v1
  10616. /*
  10617. * see if this was the most recently accessed display
  10618. */
  10619. v1 = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur
  10620. dpyinfo = v1
  10621. if v1 != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  10622. return dpyinfo
  10623. }
  10624. /*
  10625. * look for display in list
  10626. */
  10627. if libx11.X_XLockMutex_fn != 0 {
  10628. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10629. }
  10630. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  10631. for {
  10632. if !(dpyinfo != 0) {
  10633. break
  10634. }
  10635. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  10636. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo /* cache most recently used */
  10637. if libx11.X_XUnlockMutex_fn != 0 {
  10638. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10639. }
  10640. return dpyinfo
  10641. }
  10642. goto _2
  10643. _2:
  10644. ;
  10645. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  10646. }
  10647. if libx11.X_XUnlockMutex_fn != 0 {
  10648. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10649. }
  10650. return libc.UintptrFromInt32(0)
  10651. }
  10652. /*
  10653. * If the server is missing support for any of the required depths on
  10654. * any screen, tell the application that Render is not present.
  10655. */
  10656. /*
  10657. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  10658. */
  10659. type TDepthCheckRec = struct {
  10660. Fnext uintptr
  10661. Fdpy uintptr
  10662. Fmissing TCARD32
  10663. Fserial uint64
  10664. }
  10665. /*
  10666. * If the server is missing support for any of the required depths on
  10667. * any screen, tell the application that Render is not present.
  10668. */
  10669. /*
  10670. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  10671. */
  10672. type T_DepthCheckRec = TDepthCheckRec
  10673. type TDepthCheckPtr = uintptr
  10674. var _depthChecks TDepthCheckPtr
  10675. func _XRenderDepthCheckErrorHandler(tls *libc.TLS, dpy uintptr, evt uintptr) (r int32) {
  10676. var d TDepthCheckPtr
  10677. _ = d
  10678. if libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Frequest_code) == int32(m_X_CreatePixmap) && libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Ferror_code) == int32(m_BadValue) {
  10679. if libx11.X_XLockMutex_fn != 0 {
  10680. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10681. }
  10682. d = _depthChecks
  10683. for {
  10684. if !(d != 0) {
  10685. break
  10686. }
  10687. if (*T_DepthCheckRec)(unsafe.Pointer(d)).Fdpy == dpy {
  10688. if libc.Int64FromUint64((*TXErrorEvent)(unsafe.Pointer(evt)).Fserial-(*T_DepthCheckRec)(unsafe.Pointer(d)).Fserial) >= 0 {
  10689. *(*TCARD32)(unsafe.Pointer(d + 16)) |= uint32(1) << ((*TXErrorEvent)(unsafe.Pointer(evt)).Fresourceid - uint64(1))
  10690. }
  10691. break
  10692. }
  10693. goto _1
  10694. _1:
  10695. ;
  10696. d = (*T_DepthCheckRec)(unsafe.Pointer(d)).Fnext
  10697. }
  10698. if libx11.X_XUnlockMutex_fn != 0 {
  10699. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10700. }
  10701. }
  10702. return 0
  10703. }
  10704. func _XRenderHasDepths(tls *libc.TLS, dpy uintptr) (r int32) {
  10705. bp := tls.Alloc(32)
  10706. defer tls.Free(32)
  10707. var d, s int32
  10708. var depths, missing TCARD32
  10709. var dp, scr uintptr
  10710. var p TPixmap
  10711. var previousHandler TXErrorHandler
  10712. var _ /* dc at bp+0 */ TDepthCheckRec
  10713. _, _, _, _, _, _, _, _ = d, depths, dp, missing, p, previousHandler, s, scr
  10714. s = 0
  10715. for {
  10716. if !(s < (*struct {
  10717. Fext_data uintptr
  10718. Fprivate1 uintptr
  10719. Ffd int32
  10720. Fprivate2 int32
  10721. Fproto_major_version int32
  10722. Fproto_minor_version int32
  10723. Fvendor uintptr
  10724. Fprivate3 TXID
  10725. Fprivate4 TXID
  10726. Fprivate5 TXID
  10727. Fprivate6 int32
  10728. Fresource_alloc uintptr
  10729. Fbyte_order int32
  10730. Fbitmap_unit int32
  10731. Fbitmap_pad int32
  10732. Fbitmap_bit_order int32
  10733. Fnformats int32
  10734. Fpixmap_format uintptr
  10735. Fprivate8 int32
  10736. Frelease int32
  10737. Fprivate9 uintptr
  10738. Fprivate10 uintptr
  10739. Fqlen int32
  10740. Flast_request_read uint64
  10741. Frequest uint64
  10742. Fprivate11 TXPointer
  10743. Fprivate12 TXPointer
  10744. Fprivate13 TXPointer
  10745. Fprivate14 TXPointer
  10746. Fmax_request_size uint32
  10747. Fdb uintptr
  10748. Fprivate15 uintptr
  10749. Fdisplay_name uintptr
  10750. Fdefault_screen int32
  10751. Fnscreens int32
  10752. Fscreens uintptr
  10753. Fmotion_buffer uint64
  10754. Fprivate16 uint64
  10755. Fmin_keycode int32
  10756. Fmax_keycode int32
  10757. Fprivate17 TXPointer
  10758. Fprivate18 TXPointer
  10759. Fprivate19 int32
  10760. Fxdefaults uintptr
  10761. })(unsafe.Pointer(dpy)).Fnscreens) {
  10762. break
  10763. }
  10764. depths = uint32(0)
  10765. scr = (*struct {
  10766. Fext_data uintptr
  10767. Fprivate1 uintptr
  10768. Ffd int32
  10769. Fprivate2 int32
  10770. Fproto_major_version int32
  10771. Fproto_minor_version int32
  10772. Fvendor uintptr
  10773. Fprivate3 TXID
  10774. Fprivate4 TXID
  10775. Fprivate5 TXID
  10776. Fprivate6 int32
  10777. Fresource_alloc uintptr
  10778. Fbyte_order int32
  10779. Fbitmap_unit int32
  10780. Fbitmap_pad int32
  10781. Fbitmap_bit_order int32
  10782. Fnformats int32
  10783. Fpixmap_format uintptr
  10784. Fprivate8 int32
  10785. Frelease int32
  10786. Fprivate9 uintptr
  10787. Fprivate10 uintptr
  10788. Fqlen int32
  10789. Flast_request_read uint64
  10790. Frequest uint64
  10791. Fprivate11 TXPointer
  10792. Fprivate12 TXPointer
  10793. Fprivate13 TXPointer
  10794. Fprivate14 TXPointer
  10795. Fmax_request_size uint32
  10796. Fdb uintptr
  10797. Fprivate15 uintptr
  10798. Fdisplay_name uintptr
  10799. Fdefault_screen int32
  10800. Fnscreens int32
  10801. Fscreens uintptr
  10802. Fmotion_buffer uint64
  10803. Fprivate16 uint64
  10804. Fmin_keycode int32
  10805. Fmax_keycode int32
  10806. Fprivate17 TXPointer
  10807. Fprivate18 TXPointer
  10808. Fprivate19 int32
  10809. Fxdefaults uintptr
  10810. })(unsafe.Pointer(dpy)).Fscreens + uintptr(s)*128
  10811. d = 0
  10812. for {
  10813. if !(d < (*TScreen)(unsafe.Pointer(scr)).Fndepths) {
  10814. break
  10815. }
  10816. depths |= uint32(1) << ((*(*TDepth)(unsafe.Pointer((*TScreen)(unsafe.Pointer(scr)).Fdepths + uintptr(d)*16))).Fdepth - int32(1))
  10817. goto _2
  10818. _2:
  10819. ;
  10820. d++
  10821. }
  10822. 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)))
  10823. if missing != 0 {
  10824. /*
  10825. * Ok, this is ugly. It should be sufficient at this
  10826. * point to just return False, but Xinerama is broken at
  10827. * this point and only advertises depths which have an
  10828. * associated visual. Of course, the other depths still
  10829. * work, but the only way to find out is to try them.
  10830. */
  10831. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fdpy = dpy
  10832. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing = uint32(0)
  10833. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fserial = libx11.XXNextRequest(tls, dpy)
  10834. if libx11.X_XLockMutex_fn != 0 {
  10835. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10836. }
  10837. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext = _depthChecks
  10838. _depthChecks = bp
  10839. if libx11.X_XUnlockMutex_fn != 0 {
  10840. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10841. }
  10842. /*
  10843. * I suspect this is not really thread safe, but Xlib doesn't
  10844. * provide a lot of options here
  10845. */
  10846. previousHandler = libx11.XXSetErrorHandler(tls, __ccgo_fp(_XRenderDepthCheckErrorHandler))
  10847. /*
  10848. * Try each missing depth and see if pixmap creation succeeds
  10849. */
  10850. d = int32(1)
  10851. for {
  10852. if !(d <= int32(32)) {
  10853. break
  10854. }
  10855. /* don't check depth 1 == Xcursor recurses... */
  10856. if missing&(uint32(1)<<(d-int32(1))) != 0 && d != int32(1) {
  10857. p = libx11.XXCreatePixmap(tls, dpy, (*TScreen)(unsafe.Pointer((*struct {
  10858. Fext_data uintptr
  10859. Fprivate1 uintptr
  10860. Ffd int32
  10861. Fprivate2 int32
  10862. Fproto_major_version int32
  10863. Fproto_minor_version int32
  10864. Fvendor uintptr
  10865. Fprivate3 TXID
  10866. Fprivate4 TXID
  10867. Fprivate5 TXID
  10868. Fprivate6 int32
  10869. Fresource_alloc uintptr
  10870. Fbyte_order int32
  10871. Fbitmap_unit int32
  10872. Fbitmap_pad int32
  10873. Fbitmap_bit_order int32
  10874. Fnformats int32
  10875. Fpixmap_format uintptr
  10876. Fprivate8 int32
  10877. Frelease int32
  10878. Fprivate9 uintptr
  10879. Fprivate10 uintptr
  10880. Fqlen int32
  10881. Flast_request_read uint64
  10882. Frequest uint64
  10883. Fprivate11 TXPointer
  10884. Fprivate12 TXPointer
  10885. Fprivate13 TXPointer
  10886. Fprivate14 TXPointer
  10887. Fmax_request_size uint32
  10888. Fdb uintptr
  10889. Fprivate15 uintptr
  10890. Fdisplay_name uintptr
  10891. Fdefault_screen int32
  10892. Fnscreens int32
  10893. Fscreens uintptr
  10894. Fmotion_buffer uint64
  10895. Fprivate16 uint64
  10896. Fmin_keycode int32
  10897. Fmax_keycode int32
  10898. Fprivate17 TXPointer
  10899. Fprivate18 TXPointer
  10900. Fprivate19 int32
  10901. Fxdefaults uintptr
  10902. })(unsafe.Pointer(dpy)).Fscreens+uintptr(s)*128)).Froot, uint32(1), uint32(1), libc.Uint32FromInt32(d))
  10903. libx11.XXFreePixmap(tls, dpy, p)
  10904. }
  10905. goto _3
  10906. _3:
  10907. ;
  10908. d++
  10909. }
  10910. libx11.XXSync(tls, dpy, m_False)
  10911. libx11.XXSetErrorHandler(tls, previousHandler)
  10912. /*
  10913. * Unhook from the list of depth check records
  10914. */
  10915. if libx11.X_XLockMutex_fn != 0 {
  10916. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10917. }
  10918. dp = uintptr(unsafe.Pointer(&_depthChecks))
  10919. for {
  10920. if !(*(*uintptr)(unsafe.Pointer(dp)) != 0) {
  10921. break
  10922. }
  10923. if *(*uintptr)(unsafe.Pointer(dp)) == bp {
  10924. *(*uintptr)(unsafe.Pointer(dp)) = (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext
  10925. break
  10926. }
  10927. goto _4
  10928. _4:
  10929. ;
  10930. dp = *(*uintptr)(unsafe.Pointer(dp))
  10931. }
  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. if (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing != 0 {
  10936. return m_False
  10937. }
  10938. }
  10939. goto _1
  10940. _1:
  10941. ;
  10942. s++
  10943. }
  10944. return int32(m_True)
  10945. }
  10946. // C documentation
  10947. //
  10948. // /*
  10949. // * XRenderExtAddDisplay - add a display to this extension. (Replaces
  10950. // * XextAddDisplay)
  10951. // */
  10952. func _XRenderExtAddDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr, ext_name uintptr) (r uintptr) {
  10953. var codes, dpyinfo uintptr
  10954. _, _ = codes, dpyinfo
  10955. dpyinfo = libc.Xmalloc(tls, libc.Uint64FromInt64(32))
  10956. if !(dpyinfo != 0) {
  10957. return libc.UintptrFromInt32(0)
  10958. }
  10959. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay = dpy
  10960. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Finfo = libc.UintptrFromInt32(0)
  10961. if _XRenderHasDepths(tls, dpy) != 0 {
  10962. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libx11.XXInitExtension(tls, dpy, ext_name)
  10963. } else {
  10964. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libc.UintptrFromInt32(0)
  10965. }
  10966. /*
  10967. * if the server has the extension, then we can initialize the
  10968. * appropriate function vectors
  10969. */
  10970. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes != 0 {
  10971. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  10972. } else {
  10973. /* The server doesn't have this extension.
  10974. * Use a private Xlib-internal extension to hang the close_display
  10975. * hook on so that the "cache" (extinfo->cur) is properly cleaned.
  10976. * (XBUG 7955)
  10977. */
  10978. codes = libx11.XXAddExtension(tls, dpy)
  10979. if !(codes != 0) {
  10980. libx11.XXFree(tls, dpyinfo)
  10981. return libc.UintptrFromInt32(0)
  10982. }
  10983. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer(codes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  10984. }
  10985. /*
  10986. * now, chain it onto the list
  10987. */
  10988. if libx11.X_XLockMutex_fn != 0 {
  10989. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10990. }
  10991. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  10992. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = dpyinfo
  10993. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo
  10994. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays++
  10995. if libx11.X_XUnlockMutex_fn != 0 {
  10996. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  10997. }
  10998. return dpyinfo
  10999. }
  11000. // C documentation
  11001. //
  11002. // /*
  11003. // * XRenderExtRemoveDisplay - remove the indicated display from the
  11004. // * extension object. (Replaces XextRemoveDisplay.)
  11005. // */
  11006. func _XRenderExtRemoveDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r int32) {
  11007. var dpyinfo, prev uintptr
  11008. _, _ = dpyinfo, prev
  11009. /*
  11010. * locate this display and its back link so that it can be removed
  11011. */
  11012. if libx11.X_XLockMutex_fn != 0 {
  11013. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11014. }
  11015. prev = libc.UintptrFromInt32(0)
  11016. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  11017. for {
  11018. if !(dpyinfo != 0) {
  11019. break
  11020. }
  11021. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  11022. break
  11023. }
  11024. prev = dpyinfo
  11025. goto _1
  11026. _1:
  11027. ;
  11028. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11029. }
  11030. if !(dpyinfo != 0) {
  11031. if libx11.X_XUnlockMutex_fn != 0 {
  11032. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11033. }
  11034. return 0 /* hmm, actually an error */
  11035. }
  11036. /*
  11037. * remove the display from the list; handles going to zero
  11038. */
  11039. if prev != 0 {
  11040. (*TXRenderExtDisplayInfo)(unsafe.Pointer(prev)).Fnext = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11041. } else {
  11042. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11043. }
  11044. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays--
  11045. if dpyinfo == (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur {
  11046. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = libc.UintptrFromInt32(0)
  11047. } /* flush cache */
  11048. if libx11.X_XUnlockMutex_fn != 0 {
  11049. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11050. }
  11051. libc.Xfree(tls, dpyinfo)
  11052. return int32(1)
  11053. }
  11054. func XXRenderFindDisplay(tls *libc.TLS, dpy uintptr) (r uintptr) {
  11055. var dpyinfo uintptr
  11056. _ = dpyinfo
  11057. dpyinfo = _XRenderExtFindDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  11058. if !(dpyinfo != 0) {
  11059. dpyinfo = _XRenderExtAddDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy, uintptr(unsafe.Pointer(&XXRenderExtensionName)))
  11060. }
  11061. return dpyinfo
  11062. }
  11063. func _XRenderCloseDisplay(tls *libc.TLS, dpy uintptr, codes uintptr) (r int32) {
  11064. var info uintptr
  11065. _ = info
  11066. info = XXRenderFindDisplay(tls, dpy)
  11067. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11068. libx11.XXFree(tls, (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo)
  11069. }
  11070. return _XRenderExtRemoveDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  11071. }
  11072. /****************************************************************************
  11073. * *
  11074. * Render public interfaces *
  11075. * *
  11076. ****************************************************************************/
  11077. func XXRenderQueryExtension(tls *libc.TLS, dpy uintptr, event_basep uintptr, error_basep uintptr) (r int32) {
  11078. var info uintptr
  11079. _ = info
  11080. info = XXRenderFindDisplay(tls, dpy)
  11081. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0 {
  11082. *(*int32)(unsafe.Pointer(event_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_event
  11083. *(*int32)(unsafe.Pointer(error_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_error
  11084. return int32(m_True)
  11085. } else {
  11086. return m_False
  11087. }
  11088. return r
  11089. }
  11090. func XXRenderQueryVersion(tls *libc.TLS, dpy uintptr, major_versionp uintptr, minor_versionp uintptr) (r int32) {
  11091. var info, xri uintptr
  11092. _, _ = info, xri
  11093. info = XXRenderFindDisplay(tls, dpy)
  11094. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11095. return 0
  11096. }
  11097. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11098. return 0
  11099. }
  11100. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11101. *(*int32)(unsafe.Pointer(major_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version
  11102. *(*int32)(unsafe.Pointer(minor_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version
  11103. return int32(1)
  11104. }
  11105. func __XRenderFindFormat(tls *libc.TLS, xri uintptr, format TPictFormat) (r uintptr) {
  11106. var nf int32
  11107. _ = nf
  11108. nf = 0
  11109. for {
  11110. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11111. break
  11112. }
  11113. if (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid == format {
  11114. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11115. }
  11116. goto _1
  11117. _1:
  11118. ;
  11119. nf++
  11120. }
  11121. return libc.UintptrFromInt32(0)
  11122. }
  11123. func __XRenderFindVisual(tls *libc.TLS, dpy uintptr, vid TVisualID) (r uintptr) {
  11124. return libx11.X_XVIDtoVisual(tls, dpy, vid)
  11125. }
  11126. type T_XrenderVersionState = struct {
  11127. Fversion_seq uint64
  11128. Ferror1 int32
  11129. Fmajor_version int32
  11130. Fminor_version int32
  11131. }
  11132. type T_renderVersionState = T_XrenderVersionState
  11133. func __XRenderVersionHandler(tls *libc.TLS, dpy uintptr, rep uintptr, buf uintptr, len1 int32, data TXPointer) (r int32) {
  11134. bp := tls.Alloc(32)
  11135. defer tls.Free(32)
  11136. var repl, state uintptr
  11137. var _ /* replbuf at bp+0 */ TxRenderQueryVersionReply
  11138. _, _ = repl, state
  11139. state = data
  11140. if (*TDisplay)(unsafe.Pointer(dpy)).Flast_request_read != (*T_XrenderVersionState)(unsafe.Pointer(state)).Fversion_seq {
  11141. return m_False
  11142. }
  11143. if libc.Int32FromUint8((*TxReply)(unsafe.Pointer(rep)).Fgeneric.Ftype1) == m_X_Error {
  11144. (*T_XrenderVersionState)(unsafe.Pointer(state)).Ferror1 = int32(m_True)
  11145. return m_False
  11146. }
  11147. 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))
  11148. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fmajor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FmajorVersion)
  11149. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fminor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FminorVersion)
  11150. return int32(m_True)
  11151. }
  11152. func XXRenderQueryFormats(tls *libc.TLS, dpy uintptr) (r int32) {
  11153. bp := tls.Alloc(80)
  11154. defer tls.Free(80)
  11155. var depth, format, info, req, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri uintptr
  11156. var nbytes, rlength, v1, v2, v3 uint64
  11157. var nd, nf, ns, nv int32
  11158. var _ /* async at bp+0 */ T_XAsyncHandler
  11159. var _ /* async_state at bp+24 */ T_XrenderVersionState
  11160. var _ /* rep at bp+48 */ TxRenderQueryPictFormatsReply
  11161. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = depth, format, info, nbytes, nd, nf, ns, nv, req, rlength, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri, v1, v2, v3
  11162. info = XXRenderFindDisplay(tls, dpy)
  11163. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11164. return 0
  11165. }
  11166. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11167. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  11168. }
  11169. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11170. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11171. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11172. }
  11173. return int32(1)
  11174. }
  11175. vreq = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryVersion), uint64(m_sz_xRenderQueryVersionReq))
  11176. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11177. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FrenderReqType = uint8(m_X_RenderQueryVersion)
  11178. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FmajorVersion = uint32(m_RENDER_MAJOR)
  11179. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FminorVersion = uint32(m_RENDER_MINOR)
  11180. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fversion_seq = (*TDisplay)(unsafe.Pointer(dpy)).Frequest
  11181. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 = m_False
  11182. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fnext = (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers
  11183. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fhandler = __ccgo_fp(__XRenderVersionHandler)
  11184. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fdata = bp + 24
  11185. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = bp
  11186. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictFormats), uint64(m_sz_xRenderQueryPictFormatsReq))
  11187. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11188. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictFormats)
  11189. if !(libx11.X_XReply(tls, dpy, bp+48, 0, m_xFalse) != 0) {
  11190. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11191. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11192. } else {
  11193. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11194. }
  11195. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11196. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11197. }
  11198. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11199. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11200. }
  11201. return 0
  11202. }
  11203. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11204. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11205. } else {
  11206. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11207. }
  11208. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 != 0 {
  11209. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11210. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11211. }
  11212. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11213. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11214. }
  11215. return 0
  11216. }
  11217. /*
  11218. * Check for the lack of sub-pixel data
  11219. */
  11220. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version == 0 && (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version < int32(6) {
  11221. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel = uint32(0)
  11222. }
  11223. 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)) {
  11224. 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) {
  11225. v1 = uint64(1)
  11226. } else {
  11227. 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)
  11228. }
  11229. xri = libc.Xmalloc(tls, v1)
  11230. 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))
  11231. if rlength == uint64(0) {
  11232. v2 = uint64(1)
  11233. } else {
  11234. v2 = rlength
  11235. }
  11236. xData = libc.Xmalloc(tls, v2)
  11237. nbytes = uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength) << int32(2)
  11238. } else {
  11239. xri = libc.UintptrFromInt32(0)
  11240. xData = libc.UintptrFromInt32(0)
  11241. v3 = libc.Uint64FromInt32(0)
  11242. nbytes = v3
  11243. rlength = v3
  11244. }
  11245. if !(xri != 0) || !(xData != 0) || nbytes < rlength {
  11246. if xri != 0 {
  11247. libc.Xfree(tls, xri)
  11248. }
  11249. if xData != 0 {
  11250. libc.Xfree(tls, xData)
  11251. }
  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. (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version
  11262. (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version
  11263. (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat = xri + libc.UintptrFromInt32(1)*120
  11264. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)
  11265. (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*40
  11266. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)
  11267. (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*32
  11268. (*TXRenderInfo)(unsafe.Pointer(xri)).Fndepth = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)
  11269. (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*16
  11270. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)
  11271. libx11.X_XRead(tls, dpy, xData, libc.Int64FromUint64(rlength))
  11272. format = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat
  11273. xFormat = xData
  11274. nf = 0
  11275. for {
  11276. if !(libc.Uint32FromInt32(nf) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats) {
  11277. break
  11278. }
  11279. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fid = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fid)
  11280. (*TXRenderPictFormat)(unsafe.Pointer(format)).Ftype1 = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Ftype1)
  11281. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdepth = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdepth)
  11282. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fred = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fred)
  11283. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FredMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FredMask)
  11284. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fgreen = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fgreen)
  11285. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FgreenMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FgreenMask)
  11286. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fblue = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fblue)
  11287. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FblueMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FblueMask)
  11288. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Falpha = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Falpha)
  11289. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FalphaMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FalphaMask)
  11290. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fcolormap = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fcolormap)
  11291. format += 40
  11292. xFormat += 28
  11293. goto _4
  11294. _4:
  11295. ;
  11296. nf++
  11297. }
  11298. xScreen = xFormat
  11299. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11300. depth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth
  11301. visual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11302. ns = 0
  11303. for {
  11304. if !(ns < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen) {
  11305. break
  11306. }
  11307. (*TXRenderScreen)(unsafe.Pointer(screen)).Fdepths = depth
  11308. (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths = libc.Int32FromUint32((*TxPictScreen)(unsafe.Pointer(xScreen)).FnDepth)
  11309. (*TXRenderScreen)(unsafe.Pointer(screen)).Ffallback = __XRenderFindFormat(tls, xri, uint64((*TxPictScreen)(unsafe.Pointer(xScreen)).Ffallback))
  11310. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = m_SubPixelUnknown
  11311. xDepth = xScreen + libc.UintptrFromInt32(1)*8
  11312. if libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths {
  11313. libc.Xfree(tls, xri)
  11314. libc.Xfree(tls, xData)
  11315. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11316. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11317. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11318. }
  11319. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11320. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11321. }
  11322. return 0
  11323. }
  11324. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths -= libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths)
  11325. nd = 0
  11326. for {
  11327. if !(nd < (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) {
  11328. break
  11329. }
  11330. (*TXRenderDepth)(unsafe.Pointer(depth)).Fdepth = libc.Int32FromUint8((*TxPictDepth)(unsafe.Pointer(xDepth)).Fdepth)
  11331. (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals = libc.Int32FromUint16((*TxPictDepth)(unsafe.Pointer(xDepth)).FnPictVisuals)
  11332. (*TXRenderDepth)(unsafe.Pointer(depth)).Fvisuals = visual
  11333. xVisual = xDepth + libc.UintptrFromInt32(1)*8
  11334. if libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals {
  11335. libc.Xfree(tls, xri)
  11336. libc.Xfree(tls, xData)
  11337. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11338. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11339. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11340. }
  11341. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11342. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11343. }
  11344. return 0
  11345. }
  11346. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals -= libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals)
  11347. nv = 0
  11348. for {
  11349. if !(nv < (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) {
  11350. break
  11351. }
  11352. (*TXRenderVisual)(unsafe.Pointer(visual)).Fvisual = __XRenderFindVisual(tls, dpy, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fvisual))
  11353. (*TXRenderVisual)(unsafe.Pointer(visual)).Fformat = __XRenderFindFormat(tls, xri, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fformat))
  11354. visual += 16
  11355. xVisual += 8
  11356. goto _7
  11357. _7:
  11358. ;
  11359. nv++
  11360. }
  11361. depth += 16
  11362. xDepth = xVisual
  11363. goto _6
  11364. _6:
  11365. ;
  11366. nd++
  11367. }
  11368. screen += 32
  11369. xScreen = xDepth
  11370. goto _5
  11371. _5:
  11372. ;
  11373. ns++
  11374. }
  11375. xSubpixel = xScreen
  11376. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11377. ns = 0
  11378. for {
  11379. if !(libc.Uint32FromInt32(ns) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel) {
  11380. break
  11381. }
  11382. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = libc.Int32FromUint32(*(*TCARD32)(unsafe.Pointer(xSubpixel)))
  11383. xSubpixel += 4
  11384. screen += 32
  11385. goto _8
  11386. _8:
  11387. ;
  11388. ns++
  11389. }
  11390. (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo = xri
  11391. /*
  11392. * Skip any extra data
  11393. */
  11394. if nbytes > rlength {
  11395. libx11.X_XEatData(tls, dpy, nbytes-rlength)
  11396. }
  11397. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11398. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11399. }
  11400. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11401. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11402. }
  11403. libc.Xfree(tls, xData)
  11404. return int32(1)
  11405. }
  11406. func XXRenderQuerySubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32) (r int32) {
  11407. var info, xri uintptr
  11408. _, _ = info, xri
  11409. info = XXRenderFindDisplay(tls, dpy)
  11410. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11411. return m_SubPixelUnknown
  11412. }
  11413. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11414. return m_SubPixelUnknown
  11415. }
  11416. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11417. return (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel
  11418. }
  11419. func XXRenderSetSubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32, subpixel int32) (r int32) {
  11420. var info, xri uintptr
  11421. _, _ = info, xri
  11422. info = XXRenderFindDisplay(tls, dpy)
  11423. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11424. return m_False
  11425. }
  11426. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11427. return m_False
  11428. }
  11429. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11430. (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel = subpixel
  11431. return int32(m_True)
  11432. }
  11433. func XXRenderFindVisualFormat(tls *libc.TLS, dpy uintptr, visual uintptr) (r uintptr) {
  11434. var info, xri, xrv uintptr
  11435. var nv int32
  11436. _, _, _, _ = info, nv, xri, xrv
  11437. info = XXRenderFindDisplay(tls, dpy)
  11438. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11439. return libc.UintptrFromInt32(0)
  11440. }
  11441. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11442. return libc.UintptrFromInt32(0)
  11443. }
  11444. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11445. nv = 0
  11446. xrv = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11447. for {
  11448. if !(nv < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual) {
  11449. break
  11450. }
  11451. if (*TXRenderVisual)(unsafe.Pointer(xrv)).Fvisual == visual {
  11452. return (*TXRenderVisual)(unsafe.Pointer(xrv)).Fformat
  11453. }
  11454. goto _1
  11455. _1:
  11456. ;
  11457. nv++
  11458. xrv += 16
  11459. }
  11460. return libc.UintptrFromInt32(0)
  11461. }
  11462. func XXRenderFindFormat(tls *libc.TLS, dpy uintptr, mask uint64, template uintptr, count int32) (r uintptr) {
  11463. var info, xri uintptr
  11464. var nf, v2 int32
  11465. _, _, _, _ = info, nf, xri, v2
  11466. info = XXRenderFindDisplay(tls, dpy)
  11467. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11468. return libc.UintptrFromInt32(0)
  11469. }
  11470. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11471. return libc.UintptrFromInt32(0)
  11472. }
  11473. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11474. nf = 0
  11475. for {
  11476. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11477. break
  11478. }
  11479. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  11480. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fid != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid {
  11481. goto _1
  11482. }
  11483. }
  11484. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  11485. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Ftype1 != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Ftype1 {
  11486. goto _1
  11487. }
  11488. }
  11489. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  11490. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fdepth != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdepth {
  11491. goto _1
  11492. }
  11493. }
  11494. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  11495. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fred) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fred) {
  11496. goto _1
  11497. }
  11498. }
  11499. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  11500. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FredMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FredMask) {
  11501. goto _1
  11502. }
  11503. }
  11504. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  11505. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fgreen) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fgreen) {
  11506. goto _1
  11507. }
  11508. }
  11509. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  11510. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FgreenMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FgreenMask) {
  11511. goto _1
  11512. }
  11513. }
  11514. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  11515. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fblue) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fblue) {
  11516. goto _1
  11517. }
  11518. }
  11519. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  11520. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FblueMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FblueMask) {
  11521. goto _1
  11522. }
  11523. }
  11524. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  11525. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Falpha) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Falpha) {
  11526. goto _1
  11527. }
  11528. }
  11529. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  11530. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FalphaMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FalphaMask) {
  11531. goto _1
  11532. }
  11533. }
  11534. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  11535. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fcolormap != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fcolormap {
  11536. goto _1
  11537. }
  11538. }
  11539. v2 = count
  11540. count--
  11541. if v2 == 0 {
  11542. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11543. }
  11544. goto _1
  11545. _1:
  11546. ;
  11547. nf++
  11548. }
  11549. return libc.UintptrFromInt32(0)
  11550. }
  11551. func XXRenderFindStandardFormat(tls *libc.TLS, dpy uintptr, format int32) (r uintptr) {
  11552. if 0 <= format && format < int32(m_PictStandardNUM) {
  11553. return XXRenderFindFormat(tls, dpy, _standardFormats[format].Fmask, uintptr(unsafe.Pointer(&_standardFormats))+uintptr(format)*48, 0)
  11554. }
  11555. return libc.UintptrFromInt32(0)
  11556. }
  11557. var _standardFormats = [5]struct {
  11558. Ftempl TXRenderPictFormat
  11559. Fmask uint64
  11560. }{
  11561. 0: {
  11562. Ftempl: TXRenderPictFormat{
  11563. Ftype1: int32(m_PictTypeDirect),
  11564. Fdepth: int32(32),
  11565. Fdirect: TXRenderDirectFormat{
  11566. Fred: int16(16),
  11567. FredMask: int16(0xff),
  11568. Fgreen: int16(8),
  11569. FgreenMask: int16(0xff),
  11570. FblueMask: int16(0xff),
  11571. Falpha: int16(24),
  11572. FalphaMask: int16(0xff),
  11573. },
  11574. },
  11575. 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)),
  11576. },
  11577. 1: {
  11578. Ftempl: TXRenderPictFormat{
  11579. Ftype1: int32(m_PictTypeDirect),
  11580. Fdepth: int32(24),
  11581. Fdirect: TXRenderDirectFormat{
  11582. Fred: int16(16),
  11583. FredMask: int16(0xff),
  11584. Fgreen: int16(8),
  11585. FgreenMask: int16(0xff),
  11586. FblueMask: int16(0xff),
  11587. },
  11588. },
  11589. 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)),
  11590. },
  11591. 2: {
  11592. Ftempl: TXRenderPictFormat{
  11593. Ftype1: int32(m_PictTypeDirect),
  11594. Fdepth: int32(8),
  11595. Fdirect: TXRenderDirectFormat{
  11596. FalphaMask: int16(0xff),
  11597. },
  11598. },
  11599. 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)),
  11600. },
  11601. 3: {
  11602. Ftempl: TXRenderPictFormat{
  11603. Ftype1: int32(m_PictTypeDirect),
  11604. Fdepth: int32(4),
  11605. Fdirect: TXRenderDirectFormat{
  11606. FalphaMask: int16(0x0f),
  11607. },
  11608. },
  11609. 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)),
  11610. },
  11611. 4: {
  11612. Ftempl: TXRenderPictFormat{
  11613. Ftype1: int32(m_PictTypeDirect),
  11614. Fdepth: int32(1),
  11615. Fdirect: TXRenderDirectFormat{
  11616. FalphaMask: int16(0x01),
  11617. },
  11618. },
  11619. 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)),
  11620. },
  11621. }
  11622. func XXRenderQueryPictIndexValues(tls *libc.TLS, dpy uintptr, format uintptr, num uintptr) (r uintptr) {
  11623. bp := tls.Alloc(48)
  11624. defer tls.Free(48)
  11625. var i, nbytes, nread, rlength, v1, v2, v3 uint32
  11626. var info, req, values uintptr
  11627. var _ /* rep at bp+0 */ TxRenderQueryPictIndexValuesReply
  11628. var _ /* value at bp+32 */ TxIndexValue
  11629. _, _, _, _, _, _, _, _, _, _ = i, info, nbytes, nread, req, rlength, values, v1, v2, v3
  11630. info = XXRenderFindDisplay(tls, dpy)
  11631. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11632. return libc.UintptrFromInt32(0)
  11633. }
  11634. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11635. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  11636. }
  11637. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictIndexValues), uint64(m_sz_xRenderQueryPictIndexValuesReq))
  11638. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11639. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictIndexValues)
  11640. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  11641. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  11642. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11643. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11644. }
  11645. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11646. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11647. }
  11648. return libc.UintptrFromInt32(0)
  11649. }
  11650. 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) {
  11651. /* request data length */
  11652. nbytes = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength << int32(2)
  11653. /* bytes of actual data in the request */
  11654. nread = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues * uint32(m_sz_xIndexValue)
  11655. /* size of array returned to application */
  11656. rlength = uint32(uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) * uint64(16))
  11657. /* allocate returned data */
  11658. if rlength == uint32(0) {
  11659. v1 = uint32(1)
  11660. } else {
  11661. v1 = rlength
  11662. }
  11663. values = libc.Xmalloc(tls, uint64(v1))
  11664. } else {
  11665. v3 = libc.Uint32FromInt32(0)
  11666. rlength = v3
  11667. v2 = v3
  11668. nread = v2
  11669. nbytes = v2
  11670. values = libc.UintptrFromInt32(0)
  11671. }
  11672. if !(values != 0) {
  11673. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength))
  11674. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11675. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11676. }
  11677. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11678. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11679. }
  11680. return libc.UintptrFromInt32(0)
  11681. }
  11682. /* read the values one at a time and convert */
  11683. *(*int32)(unsafe.Pointer(num)) = libc.Int32FromUint32((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues)
  11684. i = uint32(0)
  11685. for {
  11686. if !(i < (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) {
  11687. break
  11688. }
  11689. libx11.X_XRead(tls, dpy, bp+32, int64(m_sz_xIndexValue))
  11690. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fpixel = uint64((*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fpixel)
  11691. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fred = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fred
  11692. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fgreen = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fgreen
  11693. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fblue = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fblue
  11694. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Falpha = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Falpha
  11695. goto _4
  11696. _4:
  11697. ;
  11698. i++
  11699. }
  11700. /* skip any padding */
  11701. if nbytes > nread {
  11702. libx11.X_XEatData(tls, dpy, uint64(nbytes-nread))
  11703. }
  11704. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11705. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11706. }
  11707. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11708. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11709. }
  11710. return values
  11711. }
  11712. func __ccgo_fp(f interface{}) uintptr {
  11713. type iface [2]uintptr
  11714. return (*iface)(unsafe.Pointer(&f))[1]
  11715. }
  11716. /*
  11717. * Xlib uses long for 32-bit values. Xrender uses int. This
  11718. * matters on alpha. Note that this macro assumes that int is 32 bits
  11719. * except on WORD64 machines where it is 64 bits.
  11720. */
  11721. /* Support signed or unsigned plain-char */
  11722. /* Implementation choices... */
  11723. /* Arbitrary numbers... */
  11724. /* POSIX/SUS requirements follow. These numbers come directly
  11725. * from SUS and have nothing to do with the host system. */
  11726. var XXRenderExtensionInfo TXRenderExtInfo
  11727. var XXRenderExtensionName = [7]int8{'R', 'E', 'N', 'D', 'E', 'R'}
  11728. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  11729. var __ccgo_ts1 = "rgba:\x00"