ccgo_linux_s390x.go 392 KB

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