ccgo_freebsd_amd64.go 426 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166
  1. // Code generated for freebsd/amd64 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/freebsd/amd64 -lX11 -o libxrender.go --package-name libxrender src/.libs/libXrender.a', DO NOT EDIT.
  2. //go:build freebsd && amd64
  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_CLK_TCK = 128
  71. const m_CLOCKS_PER_SEC = 128
  72. const m_CLOCK_BOOTTIME = "CLOCK_UPTIME"
  73. const m_CLOCK_MONOTONIC = 4
  74. const m_CLOCK_MONOTONIC_COARSE = "CLOCK_MONOTONIC_FAST"
  75. const m_CLOCK_MONOTONIC_FAST = 12
  76. const m_CLOCK_MONOTONIC_PRECISE = 11
  77. const m_CLOCK_PROCESS_CPUTIME_ID = 15
  78. const m_CLOCK_PROF = 2
  79. const m_CLOCK_REALTIME = 0
  80. const m_CLOCK_REALTIME_COARSE = "CLOCK_REALTIME_FAST"
  81. const m_CLOCK_REALTIME_FAST = 10
  82. const m_CLOCK_REALTIME_PRECISE = 9
  83. const m_CLOCK_SECOND = 13
  84. const m_CLOCK_THREAD_CPUTIME_ID = 14
  85. const m_CLOCK_UPTIME = 5
  86. const m_CLOCK_UPTIME_FAST = 8
  87. const m_CLOCK_UPTIME_PRECISE = 7
  88. const m_CLOCK_VIRTUAL = 1
  89. const m_CPLastBit = 12
  90. const m_CPUSET_DEFAULT = 0
  91. const m_CPU_LEVEL_CPUSET = 2
  92. const m_CPU_LEVEL_ROOT = 1
  93. const m_CPU_LEVEL_WHICH = 3
  94. const m_CPU_MAXSIZE = 1024
  95. const m_CPU_SETSIZE = "CPU_MAXSIZE"
  96. const m_CPU_WHICH_CPUSET = 3
  97. const m_CPU_WHICH_DOMAIN = 6
  98. const m_CPU_WHICH_INTRHANDLER = 7
  99. const m_CPU_WHICH_IRQ = 4
  100. const m_CPU_WHICH_ITHREAD = 8
  101. const m_CPU_WHICH_JAIL = 5
  102. const m_CPU_WHICH_PID = 2
  103. const m_CPU_WHICH_TID = 1
  104. const m_CPU_WHICH_TIDPID = 9
  105. const m_CURSORFONT = "cursor"
  106. const m_CapButt = 1
  107. const m_CapNotLast = 0
  108. const m_CapProjecting = 3
  109. const m_CapRound = 2
  110. const m_CenterGravity = 5
  111. const m_CirculateNotify = 26
  112. const m_CirculateRequest = 27
  113. const m_ClientMessage = 33
  114. const m_ClipByChildren = 0
  115. const m_ColormapInstalled = 1
  116. const m_ColormapNotify = 32
  117. const m_ColormapUninstalled = 0
  118. const m_Complex = 0
  119. const m_ConfigureNotify = 22
  120. const m_ConfigureRequest = 23
  121. const m_ControlMapIndex = 2
  122. const m_Convex = 2
  123. const m_CoordModeOrigin = 0
  124. const m_CoordModePrevious = 1
  125. const m_CopyFromParent = 0
  126. const m_CreateNotify = 16
  127. const m_CurrentTime = 0
  128. const m_CursorShape = 0
  129. const m_DefaultBlanking = 2
  130. const m_DefaultExposures = 2
  131. const m_DestroyAll = 0
  132. const m_DestroyNotify = 17
  133. const m_DirectColor = 5
  134. const m_DisableAccess = 0
  135. const m_DisableScreenInterval = 0
  136. const m_DisableScreenSaver = 0
  137. const m_DontAllowExposures = 0
  138. const m_DontCareState = 0
  139. const m_DontPreferBlanking = 0
  140. const m_E2BIG = 7
  141. const m_EACCES = 13
  142. const m_EADDRINUSE = 48
  143. const m_EADDRNOTAVAIL = 49
  144. const m_EAFNOSUPPORT = 47
  145. const m_EAGAIN = 35
  146. const m_EALREADY = 37
  147. const m_EAUTH = 80
  148. const m_EBADF = 9
  149. const m_EBADMSG = 89
  150. const m_EBADRPC = 72
  151. const m_EBUSY = 16
  152. const m_ECANCELED = 85
  153. const m_ECAPMODE = 94
  154. const m_ECHILD = 10
  155. const m_ECONNABORTED = 53
  156. const m_ECONNREFUSED = 61
  157. const m_ECONNRESET = 54
  158. const m_EDEADLK = 11
  159. const m_EDESTADDRREQ = 39
  160. const m_EDOM = 33
  161. const m_EDOOFUS = 88
  162. const m_EDQUOT = 69
  163. const m_EEXIST = 17
  164. const m_EFAULT = 14
  165. const m_EFBIG = 27
  166. const m_EFTYPE = 79
  167. const m_EHOSTDOWN = 64
  168. const m_EHOSTUNREACH = 65
  169. const m_EIDRM = 82
  170. const m_EILSEQ = 86
  171. const m_EINPROGRESS = 36
  172. const m_EINTEGRITY = 97
  173. const m_EINTR = 4
  174. const m_EINVAL = 22
  175. const m_EIO = 5
  176. const m_EISCONN = 56
  177. const m_EISDIR = 21
  178. const m_ELAST = 97
  179. const m_ELOOP = 62
  180. const m_EMFILE = 24
  181. const m_EMLINK = 31
  182. const m_EMSGSIZE = 40
  183. const m_EMULTIHOP = 90
  184. const m_ENAMETOOLONG = 63
  185. const m_ENEEDAUTH = 81
  186. const m_ENETDOWN = 50
  187. const m_ENETRESET = 52
  188. const m_ENETUNREACH = 51
  189. const m_ENFILE = 23
  190. const m_ENOATTR = 87
  191. const m_ENOBUFS = 55
  192. const m_ENODEV = 19
  193. const m_ENOENT = 2
  194. const m_ENOEXEC = 8
  195. const m_ENOLCK = 77
  196. const m_ENOLINK = 91
  197. const m_ENOMEM = 12
  198. const m_ENOMSG = 83
  199. const m_ENOPROTOOPT = 42
  200. const m_ENOSPC = 28
  201. const m_ENOSYS = 78
  202. const m_ENOTBLK = 15
  203. const m_ENOTCAPABLE = 93
  204. const m_ENOTCONN = 57
  205. const m_ENOTDIR = 20
  206. const m_ENOTEMPTY = 66
  207. const m_ENOTRECOVERABLE = 95
  208. const m_ENOTSOCK = 38
  209. const m_ENOTSUP = "EOPNOTSUPP"
  210. const m_ENOTTY = 25
  211. const m_ENXIO = 6
  212. const m_EOPNOTSUPP = 45
  213. const m_EOVERFLOW = 84
  214. const m_EOWNERDEAD = 96
  215. const m_EPERM = 1
  216. const m_EPFNOSUPPORT = 46
  217. const m_EPIPE = 32
  218. const m_EPROCLIM = 67
  219. const m_EPROCUNAVAIL = 76
  220. const m_EPROGMISMATCH = 75
  221. const m_EPROGUNAVAIL = 74
  222. const m_EPROTO = 92
  223. const m_EPROTONOSUPPORT = 43
  224. const m_EPROTOTYPE = 41
  225. const m_ERANGE = 34
  226. const m_EREMOTE = 71
  227. const m_EROFS = 30
  228. const m_ERPCMISMATCH = 73
  229. const m_ESHUTDOWN = 58
  230. const m_ESOCKTNOSUPPORT = 44
  231. const m_ESPIPE = 29
  232. const m_ESRCH = 3
  233. const m_ESTALE = 70
  234. const m_ETIMEDOUT = 60
  235. const m_ETOOMANYREFS = 59
  236. const m_ETXTBSY = 26
  237. const m_EUSERS = 68
  238. const m_EWOULDBLOCK = "EAGAIN"
  239. const m_EXDEV = 18
  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 = "INT32_MAX"
  330. const m_INT_FAST8_MIN = "INT32_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_MSBFirst = 1
  369. const m_MapNotify = 19
  370. const m_MapRequest = 20
  371. const m_MappingBusy = 1
  372. const m_MappingFailed = 2
  373. const m_MappingKeyboard = 1
  374. const m_MappingModifier = 0
  375. const m_MappingNotify = 34
  376. const m_MappingPointer = 2
  377. const m_MappingSuccess = 0
  378. const m_Mod1MapIndex = 3
  379. const m_Mod2MapIndex = 4
  380. const m_Mod3MapIndex = 5
  381. const m_Mod4MapIndex = 6
  382. const m_Mod5MapIndex = 7
  383. const m_MotionNotify = 6
  384. const m_NDEBUG = 1
  385. const m_NFDBITS = "_NFDBITS"
  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_PTHREAD_CANCEL_ASYNCHRONOUS = 2
  428. const m_PTHREAD_CANCEL_DEFERRED = 0
  429. const m_PTHREAD_CANCEL_DISABLE = 1
  430. const m_PTHREAD_CANCEL_ENABLE = 0
  431. const m_PTHREAD_COND_INITIALIZER = "NULL"
  432. const m_PTHREAD_CREATE_DETACHED = "PTHREAD_DETACHED"
  433. const m_PTHREAD_CREATE_JOINABLE = 0
  434. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  435. const m_PTHREAD_DETACHED = 0x1
  436. const m_PTHREAD_DONE_INIT = 1
  437. const m_PTHREAD_EXPLICIT_SCHED = 0
  438. const m_PTHREAD_INHERIT_SCHED = 0x4
  439. const m_PTHREAD_KEYS_MAX = 256
  440. const m_PTHREAD_MUTEX_DEFAULT = "PTHREAD_MUTEX_ERRORCHECK"
  441. const m_PTHREAD_MUTEX_INITIALIZER = "NULL"
  442. const m_PTHREAD_MUTEX_ROBUST = 1
  443. const m_PTHREAD_MUTEX_STALLED = 0
  444. const m_PTHREAD_NEEDS_INIT = 0
  445. const m_PTHREAD_NOFLOAT = 0x8
  446. const m_PTHREAD_PRIO_INHERIT = 1
  447. const m_PTHREAD_PRIO_NONE = 0
  448. const m_PTHREAD_PRIO_PROTECT = 2
  449. const m_PTHREAD_PROCESS_PRIVATE = 0
  450. const m_PTHREAD_PROCESS_SHARED = 1
  451. const m_PTHREAD_RWLOCK_INITIALIZER = "NULL"
  452. const m_PTHREAD_SCOPE_PROCESS = 0
  453. const m_PTHREAD_SCOPE_SYSTEM = 0x2
  454. const m_PTHREAD_STACK_MIN = "__MINSIGSTKSZ"
  455. const m_PTHREAD_THREADS_MAX = "__ULONG_MAX"
  456. const m_PTRDIFF_MAX = "INT64_MAX"
  457. const m_PTRDIFF_MIN = "INT64_MIN"
  458. const m_PTSPERBATCH = 1024
  459. const m_ParentRelative = 1
  460. const m_PictOpAdd = 12
  461. const m_PictOpAtop = 9
  462. const m_PictOpAtopReverse = 10
  463. const m_PictOpBlendMaximum = 0x3e
  464. const m_PictOpBlendMinimum = 0x30
  465. const m_PictOpClear = 0
  466. const m_PictOpColorBurn = 0x36
  467. const m_PictOpColorDodge = 0x35
  468. const m_PictOpConjointAtop = 0x29
  469. const m_PictOpConjointAtopReverse = 0x2a
  470. const m_PictOpConjointClear = 0x20
  471. const m_PictOpConjointDst = 0x22
  472. const m_PictOpConjointIn = 0x25
  473. const m_PictOpConjointInReverse = 0x26
  474. const m_PictOpConjointMaximum = 0x2b
  475. const m_PictOpConjointMinimum = 0x20
  476. const m_PictOpConjointOut = 0x27
  477. const m_PictOpConjointOutReverse = 0x28
  478. const m_PictOpConjointOver = 0x23
  479. const m_PictOpConjointOverReverse = 0x24
  480. const m_PictOpConjointSrc = 0x21
  481. const m_PictOpConjointXor = 0x2b
  482. const m_PictOpDarken = 0x33
  483. const m_PictOpDifference = 0x39
  484. const m_PictOpDisjointAtop = 0x19
  485. const m_PictOpDisjointAtopReverse = 0x1a
  486. const m_PictOpDisjointClear = 0x10
  487. const m_PictOpDisjointDst = 0x12
  488. const m_PictOpDisjointIn = 0x15
  489. const m_PictOpDisjointInReverse = 0x16
  490. const m_PictOpDisjointMaximum = 0x1b
  491. const m_PictOpDisjointMinimum = 0x10
  492. const m_PictOpDisjointOut = 0x17
  493. const m_PictOpDisjointOutReverse = 0x18
  494. const m_PictOpDisjointOver = 0x13
  495. const m_PictOpDisjointOverReverse = 0x14
  496. const m_PictOpDisjointSrc = 0x11
  497. const m_PictOpDisjointXor = 0x1b
  498. const m_PictOpDst = 2
  499. const m_PictOpExclusion = 0x3a
  500. const m_PictOpHSLColor = 0x3d
  501. const m_PictOpHSLHue = 0x3b
  502. const m_PictOpHSLLuminosity = 0x3e
  503. const m_PictOpHSLSaturation = 0x3c
  504. const m_PictOpHardLight = 0x37
  505. const m_PictOpIn = 5
  506. const m_PictOpInReverse = 6
  507. const m_PictOpLighten = 0x34
  508. const m_PictOpMaximum = 13
  509. const m_PictOpMinimum = 0
  510. const m_PictOpMultiply = 0x30
  511. const m_PictOpOut = 7
  512. const m_PictOpOutReverse = 8
  513. const m_PictOpOver = 3
  514. const m_PictOpOverReverse = 4
  515. const m_PictOpOverlay = 0x32
  516. const m_PictOpSaturate = 13
  517. const m_PictOpScreen = 0x31
  518. const m_PictOpSoftLight = 0x38
  519. const m_PictOpSrc = 1
  520. const m_PictOpXor = 11
  521. const m_PictStandardA1 = 4
  522. const m_PictStandardA4 = 3
  523. const m_PictStandardA8 = 2
  524. const m_PictStandardARGB32 = 0
  525. const m_PictStandardNUM = 5
  526. const m_PictStandardRGB24 = 1
  527. const m_PictTypeDirect = 1
  528. const m_PictTypeIndexed = 0
  529. const m_PlaceOnBottom = 1
  530. const m_PlaceOnTop = 0
  531. const m_PointerRoot = 1
  532. const m_PointerWindow = 0
  533. const m_PolyEdgeSharp = 0
  534. const m_PolyEdgeSmooth = 1
  535. const m_PolyModeImprecise = 1
  536. const m_PolyModePrecise = 0
  537. const m_PreferBlanking = 1
  538. const m_PropModeAppend = 2
  539. const m_PropModePrepend = 1
  540. const m_PropModeReplace = 0
  541. const m_PropertyDelete = 1
  542. const m_PropertyNewValue = 0
  543. const m_PropertyNotify = 28
  544. const m_PseudoColor = 3
  545. const m_QueuedAfterFlush = 2
  546. const m_QueuedAfterReading = 1
  547. const m_QueuedAlready = 0
  548. const m_RAND_MAX = 0x7fffffff
  549. const m_RENDER_MAJOR = 0
  550. const m_RENDER_MINOR = 11
  551. const m_RENDER_NAME = "RENDER"
  552. const m_RaiseLowest = 0
  553. const m_RectangleIn = 1
  554. const m_RectangleOut = 0
  555. const m_RectanglePart = 2
  556. const m_ReparentNotify = 21
  557. const m_RepeatNone = 0
  558. const m_RepeatNormal = 1
  559. const m_RepeatPad = 2
  560. const m_RepeatReflect = 3
  561. const m_ReplayKeyboard = 5
  562. const m_ReplayPointer = 2
  563. const m_ResizeRequest = 25
  564. const m_RetainPermanent = 1
  565. const m_RetainTemporary = 2
  566. const m_RevertToParent = 2
  567. const m_SCHED_FIFO = 1
  568. const m_SCHED_OTHER = 2
  569. const m_SCHED_RR = 3
  570. const m_SIG_ATOMIC_MAX = "INT64_MAX"
  571. const m_SIG_ATOMIC_MIN = "INT64_MIN"
  572. const m_SIZE_MAX = "UINT64_MAX"
  573. const m_STDC_HEADERS = 1
  574. const m_ScreenSaverActive = 1
  575. const m_ScreenSaverReset = 0
  576. const m_SelectionClear = 29
  577. const m_SelectionNotify = 31
  578. const m_SelectionRequest = 30
  579. const m_SetModeDelete = 1
  580. const m_SetModeInsert = 0
  581. const m_ShiftMapIndex = 0
  582. const m_SouthEastGravity = 9
  583. const m_SouthGravity = 8
  584. const m_SouthWestGravity = 7
  585. const m_StaticColor = 2
  586. const m_StaticGravity = 10
  587. const m_StaticGray = 0
  588. const m_Status = "int"
  589. const m_StippleShape = 2
  590. const m_SubPixelHorizontalBGR = 2
  591. const m_SubPixelHorizontalRGB = 1
  592. const m_SubPixelNone = 5
  593. const m_SubPixelUnknown = 0
  594. const m_SubPixelVerticalBGR = 4
  595. const m_SubPixelVerticalRGB = 3
  596. const m_Success = 0
  597. const m_SyncBoth = 7
  598. const m_SyncKeyboard = 4
  599. const m_SyncPointer = 1
  600. const m_TIMER_ABSTIME = 0x1
  601. const m_TIMER_RELTIME = 0x0
  602. const m_TIME_MONOTONIC = 2
  603. const m_TIME_UTC = 1
  604. const m_TileShape = 1
  605. const m_TopIf = 2
  606. const m_True = 1
  607. const m_TrueColor = 4
  608. const m_UINT16_MAX = 0xffff
  609. const m_UINT32_MAX = 0xffffffff
  610. const m_UINT64_MAX = 0xffffffffffffffff
  611. const m_UINT8_MAX = 0xff
  612. const m_UINTMAX_MAX = "UINT64_MAX"
  613. const m_UINTPTR_MAX = "UINT64_MAX"
  614. const m_UINT_FAST16_MAX = "UINT32_MAX"
  615. const m_UINT_FAST32_MAX = "UINT32_MAX"
  616. const m_UINT_FAST64_MAX = "UINT64_MAX"
  617. const m_UINT_FAST8_MAX = "UINT32_MAX"
  618. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  619. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  620. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  621. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  622. const m_UNLOCKED = 0
  623. const m_UnmapGravity = 0
  624. const m_UnmapNotify = 18
  625. const m_Unsorted = 0
  626. const m_VERSION = "0.9.10"
  627. const m_VisibilityFullyObscured = 2
  628. const m_VisibilityNotify = 15
  629. const m_VisibilityPartiallyObscured = 1
  630. const m_VisibilityUnobscured = 0
  631. const m_VisualAllMask = 0x1FF
  632. const m_VisualBitsPerRGBMask = 0x100
  633. const m_VisualBlueMaskMask = 0x40
  634. const m_VisualClassMask = 0x8
  635. const m_VisualColormapSizeMask = 0x80
  636. const m_VisualDepthMask = 0x4
  637. const m_VisualGreenMaskMask = 0x20
  638. const m_VisualIDMask = 0x1
  639. const m_VisualNoMask = 0x0
  640. const m_VisualRedMaskMask = 0x10
  641. const m_VisualScreenMask = 0x2
  642. const m_WCHAR_MAX = "__WCHAR_MAX"
  643. const m_WCHAR_MIN = "__WCHAR_MIN"
  644. const m_WINT_MAX = "INT32_MAX"
  645. const m_WINT_MIN = "INT32_MIN"
  646. const m_WLNSPERBATCH = 50
  647. const m_WRCTSPERBATCH = 10
  648. const m_WestGravity = 4
  649. const m_WhenMapped = 1
  650. const m_WidthValue = 0x0004
  651. const m_WindingRule = 1
  652. const m_WithdrawnState = 0
  653. const m_XCNOENT = 2
  654. const m_XCNOMEM = 1
  655. const m_XCSUCCESS = 0
  656. const m_XIMHotKeyStateOFF = 0x0002
  657. const m_XIMHotKeyStateON = 0x0001
  658. const m_XIMInitialState = 1
  659. const m_XIMPreeditArea = 0x0001
  660. const m_XIMPreeditCallbacks = 0x0002
  661. const m_XIMPreeditEnable = 1
  662. const m_XIMPreeditNone = 0x0010
  663. const m_XIMPreeditNothing = 0x0008
  664. const m_XIMPreeditPosition = 0x0004
  665. const m_XIMPreeditUnKnown = 0
  666. const m_XIMReverse = 1
  667. const m_XIMStatusArea = 0x0100
  668. const m_XIMStatusCallbacks = 0x0200
  669. const m_XIMStatusNone = 0x0800
  670. const m_XIMStatusNothing = 0x0400
  671. const m_XIMStringConversionBottomEdge = 0x00000008
  672. const m_XIMStringConversionBuffer = 0x0001
  673. const m_XIMStringConversionChar = 0x0004
  674. const m_XIMStringConversionConcealed = 0x00000010
  675. const m_XIMStringConversionLeftEdge = 0x00000001
  676. const m_XIMStringConversionLine = 0x0002
  677. const m_XIMStringConversionRetrieval = 0x0002
  678. const m_XIMStringConversionRightEdge = 0x00000002
  679. const m_XIMStringConversionSubstitution = 0x0001
  680. const m_XIMStringConversionTopEdge = 0x00000004
  681. const m_XIMStringConversionWord = 0x0003
  682. const m_XIMStringConversionWrapped = 0x00000020
  683. const m_XK_0 = 0x0030
  684. const m_XK_1 = 0x0031
  685. const m_XK_2 = 0x0032
  686. const m_XK_3 = 0x0033
  687. const m_XK_4 = 0x0034
  688. const m_XK_5 = 0x0035
  689. const m_XK_6 = 0x0036
  690. const m_XK_7 = 0x0037
  691. const m_XK_8 = 0x0038
  692. const m_XK_9 = 0x0039
  693. const m_XK_A = 0x0041
  694. const m_XK_AE = 0x00c6
  695. const m_XK_Aacute = 0x00c1
  696. const m_XK_Abelowdot = 0x1001ea0
  697. const m_XK_Abreve = 0x01c3
  698. const m_XK_Abreveacute = 0x1001eae
  699. const m_XK_Abrevebelowdot = 0x1001eb6
  700. const m_XK_Abrevegrave = 0x1001eb0
  701. const m_XK_Abrevehook = 0x1001eb2
  702. const m_XK_Abrevetilde = 0x1001eb4
  703. const m_XK_AccessX_Enable = 0xfe70
  704. const m_XK_AccessX_Feedback_Enable = 0xfe71
  705. const m_XK_Acircumflex = 0x00c2
  706. const m_XK_Acircumflexacute = 0x1001ea4
  707. const m_XK_Acircumflexbelowdot = 0x1001eac
  708. const m_XK_Acircumflexgrave = 0x1001ea6
  709. const m_XK_Acircumflexhook = 0x1001ea8
  710. const m_XK_Acircumflextilde = 0x1001eaa
  711. const m_XK_Adiaeresis = 0x00c4
  712. const m_XK_Agrave = 0x00c0
  713. const m_XK_Ahook = 0x1001ea2
  714. const m_XK_Alt_L = 0xffe9
  715. const m_XK_Alt_R = 0xffea
  716. const m_XK_Amacron = 0x03c0
  717. const m_XK_Aogonek = 0x01a1
  718. const m_XK_Arabic_0 = 0x1000660
  719. const m_XK_Arabic_1 = 0x1000661
  720. const m_XK_Arabic_2 = 0x1000662
  721. const m_XK_Arabic_3 = 0x1000663
  722. const m_XK_Arabic_4 = 0x1000664
  723. const m_XK_Arabic_5 = 0x1000665
  724. const m_XK_Arabic_6 = 0x1000666
  725. const m_XK_Arabic_7 = 0x1000667
  726. const m_XK_Arabic_8 = 0x1000668
  727. const m_XK_Arabic_9 = 0x1000669
  728. const m_XK_Arabic_ain = 0x05d9
  729. const m_XK_Arabic_alef = 0x05c7
  730. const m_XK_Arabic_alefmaksura = 0x05e9
  731. const m_XK_Arabic_beh = 0x05c8
  732. const m_XK_Arabic_comma = 0x05ac
  733. const m_XK_Arabic_dad = 0x05d6
  734. const m_XK_Arabic_dal = 0x05cf
  735. const m_XK_Arabic_damma = 0x05ef
  736. const m_XK_Arabic_dammatan = 0x05ec
  737. const m_XK_Arabic_ddal = 0x1000688
  738. const m_XK_Arabic_farsi_yeh = 0x10006cc
  739. const m_XK_Arabic_fatha = 0x05ee
  740. const m_XK_Arabic_fathatan = 0x05eb
  741. const m_XK_Arabic_feh = 0x05e1
  742. const m_XK_Arabic_fullstop = 0x10006d4
  743. const m_XK_Arabic_gaf = 0x10006af
  744. const m_XK_Arabic_ghain = 0x05da
  745. const m_XK_Arabic_ha = 0x05e7
  746. const m_XK_Arabic_hah = 0x05cd
  747. const m_XK_Arabic_hamza = 0x05c1
  748. const m_XK_Arabic_hamza_above = 0x1000654
  749. const m_XK_Arabic_hamza_below = 0x1000655
  750. const m_XK_Arabic_hamzaonalef = 0x05c3
  751. const m_XK_Arabic_hamzaonwaw = 0x05c4
  752. const m_XK_Arabic_hamzaonyeh = 0x05c6
  753. const m_XK_Arabic_hamzaunderalef = 0x05c5
  754. const m_XK_Arabic_heh = 0x05e7
  755. const m_XK_Arabic_heh_doachashmee = 0x10006be
  756. const m_XK_Arabic_heh_goal = 0x10006c1
  757. const m_XK_Arabic_jeem = 0x05cc
  758. const m_XK_Arabic_jeh = 0x1000698
  759. const m_XK_Arabic_kaf = 0x05e3
  760. const m_XK_Arabic_kasra = 0x05f0
  761. const m_XK_Arabic_kasratan = 0x05ed
  762. const m_XK_Arabic_keheh = 0x10006a9
  763. const m_XK_Arabic_khah = 0x05ce
  764. const m_XK_Arabic_lam = 0x05e4
  765. const m_XK_Arabic_madda_above = 0x1000653
  766. const m_XK_Arabic_maddaonalef = 0x05c2
  767. const m_XK_Arabic_meem = 0x05e5
  768. const m_XK_Arabic_noon = 0x05e6
  769. const m_XK_Arabic_noon_ghunna = 0x10006ba
  770. const m_XK_Arabic_peh = 0x100067e
  771. const m_XK_Arabic_percent = 0x100066a
  772. const m_XK_Arabic_qaf = 0x05e2
  773. const m_XK_Arabic_question_mark = 0x05bf
  774. const m_XK_Arabic_ra = 0x05d1
  775. const m_XK_Arabic_rreh = 0x1000691
  776. const m_XK_Arabic_sad = 0x05d5
  777. const m_XK_Arabic_seen = 0x05d3
  778. const m_XK_Arabic_semicolon = 0x05bb
  779. const m_XK_Arabic_shadda = 0x05f1
  780. const m_XK_Arabic_sheen = 0x05d4
  781. const m_XK_Arabic_sukun = 0x05f2
  782. const m_XK_Arabic_superscript_alef = 0x1000670
  783. const m_XK_Arabic_switch = 0xff7e
  784. const m_XK_Arabic_tah = 0x05d7
  785. const m_XK_Arabic_tatweel = 0x05e0
  786. const m_XK_Arabic_tcheh = 0x1000686
  787. const m_XK_Arabic_teh = 0x05ca
  788. const m_XK_Arabic_tehmarbuta = 0x05c9
  789. const m_XK_Arabic_thal = 0x05d0
  790. const m_XK_Arabic_theh = 0x05cb
  791. const m_XK_Arabic_tteh = 0x1000679
  792. const m_XK_Arabic_veh = 0x10006a4
  793. const m_XK_Arabic_waw = 0x05e8
  794. const m_XK_Arabic_yeh = 0x05ea
  795. const m_XK_Arabic_yeh_baree = 0x10006d2
  796. const m_XK_Arabic_zah = 0x05d8
  797. const m_XK_Arabic_zain = 0x05d2
  798. const m_XK_Aring = 0x00c5
  799. const m_XK_Armenian_AT = 0x1000538
  800. const m_XK_Armenian_AYB = 0x1000531
  801. const m_XK_Armenian_BEN = 0x1000532
  802. const m_XK_Armenian_CHA = 0x1000549
  803. const m_XK_Armenian_DA = 0x1000534
  804. const m_XK_Armenian_DZA = 0x1000541
  805. const m_XK_Armenian_E = 0x1000537
  806. const m_XK_Armenian_FE = 0x1000556
  807. const m_XK_Armenian_GHAT = 0x1000542
  808. const m_XK_Armenian_GIM = 0x1000533
  809. const m_XK_Armenian_HI = 0x1000545
  810. const m_XK_Armenian_HO = 0x1000540
  811. const m_XK_Armenian_INI = 0x100053b
  812. const m_XK_Armenian_JE = 0x100054b
  813. const m_XK_Armenian_KE = 0x1000554
  814. const m_XK_Armenian_KEN = 0x100053f
  815. const m_XK_Armenian_KHE = 0x100053d
  816. const m_XK_Armenian_LYUN = 0x100053c
  817. const m_XK_Armenian_MEN = 0x1000544
  818. const m_XK_Armenian_NU = 0x1000546
  819. const m_XK_Armenian_O = 0x1000555
  820. const m_XK_Armenian_PE = 0x100054a
  821. const m_XK_Armenian_PYUR = 0x1000553
  822. const m_XK_Armenian_RA = 0x100054c
  823. const m_XK_Armenian_RE = 0x1000550
  824. const m_XK_Armenian_SE = 0x100054d
  825. const m_XK_Armenian_SHA = 0x1000547
  826. const m_XK_Armenian_TCHE = 0x1000543
  827. const m_XK_Armenian_TO = 0x1000539
  828. const m_XK_Armenian_TSA = 0x100053e
  829. const m_XK_Armenian_TSO = 0x1000551
  830. const m_XK_Armenian_TYUN = 0x100054f
  831. const m_XK_Armenian_VEV = 0x100054e
  832. const m_XK_Armenian_VO = 0x1000548
  833. const m_XK_Armenian_VYUN = 0x1000552
  834. const m_XK_Armenian_YECH = 0x1000535
  835. const m_XK_Armenian_ZA = 0x1000536
  836. const m_XK_Armenian_ZHE = 0x100053a
  837. const m_XK_Armenian_accent = 0x100055b
  838. const m_XK_Armenian_amanak = 0x100055c
  839. const m_XK_Armenian_apostrophe = 0x100055a
  840. const m_XK_Armenian_at = 0x1000568
  841. const m_XK_Armenian_ayb = 0x1000561
  842. const m_XK_Armenian_ben = 0x1000562
  843. const m_XK_Armenian_but = 0x100055d
  844. const m_XK_Armenian_cha = 0x1000579
  845. const m_XK_Armenian_da = 0x1000564
  846. const m_XK_Armenian_dza = 0x1000571
  847. const m_XK_Armenian_e = 0x1000567
  848. const m_XK_Armenian_exclam = 0x100055c
  849. const m_XK_Armenian_fe = 0x1000586
  850. const m_XK_Armenian_full_stop = 0x1000589
  851. const m_XK_Armenian_ghat = 0x1000572
  852. const m_XK_Armenian_gim = 0x1000563
  853. const m_XK_Armenian_hi = 0x1000575
  854. const m_XK_Armenian_ho = 0x1000570
  855. const m_XK_Armenian_hyphen = 0x100058a
  856. const m_XK_Armenian_ini = 0x100056b
  857. const m_XK_Armenian_je = 0x100057b
  858. const m_XK_Armenian_ke = 0x1000584
  859. const m_XK_Armenian_ken = 0x100056f
  860. const m_XK_Armenian_khe = 0x100056d
  861. const m_XK_Armenian_ligature_ew = 0x1000587
  862. const m_XK_Armenian_lyun = 0x100056c
  863. const m_XK_Armenian_men = 0x1000574
  864. const m_XK_Armenian_nu = 0x1000576
  865. const m_XK_Armenian_o = 0x1000585
  866. const m_XK_Armenian_paruyk = 0x100055e
  867. const m_XK_Armenian_pe = 0x100057a
  868. const m_XK_Armenian_pyur = 0x1000583
  869. const m_XK_Armenian_question = 0x100055e
  870. const m_XK_Armenian_ra = 0x100057c
  871. const m_XK_Armenian_re = 0x1000580
  872. const m_XK_Armenian_se = 0x100057d
  873. const m_XK_Armenian_separation_mark = 0x100055d
  874. const m_XK_Armenian_sha = 0x1000577
  875. const m_XK_Armenian_shesht = 0x100055b
  876. const m_XK_Armenian_tche = 0x1000573
  877. const m_XK_Armenian_to = 0x1000569
  878. const m_XK_Armenian_tsa = 0x100056e
  879. const m_XK_Armenian_tso = 0x1000581
  880. const m_XK_Armenian_tyun = 0x100057f
  881. const m_XK_Armenian_verjaket = 0x1000589
  882. const m_XK_Armenian_vev = 0x100057e
  883. const m_XK_Armenian_vo = 0x1000578
  884. const m_XK_Armenian_vyun = 0x1000582
  885. const m_XK_Armenian_yech = 0x1000565
  886. const m_XK_Armenian_yentamna = 0x100058a
  887. const m_XK_Armenian_za = 0x1000566
  888. const m_XK_Armenian_zhe = 0x100056a
  889. const m_XK_Atilde = 0x00c3
  890. const m_XK_AudibleBell_Enable = 0xfe7a
  891. const m_XK_B = 0x0042
  892. const m_XK_Babovedot = 0x1001e02
  893. const m_XK_BackSpace = 0xff08
  894. const m_XK_Begin = 0xff58
  895. const m_XK_BounceKeys_Enable = 0xfe74
  896. const m_XK_Break = 0xff6b
  897. const m_XK_Byelorussian_SHORTU = 0x06be
  898. const m_XK_Byelorussian_shortu = 0x06ae
  899. const m_XK_C = 0x0043
  900. const m_XK_CH = 0xfea2
  901. const m_XK_C_H = 0xfea5
  902. const m_XK_C_h = 0xfea4
  903. const m_XK_Cabovedot = 0x02c5
  904. const m_XK_Cacute = 0x01c6
  905. const m_XK_Cancel = 0xff69
  906. const m_XK_Caps_Lock = 0xffe5
  907. const m_XK_Ccaron = 0x01c8
  908. const m_XK_Ccedilla = 0x00c7
  909. const m_XK_Ccircumflex = 0x02c6
  910. const m_XK_Ch = 0xfea1
  911. const m_XK_Clear = 0xff0b
  912. const m_XK_Codeinput = 0xff37
  913. const m_XK_ColonSign = 0x10020a1
  914. const m_XK_Control_L = 0xffe3
  915. const m_XK_Control_R = 0xffe4
  916. const m_XK_CruzeiroSign = 0x10020a2
  917. const m_XK_Cyrillic_A = 0x06e1
  918. const m_XK_Cyrillic_BE = 0x06e2
  919. const m_XK_Cyrillic_CHE = 0x06fe
  920. const m_XK_Cyrillic_CHE_descender = 0x10004b6
  921. const m_XK_Cyrillic_CHE_vertstroke = 0x10004b8
  922. const m_XK_Cyrillic_DE = 0x06e4
  923. const m_XK_Cyrillic_DZHE = 0x06bf
  924. const m_XK_Cyrillic_E = 0x06fc
  925. const m_XK_Cyrillic_EF = 0x06e6
  926. const m_XK_Cyrillic_EL = 0x06ec
  927. const m_XK_Cyrillic_EM = 0x06ed
  928. const m_XK_Cyrillic_EN = 0x06ee
  929. const m_XK_Cyrillic_EN_descender = 0x10004a2
  930. const m_XK_Cyrillic_ER = 0x06f2
  931. const m_XK_Cyrillic_ES = 0x06f3
  932. const m_XK_Cyrillic_GHE = 0x06e7
  933. const m_XK_Cyrillic_GHE_bar = 0x1000492
  934. const m_XK_Cyrillic_HA = 0x06e8
  935. const m_XK_Cyrillic_HARDSIGN = 0x06ff
  936. const m_XK_Cyrillic_HA_descender = 0x10004b2
  937. const m_XK_Cyrillic_I = 0x06e9
  938. const m_XK_Cyrillic_IE = 0x06e5
  939. const m_XK_Cyrillic_IO = 0x06b3
  940. const m_XK_Cyrillic_I_macron = 0x10004e2
  941. const m_XK_Cyrillic_JE = 0x06b8
  942. const m_XK_Cyrillic_KA = 0x06eb
  943. const m_XK_Cyrillic_KA_descender = 0x100049a
  944. const m_XK_Cyrillic_KA_vertstroke = 0x100049c
  945. const m_XK_Cyrillic_LJE = 0x06b9
  946. const m_XK_Cyrillic_NJE = 0x06ba
  947. const m_XK_Cyrillic_O = 0x06ef
  948. const m_XK_Cyrillic_O_bar = 0x10004e8
  949. const m_XK_Cyrillic_PE = 0x06f0
  950. const m_XK_Cyrillic_SCHWA = 0x10004d8
  951. const m_XK_Cyrillic_SHA = 0x06fb
  952. const m_XK_Cyrillic_SHCHA = 0x06fd
  953. const m_XK_Cyrillic_SHHA = 0x10004ba
  954. const m_XK_Cyrillic_SHORTI = 0x06ea
  955. const m_XK_Cyrillic_SOFTSIGN = 0x06f8
  956. const m_XK_Cyrillic_TE = 0x06f4
  957. const m_XK_Cyrillic_TSE = 0x06e3
  958. const m_XK_Cyrillic_U = 0x06f5
  959. const m_XK_Cyrillic_U_macron = 0x10004ee
  960. const m_XK_Cyrillic_U_straight = 0x10004ae
  961. const m_XK_Cyrillic_U_straight_bar = 0x10004b0
  962. const m_XK_Cyrillic_VE = 0x06f7
  963. const m_XK_Cyrillic_YA = 0x06f1
  964. const m_XK_Cyrillic_YERU = 0x06f9
  965. const m_XK_Cyrillic_YU = 0x06e0
  966. const m_XK_Cyrillic_ZE = 0x06fa
  967. const m_XK_Cyrillic_ZHE = 0x06f6
  968. const m_XK_Cyrillic_ZHE_descender = 0x1000496
  969. const m_XK_Cyrillic_a = 0x06c1
  970. const m_XK_Cyrillic_be = 0x06c2
  971. const m_XK_Cyrillic_che = 0x06de
  972. const m_XK_Cyrillic_che_descender = 0x10004b7
  973. const m_XK_Cyrillic_che_vertstroke = 0x10004b9
  974. const m_XK_Cyrillic_de = 0x06c4
  975. const m_XK_Cyrillic_dzhe = 0x06af
  976. const m_XK_Cyrillic_e = 0x06dc
  977. const m_XK_Cyrillic_ef = 0x06c6
  978. const m_XK_Cyrillic_el = 0x06cc
  979. const m_XK_Cyrillic_em = 0x06cd
  980. const m_XK_Cyrillic_en = 0x06ce
  981. const m_XK_Cyrillic_en_descender = 0x10004a3
  982. const m_XK_Cyrillic_er = 0x06d2
  983. const m_XK_Cyrillic_es = 0x06d3
  984. const m_XK_Cyrillic_ghe = 0x06c7
  985. const m_XK_Cyrillic_ghe_bar = 0x1000493
  986. const m_XK_Cyrillic_ha = 0x06c8
  987. const m_XK_Cyrillic_ha_descender = 0x10004b3
  988. const m_XK_Cyrillic_hardsign = 0x06df
  989. const m_XK_Cyrillic_i = 0x06c9
  990. const m_XK_Cyrillic_i_macron = 0x10004e3
  991. const m_XK_Cyrillic_ie = 0x06c5
  992. const m_XK_Cyrillic_io = 0x06a3
  993. const m_XK_Cyrillic_je = 0x06a8
  994. const m_XK_Cyrillic_ka = 0x06cb
  995. const m_XK_Cyrillic_ka_descender = 0x100049b
  996. const m_XK_Cyrillic_ka_vertstroke = 0x100049d
  997. const m_XK_Cyrillic_lje = 0x06a9
  998. const m_XK_Cyrillic_nje = 0x06aa
  999. const m_XK_Cyrillic_o = 0x06cf
  1000. const m_XK_Cyrillic_o_bar = 0x10004e9
  1001. const m_XK_Cyrillic_pe = 0x06d0
  1002. const m_XK_Cyrillic_schwa = 0x10004d9
  1003. const m_XK_Cyrillic_sha = 0x06db
  1004. const m_XK_Cyrillic_shcha = 0x06dd
  1005. const m_XK_Cyrillic_shha = 0x10004bb
  1006. const m_XK_Cyrillic_shorti = 0x06ca
  1007. const m_XK_Cyrillic_softsign = 0x06d8
  1008. const m_XK_Cyrillic_te = 0x06d4
  1009. const m_XK_Cyrillic_tse = 0x06c3
  1010. const m_XK_Cyrillic_u = 0x06d5
  1011. const m_XK_Cyrillic_u_macron = 0x10004ef
  1012. const m_XK_Cyrillic_u_straight = 0x10004af
  1013. const m_XK_Cyrillic_u_straight_bar = 0x10004b1
  1014. const m_XK_Cyrillic_ve = 0x06d7
  1015. const m_XK_Cyrillic_ya = 0x06d1
  1016. const m_XK_Cyrillic_yeru = 0x06d9
  1017. const m_XK_Cyrillic_yu = 0x06c0
  1018. const m_XK_Cyrillic_ze = 0x06da
  1019. const m_XK_Cyrillic_zhe = 0x06d6
  1020. const m_XK_Cyrillic_zhe_descender = 0x1000497
  1021. const m_XK_D = 0x0044
  1022. const m_XK_Dabovedot = 0x1001e0a
  1023. const m_XK_Dcaron = 0x01cf
  1024. const m_XK_Delete = 0xffff
  1025. const m_XK_DongSign = 0x10020ab
  1026. const m_XK_Down = 0xff54
  1027. const m_XK_Dstroke = 0x01d0
  1028. const m_XK_E = 0x0045
  1029. const m_XK_ENG = 0x03bd
  1030. const m_XK_ETH = 0x00d0
  1031. const m_XK_EZH = 0x10001b7
  1032. const m_XK_Eabovedot = 0x03cc
  1033. const m_XK_Eacute = 0x00c9
  1034. const m_XK_Ebelowdot = 0x1001eb8
  1035. const m_XK_Ecaron = 0x01cc
  1036. const m_XK_Ecircumflex = 0x00ca
  1037. const m_XK_Ecircumflexacute = 0x1001ebe
  1038. const m_XK_Ecircumflexbelowdot = 0x1001ec6
  1039. const m_XK_Ecircumflexgrave = 0x1001ec0
  1040. const m_XK_Ecircumflexhook = 0x1001ec2
  1041. const m_XK_Ecircumflextilde = 0x1001ec4
  1042. const m_XK_EcuSign = 0x10020a0
  1043. const m_XK_Ediaeresis = 0x00cb
  1044. const m_XK_Egrave = 0x00c8
  1045. const m_XK_Ehook = 0x1001eba
  1046. const m_XK_Eisu_Shift = 0xff2f
  1047. const m_XK_Eisu_toggle = 0xff30
  1048. const m_XK_Emacron = 0x03aa
  1049. const m_XK_End = 0xff57
  1050. const m_XK_Eogonek = 0x01ca
  1051. const m_XK_Escape = 0xff1b
  1052. const m_XK_Eth = 0x00d0
  1053. const m_XK_Etilde = 0x1001ebc
  1054. const m_XK_EuroSign = 0x20ac
  1055. const m_XK_Execute = 0xff62
  1056. const m_XK_F = 0x0046
  1057. const m_XK_F1 = 0xffbe
  1058. const m_XK_F10 = 0xffc7
  1059. const m_XK_F11 = 0xffc8
  1060. const m_XK_F12 = 0xffc9
  1061. const m_XK_F13 = 0xffca
  1062. const m_XK_F14 = 0xffcb
  1063. const m_XK_F15 = 0xffcc
  1064. const m_XK_F16 = 0xffcd
  1065. const m_XK_F17 = 0xffce
  1066. const m_XK_F18 = 0xffcf
  1067. const m_XK_F19 = 0xffd0
  1068. const m_XK_F2 = 0xffbf
  1069. const m_XK_F20 = 0xffd1
  1070. const m_XK_F21 = 0xffd2
  1071. const m_XK_F22 = 0xffd3
  1072. const m_XK_F23 = 0xffd4
  1073. const m_XK_F24 = 0xffd5
  1074. const m_XK_F25 = 0xffd6
  1075. const m_XK_F26 = 0xffd7
  1076. const m_XK_F27 = 0xffd8
  1077. const m_XK_F28 = 0xffd9
  1078. const m_XK_F29 = 0xffda
  1079. const m_XK_F3 = 0xffc0
  1080. const m_XK_F30 = 0xffdb
  1081. const m_XK_F31 = 0xffdc
  1082. const m_XK_F32 = 0xffdd
  1083. const m_XK_F33 = 0xffde
  1084. const m_XK_F34 = 0xffdf
  1085. const m_XK_F35 = 0xffe0
  1086. const m_XK_F4 = 0xffc1
  1087. const m_XK_F5 = 0xffc2
  1088. const m_XK_F6 = 0xffc3
  1089. const m_XK_F7 = 0xffc4
  1090. const m_XK_F8 = 0xffc5
  1091. const m_XK_F9 = 0xffc6
  1092. const m_XK_FFrancSign = 0x10020a3
  1093. const m_XK_Fabovedot = 0x1001e1e
  1094. const m_XK_Farsi_0 = 0x10006f0
  1095. const m_XK_Farsi_1 = 0x10006f1
  1096. const m_XK_Farsi_2 = 0x10006f2
  1097. const m_XK_Farsi_3 = 0x10006f3
  1098. const m_XK_Farsi_4 = 0x10006f4
  1099. const m_XK_Farsi_5 = 0x10006f5
  1100. const m_XK_Farsi_6 = 0x10006f6
  1101. const m_XK_Farsi_7 = 0x10006f7
  1102. const m_XK_Farsi_8 = 0x10006f8
  1103. const m_XK_Farsi_9 = 0x10006f9
  1104. const m_XK_Farsi_yeh = 0x10006cc
  1105. const m_XK_Find = 0xff68
  1106. const m_XK_First_Virtual_Screen = 0xfed0
  1107. const m_XK_G = 0x0047
  1108. const m_XK_Gabovedot = 0x02d5
  1109. const m_XK_Gbreve = 0x02ab
  1110. const m_XK_Gcaron = 0x10001e6
  1111. const m_XK_Gcedilla = 0x03ab
  1112. const m_XK_Gcircumflex = 0x02d8
  1113. const m_XK_Georgian_an = 0x10010d0
  1114. const m_XK_Georgian_ban = 0x10010d1
  1115. const m_XK_Georgian_can = 0x10010ea
  1116. const m_XK_Georgian_char = 0x10010ed
  1117. const m_XK_Georgian_chin = 0x10010e9
  1118. const m_XK_Georgian_cil = 0x10010ec
  1119. const m_XK_Georgian_don = 0x10010d3
  1120. const m_XK_Georgian_en = 0x10010d4
  1121. const m_XK_Georgian_fi = 0x10010f6
  1122. const m_XK_Georgian_gan = 0x10010d2
  1123. const m_XK_Georgian_ghan = 0x10010e6
  1124. const m_XK_Georgian_hae = 0x10010f0
  1125. const m_XK_Georgian_har = 0x10010f4
  1126. const m_XK_Georgian_he = 0x10010f1
  1127. const m_XK_Georgian_hie = 0x10010f2
  1128. const m_XK_Georgian_hoe = 0x10010f5
  1129. const m_XK_Georgian_in = 0x10010d8
  1130. const m_XK_Georgian_jhan = 0x10010ef
  1131. const m_XK_Georgian_jil = 0x10010eb
  1132. const m_XK_Georgian_kan = 0x10010d9
  1133. const m_XK_Georgian_khar = 0x10010e5
  1134. const m_XK_Georgian_las = 0x10010da
  1135. const m_XK_Georgian_man = 0x10010db
  1136. const m_XK_Georgian_nar = 0x10010dc
  1137. const m_XK_Georgian_on = 0x10010dd
  1138. const m_XK_Georgian_par = 0x10010de
  1139. const m_XK_Georgian_phar = 0x10010e4
  1140. const m_XK_Georgian_qar = 0x10010e7
  1141. const m_XK_Georgian_rae = 0x10010e0
  1142. const m_XK_Georgian_san = 0x10010e1
  1143. const m_XK_Georgian_shin = 0x10010e8
  1144. const m_XK_Georgian_tan = 0x10010d7
  1145. const m_XK_Georgian_tar = 0x10010e2
  1146. const m_XK_Georgian_un = 0x10010e3
  1147. const m_XK_Georgian_vin = 0x10010d5
  1148. const m_XK_Georgian_we = 0x10010f3
  1149. const m_XK_Georgian_xan = 0x10010ee
  1150. const m_XK_Georgian_zen = 0x10010d6
  1151. const m_XK_Georgian_zhar = 0x10010df
  1152. const m_XK_Greek_ALPHA = 0x07c1
  1153. const m_XK_Greek_ALPHAaccent = 0x07a1
  1154. const m_XK_Greek_BETA = 0x07c2
  1155. const m_XK_Greek_CHI = 0x07d7
  1156. const m_XK_Greek_DELTA = 0x07c4
  1157. const m_XK_Greek_EPSILON = 0x07c5
  1158. const m_XK_Greek_EPSILONaccent = 0x07a2
  1159. const m_XK_Greek_ETA = 0x07c7
  1160. const m_XK_Greek_ETAaccent = 0x07a3
  1161. const m_XK_Greek_GAMMA = 0x07c3
  1162. const m_XK_Greek_IOTA = 0x07c9
  1163. const m_XK_Greek_IOTAaccent = 0x07a4
  1164. const m_XK_Greek_IOTAdiaeresis = 0x07a5
  1165. const m_XK_Greek_IOTAdieresis = 0x07a5
  1166. const m_XK_Greek_KAPPA = 0x07ca
  1167. const m_XK_Greek_LAMBDA = 0x07cb
  1168. const m_XK_Greek_LAMDA = 0x07cb
  1169. const m_XK_Greek_MU = 0x07cc
  1170. const m_XK_Greek_NU = 0x07cd
  1171. const m_XK_Greek_OMEGA = 0x07d9
  1172. const m_XK_Greek_OMEGAaccent = 0x07ab
  1173. const m_XK_Greek_OMICRON = 0x07cf
  1174. const m_XK_Greek_OMICRONaccent = 0x07a7
  1175. const m_XK_Greek_PHI = 0x07d6
  1176. const m_XK_Greek_PI = 0x07d0
  1177. const m_XK_Greek_PSI = 0x07d8
  1178. const m_XK_Greek_RHO = 0x07d1
  1179. const m_XK_Greek_SIGMA = 0x07d2
  1180. const m_XK_Greek_TAU = 0x07d4
  1181. const m_XK_Greek_THETA = 0x07c8
  1182. const m_XK_Greek_UPSILON = 0x07d5
  1183. const m_XK_Greek_UPSILONaccent = 0x07a8
  1184. const m_XK_Greek_UPSILONdieresis = 0x07a9
  1185. const m_XK_Greek_XI = 0x07ce
  1186. const m_XK_Greek_ZETA = 0x07c6
  1187. const m_XK_Greek_accentdieresis = 0x07ae
  1188. const m_XK_Greek_alpha = 0x07e1
  1189. const m_XK_Greek_alphaaccent = 0x07b1
  1190. const m_XK_Greek_beta = 0x07e2
  1191. const m_XK_Greek_chi = 0x07f7
  1192. const m_XK_Greek_delta = 0x07e4
  1193. const m_XK_Greek_epsilon = 0x07e5
  1194. const m_XK_Greek_epsilonaccent = 0x07b2
  1195. const m_XK_Greek_eta = 0x07e7
  1196. const m_XK_Greek_etaaccent = 0x07b3
  1197. const m_XK_Greek_finalsmallsigma = 0x07f3
  1198. const m_XK_Greek_gamma = 0x07e3
  1199. const m_XK_Greek_horizbar = 0x07af
  1200. const m_XK_Greek_iota = 0x07e9
  1201. const m_XK_Greek_iotaaccent = 0x07b4
  1202. const m_XK_Greek_iotaaccentdieresis = 0x07b6
  1203. const m_XK_Greek_iotadieresis = 0x07b5
  1204. const m_XK_Greek_kappa = 0x07ea
  1205. const m_XK_Greek_lambda = 0x07eb
  1206. const m_XK_Greek_lamda = 0x07eb
  1207. const m_XK_Greek_mu = 0x07ec
  1208. const m_XK_Greek_nu = 0x07ed
  1209. const m_XK_Greek_omega = 0x07f9
  1210. const m_XK_Greek_omegaaccent = 0x07bb
  1211. const m_XK_Greek_omicron = 0x07ef
  1212. const m_XK_Greek_omicronaccent = 0x07b7
  1213. const m_XK_Greek_phi = 0x07f6
  1214. const m_XK_Greek_pi = 0x07f0
  1215. const m_XK_Greek_psi = 0x07f8
  1216. const m_XK_Greek_rho = 0x07f1
  1217. const m_XK_Greek_sigma = 0x07f2
  1218. const m_XK_Greek_switch = 0xff7e
  1219. const m_XK_Greek_tau = 0x07f4
  1220. const m_XK_Greek_theta = 0x07e8
  1221. const m_XK_Greek_upsilon = 0x07f5
  1222. const m_XK_Greek_upsilonaccent = 0x07b8
  1223. const m_XK_Greek_upsilonaccentdieresis = 0x07ba
  1224. const m_XK_Greek_upsilondieresis = 0x07b9
  1225. const m_XK_Greek_xi = 0x07ee
  1226. const m_XK_Greek_zeta = 0x07e6
  1227. const m_XK_H = 0x0048
  1228. const m_XK_Hangul = 0xff31
  1229. const m_XK_Hangul_A = 0x0ebf
  1230. const m_XK_Hangul_AE = 0x0ec0
  1231. const m_XK_Hangul_AraeA = 0x0ef6
  1232. const m_XK_Hangul_AraeAE = 0x0ef7
  1233. const m_XK_Hangul_Banja = 0xff39
  1234. const m_XK_Hangul_Cieuc = 0x0eba
  1235. const m_XK_Hangul_Codeinput = 0xff37
  1236. const m_XK_Hangul_Dikeud = 0x0ea7
  1237. const m_XK_Hangul_E = 0x0ec4
  1238. const m_XK_Hangul_EO = 0x0ec3
  1239. const m_XK_Hangul_EU = 0x0ed1
  1240. const m_XK_Hangul_End = 0xff33
  1241. const m_XK_Hangul_Hanja = 0xff34
  1242. const m_XK_Hangul_Hieuh = 0x0ebe
  1243. const m_XK_Hangul_I = 0x0ed3
  1244. const m_XK_Hangul_Ieung = 0x0eb7
  1245. const m_XK_Hangul_J_Cieuc = 0x0eea
  1246. const m_XK_Hangul_J_Dikeud = 0x0eda
  1247. const m_XK_Hangul_J_Hieuh = 0x0eee
  1248. const m_XK_Hangul_J_Ieung = 0x0ee8
  1249. const m_XK_Hangul_J_Jieuj = 0x0ee9
  1250. const m_XK_Hangul_J_Khieuq = 0x0eeb
  1251. const m_XK_Hangul_J_Kiyeog = 0x0ed4
  1252. const m_XK_Hangul_J_KiyeogSios = 0x0ed6
  1253. const m_XK_Hangul_J_KkogjiDalrinIeung = 0x0ef9
  1254. const m_XK_Hangul_J_Mieum = 0x0ee3
  1255. const m_XK_Hangul_J_Nieun = 0x0ed7
  1256. const m_XK_Hangul_J_NieunHieuh = 0x0ed9
  1257. const m_XK_Hangul_J_NieunJieuj = 0x0ed8
  1258. const m_XK_Hangul_J_PanSios = 0x0ef8
  1259. const m_XK_Hangul_J_Phieuf = 0x0eed
  1260. const m_XK_Hangul_J_Pieub = 0x0ee4
  1261. const m_XK_Hangul_J_PieubSios = 0x0ee5
  1262. const m_XK_Hangul_J_Rieul = 0x0edb
  1263. const m_XK_Hangul_J_RieulHieuh = 0x0ee2
  1264. const m_XK_Hangul_J_RieulKiyeog = 0x0edc
  1265. const m_XK_Hangul_J_RieulMieum = 0x0edd
  1266. const m_XK_Hangul_J_RieulPhieuf = 0x0ee1
  1267. const m_XK_Hangul_J_RieulPieub = 0x0ede
  1268. const m_XK_Hangul_J_RieulSios = 0x0edf
  1269. const m_XK_Hangul_J_RieulTieut = 0x0ee0
  1270. const m_XK_Hangul_J_Sios = 0x0ee6
  1271. const m_XK_Hangul_J_SsangKiyeog = 0x0ed5
  1272. const m_XK_Hangul_J_SsangSios = 0x0ee7
  1273. const m_XK_Hangul_J_Tieut = 0x0eec
  1274. const m_XK_Hangul_J_YeorinHieuh = 0x0efa
  1275. const m_XK_Hangul_Jamo = 0xff35
  1276. const m_XK_Hangul_Jeonja = 0xff38
  1277. const m_XK_Hangul_Jieuj = 0x0eb8
  1278. const m_XK_Hangul_Khieuq = 0x0ebb
  1279. const m_XK_Hangul_Kiyeog = 0x0ea1
  1280. const m_XK_Hangul_KiyeogSios = 0x0ea3
  1281. const m_XK_Hangul_KkogjiDalrinIeung = 0x0ef3
  1282. const m_XK_Hangul_Mieum = 0x0eb1
  1283. const m_XK_Hangul_MultipleCandidate = 0xff3d
  1284. const m_XK_Hangul_Nieun = 0x0ea4
  1285. const m_XK_Hangul_NieunHieuh = 0x0ea6
  1286. const m_XK_Hangul_NieunJieuj = 0x0ea5
  1287. const m_XK_Hangul_O = 0x0ec7
  1288. const m_XK_Hangul_OE = 0x0eca
  1289. const m_XK_Hangul_PanSios = 0x0ef2
  1290. const m_XK_Hangul_Phieuf = 0x0ebd
  1291. const m_XK_Hangul_Pieub = 0x0eb2
  1292. const m_XK_Hangul_PieubSios = 0x0eb4
  1293. const m_XK_Hangul_PostHanja = 0xff3b
  1294. const m_XK_Hangul_PreHanja = 0xff3a
  1295. const m_XK_Hangul_PreviousCandidate = 0xff3e
  1296. const m_XK_Hangul_Rieul = 0x0ea9
  1297. const m_XK_Hangul_RieulHieuh = 0x0eb0
  1298. const m_XK_Hangul_RieulKiyeog = 0x0eaa
  1299. const m_XK_Hangul_RieulMieum = 0x0eab
  1300. const m_XK_Hangul_RieulPhieuf = 0x0eaf
  1301. const m_XK_Hangul_RieulPieub = 0x0eac
  1302. const m_XK_Hangul_RieulSios = 0x0ead
  1303. const m_XK_Hangul_RieulTieut = 0x0eae
  1304. const m_XK_Hangul_RieulYeorinHieuh = 0x0eef
  1305. const m_XK_Hangul_Romaja = 0xff36
  1306. const m_XK_Hangul_SingleCandidate = 0xff3c
  1307. const m_XK_Hangul_Sios = 0x0eb5
  1308. const m_XK_Hangul_Special = 0xff3f
  1309. const m_XK_Hangul_SsangDikeud = 0x0ea8
  1310. const m_XK_Hangul_SsangJieuj = 0x0eb9
  1311. const m_XK_Hangul_SsangKiyeog = 0x0ea2
  1312. const m_XK_Hangul_SsangPieub = 0x0eb3
  1313. const m_XK_Hangul_SsangSios = 0x0eb6
  1314. const m_XK_Hangul_Start = 0xff32
  1315. const m_XK_Hangul_SunkyeongeumMieum = 0x0ef0
  1316. const m_XK_Hangul_SunkyeongeumPhieuf = 0x0ef4
  1317. const m_XK_Hangul_SunkyeongeumPieub = 0x0ef1
  1318. const m_XK_Hangul_Tieut = 0x0ebc
  1319. const m_XK_Hangul_U = 0x0ecc
  1320. const m_XK_Hangul_WA = 0x0ec8
  1321. const m_XK_Hangul_WAE = 0x0ec9
  1322. const m_XK_Hangul_WE = 0x0ece
  1323. const m_XK_Hangul_WEO = 0x0ecd
  1324. const m_XK_Hangul_WI = 0x0ecf
  1325. const m_XK_Hangul_YA = 0x0ec1
  1326. const m_XK_Hangul_YAE = 0x0ec2
  1327. const m_XK_Hangul_YE = 0x0ec6
  1328. const m_XK_Hangul_YEO = 0x0ec5
  1329. const m_XK_Hangul_YI = 0x0ed2
  1330. const m_XK_Hangul_YO = 0x0ecb
  1331. const m_XK_Hangul_YU = 0x0ed0
  1332. const m_XK_Hangul_YeorinHieuh = 0x0ef5
  1333. const m_XK_Hangul_switch = 0xff7e
  1334. const m_XK_Hankaku = 0xff29
  1335. const m_XK_Hcircumflex = 0x02a6
  1336. const m_XK_Hebrew_switch = 0xff7e
  1337. const m_XK_Help = 0xff6a
  1338. const m_XK_Henkan = 0xff23
  1339. const m_XK_Henkan_Mode = 0xff23
  1340. const m_XK_Hiragana = 0xff25
  1341. const m_XK_Hiragana_Katakana = 0xff27
  1342. const m_XK_Home = 0xff50
  1343. const m_XK_Hstroke = 0x02a1
  1344. const m_XK_Hyper_L = 0xffed
  1345. const m_XK_Hyper_R = 0xffee
  1346. const m_XK_I = 0x0049
  1347. const m_XK_ISO_Center_Object = 0xfe33
  1348. const m_XK_ISO_Continuous_Underline = 0xfe30
  1349. const m_XK_ISO_Discontinuous_Underline = 0xfe31
  1350. const m_XK_ISO_Emphasize = 0xfe32
  1351. const m_XK_ISO_Enter = 0xfe34
  1352. const m_XK_ISO_Fast_Cursor_Down = 0xfe2f
  1353. const m_XK_ISO_Fast_Cursor_Left = 0xfe2c
  1354. const m_XK_ISO_Fast_Cursor_Right = 0xfe2d
  1355. const m_XK_ISO_Fast_Cursor_Up = 0xfe2e
  1356. const m_XK_ISO_First_Group = 0xfe0c
  1357. const m_XK_ISO_First_Group_Lock = 0xfe0d
  1358. const m_XK_ISO_Group_Latch = 0xfe06
  1359. const m_XK_ISO_Group_Lock = 0xfe07
  1360. const m_XK_ISO_Group_Shift = 0xff7e
  1361. const m_XK_ISO_Last_Group = 0xfe0e
  1362. const m_XK_ISO_Last_Group_Lock = 0xfe0f
  1363. const m_XK_ISO_Left_Tab = 0xfe20
  1364. const m_XK_ISO_Level2_Latch = 0xfe02
  1365. const m_XK_ISO_Level3_Latch = 0xfe04
  1366. const m_XK_ISO_Level3_Lock = 0xfe05
  1367. const m_XK_ISO_Level3_Shift = 0xfe03
  1368. const m_XK_ISO_Level5_Latch = 0xfe12
  1369. const m_XK_ISO_Level5_Lock = 0xfe13
  1370. const m_XK_ISO_Level5_Shift = 0xfe11
  1371. const m_XK_ISO_Lock = 0xfe01
  1372. const m_XK_ISO_Move_Line_Down = 0xfe22
  1373. const m_XK_ISO_Move_Line_Up = 0xfe21
  1374. const m_XK_ISO_Next_Group = 0xfe08
  1375. const m_XK_ISO_Next_Group_Lock = 0xfe09
  1376. const m_XK_ISO_Partial_Line_Down = 0xfe24
  1377. const m_XK_ISO_Partial_Line_Up = 0xfe23
  1378. const m_XK_ISO_Partial_Space_Left = 0xfe25
  1379. const m_XK_ISO_Partial_Space_Right = 0xfe26
  1380. const m_XK_ISO_Prev_Group = 0xfe0a
  1381. const m_XK_ISO_Prev_Group_Lock = 0xfe0b
  1382. const m_XK_ISO_Release_Both_Margins = 0xfe2b
  1383. const m_XK_ISO_Release_Margin_Left = 0xfe29
  1384. const m_XK_ISO_Release_Margin_Right = 0xfe2a
  1385. const m_XK_ISO_Set_Margin_Left = 0xfe27
  1386. const m_XK_ISO_Set_Margin_Right = 0xfe28
  1387. const m_XK_Iabovedot = 0x02a9
  1388. const m_XK_Iacute = 0x00cd
  1389. const m_XK_Ibelowdot = 0x1001eca
  1390. const m_XK_Ibreve = 0x100012c
  1391. const m_XK_Icircumflex = 0x00ce
  1392. const m_XK_Idiaeresis = 0x00cf
  1393. const m_XK_Igrave = 0x00cc
  1394. const m_XK_Ihook = 0x1001ec8
  1395. const m_XK_Imacron = 0x03cf
  1396. const m_XK_Insert = 0xff63
  1397. const m_XK_Iogonek = 0x03c7
  1398. const m_XK_Itilde = 0x03a5
  1399. const m_XK_J = 0x004a
  1400. const m_XK_Jcircumflex = 0x02ac
  1401. const m_XK_K = 0x004b
  1402. const m_XK_KP_0 = 0xffb0
  1403. const m_XK_KP_1 = 0xffb1
  1404. const m_XK_KP_2 = 0xffb2
  1405. const m_XK_KP_3 = 0xffb3
  1406. const m_XK_KP_4 = 0xffb4
  1407. const m_XK_KP_5 = 0xffb5
  1408. const m_XK_KP_6 = 0xffb6
  1409. const m_XK_KP_7 = 0xffb7
  1410. const m_XK_KP_8 = 0xffb8
  1411. const m_XK_KP_9 = 0xffb9
  1412. const m_XK_KP_Add = 0xffab
  1413. const m_XK_KP_Begin = 0xff9d
  1414. const m_XK_KP_Decimal = 0xffae
  1415. const m_XK_KP_Delete = 0xff9f
  1416. const m_XK_KP_Divide = 0xffaf
  1417. const m_XK_KP_Down = 0xff99
  1418. const m_XK_KP_End = 0xff9c
  1419. const m_XK_KP_Enter = 0xff8d
  1420. const m_XK_KP_Equal = 0xffbd
  1421. const m_XK_KP_F1 = 0xff91
  1422. const m_XK_KP_F2 = 0xff92
  1423. const m_XK_KP_F3 = 0xff93
  1424. const m_XK_KP_F4 = 0xff94
  1425. const m_XK_KP_Home = 0xff95
  1426. const m_XK_KP_Insert = 0xff9e
  1427. const m_XK_KP_Left = 0xff96
  1428. const m_XK_KP_Multiply = 0xffaa
  1429. const m_XK_KP_Next = 0xff9b
  1430. const m_XK_KP_Page_Down = 0xff9b
  1431. const m_XK_KP_Page_Up = 0xff9a
  1432. const m_XK_KP_Prior = 0xff9a
  1433. const m_XK_KP_Right = 0xff98
  1434. const m_XK_KP_Separator = 0xffac
  1435. const m_XK_KP_Space = 0xff80
  1436. const m_XK_KP_Subtract = 0xffad
  1437. const m_XK_KP_Tab = 0xff89
  1438. const m_XK_KP_Up = 0xff97
  1439. const m_XK_Kana_Lock = 0xff2d
  1440. const m_XK_Kana_Shift = 0xff2e
  1441. const m_XK_Kanji = 0xff21
  1442. const m_XK_Kanji_Bangou = 0xff37
  1443. const m_XK_Katakana = 0xff26
  1444. const m_XK_Kcedilla = 0x03d3
  1445. const m_XK_Korean_Won = 0x0eff
  1446. const m_XK_L = 0x004c
  1447. const m_XK_L1 = 0xffc8
  1448. const m_XK_L10 = 0xffd1
  1449. const m_XK_L2 = 0xffc9
  1450. const m_XK_L3 = 0xffca
  1451. const m_XK_L4 = 0xffcb
  1452. const m_XK_L5 = 0xffcc
  1453. const m_XK_L6 = 0xffcd
  1454. const m_XK_L7 = 0xffce
  1455. const m_XK_L8 = 0xffcf
  1456. const m_XK_L9 = 0xffd0
  1457. const m_XK_Lacute = 0x01c5
  1458. const m_XK_Last_Virtual_Screen = 0xfed4
  1459. const m_XK_Lbelowdot = 0x1001e36
  1460. const m_XK_Lcaron = 0x01a5
  1461. const m_XK_Lcedilla = 0x03a6
  1462. const m_XK_Left = 0xff51
  1463. const m_XK_Linefeed = 0xff0a
  1464. const m_XK_LiraSign = 0x10020a4
  1465. const m_XK_Lstroke = 0x01a3
  1466. const m_XK_M = 0x004d
  1467. const m_XK_Mabovedot = 0x1001e40
  1468. const m_XK_Macedonia_DSE = 0x06b5
  1469. const m_XK_Macedonia_GJE = 0x06b2
  1470. const m_XK_Macedonia_KJE = 0x06bc
  1471. const m_XK_Macedonia_dse = 0x06a5
  1472. const m_XK_Macedonia_gje = 0x06a2
  1473. const m_XK_Macedonia_kje = 0x06ac
  1474. const m_XK_Mae_Koho = 0xff3e
  1475. const m_XK_Massyo = 0xff2c
  1476. const m_XK_Menu = 0xff67
  1477. const m_XK_Meta_L = 0xffe7
  1478. const m_XK_Meta_R = 0xffe8
  1479. const m_XK_MillSign = 0x10020a5
  1480. const m_XK_Mode_switch = 0xff7e
  1481. const m_XK_MouseKeys_Accel_Enable = 0xfe77
  1482. const m_XK_MouseKeys_Enable = 0xfe76
  1483. const m_XK_Muhenkan = 0xff22
  1484. const m_XK_Multi_key = 0xff20
  1485. const m_XK_MultipleCandidate = 0xff3d
  1486. const m_XK_N = 0x004e
  1487. const m_XK_Nacute = 0x01d1
  1488. const m_XK_NairaSign = 0x10020a6
  1489. const m_XK_Ncaron = 0x01d2
  1490. const m_XK_Ncedilla = 0x03d1
  1491. const m_XK_NewSheqelSign = 0x10020aa
  1492. const m_XK_Next = 0xff56
  1493. const m_XK_Next_Virtual_Screen = 0xfed2
  1494. const m_XK_Ntilde = 0x00d1
  1495. const m_XK_Num_Lock = 0xff7f
  1496. const m_XK_O = 0x004f
  1497. const m_XK_OE = 0x13bc
  1498. const m_XK_Oacute = 0x00d3
  1499. const m_XK_Obarred = 0x100019f
  1500. const m_XK_Obelowdot = 0x1001ecc
  1501. const m_XK_Ocaron = 0x10001d1
  1502. const m_XK_Ocircumflex = 0x00d4
  1503. const m_XK_Ocircumflexacute = 0x1001ed0
  1504. const m_XK_Ocircumflexbelowdot = 0x1001ed8
  1505. const m_XK_Ocircumflexgrave = 0x1001ed2
  1506. const m_XK_Ocircumflexhook = 0x1001ed4
  1507. const m_XK_Ocircumflextilde = 0x1001ed6
  1508. const m_XK_Odiaeresis = 0x00d6
  1509. const m_XK_Odoubleacute = 0x01d5
  1510. const m_XK_Ograve = 0x00d2
  1511. const m_XK_Ohook = 0x1001ece
  1512. const m_XK_Ohorn = 0x10001a0
  1513. const m_XK_Ohornacute = 0x1001eda
  1514. const m_XK_Ohornbelowdot = 0x1001ee2
  1515. const m_XK_Ohorngrave = 0x1001edc
  1516. const m_XK_Ohornhook = 0x1001ede
  1517. const m_XK_Ohorntilde = 0x1001ee0
  1518. const m_XK_Omacron = 0x03d2
  1519. const m_XK_Ooblique = 0x00d8
  1520. const m_XK_Oslash = 0x00d8
  1521. const m_XK_Otilde = 0x00d5
  1522. const m_XK_Overlay1_Enable = 0xfe78
  1523. const m_XK_Overlay2_Enable = 0xfe79
  1524. const m_XK_P = 0x0050
  1525. const m_XK_Pabovedot = 0x1001e56
  1526. const m_XK_Page_Down = 0xff56
  1527. const m_XK_Page_Up = 0xff55
  1528. const m_XK_Pause = 0xff13
  1529. const m_XK_PesetaSign = 0x10020a7
  1530. const m_XK_Pointer_Accelerate = 0xfefa
  1531. const m_XK_Pointer_Button1 = 0xfee9
  1532. const m_XK_Pointer_Button2 = 0xfeea
  1533. const m_XK_Pointer_Button3 = 0xfeeb
  1534. const m_XK_Pointer_Button4 = 0xfeec
  1535. const m_XK_Pointer_Button5 = 0xfeed
  1536. const m_XK_Pointer_Button_Dflt = 0xfee8
  1537. const m_XK_Pointer_DblClick1 = 0xfeef
  1538. const m_XK_Pointer_DblClick2 = 0xfef0
  1539. const m_XK_Pointer_DblClick3 = 0xfef1
  1540. const m_XK_Pointer_DblClick4 = 0xfef2
  1541. const m_XK_Pointer_DblClick5 = 0xfef3
  1542. const m_XK_Pointer_DblClick_Dflt = 0xfeee
  1543. const m_XK_Pointer_DfltBtnNext = 0xfefb
  1544. const m_XK_Pointer_DfltBtnPrev = 0xfefc
  1545. const m_XK_Pointer_Down = 0xfee3
  1546. const m_XK_Pointer_DownLeft = 0xfee6
  1547. const m_XK_Pointer_DownRight = 0xfee7
  1548. const m_XK_Pointer_Drag1 = 0xfef5
  1549. const m_XK_Pointer_Drag2 = 0xfef6
  1550. const m_XK_Pointer_Drag3 = 0xfef7
  1551. const m_XK_Pointer_Drag4 = 0xfef8
  1552. const m_XK_Pointer_Drag5 = 0xfefd
  1553. const m_XK_Pointer_Drag_Dflt = 0xfef4
  1554. const m_XK_Pointer_EnableKeys = 0xfef9
  1555. const m_XK_Pointer_Left = 0xfee0
  1556. const m_XK_Pointer_Right = 0xfee1
  1557. const m_XK_Pointer_Up = 0xfee2
  1558. const m_XK_Pointer_UpLeft = 0xfee4
  1559. const m_XK_Pointer_UpRight = 0xfee5
  1560. const m_XK_Prev_Virtual_Screen = 0xfed1
  1561. const m_XK_PreviousCandidate = 0xff3e
  1562. const m_XK_Print = 0xff61
  1563. const m_XK_Prior = 0xff55
  1564. const m_XK_Q = 0x0051
  1565. const m_XK_R = 0x0052
  1566. const m_XK_R1 = 0xffd2
  1567. const m_XK_R10 = 0xffdb
  1568. const m_XK_R11 = 0xffdc
  1569. const m_XK_R12 = 0xffdd
  1570. const m_XK_R13 = 0xffde
  1571. const m_XK_R14 = 0xffdf
  1572. const m_XK_R15 = 0xffe0
  1573. const m_XK_R2 = 0xffd3
  1574. const m_XK_R3 = 0xffd4
  1575. const m_XK_R4 = 0xffd5
  1576. const m_XK_R5 = 0xffd6
  1577. const m_XK_R6 = 0xffd7
  1578. const m_XK_R7 = 0xffd8
  1579. const m_XK_R8 = 0xffd9
  1580. const m_XK_R9 = 0xffda
  1581. const m_XK_Racute = 0x01c0
  1582. const m_XK_Rcaron = 0x01d8
  1583. const m_XK_Rcedilla = 0x03a3
  1584. const m_XK_Redo = 0xff66
  1585. const m_XK_RepeatKeys_Enable = 0xfe72
  1586. const m_XK_Return = 0xff0d
  1587. const m_XK_Right = 0xff53
  1588. const m_XK_Romaji = 0xff24
  1589. const m_XK_RupeeSign = 0x10020a8
  1590. const m_XK_S = 0x0053
  1591. const m_XK_SCHWA = 0x100018f
  1592. const m_XK_Sabovedot = 0x1001e60
  1593. const m_XK_Sacute = 0x01a6
  1594. const m_XK_Scaron = 0x01a9
  1595. const m_XK_Scedilla = 0x01aa
  1596. const m_XK_Scircumflex = 0x02de
  1597. const m_XK_Scroll_Lock = 0xff14
  1598. const m_XK_Select = 0xff60
  1599. const m_XK_Serbian_DJE = 0x06b1
  1600. const m_XK_Serbian_DZE = 0x06bf
  1601. const m_XK_Serbian_JE = 0x06b8
  1602. const m_XK_Serbian_LJE = 0x06b9
  1603. const m_XK_Serbian_NJE = 0x06ba
  1604. const m_XK_Serbian_TSHE = 0x06bb
  1605. const m_XK_Serbian_dje = 0x06a1
  1606. const m_XK_Serbian_dze = 0x06af
  1607. const m_XK_Serbian_je = 0x06a8
  1608. const m_XK_Serbian_lje = 0x06a9
  1609. const m_XK_Serbian_nje = 0x06aa
  1610. const m_XK_Serbian_tshe = 0x06ab
  1611. const m_XK_Shift_L = 0xffe1
  1612. const m_XK_Shift_Lock = 0xffe6
  1613. const m_XK_Shift_R = 0xffe2
  1614. const m_XK_SingleCandidate = 0xff3c
  1615. const m_XK_Sinh_a = 0x1000d85
  1616. const m_XK_Sinh_aa = 0x1000d86
  1617. const m_XK_Sinh_aa2 = 0x1000dcf
  1618. const m_XK_Sinh_ae = 0x1000d87
  1619. const m_XK_Sinh_ae2 = 0x1000dd0
  1620. const m_XK_Sinh_aee = 0x1000d88
  1621. const m_XK_Sinh_aee2 = 0x1000dd1
  1622. const m_XK_Sinh_ai = 0x1000d93
  1623. const m_XK_Sinh_ai2 = 0x1000ddb
  1624. const m_XK_Sinh_al = 0x1000dca
  1625. const m_XK_Sinh_au = 0x1000d96
  1626. const m_XK_Sinh_au2 = 0x1000dde
  1627. const m_XK_Sinh_ba = 0x1000db6
  1628. const m_XK_Sinh_bha = 0x1000db7
  1629. const m_XK_Sinh_ca = 0x1000da0
  1630. const m_XK_Sinh_cha = 0x1000da1
  1631. const m_XK_Sinh_dda = 0x1000da9
  1632. const m_XK_Sinh_ddha = 0x1000daa
  1633. const m_XK_Sinh_dha = 0x1000daf
  1634. const m_XK_Sinh_dhha = 0x1000db0
  1635. const m_XK_Sinh_e = 0x1000d91
  1636. const m_XK_Sinh_e2 = 0x1000dd9
  1637. const m_XK_Sinh_ee = 0x1000d92
  1638. const m_XK_Sinh_ee2 = 0x1000dda
  1639. const m_XK_Sinh_fa = 0x1000dc6
  1640. const m_XK_Sinh_ga = 0x1000d9c
  1641. const m_XK_Sinh_gha = 0x1000d9d
  1642. const m_XK_Sinh_h2 = 0x1000d83
  1643. const m_XK_Sinh_ha = 0x1000dc4
  1644. const m_XK_Sinh_i = 0x1000d89
  1645. const m_XK_Sinh_i2 = 0x1000dd2
  1646. const m_XK_Sinh_ii = 0x1000d8a
  1647. const m_XK_Sinh_ii2 = 0x1000dd3
  1648. const m_XK_Sinh_ja = 0x1000da2
  1649. const m_XK_Sinh_jha = 0x1000da3
  1650. const m_XK_Sinh_jnya = 0x1000da5
  1651. const m_XK_Sinh_ka = 0x1000d9a
  1652. const m_XK_Sinh_kha = 0x1000d9b
  1653. const m_XK_Sinh_kunddaliya = 0x1000df4
  1654. const m_XK_Sinh_la = 0x1000dbd
  1655. const m_XK_Sinh_lla = 0x1000dc5
  1656. const m_XK_Sinh_lu = 0x1000d8f
  1657. const m_XK_Sinh_lu2 = 0x1000ddf
  1658. const m_XK_Sinh_luu = 0x1000d90
  1659. const m_XK_Sinh_luu2 = 0x1000df3
  1660. const m_XK_Sinh_ma = 0x1000db8
  1661. const m_XK_Sinh_mba = 0x1000db9
  1662. const m_XK_Sinh_na = 0x1000db1
  1663. const m_XK_Sinh_ndda = 0x1000dac
  1664. const m_XK_Sinh_ndha = 0x1000db3
  1665. const m_XK_Sinh_ng = 0x1000d82
  1666. const m_XK_Sinh_ng2 = 0x1000d9e
  1667. const m_XK_Sinh_nga = 0x1000d9f
  1668. const m_XK_Sinh_nja = 0x1000da6
  1669. const m_XK_Sinh_nna = 0x1000dab
  1670. const m_XK_Sinh_nya = 0x1000da4
  1671. const m_XK_Sinh_o = 0x1000d94
  1672. const m_XK_Sinh_o2 = 0x1000ddc
  1673. const m_XK_Sinh_oo = 0x1000d95
  1674. const m_XK_Sinh_oo2 = 0x1000ddd
  1675. const m_XK_Sinh_pa = 0x1000db4
  1676. const m_XK_Sinh_pha = 0x1000db5
  1677. const m_XK_Sinh_ra = 0x1000dbb
  1678. const m_XK_Sinh_ri = 0x1000d8d
  1679. const m_XK_Sinh_rii = 0x1000d8e
  1680. const m_XK_Sinh_ru2 = 0x1000dd8
  1681. const m_XK_Sinh_ruu2 = 0x1000df2
  1682. const m_XK_Sinh_sa = 0x1000dc3
  1683. const m_XK_Sinh_sha = 0x1000dc1
  1684. const m_XK_Sinh_ssha = 0x1000dc2
  1685. const m_XK_Sinh_tha = 0x1000dad
  1686. const m_XK_Sinh_thha = 0x1000dae
  1687. const m_XK_Sinh_tta = 0x1000da7
  1688. const m_XK_Sinh_ttha = 0x1000da8
  1689. const m_XK_Sinh_u = 0x1000d8b
  1690. const m_XK_Sinh_u2 = 0x1000dd4
  1691. const m_XK_Sinh_uu = 0x1000d8c
  1692. const m_XK_Sinh_uu2 = 0x1000dd6
  1693. const m_XK_Sinh_va = 0x1000dc0
  1694. const m_XK_Sinh_ya = 0x1000dba
  1695. const m_XK_SlowKeys_Enable = 0xfe73
  1696. const m_XK_StickyKeys_Enable = 0xfe75
  1697. const m_XK_Super_L = 0xffeb
  1698. const m_XK_Super_R = 0xffec
  1699. const m_XK_Sys_Req = 0xff15
  1700. const m_XK_T = 0x0054
  1701. const m_XK_THORN = 0x00de
  1702. const m_XK_Tab = 0xff09
  1703. const m_XK_Tabovedot = 0x1001e6a
  1704. const m_XK_Tcaron = 0x01ab
  1705. const m_XK_Tcedilla = 0x01de
  1706. const m_XK_Terminate_Server = 0xfed5
  1707. const m_XK_Thai_baht = 0x0ddf
  1708. const m_XK_Thai_bobaimai = 0x0dba
  1709. const m_XK_Thai_chochan = 0x0da8
  1710. const m_XK_Thai_chochang = 0x0daa
  1711. const m_XK_Thai_choching = 0x0da9
  1712. const m_XK_Thai_chochoe = 0x0dac
  1713. const m_XK_Thai_dochada = 0x0dae
  1714. const m_XK_Thai_dodek = 0x0db4
  1715. const m_XK_Thai_fofa = 0x0dbd
  1716. const m_XK_Thai_fofan = 0x0dbf
  1717. const m_XK_Thai_hohip = 0x0dcb
  1718. const m_XK_Thai_honokhuk = 0x0dce
  1719. const m_XK_Thai_khokhai = 0x0da2
  1720. const m_XK_Thai_khokhon = 0x0da5
  1721. const m_XK_Thai_khokhuat = 0x0da3
  1722. const m_XK_Thai_khokhwai = 0x0da4
  1723. const m_XK_Thai_khorakhang = 0x0da6
  1724. const m_XK_Thai_kokai = 0x0da1
  1725. const m_XK_Thai_lakkhangyao = 0x0de5
  1726. const m_XK_Thai_lekchet = 0x0df7
  1727. const m_XK_Thai_lekha = 0x0df5
  1728. const m_XK_Thai_lekhok = 0x0df6
  1729. const m_XK_Thai_lekkao = 0x0df9
  1730. const m_XK_Thai_leknung = 0x0df1
  1731. const m_XK_Thai_lekpaet = 0x0df8
  1732. const m_XK_Thai_leksam = 0x0df3
  1733. const m_XK_Thai_leksi = 0x0df4
  1734. const m_XK_Thai_leksong = 0x0df2
  1735. const m_XK_Thai_leksun = 0x0df0
  1736. const m_XK_Thai_lochula = 0x0dcc
  1737. const m_XK_Thai_loling = 0x0dc5
  1738. const m_XK_Thai_lu = 0x0dc6
  1739. const m_XK_Thai_maichattawa = 0x0deb
  1740. const m_XK_Thai_maiek = 0x0de8
  1741. const m_XK_Thai_maihanakat = 0x0dd1
  1742. const m_XK_Thai_maihanakat_maitho = 0x0dde
  1743. const m_XK_Thai_maitaikhu = 0x0de7
  1744. const m_XK_Thai_maitho = 0x0de9
  1745. const m_XK_Thai_maitri = 0x0dea
  1746. const m_XK_Thai_maiyamok = 0x0de6
  1747. const m_XK_Thai_moma = 0x0dc1
  1748. const m_XK_Thai_ngongu = 0x0da7
  1749. const m_XK_Thai_nikhahit = 0x0ded
  1750. const m_XK_Thai_nonen = 0x0db3
  1751. const m_XK_Thai_nonu = 0x0db9
  1752. const m_XK_Thai_oang = 0x0dcd
  1753. const m_XK_Thai_paiyannoi = 0x0dcf
  1754. const m_XK_Thai_phinthu = 0x0dda
  1755. const m_XK_Thai_phophan = 0x0dbe
  1756. const m_XK_Thai_phophung = 0x0dbc
  1757. const m_XK_Thai_phosamphao = 0x0dc0
  1758. const m_XK_Thai_popla = 0x0dbb
  1759. const m_XK_Thai_rorua = 0x0dc3
  1760. const m_XK_Thai_ru = 0x0dc4
  1761. const m_XK_Thai_saraa = 0x0dd0
  1762. const m_XK_Thai_saraaa = 0x0dd2
  1763. const m_XK_Thai_saraae = 0x0de1
  1764. const m_XK_Thai_saraaimaimalai = 0x0de4
  1765. const m_XK_Thai_saraaimaimuan = 0x0de3
  1766. const m_XK_Thai_saraam = 0x0dd3
  1767. const m_XK_Thai_sarae = 0x0de0
  1768. const m_XK_Thai_sarai = 0x0dd4
  1769. const m_XK_Thai_saraii = 0x0dd5
  1770. const m_XK_Thai_sarao = 0x0de2
  1771. const m_XK_Thai_sarau = 0x0dd8
  1772. const m_XK_Thai_saraue = 0x0dd6
  1773. const m_XK_Thai_sarauee = 0x0dd7
  1774. const m_XK_Thai_sarauu = 0x0dd9
  1775. const m_XK_Thai_sorusi = 0x0dc9
  1776. const m_XK_Thai_sosala = 0x0dc8
  1777. const m_XK_Thai_soso = 0x0dab
  1778. const m_XK_Thai_sosua = 0x0dca
  1779. const m_XK_Thai_thanthakhat = 0x0dec
  1780. const m_XK_Thai_thonangmontho = 0x0db1
  1781. const m_XK_Thai_thophuthao = 0x0db2
  1782. const m_XK_Thai_thothahan = 0x0db7
  1783. const m_XK_Thai_thothan = 0x0db0
  1784. const m_XK_Thai_thothong = 0x0db8
  1785. const m_XK_Thai_thothung = 0x0db6
  1786. const m_XK_Thai_topatak = 0x0daf
  1787. const m_XK_Thai_totao = 0x0db5
  1788. const m_XK_Thai_wowaen = 0x0dc7
  1789. const m_XK_Thai_yoyak = 0x0dc2
  1790. const m_XK_Thai_yoying = 0x0dad
  1791. const m_XK_Thorn = 0x00de
  1792. const m_XK_Touroku = 0xff2b
  1793. const m_XK_Tslash = 0x03ac
  1794. const m_XK_U = 0x0055
  1795. const m_XK_Uacute = 0x00da
  1796. const m_XK_Ubelowdot = 0x1001ee4
  1797. const m_XK_Ubreve = 0x02dd
  1798. const m_XK_Ucircumflex = 0x00db
  1799. const m_XK_Udiaeresis = 0x00dc
  1800. const m_XK_Udoubleacute = 0x01db
  1801. const m_XK_Ugrave = 0x00d9
  1802. const m_XK_Uhook = 0x1001ee6
  1803. const m_XK_Uhorn = 0x10001af
  1804. const m_XK_Uhornacute = 0x1001ee8
  1805. const m_XK_Uhornbelowdot = 0x1001ef0
  1806. const m_XK_Uhorngrave = 0x1001eea
  1807. const m_XK_Uhornhook = 0x1001eec
  1808. const m_XK_Uhorntilde = 0x1001eee
  1809. const m_XK_Ukrainian_GHE_WITH_UPTURN = 0x06bd
  1810. const m_XK_Ukrainian_I = 0x06b6
  1811. const m_XK_Ukrainian_IE = 0x06b4
  1812. const m_XK_Ukrainian_YI = 0x06b7
  1813. const m_XK_Ukrainian_ghe_with_upturn = 0x06ad
  1814. const m_XK_Ukrainian_i = 0x06a6
  1815. const m_XK_Ukrainian_ie = 0x06a4
  1816. const m_XK_Ukrainian_yi = 0x06a7
  1817. const m_XK_Ukranian_I = 0x06b6
  1818. const m_XK_Ukranian_JE = 0x06b4
  1819. const m_XK_Ukranian_YI = 0x06b7
  1820. const m_XK_Ukranian_i = 0x06a6
  1821. const m_XK_Ukranian_je = 0x06a4
  1822. const m_XK_Ukranian_yi = 0x06a7
  1823. const m_XK_Umacron = 0x03de
  1824. const m_XK_Undo = 0xff65
  1825. const m_XK_Uogonek = 0x03d9
  1826. const m_XK_Up = 0xff52
  1827. const m_XK_Uring = 0x01d9
  1828. const m_XK_Utilde = 0x03dd
  1829. const m_XK_V = 0x0056
  1830. const m_XK_VoidSymbol = 0xffffff
  1831. const m_XK_W = 0x0057
  1832. const m_XK_Wacute = 0x1001e82
  1833. const m_XK_Wcircumflex = 0x1000174
  1834. const m_XK_Wdiaeresis = 0x1001e84
  1835. const m_XK_Wgrave = 0x1001e80
  1836. const m_XK_WonSign = 0x10020a9
  1837. const m_XK_X = 0x0058
  1838. const m_XK_Xabovedot = 0x1001e8a
  1839. const m_XK_Y = 0x0059
  1840. const m_XK_Yacute = 0x00dd
  1841. const m_XK_Ybelowdot = 0x1001ef4
  1842. const m_XK_Ycircumflex = 0x1000176
  1843. const m_XK_Ydiaeresis = 0x13be
  1844. const m_XK_Ygrave = 0x1001ef2
  1845. const m_XK_Yhook = 0x1001ef6
  1846. const m_XK_Ytilde = 0x1001ef8
  1847. const m_XK_Z = 0x005a
  1848. const m_XK_Zabovedot = 0x01af
  1849. const m_XK_Zacute = 0x01ac
  1850. const m_XK_Zcaron = 0x01ae
  1851. const m_XK_Zen_Koho = 0xff3d
  1852. const m_XK_Zenkaku = 0xff28
  1853. const m_XK_Zenkaku_Hankaku = 0xff2a
  1854. const m_XK_Zstroke = 0x10001b5
  1855. const m_XK_a = 0x0061
  1856. const m_XK_aacute = 0x00e1
  1857. const m_XK_abelowdot = 0x1001ea1
  1858. const m_XK_abovedot = 0x01ff
  1859. const m_XK_abreve = 0x01e3
  1860. const m_XK_abreveacute = 0x1001eaf
  1861. const m_XK_abrevebelowdot = 0x1001eb7
  1862. const m_XK_abrevegrave = 0x1001eb1
  1863. const m_XK_abrevehook = 0x1001eb3
  1864. const m_XK_abrevetilde = 0x1001eb5
  1865. const m_XK_acircumflex = 0x00e2
  1866. const m_XK_acircumflexacute = 0x1001ea5
  1867. const m_XK_acircumflexbelowdot = 0x1001ead
  1868. const m_XK_acircumflexgrave = 0x1001ea7
  1869. const m_XK_acircumflexhook = 0x1001ea9
  1870. const m_XK_acircumflextilde = 0x1001eab
  1871. const m_XK_acute = 0x00b4
  1872. const m_XK_adiaeresis = 0x00e4
  1873. const m_XK_ae = 0x00e6
  1874. const m_XK_agrave = 0x00e0
  1875. const m_XK_ahook = 0x1001ea3
  1876. const m_XK_amacron = 0x03e0
  1877. const m_XK_ampersand = 0x0026
  1878. const m_XK_aogonek = 0x01b1
  1879. const m_XK_apostrophe = 0x0027
  1880. const m_XK_approxeq = 0x1002248
  1881. const m_XK_aring = 0x00e5
  1882. const m_XK_asciicircum = 0x005e
  1883. const m_XK_asciitilde = 0x007e
  1884. const m_XK_asterisk = 0x002a
  1885. const m_XK_at = 0x0040
  1886. const m_XK_atilde = 0x00e3
  1887. const m_XK_b = 0x0062
  1888. const m_XK_babovedot = 0x1001e03
  1889. const m_XK_backslash = 0x005c
  1890. const m_XK_bar = 0x007c
  1891. const m_XK_because = 0x1002235
  1892. const m_XK_braceleft = 0x007b
  1893. const m_XK_braceright = 0x007d
  1894. const m_XK_bracketleft = 0x005b
  1895. const m_XK_bracketright = 0x005d
  1896. const m_XK_braille_blank = 0x1002800
  1897. const m_XK_braille_dot_1 = 0xfff1
  1898. const m_XK_braille_dot_10 = 0xfffa
  1899. const m_XK_braille_dot_2 = 0xfff2
  1900. const m_XK_braille_dot_3 = 0xfff3
  1901. const m_XK_braille_dot_4 = 0xfff4
  1902. const m_XK_braille_dot_5 = 0xfff5
  1903. const m_XK_braille_dot_6 = 0xfff6
  1904. const m_XK_braille_dot_7 = 0xfff7
  1905. const m_XK_braille_dot_8 = 0xfff8
  1906. const m_XK_braille_dot_9 = 0xfff9
  1907. const m_XK_braille_dots_1 = 0x1002801
  1908. const m_XK_braille_dots_12 = 0x1002803
  1909. const m_XK_braille_dots_123 = 0x1002807
  1910. const m_XK_braille_dots_1234 = 0x100280f
  1911. const m_XK_braille_dots_12345 = 0x100281f
  1912. const m_XK_braille_dots_123456 = 0x100283f
  1913. const m_XK_braille_dots_1234567 = 0x100287f
  1914. const m_XK_braille_dots_12345678 = 0x10028ff
  1915. const m_XK_braille_dots_1234568 = 0x10028bf
  1916. const m_XK_braille_dots_123457 = 0x100285f
  1917. const m_XK_braille_dots_1234578 = 0x10028df
  1918. const m_XK_braille_dots_123458 = 0x100289f
  1919. const m_XK_braille_dots_12346 = 0x100282f
  1920. const m_XK_braille_dots_123467 = 0x100286f
  1921. const m_XK_braille_dots_1234678 = 0x10028ef
  1922. const m_XK_braille_dots_123468 = 0x10028af
  1923. const m_XK_braille_dots_12347 = 0x100284f
  1924. const m_XK_braille_dots_123478 = 0x10028cf
  1925. const m_XK_braille_dots_12348 = 0x100288f
  1926. const m_XK_braille_dots_1235 = 0x1002817
  1927. const m_XK_braille_dots_12356 = 0x1002837
  1928. const m_XK_braille_dots_123567 = 0x1002877
  1929. const m_XK_braille_dots_1235678 = 0x10028f7
  1930. const m_XK_braille_dots_123568 = 0x10028b7
  1931. const m_XK_braille_dots_12357 = 0x1002857
  1932. const m_XK_braille_dots_123578 = 0x10028d7
  1933. const m_XK_braille_dots_12358 = 0x1002897
  1934. const m_XK_braille_dots_1236 = 0x1002827
  1935. const m_XK_braille_dots_12367 = 0x1002867
  1936. const m_XK_braille_dots_123678 = 0x10028e7
  1937. const m_XK_braille_dots_12368 = 0x10028a7
  1938. const m_XK_braille_dots_1237 = 0x1002847
  1939. const m_XK_braille_dots_12378 = 0x10028c7
  1940. const m_XK_braille_dots_1238 = 0x1002887
  1941. const m_XK_braille_dots_124 = 0x100280b
  1942. const m_XK_braille_dots_1245 = 0x100281b
  1943. const m_XK_braille_dots_12456 = 0x100283b
  1944. const m_XK_braille_dots_124567 = 0x100287b
  1945. const m_XK_braille_dots_1245678 = 0x10028fb
  1946. const m_XK_braille_dots_124568 = 0x10028bb
  1947. const m_XK_braille_dots_12457 = 0x100285b
  1948. const m_XK_braille_dots_124578 = 0x10028db
  1949. const m_XK_braille_dots_12458 = 0x100289b
  1950. const m_XK_braille_dots_1246 = 0x100282b
  1951. const m_XK_braille_dots_12467 = 0x100286b
  1952. const m_XK_braille_dots_124678 = 0x10028eb
  1953. const m_XK_braille_dots_12468 = 0x10028ab
  1954. const m_XK_braille_dots_1247 = 0x100284b
  1955. const m_XK_braille_dots_12478 = 0x10028cb
  1956. const m_XK_braille_dots_1248 = 0x100288b
  1957. const m_XK_braille_dots_125 = 0x1002813
  1958. const m_XK_braille_dots_1256 = 0x1002833
  1959. const m_XK_braille_dots_12567 = 0x1002873
  1960. const m_XK_braille_dots_125678 = 0x10028f3
  1961. const m_XK_braille_dots_12568 = 0x10028b3
  1962. const m_XK_braille_dots_1257 = 0x1002853
  1963. const m_XK_braille_dots_12578 = 0x10028d3
  1964. const m_XK_braille_dots_1258 = 0x1002893
  1965. const m_XK_braille_dots_126 = 0x1002823
  1966. const m_XK_braille_dots_1267 = 0x1002863
  1967. const m_XK_braille_dots_12678 = 0x10028e3
  1968. const m_XK_braille_dots_1268 = 0x10028a3
  1969. const m_XK_braille_dots_127 = 0x1002843
  1970. const m_XK_braille_dots_1278 = 0x10028c3
  1971. const m_XK_braille_dots_128 = 0x1002883
  1972. const m_XK_braille_dots_13 = 0x1002805
  1973. const m_XK_braille_dots_134 = 0x100280d
  1974. const m_XK_braille_dots_1345 = 0x100281d
  1975. const m_XK_braille_dots_13456 = 0x100283d
  1976. const m_XK_braille_dots_134567 = 0x100287d
  1977. const m_XK_braille_dots_1345678 = 0x10028fd
  1978. const m_XK_braille_dots_134568 = 0x10028bd
  1979. const m_XK_braille_dots_13457 = 0x100285d
  1980. const m_XK_braille_dots_134578 = 0x10028dd
  1981. const m_XK_braille_dots_13458 = 0x100289d
  1982. const m_XK_braille_dots_1346 = 0x100282d
  1983. const m_XK_braille_dots_13467 = 0x100286d
  1984. const m_XK_braille_dots_134678 = 0x10028ed
  1985. const m_XK_braille_dots_13468 = 0x10028ad
  1986. const m_XK_braille_dots_1347 = 0x100284d
  1987. const m_XK_braille_dots_13478 = 0x10028cd
  1988. const m_XK_braille_dots_1348 = 0x100288d
  1989. const m_XK_braille_dots_135 = 0x1002815
  1990. const m_XK_braille_dots_1356 = 0x1002835
  1991. const m_XK_braille_dots_13567 = 0x1002875
  1992. const m_XK_braille_dots_135678 = 0x10028f5
  1993. const m_XK_braille_dots_13568 = 0x10028b5
  1994. const m_XK_braille_dots_1357 = 0x1002855
  1995. const m_XK_braille_dots_13578 = 0x10028d5
  1996. const m_XK_braille_dots_1358 = 0x1002895
  1997. const m_XK_braille_dots_136 = 0x1002825
  1998. const m_XK_braille_dots_1367 = 0x1002865
  1999. const m_XK_braille_dots_13678 = 0x10028e5
  2000. const m_XK_braille_dots_1368 = 0x10028a5
  2001. const m_XK_braille_dots_137 = 0x1002845
  2002. const m_XK_braille_dots_1378 = 0x10028c5
  2003. const m_XK_braille_dots_138 = 0x1002885
  2004. const m_XK_braille_dots_14 = 0x1002809
  2005. const m_XK_braille_dots_145 = 0x1002819
  2006. const m_XK_braille_dots_1456 = 0x1002839
  2007. const m_XK_braille_dots_14567 = 0x1002879
  2008. const m_XK_braille_dots_145678 = 0x10028f9
  2009. const m_XK_braille_dots_14568 = 0x10028b9
  2010. const m_XK_braille_dots_1457 = 0x1002859
  2011. const m_XK_braille_dots_14578 = 0x10028d9
  2012. const m_XK_braille_dots_1458 = 0x1002899
  2013. const m_XK_braille_dots_146 = 0x1002829
  2014. const m_XK_braille_dots_1467 = 0x1002869
  2015. const m_XK_braille_dots_14678 = 0x10028e9
  2016. const m_XK_braille_dots_1468 = 0x10028a9
  2017. const m_XK_braille_dots_147 = 0x1002849
  2018. const m_XK_braille_dots_1478 = 0x10028c9
  2019. const m_XK_braille_dots_148 = 0x1002889
  2020. const m_XK_braille_dots_15 = 0x1002811
  2021. const m_XK_braille_dots_156 = 0x1002831
  2022. const m_XK_braille_dots_1567 = 0x1002871
  2023. const m_XK_braille_dots_15678 = 0x10028f1
  2024. const m_XK_braille_dots_1568 = 0x10028b1
  2025. const m_XK_braille_dots_157 = 0x1002851
  2026. const m_XK_braille_dots_1578 = 0x10028d1
  2027. const m_XK_braille_dots_158 = 0x1002891
  2028. const m_XK_braille_dots_16 = 0x1002821
  2029. const m_XK_braille_dots_167 = 0x1002861
  2030. const m_XK_braille_dots_1678 = 0x10028e1
  2031. const m_XK_braille_dots_168 = 0x10028a1
  2032. const m_XK_braille_dots_17 = 0x1002841
  2033. const m_XK_braille_dots_178 = 0x10028c1
  2034. const m_XK_braille_dots_18 = 0x1002881
  2035. const m_XK_braille_dots_2 = 0x1002802
  2036. const m_XK_braille_dots_23 = 0x1002806
  2037. const m_XK_braille_dots_234 = 0x100280e
  2038. const m_XK_braille_dots_2345 = 0x100281e
  2039. const m_XK_braille_dots_23456 = 0x100283e
  2040. const m_XK_braille_dots_234567 = 0x100287e
  2041. const m_XK_braille_dots_2345678 = 0x10028fe
  2042. const m_XK_braille_dots_234568 = 0x10028be
  2043. const m_XK_braille_dots_23457 = 0x100285e
  2044. const m_XK_braille_dots_234578 = 0x10028de
  2045. const m_XK_braille_dots_23458 = 0x100289e
  2046. const m_XK_braille_dots_2346 = 0x100282e
  2047. const m_XK_braille_dots_23467 = 0x100286e
  2048. const m_XK_braille_dots_234678 = 0x10028ee
  2049. const m_XK_braille_dots_23468 = 0x10028ae
  2050. const m_XK_braille_dots_2347 = 0x100284e
  2051. const m_XK_braille_dots_23478 = 0x10028ce
  2052. const m_XK_braille_dots_2348 = 0x100288e
  2053. const m_XK_braille_dots_235 = 0x1002816
  2054. const m_XK_braille_dots_2356 = 0x1002836
  2055. const m_XK_braille_dots_23567 = 0x1002876
  2056. const m_XK_braille_dots_235678 = 0x10028f6
  2057. const m_XK_braille_dots_23568 = 0x10028b6
  2058. const m_XK_braille_dots_2357 = 0x1002856
  2059. const m_XK_braille_dots_23578 = 0x10028d6
  2060. const m_XK_braille_dots_2358 = 0x1002896
  2061. const m_XK_braille_dots_236 = 0x1002826
  2062. const m_XK_braille_dots_2367 = 0x1002866
  2063. const m_XK_braille_dots_23678 = 0x10028e6
  2064. const m_XK_braille_dots_2368 = 0x10028a6
  2065. const m_XK_braille_dots_237 = 0x1002846
  2066. const m_XK_braille_dots_2378 = 0x10028c6
  2067. const m_XK_braille_dots_238 = 0x1002886
  2068. const m_XK_braille_dots_24 = 0x100280a
  2069. const m_XK_braille_dots_245 = 0x100281a
  2070. const m_XK_braille_dots_2456 = 0x100283a
  2071. const m_XK_braille_dots_24567 = 0x100287a
  2072. const m_XK_braille_dots_245678 = 0x10028fa
  2073. const m_XK_braille_dots_24568 = 0x10028ba
  2074. const m_XK_braille_dots_2457 = 0x100285a
  2075. const m_XK_braille_dots_24578 = 0x10028da
  2076. const m_XK_braille_dots_2458 = 0x100289a
  2077. const m_XK_braille_dots_246 = 0x100282a
  2078. const m_XK_braille_dots_2467 = 0x100286a
  2079. const m_XK_braille_dots_24678 = 0x10028ea
  2080. const m_XK_braille_dots_2468 = 0x10028aa
  2081. const m_XK_braille_dots_247 = 0x100284a
  2082. const m_XK_braille_dots_2478 = 0x10028ca
  2083. const m_XK_braille_dots_248 = 0x100288a
  2084. const m_XK_braille_dots_25 = 0x1002812
  2085. const m_XK_braille_dots_256 = 0x1002832
  2086. const m_XK_braille_dots_2567 = 0x1002872
  2087. const m_XK_braille_dots_25678 = 0x10028f2
  2088. const m_XK_braille_dots_2568 = 0x10028b2
  2089. const m_XK_braille_dots_257 = 0x1002852
  2090. const m_XK_braille_dots_2578 = 0x10028d2
  2091. const m_XK_braille_dots_258 = 0x1002892
  2092. const m_XK_braille_dots_26 = 0x1002822
  2093. const m_XK_braille_dots_267 = 0x1002862
  2094. const m_XK_braille_dots_2678 = 0x10028e2
  2095. const m_XK_braille_dots_268 = 0x10028a2
  2096. const m_XK_braille_dots_27 = 0x1002842
  2097. const m_XK_braille_dots_278 = 0x10028c2
  2098. const m_XK_braille_dots_28 = 0x1002882
  2099. const m_XK_braille_dots_3 = 0x1002804
  2100. const m_XK_braille_dots_34 = 0x100280c
  2101. const m_XK_braille_dots_345 = 0x100281c
  2102. const m_XK_braille_dots_3456 = 0x100283c
  2103. const m_XK_braille_dots_34567 = 0x100287c
  2104. const m_XK_braille_dots_345678 = 0x10028fc
  2105. const m_XK_braille_dots_34568 = 0x10028bc
  2106. const m_XK_braille_dots_3457 = 0x100285c
  2107. const m_XK_braille_dots_34578 = 0x10028dc
  2108. const m_XK_braille_dots_3458 = 0x100289c
  2109. const m_XK_braille_dots_346 = 0x100282c
  2110. const m_XK_braille_dots_3467 = 0x100286c
  2111. const m_XK_braille_dots_34678 = 0x10028ec
  2112. const m_XK_braille_dots_3468 = 0x10028ac
  2113. const m_XK_braille_dots_347 = 0x100284c
  2114. const m_XK_braille_dots_3478 = 0x10028cc
  2115. const m_XK_braille_dots_348 = 0x100288c
  2116. const m_XK_braille_dots_35 = 0x1002814
  2117. const m_XK_braille_dots_356 = 0x1002834
  2118. const m_XK_braille_dots_3567 = 0x1002874
  2119. const m_XK_braille_dots_35678 = 0x10028f4
  2120. const m_XK_braille_dots_3568 = 0x10028b4
  2121. const m_XK_braille_dots_357 = 0x1002854
  2122. const m_XK_braille_dots_3578 = 0x10028d4
  2123. const m_XK_braille_dots_358 = 0x1002894
  2124. const m_XK_braille_dots_36 = 0x1002824
  2125. const m_XK_braille_dots_367 = 0x1002864
  2126. const m_XK_braille_dots_3678 = 0x10028e4
  2127. const m_XK_braille_dots_368 = 0x10028a4
  2128. const m_XK_braille_dots_37 = 0x1002844
  2129. const m_XK_braille_dots_378 = 0x10028c4
  2130. const m_XK_braille_dots_38 = 0x1002884
  2131. const m_XK_braille_dots_4 = 0x1002808
  2132. const m_XK_braille_dots_45 = 0x1002818
  2133. const m_XK_braille_dots_456 = 0x1002838
  2134. const m_XK_braille_dots_4567 = 0x1002878
  2135. const m_XK_braille_dots_45678 = 0x10028f8
  2136. const m_XK_braille_dots_4568 = 0x10028b8
  2137. const m_XK_braille_dots_457 = 0x1002858
  2138. const m_XK_braille_dots_4578 = 0x10028d8
  2139. const m_XK_braille_dots_458 = 0x1002898
  2140. const m_XK_braille_dots_46 = 0x1002828
  2141. const m_XK_braille_dots_467 = 0x1002868
  2142. const m_XK_braille_dots_4678 = 0x10028e8
  2143. const m_XK_braille_dots_468 = 0x10028a8
  2144. const m_XK_braille_dots_47 = 0x1002848
  2145. const m_XK_braille_dots_478 = 0x10028c8
  2146. const m_XK_braille_dots_48 = 0x1002888
  2147. const m_XK_braille_dots_5 = 0x1002810
  2148. const m_XK_braille_dots_56 = 0x1002830
  2149. const m_XK_braille_dots_567 = 0x1002870
  2150. const m_XK_braille_dots_5678 = 0x10028f0
  2151. const m_XK_braille_dots_568 = 0x10028b0
  2152. const m_XK_braille_dots_57 = 0x1002850
  2153. const m_XK_braille_dots_578 = 0x10028d0
  2154. const m_XK_braille_dots_58 = 0x1002890
  2155. const m_XK_braille_dots_6 = 0x1002820
  2156. const m_XK_braille_dots_67 = 0x1002860
  2157. const m_XK_braille_dots_678 = 0x10028e0
  2158. const m_XK_braille_dots_68 = 0x10028a0
  2159. const m_XK_braille_dots_7 = 0x1002840
  2160. const m_XK_braille_dots_78 = 0x10028c0
  2161. const m_XK_braille_dots_8 = 0x1002880
  2162. const m_XK_breve = 0x01a2
  2163. const m_XK_brokenbar = 0x00a6
  2164. const m_XK_c = 0x0063
  2165. const m_XK_c_h = 0xfea3
  2166. const m_XK_cabovedot = 0x02e5
  2167. const m_XK_cacute = 0x01e6
  2168. const m_XK_caron = 0x01b7
  2169. const m_XK_ccaron = 0x01e8
  2170. const m_XK_ccedilla = 0x00e7
  2171. const m_XK_ccircumflex = 0x02e6
  2172. const m_XK_cedilla = 0x00b8
  2173. const m_XK_cent = 0x00a2
  2174. const m_XK_ch = 0xfea0
  2175. const m_XK_colon = 0x003a
  2176. const m_XK_combining_acute = 0x1000301
  2177. const m_XK_combining_belowdot = 0x1000323
  2178. const m_XK_combining_grave = 0x1000300
  2179. const m_XK_combining_hook = 0x1000309
  2180. const m_XK_combining_tilde = 0x1000303
  2181. const m_XK_comma = 0x002c
  2182. const m_XK_containsas = 0x100220b
  2183. const m_XK_copyright = 0x00a9
  2184. const m_XK_cuberoot = 0x100221b
  2185. const m_XK_currency = 0x00a4
  2186. const m_XK_d = 0x0064
  2187. const m_XK_dabovedot = 0x1001e0b
  2188. const m_XK_dcaron = 0x01ef
  2189. const m_XK_dead_A = 0xfe81
  2190. const m_XK_dead_E = 0xfe83
  2191. const m_XK_dead_I = 0xfe85
  2192. const m_XK_dead_O = 0xfe87
  2193. const m_XK_dead_SCHWA = 0xfe8b
  2194. const m_XK_dead_U = 0xfe89
  2195. const m_XK_dead_a = 0xfe80
  2196. const m_XK_dead_abovecomma = 0xfe64
  2197. const m_XK_dead_abovedot = 0xfe56
  2198. const m_XK_dead_abovereversedcomma = 0xfe65
  2199. const m_XK_dead_abovering = 0xfe58
  2200. const m_XK_dead_aboveverticalline = 0xfe91
  2201. const m_XK_dead_acute = 0xfe51
  2202. const m_XK_dead_belowbreve = 0xfe6b
  2203. const m_XK_dead_belowcircumflex = 0xfe69
  2204. const m_XK_dead_belowcomma = 0xfe6e
  2205. const m_XK_dead_belowdiaeresis = 0xfe6c
  2206. const m_XK_dead_belowdot = 0xfe60
  2207. const m_XK_dead_belowmacron = 0xfe68
  2208. const m_XK_dead_belowring = 0xfe67
  2209. const m_XK_dead_belowtilde = 0xfe6a
  2210. const m_XK_dead_belowverticalline = 0xfe92
  2211. const m_XK_dead_breve = 0xfe55
  2212. const m_XK_dead_capital_schwa = 0xfe8b
  2213. const m_XK_dead_caron = 0xfe5a
  2214. const m_XK_dead_cedilla = 0xfe5b
  2215. const m_XK_dead_circumflex = 0xfe52
  2216. const m_XK_dead_currency = 0xfe6f
  2217. const m_XK_dead_dasia = 0xfe65
  2218. const m_XK_dead_diaeresis = 0xfe57
  2219. const m_XK_dead_doubleacute = 0xfe59
  2220. const m_XK_dead_doublegrave = 0xfe66
  2221. const m_XK_dead_e = 0xfe82
  2222. const m_XK_dead_grave = 0xfe50
  2223. const m_XK_dead_greek = 0xfe8c
  2224. const m_XK_dead_hamza = 0xfe8d
  2225. const m_XK_dead_hook = 0xfe61
  2226. const m_XK_dead_horn = 0xfe62
  2227. const m_XK_dead_i = 0xfe84
  2228. const m_XK_dead_invertedbreve = 0xfe6d
  2229. const m_XK_dead_iota = 0xfe5d
  2230. const m_XK_dead_longsolidusoverlay = 0xfe93
  2231. const m_XK_dead_lowline = 0xfe90
  2232. const m_XK_dead_macron = 0xfe54
  2233. const m_XK_dead_o = 0xfe86
  2234. const m_XK_dead_ogonek = 0xfe5c
  2235. const m_XK_dead_perispomeni = 0xfe53
  2236. const m_XK_dead_psili = 0xfe64
  2237. const m_XK_dead_schwa = 0xfe8a
  2238. const m_XK_dead_semivoiced_sound = 0xfe5f
  2239. const m_XK_dead_small_schwa = 0xfe8a
  2240. const m_XK_dead_stroke = 0xfe63
  2241. const m_XK_dead_tilde = 0xfe53
  2242. const m_XK_dead_u = 0xfe88
  2243. const m_XK_dead_voiced_sound = 0xfe5e
  2244. const m_XK_degree = 0x00b0
  2245. const m_XK_diaeresis = 0x00a8
  2246. const m_XK_dintegral = 0x100222c
  2247. const m_XK_division = 0x00f7
  2248. const m_XK_dollar = 0x0024
  2249. const m_XK_doubleacute = 0x01bd
  2250. const m_XK_dstroke = 0x01f0
  2251. const m_XK_e = 0x0065
  2252. const m_XK_eabovedot = 0x03ec
  2253. const m_XK_eacute = 0x00e9
  2254. const m_XK_ebelowdot = 0x1001eb9
  2255. const m_XK_ecaron = 0x01ec
  2256. const m_XK_ecircumflex = 0x00ea
  2257. const m_XK_ecircumflexacute = 0x1001ebf
  2258. const m_XK_ecircumflexbelowdot = 0x1001ec7
  2259. const m_XK_ecircumflexgrave = 0x1001ec1
  2260. const m_XK_ecircumflexhook = 0x1001ec3
  2261. const m_XK_ecircumflextilde = 0x1001ec5
  2262. const m_XK_ediaeresis = 0x00eb
  2263. const m_XK_egrave = 0x00e8
  2264. const m_XK_ehook = 0x1001ebb
  2265. const m_XK_eightsubscript = 0x1002088
  2266. const m_XK_eightsuperior = 0x1002078
  2267. const m_XK_elementof = 0x1002208
  2268. const m_XK_emacron = 0x03ba
  2269. const m_XK_emptyset = 0x1002205
  2270. const m_XK_eng = 0x03bf
  2271. const m_XK_eogonek = 0x01ea
  2272. const m_XK_equal = 0x003d
  2273. const m_XK_eth = 0x00f0
  2274. const m_XK_etilde = 0x1001ebd
  2275. const m_XK_exclam = 0x0021
  2276. const m_XK_exclamdown = 0x00a1
  2277. const m_XK_ezh = 0x1000292
  2278. const m_XK_f = 0x0066
  2279. const m_XK_fabovedot = 0x1001e1f
  2280. const m_XK_fivesubscript = 0x1002085
  2281. const m_XK_fivesuperior = 0x1002075
  2282. const m_XK_foursubscript = 0x1002084
  2283. const m_XK_foursuperior = 0x1002074
  2284. const m_XK_fourthroot = 0x100221c
  2285. const m_XK_g = 0x0067
  2286. const m_XK_gabovedot = 0x02f5
  2287. const m_XK_gbreve = 0x02bb
  2288. const m_XK_gcaron = 0x10001e7
  2289. const m_XK_gcedilla = 0x03bb
  2290. const m_XK_gcircumflex = 0x02f8
  2291. const m_XK_grave = 0x0060
  2292. const m_XK_greater = 0x003e
  2293. const m_XK_guillemetleft = 0x00ab
  2294. const m_XK_guillemetright = 0x00bb
  2295. const m_XK_guillemotleft = 0x00ab
  2296. const m_XK_guillemotright = 0x00bb
  2297. const m_XK_h = 0x0068
  2298. const m_XK_hcircumflex = 0x02b6
  2299. const m_XK_hebrew_aleph = 0x0ce0
  2300. const m_XK_hebrew_ayin = 0x0cf2
  2301. const m_XK_hebrew_bet = 0x0ce1
  2302. const m_XK_hebrew_beth = 0x0ce1
  2303. const m_XK_hebrew_chet = 0x0ce7
  2304. const m_XK_hebrew_dalet = 0x0ce3
  2305. const m_XK_hebrew_daleth = 0x0ce3
  2306. const m_XK_hebrew_doublelowline = 0x0cdf
  2307. const m_XK_hebrew_finalkaph = 0x0cea
  2308. const m_XK_hebrew_finalmem = 0x0ced
  2309. const m_XK_hebrew_finalnun = 0x0cef
  2310. const m_XK_hebrew_finalpe = 0x0cf3
  2311. const m_XK_hebrew_finalzade = 0x0cf5
  2312. const m_XK_hebrew_finalzadi = 0x0cf5
  2313. const m_XK_hebrew_gimel = 0x0ce2
  2314. const m_XK_hebrew_gimmel = 0x0ce2
  2315. const m_XK_hebrew_he = 0x0ce4
  2316. const m_XK_hebrew_het = 0x0ce7
  2317. const m_XK_hebrew_kaph = 0x0ceb
  2318. const m_XK_hebrew_kuf = 0x0cf7
  2319. const m_XK_hebrew_lamed = 0x0cec
  2320. const m_XK_hebrew_mem = 0x0cee
  2321. const m_XK_hebrew_nun = 0x0cf0
  2322. const m_XK_hebrew_pe = 0x0cf4
  2323. const m_XK_hebrew_qoph = 0x0cf7
  2324. const m_XK_hebrew_resh = 0x0cf8
  2325. const m_XK_hebrew_samech = 0x0cf1
  2326. const m_XK_hebrew_samekh = 0x0cf1
  2327. const m_XK_hebrew_shin = 0x0cf9
  2328. const m_XK_hebrew_taf = 0x0cfa
  2329. const m_XK_hebrew_taw = 0x0cfa
  2330. const m_XK_hebrew_tet = 0x0ce8
  2331. const m_XK_hebrew_teth = 0x0ce8
  2332. const m_XK_hebrew_waw = 0x0ce5
  2333. const m_XK_hebrew_yod = 0x0ce9
  2334. const m_XK_hebrew_zade = 0x0cf6
  2335. const m_XK_hebrew_zadi = 0x0cf6
  2336. const m_XK_hebrew_zain = 0x0ce6
  2337. const m_XK_hebrew_zayin = 0x0ce6
  2338. const m_XK_hstroke = 0x02b1
  2339. const m_XK_hyphen = 0x00ad
  2340. const m_XK_i = 0x0069
  2341. const m_XK_iacute = 0x00ed
  2342. const m_XK_ibelowdot = 0x1001ecb
  2343. const m_XK_ibreve = 0x100012d
  2344. const m_XK_icircumflex = 0x00ee
  2345. const m_XK_idiaeresis = 0x00ef
  2346. const m_XK_idotless = 0x02b9
  2347. const m_XK_igrave = 0x00ec
  2348. const m_XK_ihook = 0x1001ec9
  2349. const m_XK_imacron = 0x03ef
  2350. const m_XK_iogonek = 0x03e7
  2351. const m_XK_itilde = 0x03b5
  2352. const m_XK_j = 0x006a
  2353. const m_XK_jcircumflex = 0x02bc
  2354. const m_XK_k = 0x006b
  2355. const m_XK_kana_A = 0x04b1
  2356. const m_XK_kana_CHI = 0x04c1
  2357. const m_XK_kana_E = 0x04b4
  2358. const m_XK_kana_FU = 0x04cc
  2359. const m_XK_kana_HA = 0x04ca
  2360. const m_XK_kana_HE = 0x04cd
  2361. const m_XK_kana_HI = 0x04cb
  2362. const m_XK_kana_HO = 0x04ce
  2363. const m_XK_kana_HU = 0x04cc
  2364. const m_XK_kana_I = 0x04b2
  2365. const m_XK_kana_KA = 0x04b6
  2366. const m_XK_kana_KE = 0x04b9
  2367. const m_XK_kana_KI = 0x04b7
  2368. const m_XK_kana_KO = 0x04ba
  2369. const m_XK_kana_KU = 0x04b8
  2370. const m_XK_kana_MA = 0x04cf
  2371. const m_XK_kana_ME = 0x04d2
  2372. const m_XK_kana_MI = 0x04d0
  2373. const m_XK_kana_MO = 0x04d3
  2374. const m_XK_kana_MU = 0x04d1
  2375. const m_XK_kana_N = 0x04dd
  2376. const m_XK_kana_NA = 0x04c5
  2377. const m_XK_kana_NE = 0x04c8
  2378. const m_XK_kana_NI = 0x04c6
  2379. const m_XK_kana_NO = 0x04c9
  2380. const m_XK_kana_NU = 0x04c7
  2381. const m_XK_kana_O = 0x04b5
  2382. const m_XK_kana_RA = 0x04d7
  2383. const m_XK_kana_RE = 0x04da
  2384. const m_XK_kana_RI = 0x04d8
  2385. const m_XK_kana_RO = 0x04db
  2386. const m_XK_kana_RU = 0x04d9
  2387. const m_XK_kana_SA = 0x04bb
  2388. const m_XK_kana_SE = 0x04be
  2389. const m_XK_kana_SHI = 0x04bc
  2390. const m_XK_kana_SO = 0x04bf
  2391. const m_XK_kana_SU = 0x04bd
  2392. const m_XK_kana_TA = 0x04c0
  2393. const m_XK_kana_TE = 0x04c3
  2394. const m_XK_kana_TI = 0x04c1
  2395. const m_XK_kana_TO = 0x04c4
  2396. const m_XK_kana_TSU = 0x04c2
  2397. const m_XK_kana_TU = 0x04c2
  2398. const m_XK_kana_U = 0x04b3
  2399. const m_XK_kana_WA = 0x04dc
  2400. const m_XK_kana_WO = 0x04a6
  2401. const m_XK_kana_YA = 0x04d4
  2402. const m_XK_kana_YO = 0x04d6
  2403. const m_XK_kana_YU = 0x04d5
  2404. const m_XK_kana_a = 0x04a7
  2405. const m_XK_kana_closingbracket = 0x04a3
  2406. const m_XK_kana_comma = 0x04a4
  2407. const m_XK_kana_conjunctive = 0x04a5
  2408. const m_XK_kana_e = 0x04aa
  2409. const m_XK_kana_fullstop = 0x04a1
  2410. const m_XK_kana_i = 0x04a8
  2411. const m_XK_kana_middledot = 0x04a5
  2412. const m_XK_kana_o = 0x04ab
  2413. const m_XK_kana_openingbracket = 0x04a2
  2414. const m_XK_kana_switch = 0xff7e
  2415. const m_XK_kana_tsu = 0x04af
  2416. const m_XK_kana_tu = 0x04af
  2417. const m_XK_kana_u = 0x04a9
  2418. const m_XK_kana_ya = 0x04ac
  2419. const m_XK_kana_yo = 0x04ae
  2420. const m_XK_kana_yu = 0x04ad
  2421. const m_XK_kappa = 0x03a2
  2422. const m_XK_kcedilla = 0x03f3
  2423. const m_XK_kra = 0x03a2
  2424. const m_XK_l = 0x006c
  2425. const m_XK_lacute = 0x01e5
  2426. const m_XK_lbelowdot = 0x1001e37
  2427. const m_XK_lcaron = 0x01b5
  2428. const m_XK_lcedilla = 0x03b6
  2429. const m_XK_less = 0x003c
  2430. const m_XK_lstroke = 0x01b3
  2431. const m_XK_m = 0x006d
  2432. const m_XK_mabovedot = 0x1001e41
  2433. const m_XK_macron = 0x00af
  2434. const m_XK_masculine = 0x00ba
  2435. const m_XK_minus = 0x002d
  2436. const m_XK_mu = 0x00b5
  2437. const m_XK_multiply = 0x00d7
  2438. const m_XK_n = 0x006e
  2439. const m_XK_nacute = 0x01f1
  2440. const m_XK_ncaron = 0x01f2
  2441. const m_XK_ncedilla = 0x03f1
  2442. const m_XK_ninesubscript = 0x1002089
  2443. const m_XK_ninesuperior = 0x1002079
  2444. const m_XK_nobreakspace = 0x00a0
  2445. const m_XK_notapproxeq = 0x1002247
  2446. const m_XK_notelementof = 0x1002209
  2447. const m_XK_notidentical = 0x1002262
  2448. const m_XK_notsign = 0x00ac
  2449. const m_XK_ntilde = 0x00f1
  2450. const m_XK_numbersign = 0x0023
  2451. const m_XK_numerosign = 0x06b0
  2452. const m_XK_o = 0x006f
  2453. const m_XK_oacute = 0x00f3
  2454. const m_XK_obarred = 0x1000275
  2455. const m_XK_obelowdot = 0x1001ecd
  2456. const m_XK_ocaron = 0x10001d2
  2457. const m_XK_ocircumflex = 0x00f4
  2458. const m_XK_ocircumflexacute = 0x1001ed1
  2459. const m_XK_ocircumflexbelowdot = 0x1001ed9
  2460. const m_XK_ocircumflexgrave = 0x1001ed3
  2461. const m_XK_ocircumflexhook = 0x1001ed5
  2462. const m_XK_ocircumflextilde = 0x1001ed7
  2463. const m_XK_odiaeresis = 0x00f6
  2464. const m_XK_odoubleacute = 0x01f5
  2465. const m_XK_oe = 0x13bd
  2466. const m_XK_ogonek = 0x01b2
  2467. const m_XK_ograve = 0x00f2
  2468. const m_XK_ohook = 0x1001ecf
  2469. const m_XK_ohorn = 0x10001a1
  2470. const m_XK_ohornacute = 0x1001edb
  2471. const m_XK_ohornbelowdot = 0x1001ee3
  2472. const m_XK_ohorngrave = 0x1001edd
  2473. const m_XK_ohornhook = 0x1001edf
  2474. const m_XK_ohorntilde = 0x1001ee1
  2475. const m_XK_omacron = 0x03f2
  2476. const m_XK_onehalf = 0x00bd
  2477. const m_XK_onequarter = 0x00bc
  2478. const m_XK_onesubscript = 0x1002081
  2479. const m_XK_onesuperior = 0x00b9
  2480. const m_XK_ooblique = 0x00f8
  2481. const m_XK_ordfeminine = 0x00aa
  2482. const m_XK_ordmasculine = 0x00ba
  2483. const m_XK_oslash = 0x00f8
  2484. const m_XK_otilde = 0x00f5
  2485. const m_XK_overline = 0x047e
  2486. const m_XK_p = 0x0070
  2487. const m_XK_pabovedot = 0x1001e57
  2488. const m_XK_paragraph = 0x00b6
  2489. const m_XK_parenleft = 0x0028
  2490. const m_XK_parenright = 0x0029
  2491. const m_XK_partdifferential = 0x1002202
  2492. const m_XK_percent = 0x0025
  2493. const m_XK_period = 0x002e
  2494. const m_XK_periodcentered = 0x00b7
  2495. const m_XK_plus = 0x002b
  2496. const m_XK_plusminus = 0x00b1
  2497. const m_XK_prolongedsound = 0x04b0
  2498. const m_XK_q = 0x0071
  2499. const m_XK_question = 0x003f
  2500. const m_XK_questiondown = 0x00bf
  2501. const m_XK_quotedbl = 0x0022
  2502. const m_XK_quoteleft = 0x0060
  2503. const m_XK_quoteright = 0x0027
  2504. const m_XK_r = 0x0072
  2505. const m_XK_racute = 0x01e0
  2506. const m_XK_rcaron = 0x01f8
  2507. const m_XK_rcedilla = 0x03b3
  2508. const m_XK_registered = 0x00ae
  2509. const m_XK_s = 0x0073
  2510. const m_XK_sabovedot = 0x1001e61
  2511. const m_XK_sacute = 0x01b6
  2512. const m_XK_scaron = 0x01b9
  2513. const m_XK_scedilla = 0x01ba
  2514. const m_XK_schwa = 0x1000259
  2515. const m_XK_scircumflex = 0x02fe
  2516. const m_XK_script_switch = 0xff7e
  2517. const m_XK_section = 0x00a7
  2518. const m_XK_semicolon = 0x003b
  2519. const m_XK_semivoicedsound = 0x04df
  2520. const m_XK_sevensubscript = 0x1002087
  2521. const m_XK_sevensuperior = 0x1002077
  2522. const m_XK_sixsubscript = 0x1002086
  2523. const m_XK_sixsuperior = 0x1002076
  2524. const m_XK_slash = 0x002f
  2525. const m_XK_space = 0x0020
  2526. const m_XK_squareroot = 0x100221a
  2527. const m_XK_ssharp = 0x00df
  2528. const m_XK_sterling = 0x00a3
  2529. const m_XK_stricteq = 0x1002263
  2530. const m_XK_t = 0x0074
  2531. const m_XK_tabovedot = 0x1001e6b
  2532. const m_XK_tcaron = 0x01bb
  2533. const m_XK_tcedilla = 0x01fe
  2534. const m_XK_thorn = 0x00fe
  2535. const m_XK_threequarters = 0x00be
  2536. const m_XK_threesubscript = 0x1002083
  2537. const m_XK_threesuperior = 0x00b3
  2538. const m_XK_tintegral = 0x100222d
  2539. const m_XK_tslash = 0x03bc
  2540. const m_XK_twosubscript = 0x1002082
  2541. const m_XK_twosuperior = 0x00b2
  2542. const m_XK_u = 0x0075
  2543. const m_XK_uacute = 0x00fa
  2544. const m_XK_ubelowdot = 0x1001ee5
  2545. const m_XK_ubreve = 0x02fd
  2546. const m_XK_ucircumflex = 0x00fb
  2547. const m_XK_udiaeresis = 0x00fc
  2548. const m_XK_udoubleacute = 0x01fb
  2549. const m_XK_ugrave = 0x00f9
  2550. const m_XK_uhook = 0x1001ee7
  2551. const m_XK_uhorn = 0x10001b0
  2552. const m_XK_uhornacute = 0x1001ee9
  2553. const m_XK_uhornbelowdot = 0x1001ef1
  2554. const m_XK_uhorngrave = 0x1001eeb
  2555. const m_XK_uhornhook = 0x1001eed
  2556. const m_XK_uhorntilde = 0x1001eef
  2557. const m_XK_umacron = 0x03fe
  2558. const m_XK_underscore = 0x005f
  2559. const m_XK_uogonek = 0x03f9
  2560. const m_XK_uring = 0x01f9
  2561. const m_XK_utilde = 0x03fd
  2562. const m_XK_v = 0x0076
  2563. const m_XK_voicedsound = 0x04de
  2564. const m_XK_w = 0x0077
  2565. const m_XK_wacute = 0x1001e83
  2566. const m_XK_wcircumflex = 0x1000175
  2567. const m_XK_wdiaeresis = 0x1001e85
  2568. const m_XK_wgrave = 0x1001e81
  2569. const m_XK_x = 0x0078
  2570. const m_XK_xabovedot = 0x1001e8b
  2571. const m_XK_y = 0x0079
  2572. const m_XK_yacute = 0x00fd
  2573. const m_XK_ybelowdot = 0x1001ef5
  2574. const m_XK_ycircumflex = 0x1000177
  2575. const m_XK_ydiaeresis = 0x00ff
  2576. const m_XK_yen = 0x00a5
  2577. const m_XK_ygrave = 0x1001ef3
  2578. const m_XK_yhook = 0x1001ef7
  2579. const m_XK_ytilde = 0x1001ef9
  2580. const m_XK_z = 0x007a
  2581. const m_XK_zabovedot = 0x01bf
  2582. const m_XK_zacute = 0x01bc
  2583. const m_XK_zcaron = 0x01be
  2584. const m_XK_zerosubscript = 0x1002080
  2585. const m_XK_zerosuperior = 0x1002070
  2586. const m_XK_zstroke = 0x10001b6
  2587. const m_XLookupBoth = 4
  2588. const m_XLookupChars = 2
  2589. const m_XLookupKeySym = 3
  2590. const m_XLookupNone = 1
  2591. const m_XMD_H = 1
  2592. const m_XMUTEX_INITIALIZER = "PTHREAD_MUTEX_INITIALIZER"
  2593. const m_XNArea = "area"
  2594. const m_XNAreaNeeded = "areaNeeded"
  2595. const m_XNBackground = "background"
  2596. const m_XNBackgroundPixmap = "backgroundPixmap"
  2597. const m_XNBaseFontName = "baseFontName"
  2598. const m_XNClientWindow = "clientWindow"
  2599. const m_XNColormap = "colorMap"
  2600. const m_XNContextualDrawing = "contextualDrawing"
  2601. const m_XNCursor = "cursor"
  2602. const m_XNDefaultString = "defaultString"
  2603. const m_XNDestroyCallback = "destroyCallback"
  2604. const m_XNDirectionalDependentDrawing = "directionalDependentDrawing"
  2605. const m_XNFilterEvents = "filterEvents"
  2606. const m_XNFocusWindow = "focusWindow"
  2607. const m_XNFontInfo = "fontInfo"
  2608. const m_XNFontSet = "fontSet"
  2609. const m_XNForeground = "foreground"
  2610. const m_XNGeometryCallback = "geometryCallback"
  2611. const m_XNHotKey = "hotKey"
  2612. const m_XNHotKeyState = "hotKeyState"
  2613. const m_XNInputStyle = "inputStyle"
  2614. const m_XNLineSpace = "lineSpace"
  2615. const m_XNMissingCharSet = "missingCharSet"
  2616. const m_XNOMAutomatic = "omAutomatic"
  2617. const m_XNOrientation = "orientation"
  2618. const m_XNPreeditAttributes = "preeditAttributes"
  2619. const m_XNPreeditCaretCallback = "preeditCaretCallback"
  2620. const m_XNPreeditDoneCallback = "preeditDoneCallback"
  2621. const m_XNPreeditDrawCallback = "preeditDrawCallback"
  2622. const m_XNPreeditStartCallback = "preeditStartCallback"
  2623. const m_XNPreeditState = "preeditState"
  2624. const m_XNPreeditStateNotifyCallback = "preeditStateNotifyCallback"
  2625. const m_XNQueryICValuesList = "queryICValuesList"
  2626. const m_XNQueryIMValuesList = "queryIMValuesList"
  2627. const m_XNQueryInputStyle = "queryInputStyle"
  2628. const m_XNQueryOrientation = "queryOrientation"
  2629. const m_XNR6PreeditCallback = "r6PreeditCallback"
  2630. const m_XNRequiredCharSet = "requiredCharSet"
  2631. const m_XNResetState = "resetState"
  2632. const m_XNResourceClass = "resourceClass"
  2633. const m_XNResourceName = "resourceName"
  2634. const m_XNSeparatorofNestedList = "separatorofNestedList"
  2635. const m_XNSpotLocation = "spotLocation"
  2636. const m_XNStatusAttributes = "statusAttributes"
  2637. const m_XNStatusDoneCallback = "statusDoneCallback"
  2638. const m_XNStatusDrawCallback = "statusDrawCallback"
  2639. const m_XNStatusStartCallback = "statusStartCallback"
  2640. const m_XNStdColormap = "stdColorMap"
  2641. const m_XNStringConversion = "stringConversion"
  2642. const m_XNStringConversionCallback = "stringConversionCallback"
  2643. const m_XNVaNestedList = "XNVaNestedList"
  2644. const m_XNVisiblePosition = "visiblePosition"
  2645. const m_XNegative = 0x0010
  2646. const m_XTHREADS = 1
  2647. const m_XUSE_MTSAFE_API = 1
  2648. const m_XValue = 0x0001
  2649. const m_XYBitmap = 0
  2650. const m_XYPixmap = 1
  2651. const m_X_AllocColor = 84
  2652. const m_X_AllocColorCells = 86
  2653. const m_X_AllocColorPlanes = 87
  2654. const m_X_AllocNamedColor = 85
  2655. const m_X_AllowEvents = 35
  2656. const m_X_Bell = 104
  2657. const m_X_ChangeActivePointerGrab = 30
  2658. const m_X_ChangeGC = 56
  2659. const m_X_ChangeHosts = 109
  2660. const m_X_ChangeKeyboardControl = 102
  2661. const m_X_ChangeKeyboardMapping = 100
  2662. const m_X_ChangePointerControl = 105
  2663. const m_X_ChangeProperty = 18
  2664. const m_X_ChangeSaveSet = 6
  2665. const m_X_ChangeWindowAttributes = 2
  2666. const m_X_CirculateWindow = 13
  2667. const m_X_ClearArea = 61
  2668. const m_X_CloseFont = 46
  2669. const m_X_ConfigureWindow = 12
  2670. const m_X_ConvertSelection = 24
  2671. const m_X_CopyArea = 62
  2672. const m_X_CopyColormapAndFree = 80
  2673. const m_X_CopyGC = 57
  2674. const m_X_CopyPlane = 63
  2675. const m_X_CreateColormap = 78
  2676. const m_X_CreateCursor = 93
  2677. const m_X_CreateGC = 55
  2678. const m_X_CreateGlyphCursor = 94
  2679. const m_X_CreatePixmap = 53
  2680. const m_X_CreateWindow = 1
  2681. const m_X_DeleteProperty = 19
  2682. const m_X_DestroySubwindows = 5
  2683. const m_X_DestroyWindow = 4
  2684. const m_X_Error = 0
  2685. const m_X_FillPoly = 69
  2686. const m_X_ForceScreenSaver = 115
  2687. const m_X_FreeColormap = 79
  2688. const m_X_FreeColors = 88
  2689. const m_X_FreeCursor = 95
  2690. const m_X_FreeGC = 60
  2691. const m_X_FreePixmap = 54
  2692. const m_X_GetAtomName = 17
  2693. const m_X_GetFontPath = 52
  2694. const m_X_GetGeometry = 14
  2695. const m_X_GetImage = 73
  2696. const m_X_GetInputFocus = 43
  2697. const m_X_GetKeyboardControl = 103
  2698. const m_X_GetKeyboardMapping = 101
  2699. const m_X_GetModifierMapping = 119
  2700. const m_X_GetMotionEvents = 39
  2701. const m_X_GetPointerControl = 106
  2702. const m_X_GetPointerMapping = 117
  2703. const m_X_GetProperty = 20
  2704. const m_X_GetScreenSaver = 108
  2705. const m_X_GetSelectionOwner = 23
  2706. const m_X_GetWindowAttributes = 3
  2707. const m_X_GrabButton = 28
  2708. const m_X_GrabKey = 33
  2709. const m_X_GrabKeyboard = 31
  2710. const m_X_GrabPointer = 26
  2711. const m_X_GrabServer = 36
  2712. const m_X_HAVE_UTF8_STRING = 1
  2713. const m_X_ImageText16 = 77
  2714. const m_X_ImageText8 = 76
  2715. const m_X_InstallColormap = 81
  2716. const m_X_InternAtom = 16
  2717. const m_X_KillClient = 113
  2718. const m_X_ListExtensions = 99
  2719. const m_X_ListFonts = 49
  2720. const m_X_ListFontsWithInfo = 50
  2721. const m_X_ListHosts = 110
  2722. const m_X_ListInstalledColormaps = 83
  2723. const m_X_ListProperties = 21
  2724. const m_X_LookupColor = 92
  2725. const m_X_MapSubwindows = 9
  2726. const m_X_MapWindow = 8
  2727. const m_X_NoOperation = 127
  2728. const m_X_OpenFont = 45
  2729. const m_X_PROTOCOL = 11
  2730. const m_X_PROTOCOL_REVISION = 0
  2731. const m_X_PolyArc = 68
  2732. const m_X_PolyFillArc = 71
  2733. const m_X_PolyFillRectangle = 70
  2734. const m_X_PolyLine = 65
  2735. const m_X_PolyPoint = 64
  2736. const m_X_PolyRectangle = 67
  2737. const m_X_PolySegment = 66
  2738. const m_X_PolyText16 = 75
  2739. const m_X_PolyText8 = 74
  2740. const m_X_PutImage = 72
  2741. const m_X_QueryBestSize = 97
  2742. const m_X_QueryColors = 91
  2743. const m_X_QueryExtension = 98
  2744. const m_X_QueryFont = 47
  2745. const m_X_QueryKeymap = 44
  2746. const m_X_QueryPointer = 38
  2747. const m_X_QueryTextExtents = 48
  2748. const m_X_QueryTree = 15
  2749. const m_X_RecolorCursor = 96
  2750. const m_X_RenderAddGlyphs = 20
  2751. const m_X_RenderAddGlyphsFromPicture = 21
  2752. const m_X_RenderAddTraps = 32
  2753. const m_X_RenderChangePicture = 5
  2754. const m_X_RenderColorTrapezoids = 14
  2755. const m_X_RenderColorTriangles = 15
  2756. const m_X_RenderComposite = 8
  2757. const m_X_RenderCompositeGlyphs16 = 24
  2758. const m_X_RenderCompositeGlyphs32 = 25
  2759. const m_X_RenderCompositeGlyphs8 = 23
  2760. const m_X_RenderCreateAnimCursor = 31
  2761. const m_X_RenderCreateConicalGradient = 36
  2762. const m_X_RenderCreateCursor = 27
  2763. const m_X_RenderCreateGlyphSet = 17
  2764. const m_X_RenderCreateLinearGradient = 34
  2765. const m_X_RenderCreatePicture = 4
  2766. const m_X_RenderCreateRadialGradient = 35
  2767. const m_X_RenderCreateSolidFill = 33
  2768. const m_X_RenderFillRectangles = 26
  2769. const m_X_RenderFreeGlyphSet = 19
  2770. const m_X_RenderFreeGlyphs = 22
  2771. const m_X_RenderFreePicture = 7
  2772. const m_X_RenderQueryDithers = 3
  2773. const m_X_RenderQueryFilters = 29
  2774. const m_X_RenderQueryPictFormats = 1
  2775. const m_X_RenderQueryPictIndexValues = 2
  2776. const m_X_RenderQueryVersion = 0
  2777. const m_X_RenderReferenceGlyphSet = 18
  2778. const m_X_RenderScale = 9
  2779. const m_X_RenderSetPictureClipRectangles = 6
  2780. const m_X_RenderSetPictureFilter = 30
  2781. const m_X_RenderSetPictureTransform = 28
  2782. const m_X_RenderTrapezoids = 10
  2783. const m_X_RenderTriFan = 13
  2784. const m_X_RenderTriStrip = 12
  2785. const m_X_RenderTriangles = 11
  2786. const m_X_ReparentWindow = 7
  2787. const m_X_Reply = 1
  2788. const m_X_RotateProperties = 114
  2789. const m_X_SendEvent = 25
  2790. const m_X_SetAccessControl = 111
  2791. const m_X_SetClipRectangles = 59
  2792. const m_X_SetCloseDownMode = 112
  2793. const m_X_SetDashes = 58
  2794. const m_X_SetFontPath = 51
  2795. const m_X_SetInputFocus = 42
  2796. const m_X_SetModifierMapping = 118
  2797. const m_X_SetPointerMapping = 116
  2798. const m_X_SetScreenSaver = 107
  2799. const m_X_SetSelectionOwner = 22
  2800. const m_X_StoreColors = 89
  2801. const m_X_StoreNamedColor = 90
  2802. const m_X_TCP_PORT = 6000
  2803. const m_X_TranslateCoords = 40
  2804. const m_X_UngrabButton = 29
  2805. const m_X_UngrabKey = 34
  2806. const m_X_UngrabKeyboard = 32
  2807. const m_X_UngrabPointer = 27
  2808. const m_X_UngrabServer = 37
  2809. const m_X_UninstallColormap = 82
  2810. const m_X_UnmapSubwindows = 11
  2811. const m_X_UnmapWindow = 10
  2812. const m_X_WarpPointer = 41
  2813. const m_XlibSpecificationRelease = 6
  2814. const m_YNegative = 0x0020
  2815. const m_YSorted = 1
  2816. const m_YValue = 0x0002
  2817. const m_YXBanded = 3
  2818. const m_YXSorted = 2
  2819. const m_ZLNSPERBATCH = 1024
  2820. const m_ZPixmap = 2
  2821. const m_ZRCTSPERBATCH = 256
  2822. const m_ZoomState = 2
  2823. const m__BYTE_ORDER = "__BYTE_ORDER__"
  2824. const m__LP64 = 1
  2825. const m__NCPUBITS = "_BITSET_BITS"
  2826. const m__PDP_ENDIAN = "__ORDER_PDP_ENDIAN__"
  2827. const m__QUAD_HIGHWORD = 1
  2828. const m__QUAD_LOWWORD = 0
  2829. const m__SIG_MAXSIG = 128
  2830. const m__SIG_WORDS = 4
  2831. const m__THREAD_SAFE = 1
  2832. const m__X11_XLIBINT_H_ = 1
  2833. const m__XBCOPYFUNC = "_Xbcopy"
  2834. const m__X_INLINE = "inline"
  2835. const m__X_RESTRICT_KYWD = "restrict"
  2836. const m__Xconst = "const"
  2837. const m___ATOMIC_ACQUIRE = 2
  2838. const m___ATOMIC_ACQ_REL = 4
  2839. const m___ATOMIC_CONSUME = 1
  2840. const m___ATOMIC_RELAXED = 0
  2841. const m___ATOMIC_RELEASE = 3
  2842. const m___ATOMIC_SEQ_CST = 5
  2843. const m___BIGGEST_ALIGNMENT__ = 16
  2844. const m___BITINT_MAXWIDTH__ = 8388608
  2845. const m___BOOL_WIDTH__ = 8
  2846. const m___BSD_VISIBLE = 1
  2847. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  2848. const m___CCGO__ = 1
  2849. const m___CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1
  2850. const m___CC_SUPPORTS_INLINE = 1
  2851. const m___CC_SUPPORTS_VARADIC_XXX = 1
  2852. const m___CC_SUPPORTS_WARNING = 1
  2853. const m___CC_SUPPORTS___FUNC__ = 1
  2854. const m___CC_SUPPORTS___INLINE = 1
  2855. const m___CC_SUPPORTS___INLINE__ = 1
  2856. const m___CHAR_BIT = 8
  2857. const m___CHAR_BIT__ = 8
  2858. const m___CLANG_ATOMIC_BOOL_LOCK_FREE = 2
  2859. const m___CLANG_ATOMIC_CHAR16_T_LOCK_FREE = 2
  2860. const m___CLANG_ATOMIC_CHAR32_T_LOCK_FREE = 2
  2861. const m___CLANG_ATOMIC_CHAR_LOCK_FREE = 2
  2862. const m___CLANG_ATOMIC_INT_LOCK_FREE = 2
  2863. const m___CLANG_ATOMIC_LLONG_LOCK_FREE = 2
  2864. const m___CLANG_ATOMIC_LONG_LOCK_FREE = 2
  2865. const m___CLANG_ATOMIC_POINTER_LOCK_FREE = 2
  2866. const m___CLANG_ATOMIC_SHORT_LOCK_FREE = 2
  2867. const m___CLANG_ATOMIC_WCHAR_T_LOCK_FREE = 2
  2868. const m___CONSTANT_CFSTRINGS__ = 1
  2869. const m___DBL_DECIMAL_DIG__ = 17
  2870. const m___DBL_DENORM_MIN__ = 4.9406564584124654e-324
  2871. const m___DBL_DIG__ = 15
  2872. const m___DBL_EPSILON__ = 2.2204460492503131e-16
  2873. const m___DBL_HAS_DENORM__ = 1
  2874. const m___DBL_HAS_INFINITY__ = 1
  2875. const m___DBL_HAS_QUIET_NAN__ = 1
  2876. const m___DBL_MANT_DIG__ = 53
  2877. const m___DBL_MAX_10_EXP__ = 308
  2878. const m___DBL_MAX_EXP__ = 1024
  2879. const m___DBL_MAX__ = 1.7976931348623157e+308
  2880. const m___DBL_MIN__ = 2.2250738585072014e-308
  2881. const m___DECIMAL_DIG__ = "__LDBL_DECIMAL_DIG__"
  2882. const m___ELF__ = 1
  2883. const m___EXT1_VISIBLE = 1
  2884. const m___FINITE_MATH_ONLY__ = 0
  2885. const m___FLOAT128__ = 1
  2886. const m___FLT16_DECIMAL_DIG__ = 5
  2887. const m___FLT16_DENORM_MIN__ = 5.9604644775390625e-8
  2888. const m___FLT16_DIG__ = 3
  2889. const m___FLT16_EPSILON__ = 9.765625e-4
  2890. const m___FLT16_HAS_DENORM__ = 1
  2891. const m___FLT16_HAS_INFINITY__ = 1
  2892. const m___FLT16_HAS_QUIET_NAN__ = 1
  2893. const m___FLT16_MANT_DIG__ = 11
  2894. const m___FLT16_MAX_10_EXP__ = 4
  2895. const m___FLT16_MAX_EXP__ = 16
  2896. const m___FLT16_MAX__ = 6.5504e+4
  2897. const m___FLT16_MIN__ = 6.103515625e-5
  2898. const m___FLT_DECIMAL_DIG__ = 9
  2899. const m___FLT_DENORM_MIN__ = 1.40129846e-45
  2900. const m___FLT_DIG__ = 6
  2901. const m___FLT_EPSILON__ = 1.19209290e-7
  2902. const m___FLT_HAS_DENORM__ = 1
  2903. const m___FLT_HAS_INFINITY__ = 1
  2904. const m___FLT_HAS_QUIET_NAN__ = 1
  2905. const m___FLT_MANT_DIG__ = 24
  2906. const m___FLT_MAX_10_EXP__ = 38
  2907. const m___FLT_MAX_EXP__ = 128
  2908. const m___FLT_MAX__ = 3.40282347e+38
  2909. const m___FLT_MIN__ = 1.17549435e-38
  2910. const m___FLT_RADIX__ = 2
  2911. const m___FPCLASS_NEGINF = 0x0004
  2912. const m___FPCLASS_NEGNORMAL = 0x0008
  2913. const m___FPCLASS_NEGSUBNORMAL = 0x0010
  2914. const m___FPCLASS_NEGZERO = 0x0020
  2915. const m___FPCLASS_POSINF = 0x0200
  2916. const m___FPCLASS_POSNORMAL = 0x0100
  2917. const m___FPCLASS_POSSUBNORMAL = 0x0080
  2918. const m___FPCLASS_POSZERO = 0x0040
  2919. const m___FPCLASS_QNAN = 0x0002
  2920. const m___FPCLASS_SNAN = 0x0001
  2921. const m___FUNCTION__ = "__func__"
  2922. const m___FXSR__ = 1
  2923. const m___FreeBSD__ = 14
  2924. const m___FreeBSD_cc_version = 1400006
  2925. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  2926. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  2927. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  2928. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  2929. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  2930. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  2931. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  2932. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  2933. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  2934. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  2935. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  2936. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  2937. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  2938. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  2939. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  2940. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  2941. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  2942. const m___GNUCLIKE_ASM = 3
  2943. const m___GNUCLIKE_BUILTIN_CONSTANT_P = 1
  2944. const m___GNUCLIKE_BUILTIN_MEMCPY = 1
  2945. const m___GNUCLIKE_BUILTIN_NEXT_ARG = 1
  2946. const m___GNUCLIKE_BUILTIN_STDARG = 1
  2947. const m___GNUCLIKE_BUILTIN_VAALIST = 1
  2948. const m___GNUCLIKE_BUILTIN_VARARGS = 1
  2949. const m___GNUCLIKE_CTOR_SECTION_HANDLING = 1
  2950. const m___GNUCLIKE___SECTION = 1
  2951. const m___GNUCLIKE___TYPEOF = 1
  2952. const m___GNUC_MINOR__ = 2
  2953. const m___GNUC_PATCHLEVEL__ = 1
  2954. const m___GNUC_STDC_INLINE__ = 1
  2955. const m___GNUC_VA_LIST_COMPATIBILITY = 1
  2956. const m___GNUC__ = 4
  2957. const m___GXX_ABI_VERSION = 1002
  2958. const m___INT16_FMTd__ = "hd"
  2959. const m___INT16_FMTi__ = "hi"
  2960. const m___INT16_MAX__ = 32767
  2961. const m___INT16_TYPE__ = "short"
  2962. const m___INT32_FMTd__ = "d"
  2963. const m___INT32_FMTi__ = "i"
  2964. const m___INT32_MAX__ = 2147483647
  2965. const m___INT32_TYPE__ = "int"
  2966. const m___INT64_C_SUFFIX__ = "L"
  2967. const m___INT64_FMTd__ = "ld"
  2968. const m___INT64_FMTi__ = "li"
  2969. const m___INT64_MAX__ = 9223372036854775807
  2970. const m___INT8_FMTd__ = "hhd"
  2971. const m___INT8_FMTi__ = "hhi"
  2972. const m___INT8_MAX__ = 127
  2973. const m___INTMAX_C_SUFFIX__ = "L"
  2974. const m___INTMAX_FMTd__ = "ld"
  2975. const m___INTMAX_FMTi__ = "li"
  2976. const m___INTMAX_MAX__ = 9223372036854775807
  2977. const m___INTMAX_WIDTH__ = 64
  2978. const m___INTPTR_FMTd__ = "ld"
  2979. const m___INTPTR_FMTi__ = "li"
  2980. const m___INTPTR_MAX__ = 9223372036854775807
  2981. const m___INTPTR_WIDTH__ = 64
  2982. const m___INT_FAST16_FMTd__ = "hd"
  2983. const m___INT_FAST16_FMTi__ = "hi"
  2984. const m___INT_FAST16_MAX__ = 32767
  2985. const m___INT_FAST16_TYPE__ = "short"
  2986. const m___INT_FAST16_WIDTH__ = 16
  2987. const m___INT_FAST32_FMTd__ = "d"
  2988. const m___INT_FAST32_FMTi__ = "i"
  2989. const m___INT_FAST32_MAX__ = 2147483647
  2990. const m___INT_FAST32_TYPE__ = "int"
  2991. const m___INT_FAST32_WIDTH__ = 32
  2992. const m___INT_FAST64_FMTd__ = "ld"
  2993. const m___INT_FAST64_FMTi__ = "li"
  2994. const m___INT_FAST64_MAX__ = 9223372036854775807
  2995. const m___INT_FAST64_WIDTH__ = 64
  2996. const m___INT_FAST8_FMTd__ = "hhd"
  2997. const m___INT_FAST8_FMTi__ = "hhi"
  2998. const m___INT_FAST8_MAX__ = 127
  2999. const m___INT_FAST8_WIDTH__ = 8
  3000. const m___INT_LEAST16_FMTd__ = "hd"
  3001. const m___INT_LEAST16_FMTi__ = "hi"
  3002. const m___INT_LEAST16_MAX__ = 32767
  3003. const m___INT_LEAST16_TYPE__ = "short"
  3004. const m___INT_LEAST16_WIDTH__ = 16
  3005. const m___INT_LEAST32_FMTd__ = "d"
  3006. const m___INT_LEAST32_FMTi__ = "i"
  3007. const m___INT_LEAST32_MAX__ = 2147483647
  3008. const m___INT_LEAST32_TYPE__ = "int"
  3009. const m___INT_LEAST32_WIDTH__ = 32
  3010. const m___INT_LEAST64_FMTd__ = "ld"
  3011. const m___INT_LEAST64_FMTi__ = "li"
  3012. const m___INT_LEAST64_MAX__ = 9223372036854775807
  3013. const m___INT_LEAST64_WIDTH__ = 64
  3014. const m___INT_LEAST8_FMTd__ = "hhd"
  3015. const m___INT_LEAST8_FMTi__ = "hhi"
  3016. const m___INT_LEAST8_MAX__ = 127
  3017. const m___INT_LEAST8_WIDTH__ = 8
  3018. const m___INT_MAX = 0x7fffffff
  3019. const m___INT_MAX__ = 2147483647
  3020. const m___INT_WIDTH__ = 32
  3021. const m___ISO_C_VISIBLE = 2011
  3022. const m___KPRINTF_ATTRIBUTE__ = 1
  3023. const m___LDBL_DECIMAL_DIG__ = 17
  3024. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  3025. const m___LDBL_DIG__ = 15
  3026. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  3027. const m___LDBL_HAS_DENORM__ = 1
  3028. const m___LDBL_HAS_INFINITY__ = 1
  3029. const m___LDBL_HAS_QUIET_NAN__ = 1
  3030. const m___LDBL_MANT_DIG__ = 53
  3031. const m___LDBL_MAX_10_EXP__ = 308
  3032. const m___LDBL_MAX_EXP__ = 1024
  3033. const m___LDBL_MAX__ = 1.7976931348623157e+308
  3034. const m___LDBL_MIN__ = 2.2250738585072014e-308
  3035. const m___LITTLE_ENDIAN__ = 1
  3036. const m___LLONG_MAX = 0x7fffffffffffffff
  3037. const m___LLONG_WIDTH__ = 64
  3038. const m___LONG_BIT = 64
  3039. const m___LONG_LONG_MAX__ = 9223372036854775807
  3040. const m___LONG_MAX = 0x7fffffffffffffff
  3041. const m___LONG_MAX__ = 9223372036854775807
  3042. const m___LONG_WIDTH__ = 64
  3043. const m___LP64__ = 1
  3044. const m___MEMORY_SCOPE_DEVICE = 1
  3045. const m___MEMORY_SCOPE_SINGLE = 4
  3046. const m___MEMORY_SCOPE_SYSTEM = 0
  3047. const m___MEMORY_SCOPE_WRKGRP = 2
  3048. const m___MEMORY_SCOPE_WVFRNT = 3
  3049. const m___MMX__ = 1
  3050. const m___NO_INLINE__ = 1
  3051. const m___NO_MATH_ERRNO__ = 1
  3052. const m___NO_MATH_INLINES = 1
  3053. const m___OBJC_BOOL_IS_BOOL = 0
  3054. const m___OFF_MAX = "__LONG_MAX"
  3055. const m___OFF_MIN = "__LONG_MIN"
  3056. const m___OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES = 3
  3057. const m___OPENCL_MEMORY_SCOPE_DEVICE = 2
  3058. const m___OPENCL_MEMORY_SCOPE_SUB_GROUP = 4
  3059. const m___OPENCL_MEMORY_SCOPE_WORK_GROUP = 1
  3060. const m___OPENCL_MEMORY_SCOPE_WORK_ITEM = 0
  3061. const m___ORDER_BIG_ENDIAN__ = 4321
  3062. const m___ORDER_LITTLE_ENDIAN__ = 1234
  3063. const m___ORDER_PDP_ENDIAN__ = 3412
  3064. const m___POINTER_WIDTH__ = 64
  3065. const m___POSIX_VISIBLE = 200809
  3066. const m___PRAGMA_REDEFINE_EXTNAME = 1
  3067. const m___PRETTY_FUNCTION__ = "__func__"
  3068. const m___PTRDIFF_FMTd__ = "ld"
  3069. const m___PTRDIFF_FMTi__ = "li"
  3070. const m___PTRDIFF_MAX__ = 9223372036854775807
  3071. const m___PTRDIFF_WIDTH__ = 64
  3072. const m___QUAD_MAX = "__LONG_MAX"
  3073. const m___QUAD_MIN = "__LONG_MIN"
  3074. const m___SCHAR_MAX = 0x7f
  3075. const m___SCHAR_MAX__ = 127
  3076. const m___SEG_FS = 1
  3077. const m___SEG_GS = 1
  3078. const m___SHRT_MAX = 0x7fff
  3079. const m___SHRT_MAX__ = 32767
  3080. const m___SHRT_WIDTH__ = 16
  3081. const m___SIG_ATOMIC_MAX__ = 2147483647
  3082. const m___SIG_ATOMIC_WIDTH__ = 32
  3083. const m___SIZEOF_DOUBLE__ = 8
  3084. const m___SIZEOF_FLOAT128__ = 16
  3085. const m___SIZEOF_FLOAT__ = 4
  3086. const m___SIZEOF_INT128__ = 16
  3087. const m___SIZEOF_INT__ = 4
  3088. const m___SIZEOF_LONG_DOUBLE__ = 8
  3089. const m___SIZEOF_LONG_LONG__ = 8
  3090. const m___SIZEOF_LONG__ = 8
  3091. const m___SIZEOF_POINTER__ = 8
  3092. const m___SIZEOF_PTRDIFF_T__ = 8
  3093. const m___SIZEOF_SHORT__ = 2
  3094. const m___SIZEOF_SIZE_T__ = 8
  3095. const m___SIZEOF_WCHAR_T__ = 4
  3096. const m___SIZEOF_WINT_T__ = 4
  3097. const m___SIZE_FMTX__ = "lX"
  3098. const m___SIZE_FMTo__ = "lo"
  3099. const m___SIZE_FMTu__ = "lu"
  3100. const m___SIZE_FMTx__ = "lx"
  3101. const m___SIZE_MAX__ = 18446744073709551615
  3102. const m___SIZE_T_MAX = "__ULONG_MAX"
  3103. const m___SIZE_WIDTH__ = 64
  3104. const m___SSE2_MATH__ = 1
  3105. const m___SSE2__ = 1
  3106. const m___SSE_MATH__ = 1
  3107. const m___SSE__ = 1
  3108. const m___SSIZE_MAX = "__LONG_MAX"
  3109. const m___STDC_HOSTED__ = 1
  3110. const m___STDC_MB_MIGHT_NEQ_WC__ = 1
  3111. const m___STDC_UTF_16__ = 1
  3112. const m___STDC_UTF_32__ = 1
  3113. const m___STDC_VERSION__ = 201710
  3114. const m___STDC__ = 1
  3115. const m___UCHAR_MAX = 0xff
  3116. const m___UINT16_FMTX__ = "hX"
  3117. const m___UINT16_FMTo__ = "ho"
  3118. const m___UINT16_FMTu__ = "hu"
  3119. const m___UINT16_FMTx__ = "hx"
  3120. const m___UINT16_MAX__ = 65535
  3121. const m___UINT32_C_SUFFIX__ = "U"
  3122. const m___UINT32_FMTX__ = "X"
  3123. const m___UINT32_FMTo__ = "o"
  3124. const m___UINT32_FMTu__ = "u"
  3125. const m___UINT32_FMTx__ = "x"
  3126. const m___UINT32_MAX__ = 4294967295
  3127. const m___UINT64_C_SUFFIX__ = "UL"
  3128. const m___UINT64_FMTX__ = "lX"
  3129. const m___UINT64_FMTo__ = "lo"
  3130. const m___UINT64_FMTu__ = "lu"
  3131. const m___UINT64_FMTx__ = "lx"
  3132. const m___UINT64_MAX__ = 18446744073709551615
  3133. const m___UINT8_FMTX__ = "hhX"
  3134. const m___UINT8_FMTo__ = "hho"
  3135. const m___UINT8_FMTu__ = "hhu"
  3136. const m___UINT8_FMTx__ = "hhx"
  3137. const m___UINT8_MAX__ = 255
  3138. const m___UINTMAX_C_SUFFIX__ = "UL"
  3139. const m___UINTMAX_FMTX__ = "lX"
  3140. const m___UINTMAX_FMTo__ = "lo"
  3141. const m___UINTMAX_FMTu__ = "lu"
  3142. const m___UINTMAX_FMTx__ = "lx"
  3143. const m___UINTMAX_MAX__ = 18446744073709551615
  3144. const m___UINTMAX_WIDTH__ = 64
  3145. const m___UINTPTR_FMTX__ = "lX"
  3146. const m___UINTPTR_FMTo__ = "lo"
  3147. const m___UINTPTR_FMTu__ = "lu"
  3148. const m___UINTPTR_FMTx__ = "lx"
  3149. const m___UINTPTR_MAX__ = 18446744073709551615
  3150. const m___UINTPTR_WIDTH__ = 64
  3151. const m___UINT_FAST16_FMTX__ = "hX"
  3152. const m___UINT_FAST16_FMTo__ = "ho"
  3153. const m___UINT_FAST16_FMTu__ = "hu"
  3154. const m___UINT_FAST16_FMTx__ = "hx"
  3155. const m___UINT_FAST16_MAX__ = 65535
  3156. const m___UINT_FAST32_FMTX__ = "X"
  3157. const m___UINT_FAST32_FMTo__ = "o"
  3158. const m___UINT_FAST32_FMTu__ = "u"
  3159. const m___UINT_FAST32_FMTx__ = "x"
  3160. const m___UINT_FAST32_MAX__ = 4294967295
  3161. const m___UINT_FAST64_FMTX__ = "lX"
  3162. const m___UINT_FAST64_FMTo__ = "lo"
  3163. const m___UINT_FAST64_FMTu__ = "lu"
  3164. const m___UINT_FAST64_FMTx__ = "lx"
  3165. const m___UINT_FAST64_MAX__ = 18446744073709551615
  3166. const m___UINT_FAST8_FMTX__ = "hhX"
  3167. const m___UINT_FAST8_FMTo__ = "hho"
  3168. const m___UINT_FAST8_FMTu__ = "hhu"
  3169. const m___UINT_FAST8_FMTx__ = "hhx"
  3170. const m___UINT_FAST8_MAX__ = 255
  3171. const m___UINT_LEAST16_FMTX__ = "hX"
  3172. const m___UINT_LEAST16_FMTo__ = "ho"
  3173. const m___UINT_LEAST16_FMTu__ = "hu"
  3174. const m___UINT_LEAST16_FMTx__ = "hx"
  3175. const m___UINT_LEAST16_MAX__ = 65535
  3176. const m___UINT_LEAST32_FMTX__ = "X"
  3177. const m___UINT_LEAST32_FMTo__ = "o"
  3178. const m___UINT_LEAST32_FMTu__ = "u"
  3179. const m___UINT_LEAST32_FMTx__ = "x"
  3180. const m___UINT_LEAST32_MAX__ = 4294967295
  3181. const m___UINT_LEAST64_FMTX__ = "lX"
  3182. const m___UINT_LEAST64_FMTo__ = "lo"
  3183. const m___UINT_LEAST64_FMTu__ = "lu"
  3184. const m___UINT_LEAST64_FMTx__ = "lx"
  3185. const m___UINT_LEAST64_MAX__ = 18446744073709551615
  3186. const m___UINT_LEAST8_FMTX__ = "hhX"
  3187. const m___UINT_LEAST8_FMTo__ = "hho"
  3188. const m___UINT_LEAST8_FMTu__ = "hhu"
  3189. const m___UINT_LEAST8_FMTx__ = "hhx"
  3190. const m___UINT_LEAST8_MAX__ = 255
  3191. const m___UINT_MAX = 0xffffffff
  3192. const m___ULLONG_MAX = "0xffffffffffffffffU"
  3193. const m___ULONG_MAX = 0xffffffffffffffff
  3194. const m___UQUAD_MAX = "__ULONG_MAX"
  3195. const m___USHRT_MAX = 0xffff
  3196. const m___VERSION__ = "FreeBSD Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
  3197. const m___WCHAR_MAX = "__INT_MAX"
  3198. const m___WCHAR_MAX__ = 2147483647
  3199. const m___WCHAR_MIN = "__INT_MIN"
  3200. const m___WCHAR_TYPE__ = "int"
  3201. const m___WCHAR_WIDTH__ = 32
  3202. const m___WINT_MAX__ = 2147483647
  3203. const m___WINT_TYPE__ = "int"
  3204. const m___WINT_WIDTH__ = 32
  3205. const m___WORDSIZE = 64
  3206. const m___WORD_BIT = 32
  3207. const m___XSI_VISIBLE = 700
  3208. const m___amd64 = 1
  3209. const m___amd64__ = 1
  3210. const m___clang__ = 1
  3211. const m___clang_literal_encoding__ = "UTF-8"
  3212. const m___clang_major__ = 18
  3213. const m___clang_minor__ = 1
  3214. const m___clang_patchlevel__ = 6
  3215. const m___clang_version__ = "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)"
  3216. const m___clang_wide_literal_encoding__ = "UTF-32"
  3217. const m___code_model_small__ = 1
  3218. const m___const = "const"
  3219. const m___has_extension = "__has_feature"
  3220. const m___k8 = 1
  3221. const m___k8__ = 1
  3222. const m___llvm__ = 1
  3223. const m___restrict = "restrict"
  3224. const m___restrict_arr = "restrict"
  3225. const m___signed = "signed"
  3226. const m___tune_k8__ = 1
  3227. const m___unix = 1
  3228. const m___unix__ = 1
  3229. const m___volatile = "volatile"
  3230. const m___writeonly = "__unused"
  3231. const m___x86_64 = 1
  3232. const m___x86_64__ = 1
  3233. const m_fds_bits = "__fds_bits"
  3234. const m_pthread_attr_default = "NULL"
  3235. const m_pthread_condattr_default = "NULL"
  3236. const m_pthread_mutexattr_default = "NULL"
  3237. const m_sz_xAllocColorCellsReply = 32
  3238. const m_sz_xAllocColorCellsReq = 12
  3239. const m_sz_xAllocColorPlanesReply = 32
  3240. const m_sz_xAllocColorPlanesReq = 16
  3241. const m_sz_xAllocColorReply = 32
  3242. const m_sz_xAllocColorReq = 16
  3243. const m_sz_xAllocNamedColorReply = 32
  3244. const m_sz_xAllocNamedColorReq = 12
  3245. const m_sz_xAllowEventsReq = 8
  3246. const m_sz_xAnimCursorElt = 8
  3247. const m_sz_xArc = 12
  3248. const m_sz_xBellReq = 4
  3249. const m_sz_xChangeActivePointerGrabReq = 16
  3250. const m_sz_xChangeGCReq = 12
  3251. const m_sz_xChangeHostsReq = 8
  3252. const m_sz_xChangeKeyboardControlReq = 8
  3253. const m_sz_xChangeKeyboardMappingReq = 8
  3254. const m_sz_xChangeModeReq = 4
  3255. const m_sz_xChangePointerControlReq = 12
  3256. const m_sz_xChangePropertyReq = 24
  3257. const m_sz_xChangeSaveSetReq = 8
  3258. const m_sz_xChangeWindowAttributesReq = 12
  3259. const m_sz_xCharInfo = 12
  3260. const m_sz_xCirculateWindowReq = 8
  3261. const m_sz_xClearAreaReq = 16
  3262. const m_sz_xColorItem = 12
  3263. const m_sz_xConfigureWindowReq = 12
  3264. const m_sz_xConnClientPrefix = 12
  3265. const m_sz_xConnSetup = 32
  3266. const m_sz_xConnSetupPrefix = 8
  3267. const m_sz_xConvertSelectionReq = 24
  3268. const m_sz_xCopyAreaReq = 28
  3269. const m_sz_xCopyColormapAndFreeReq = 12
  3270. const m_sz_xCopyGCReq = 16
  3271. const m_sz_xCopyPlaneReq = 32
  3272. const m_sz_xCreateColormapReq = 16
  3273. const m_sz_xCreateCursorReq = 32
  3274. const m_sz_xCreateGCReq = 16
  3275. const m_sz_xCreateGlyphCursorReq = 32
  3276. const m_sz_xCreatePixmapReq = 16
  3277. const m_sz_xCreateWindowReq = 32
  3278. const m_sz_xDeletePropertyReq = 12
  3279. const m_sz_xDepth = 8
  3280. const m_sz_xDirectFormat = 16
  3281. const m_sz_xError = 32
  3282. const m_sz_xEvent = 32
  3283. const m_sz_xFillPolyReq = 16
  3284. const m_sz_xFontProp = 8
  3285. const m_sz_xForceScreenSaverReq = 4
  3286. const m_sz_xFreeColorsReq = 12
  3287. const m_sz_xGenericReply = 32
  3288. const m_sz_xGetAtomNameReply = 32
  3289. const m_sz_xGetFontPathReply = 32
  3290. const m_sz_xGetGeometryReply = 32
  3291. const m_sz_xGetImageReply = 32
  3292. const m_sz_xGetImageReq = 20
  3293. const m_sz_xGetInputFocusReply = 32
  3294. const m_sz_xGetKeyboardControlReply = 52
  3295. const m_sz_xGetKeyboardMappingReply = 32
  3296. const m_sz_xGetKeyboardMappingReq = 8
  3297. const m_sz_xGetModifierMappingReply = 32
  3298. const m_sz_xGetMotionEventsReply = 32
  3299. const m_sz_xGetMotionEventsReq = 16
  3300. const m_sz_xGetPointerControlReply = 32
  3301. const m_sz_xGetPointerMappingReply = 32
  3302. const m_sz_xGetPropertyReply = 32
  3303. const m_sz_xGetPropertyReq = 24
  3304. const m_sz_xGetScreenSaverReply = 32
  3305. const m_sz_xGetSelectionOwnerReply = 32
  3306. const m_sz_xGetWindowAttributesReply = 44
  3307. const m_sz_xGlyphElt = 8
  3308. const m_sz_xGlyphInfo = 12
  3309. const m_sz_xGrabButtonReq = 24
  3310. const m_sz_xGrabKeyReq = 16
  3311. const m_sz_xGrabKeyboardReply = 32
  3312. const m_sz_xGrabKeyboardReq = 16
  3313. const m_sz_xGrabPointerReply = 32
  3314. const m_sz_xGrabPointerReq = 24
  3315. const m_sz_xHostEntry = 4
  3316. const m_sz_xImageText16Req = 16
  3317. const m_sz_xImageText8Req = 16
  3318. const m_sz_xImageTextReq = 16
  3319. const m_sz_xIndexValue = 12
  3320. const m_sz_xInternAtomReply = 32
  3321. const m_sz_xInternAtomReq = 8
  3322. const m_sz_xKeymapEvent = 32
  3323. const m_sz_xLineFixed = 16
  3324. const m_sz_xListExtensionsReply = 32
  3325. const m_sz_xListFontsReply = 32
  3326. const m_sz_xListFontsReq = 8
  3327. const m_sz_xListFontsWithInfoReply = 60
  3328. const m_sz_xListFontsWithInfoReq = 8
  3329. const m_sz_xListHostsReply = 32
  3330. const m_sz_xListHostsReq = 4
  3331. const m_sz_xListInstalledColormapsReply = 32
  3332. const m_sz_xListPropertiesReply = 32
  3333. const m_sz_xLookupColorReply = 32
  3334. const m_sz_xLookupColorReq = 12
  3335. const m_sz_xOpenFontReq = 12
  3336. const m_sz_xPictDepth = 8
  3337. const m_sz_xPictFormInfo = 28
  3338. const m_sz_xPictScreen = 8
  3339. const m_sz_xPictVisual = 8
  3340. const m_sz_xPixmapFormat = 8
  3341. const m_sz_xPoint = 4
  3342. const m_sz_xPointFixed = 8
  3343. const m_sz_xPolyArcReq = 12
  3344. const m_sz_xPolyFillArcReq = 12
  3345. const m_sz_xPolyFillRectangleReq = 12
  3346. const m_sz_xPolyLineReq = 12
  3347. const m_sz_xPolyPointReq = 12
  3348. const m_sz_xPolyRectangleReq = 12
  3349. const m_sz_xPolySegmentReq = 12
  3350. const m_sz_xPolyText16Req = 16
  3351. const m_sz_xPolyText8Req = 16
  3352. const m_sz_xPolyTextReq = 16
  3353. const m_sz_xPropIconSize = 24
  3354. const m_sz_xPutImageReq = 24
  3355. const m_sz_xQueryBestSizeReply = 32
  3356. const m_sz_xQueryBestSizeReq = 12
  3357. const m_sz_xQueryColorsReply = 32
  3358. const m_sz_xQueryColorsReq = 8
  3359. const m_sz_xQueryExtensionReply = 32
  3360. const m_sz_xQueryExtensionReq = 8
  3361. const m_sz_xQueryFontReply = 60
  3362. const m_sz_xQueryKeymapReply = 40
  3363. const m_sz_xQueryPointerReply = 32
  3364. const m_sz_xQueryTextExtentsReply = 32
  3365. const m_sz_xQueryTextExtentsReq = 8
  3366. const m_sz_xQueryTreeReply = 32
  3367. const m_sz_xRecolorCursorReq = 20
  3368. const m_sz_xRectangle = 8
  3369. const m_sz_xRenderAddGlyphsReq = 12
  3370. const m_sz_xRenderAddTrapsReq = 12
  3371. const m_sz_xRenderChangePictureReq = 12
  3372. const m_sz_xRenderColor = 8
  3373. const m_sz_xRenderCompositeGlyphs16Req = 28
  3374. const m_sz_xRenderCompositeGlyphs32Req = 28
  3375. const m_sz_xRenderCompositeGlyphs8Req = 28
  3376. const m_sz_xRenderCompositeReq = 36
  3377. const m_sz_xRenderCreateAnimCursorReq = 8
  3378. const m_sz_xRenderCreateConicalGradientReq = 24
  3379. const m_sz_xRenderCreateCursorReq = 16
  3380. const m_sz_xRenderCreateGlyphSetReq = 12
  3381. const m_sz_xRenderCreateLinearGradientReq = 28
  3382. const m_sz_xRenderCreatePictureReq = 20
  3383. const m_sz_xRenderCreateRadialGradientReq = 36
  3384. const m_sz_xRenderCreateSolidFillReq = 16
  3385. const m_sz_xRenderFillRectanglesReq = 20
  3386. const m_sz_xRenderFreeGlyphSetReq = 8
  3387. const m_sz_xRenderFreeGlyphsReq = 8
  3388. const m_sz_xRenderFreePictureReq = 8
  3389. const m_sz_xRenderQueryFiltersReply = 32
  3390. const m_sz_xRenderQueryFiltersReq = 8
  3391. const m_sz_xRenderQueryPictFormatsReply = 32
  3392. const m_sz_xRenderQueryPictFormatsReq = 4
  3393. const m_sz_xRenderQueryPictIndexValuesReply = 32
  3394. const m_sz_xRenderQueryPictIndexValuesReq = 8
  3395. const m_sz_xRenderQueryVersionReply = 32
  3396. const m_sz_xRenderQueryVersionReq = 12
  3397. const m_sz_xRenderReferenceGlyphSetReq = 24
  3398. const m_sz_xRenderScaleReq = 32
  3399. const m_sz_xRenderSetPictureClipRectanglesReq = 12
  3400. const m_sz_xRenderSetPictureFilterReq = 12
  3401. const m_sz_xRenderSetPictureTransformReq = 44
  3402. const m_sz_xRenderTransform = 36
  3403. const m_sz_xRenderTrapezoidsReq = 24
  3404. const m_sz_xRenderTriFanReq = 24
  3405. const m_sz_xRenderTriStripReq = 24
  3406. const m_sz_xRenderTrianglesReq = 24
  3407. const m_sz_xReparentWindowReq = 16
  3408. const m_sz_xReply = 32
  3409. const m_sz_xReq = 4
  3410. const m_sz_xResourceReq = 8
  3411. const m_sz_xRotatePropertiesReq = 12
  3412. const m_sz_xSegment = 8
  3413. const m_sz_xSendEventReq = 44
  3414. const m_sz_xSetAccessControlReq = 4
  3415. const m_sz_xSetClipRectanglesReq = 12
  3416. const m_sz_xSetCloseDownModeReq = 4
  3417. const m_sz_xSetDashesReq = 12
  3418. const m_sz_xSetFontPathReq = 8
  3419. const m_sz_xSetInputFocusReq = 12
  3420. const m_sz_xSetMappingReply = 32
  3421. const m_sz_xSetModifierMappingReply = 32
  3422. const m_sz_xSetModifierMappingReq = 4
  3423. const m_sz_xSetPointerMappingReply = 32
  3424. const m_sz_xSetPointerMappingReq = 4
  3425. const m_sz_xSetScreenSaverReq = 12
  3426. const m_sz_xSetSelectionOwnerReq = 16
  3427. const m_sz_xSpanFix = 12
  3428. const m_sz_xStoreColorsReq = 8
  3429. const m_sz_xStoreNamedColorReq = 16
  3430. const m_sz_xTextElt = 2
  3431. const m_sz_xTimecoord = 8
  3432. const m_sz_xTranslateCoordsReply = 32
  3433. const m_sz_xTranslateCoordsReq = 16
  3434. const m_sz_xTrap = 24
  3435. const m_sz_xTrapezoid = 40
  3436. const m_sz_xTriangle = 24
  3437. const m_sz_xUngrabButtonReq = 12
  3438. const m_sz_xUngrabKeyReq = 12
  3439. const m_sz_xVisualType = 24
  3440. const m_sz_xWarpPointerReq = 24
  3441. const m_sz_xWindowRoot = 40
  3442. const m_sz_xrgb = 8
  3443. const m_unix = 1
  3444. const m_xFalse = 0
  3445. const m_xTrue = 1
  3446. const m_xfree = "free"
  3447. const m_xmalloc = "malloc"
  3448. const m_xthread_self = "pthread_self"
  3449. type t__builtin_va_list = uintptr
  3450. type t__predefined_size_t = uint64
  3451. type t__predefined_wchar_t = int32
  3452. type t__predefined_ptrdiff_t = int64
  3453. type t__int8_t = int8
  3454. type t__uint8_t = uint8
  3455. type t__int16_t = int16
  3456. type t__uint16_t = uint16
  3457. type t__int32_t = int32
  3458. type t__uint32_t = uint32
  3459. type t__int64_t = int64
  3460. type t__uint64_t = uint64
  3461. type t__int_least8_t = int8
  3462. type t__int_least16_t = int16
  3463. type t__int_least32_t = int32
  3464. type t__int_least64_t = int64
  3465. type t__intmax_t = int64
  3466. type t__uint_least8_t = uint8
  3467. type t__uint_least16_t = uint16
  3468. type t__uint_least32_t = uint32
  3469. type t__uint_least64_t = uint64
  3470. type t__uintmax_t = uint64
  3471. type t__intptr_t = int64
  3472. type t__intfptr_t = int64
  3473. type t__uintptr_t = uint64
  3474. type t__uintfptr_t = uint64
  3475. type t__vm_offset_t = uint64
  3476. type t__vm_size_t = uint64
  3477. type t__size_t = uint64
  3478. type t__ssize_t = int64
  3479. type t__ptrdiff_t = int64
  3480. type t__clock_t = int32
  3481. type t__critical_t = int64
  3482. type t__double_t = float64
  3483. type t__float_t = float32
  3484. type t__int_fast8_t = int32
  3485. type t__int_fast16_t = int32
  3486. type t__int_fast32_t = int32
  3487. type t__int_fast64_t = int64
  3488. type t__register_t = int64
  3489. type t__segsz_t = int64
  3490. type t__time_t = int64
  3491. type t__uint_fast8_t = uint32
  3492. type t__uint_fast16_t = uint32
  3493. type t__uint_fast32_t = uint32
  3494. type t__uint_fast64_t = uint64
  3495. type t__u_register_t = uint64
  3496. type t__vm_paddr_t = uint64
  3497. type T___wchar_t = int32
  3498. type t__blksize_t = int32
  3499. type t__blkcnt_t = int64
  3500. type t__clockid_t = int32
  3501. type t__fflags_t = uint32
  3502. type t__fsblkcnt_t = uint64
  3503. type t__fsfilcnt_t = uint64
  3504. type t__gid_t = uint32
  3505. type t__id_t = int64
  3506. type t__ino_t = uint64
  3507. type t__key_t = int64
  3508. type t__lwpid_t = int32
  3509. type t__mode_t = uint16
  3510. type t__accmode_t = int32
  3511. type t__nl_item = int32
  3512. type t__nlink_t = uint64
  3513. type t__off_t = int64
  3514. type t__off64_t = int64
  3515. type t__pid_t = int32
  3516. type t__sbintime_t = int64
  3517. type t__rlim_t = int64
  3518. type t__sa_family_t = uint8
  3519. type t__socklen_t = uint32
  3520. type t__suseconds_t = int64
  3521. type t__timer_t = uintptr
  3522. type t__mqd_t = uintptr
  3523. type t__uid_t = uint32
  3524. type t__useconds_t = uint32
  3525. type t__cpuwhich_t = int32
  3526. type t__cpulevel_t = int32
  3527. type t__cpusetid_t = int32
  3528. type t__daddr_t = int64
  3529. type t__ct_rune_t = int32
  3530. type t__rune_t = int32
  3531. type t__wint_t = int32
  3532. type t__char16_t = uint16
  3533. type t__char32_t = uint32
  3534. type t__max_align_t = struct {
  3535. F__max_align1 int64
  3536. F__max_align2 float64
  3537. }
  3538. type t__dev_t = uint64
  3539. type t__fixpt_t = uint32
  3540. type t__mbstate_t = struct {
  3541. F_mbstateL [0]t__int64_t
  3542. F__mbstate8 [128]int8
  3543. }
  3544. type t__rman_res_t = uint64
  3545. type t__va_list = uintptr
  3546. type t__gnuc_va_list = uintptr
  3547. type Tint8_t = int8
  3548. type Tint16_t = int16
  3549. type Tint32_t = int32
  3550. type Tint64_t = int64
  3551. type Tuint8_t = uint8
  3552. type Tuint16_t = uint16
  3553. type Tuint32_t = uint32
  3554. type Tuint64_t = uint64
  3555. type Tintptr_t = int64
  3556. type Tuintptr_t = uint64
  3557. type Tintmax_t = int64
  3558. type Tuintmax_t = uint64
  3559. type Tint_least8_t = int8
  3560. type Tint_least16_t = int16
  3561. type Tint_least32_t = int32
  3562. type Tint_least64_t = int64
  3563. type Tuint_least8_t = uint8
  3564. type Tuint_least16_t = uint16
  3565. type Tuint_least32_t = uint32
  3566. type Tuint_least64_t = uint64
  3567. type Tint_fast8_t = int32
  3568. type Tint_fast16_t = int32
  3569. type Tint_fast32_t = int32
  3570. type Tint_fast64_t = int64
  3571. type Tuint_fast8_t = uint32
  3572. type Tuint_fast16_t = uint32
  3573. type Tuint_fast32_t = uint32
  3574. type Tuint_fast64_t = uint64
  3575. type Tpthread_once = struct {
  3576. Fstate int32
  3577. Fmutex Tpthread_mutex_t
  3578. }
  3579. type Tpthread_t = uintptr
  3580. type Tpthread_attr_t = uintptr
  3581. type Tpthread_mutex_t = uintptr
  3582. type Tpthread_mutexattr_t = uintptr
  3583. type Tpthread_cond_t = uintptr
  3584. type Tpthread_condattr_t = uintptr
  3585. type Tpthread_key_t = int32
  3586. type Tpthread_once_t = struct {
  3587. Fstate int32
  3588. Fmutex Tpthread_mutex_t
  3589. }
  3590. type Tpthread_rwlock_t = uintptr
  3591. type Tpthread_rwlockattr_t = uintptr
  3592. type Tpthread_barrier_t = uintptr
  3593. type Tpthread_barrierattr_t = uintptr
  3594. type Tpthread_spinlock_t = uintptr
  3595. type Tpthread_addr_t = uintptr
  3596. type Tpthread_startroutine_t = uintptr
  3597. type Tu_char = uint8
  3598. type Tu_short = uint16
  3599. type Tu_int = uint32
  3600. type Tu_long = uint64
  3601. type Tushort = uint16
  3602. type Tuint = uint32
  3603. type Tu_int8_t = uint8
  3604. type Tu_int16_t = uint16
  3605. type Tu_int32_t = uint32
  3606. type Tu_int64_t = uint64
  3607. type Tu_quad_t = uint64
  3608. type Tquad_t = int64
  3609. type Tqaddr_t = uintptr
  3610. type Tcaddr_t = uintptr
  3611. type Tc_caddr_t = uintptr
  3612. type Tblksize_t = int32
  3613. type Tcpuwhich_t = int32
  3614. type Tcpulevel_t = int32
  3615. type Tcpusetid_t = int32
  3616. type Tblkcnt_t = int64
  3617. type Tclock_t = int32
  3618. type Tclockid_t = int32
  3619. type Tcritical_t = int64
  3620. type Tdaddr_t = int64
  3621. type Tdev_t = uint64
  3622. type Tfflags_t = uint32
  3623. type Tfixpt_t = uint32
  3624. type Tfsblkcnt_t = uint64
  3625. type Tfsfilcnt_t = uint64
  3626. type Tgid_t = uint32
  3627. type Tin_addr_t = uint32
  3628. type Tin_port_t = uint16
  3629. type Tid_t = int64
  3630. type Tino_t = uint64
  3631. type Tkey_t = int64
  3632. type Tlwpid_t = int32
  3633. type Tmode_t = uint16
  3634. type Taccmode_t = int32
  3635. type Tnlink_t = uint64
  3636. type Toff_t = int64
  3637. type Toff64_t = int64
  3638. type Tpid_t = int32
  3639. type Tregister_t = int64
  3640. type Trlim_t = int64
  3641. type Tsbintime_t = int64
  3642. type Tsegsz_t = int64
  3643. type Tsize_t = uint64
  3644. type Tssize_t = int64
  3645. type Tsuseconds_t = int64
  3646. type Ttime_t = int64
  3647. type Ttimer_t = uintptr
  3648. type Tmqd_t = uintptr
  3649. type Tu_register_t = uint64
  3650. type Tuid_t = uint32
  3651. type Tuseconds_t = uint32
  3652. type Tcap_ioctl_t = uint64
  3653. type Tkpaddr_t = uint64
  3654. type Tkvaddr_t = uint64
  3655. type Tksize_t = uint64
  3656. type Tkssize_t = int64
  3657. type Tvm_offset_t = uint64
  3658. type Tvm_ooffset_t = uint64
  3659. type Tvm_paddr_t = uint64
  3660. type Tvm_pindex_t = uint64
  3661. type Tvm_size_t = uint64
  3662. type Trman_res_t = uint64
  3663. type Tsyscallarg_t = int64
  3664. type t__sigset_t = struct {
  3665. F__bits [4]t__uint32_t
  3666. }
  3667. type t__sigset = t__sigset_t
  3668. type Ttimeval = struct {
  3669. Ftv_sec Ttime_t
  3670. Ftv_usec Tsuseconds_t
  3671. }
  3672. type Ttimespec = struct {
  3673. Ftv_sec Ttime_t
  3674. Ftv_nsec int64
  3675. }
  3676. type Titimerspec = struct {
  3677. Fit_interval Ttimespec
  3678. Fit_value Ttimespec
  3679. }
  3680. type t__fd_mask = uint64
  3681. type Tfd_mask = uint64
  3682. type Tsigset_t = struct {
  3683. F__bits [4]t__uint32_t
  3684. }
  3685. type Tfd_set = struct {
  3686. F__fds_bits [16]t__fd_mask
  3687. }
  3688. type TXID = uint64
  3689. type TMask = uint64
  3690. type TAtom = uint64
  3691. type TVisualID = uint64
  3692. type TTime = uint64
  3693. type TWindow = uint64
  3694. type TDrawable = uint64
  3695. type TFont = uint64
  3696. type TPixmap = uint64
  3697. type TCursor = uint64
  3698. type TColormap = uint64
  3699. type TGContext = uint64
  3700. type TKeySym = uint64
  3701. type TKeyCode = uint8
  3702. type Tptrdiff_t = int64
  3703. type Trune_t = int32
  3704. type Twchar_t = int32
  3705. type Tmax_align_t = struct {
  3706. F__max_align1 int64
  3707. F__max_align2 float64
  3708. }
  3709. type Trsize_t = uint64
  3710. type TXPointer = uintptr
  3711. type TXExtData = struct {
  3712. Fnumber int32
  3713. Fnext uintptr
  3714. Ffree_private uintptr
  3715. Fprivate_data TXPointer
  3716. }
  3717. type T_XExtData = TXExtData
  3718. type TXExtCodes = struct {
  3719. Fextension int32
  3720. Fmajor_opcode int32
  3721. Ffirst_event int32
  3722. Ffirst_error int32
  3723. }
  3724. type TXPixmapFormatValues = struct {
  3725. Fdepth int32
  3726. Fbits_per_pixel int32
  3727. Fscanline_pad int32
  3728. }
  3729. type TXGCValues = struct {
  3730. Ffunction int32
  3731. Fplane_mask uint64
  3732. Fforeground uint64
  3733. Fbackground uint64
  3734. Fline_width int32
  3735. Fline_style int32
  3736. Fcap_style int32
  3737. Fjoin_style int32
  3738. Ffill_style int32
  3739. Ffill_rule int32
  3740. Farc_mode int32
  3741. Ftile TPixmap
  3742. Fstipple TPixmap
  3743. Fts_x_origin int32
  3744. Fts_y_origin int32
  3745. Ffont TFont
  3746. Fsubwindow_mode int32
  3747. Fgraphics_exposures int32
  3748. Fclip_x_origin int32
  3749. Fclip_y_origin int32
  3750. Fclip_mask TPixmap
  3751. Fdash_offset int32
  3752. Fdashes int8
  3753. }
  3754. type TGC = uintptr
  3755. type T_XGC = struct {
  3756. Fext_data uintptr
  3757. Fgid TGContext
  3758. Frects int32
  3759. Fdashes int32
  3760. Fdirty uint64
  3761. Fvalues TXGCValues
  3762. }
  3763. type TVisual = struct {
  3764. Fext_data uintptr
  3765. Fvisualid TVisualID
  3766. Fclass int32
  3767. Fred_mask uint64
  3768. Fgreen_mask uint64
  3769. Fblue_mask uint64
  3770. Fbits_per_rgb int32
  3771. Fmap_entries int32
  3772. }
  3773. type TDepth = struct {
  3774. Fdepth int32
  3775. Fnvisuals int32
  3776. Fvisuals uintptr
  3777. }
  3778. type T_XDisplay = struct {
  3779. Fext_data uintptr
  3780. Ffree_funcs uintptr
  3781. Ffd int32
  3782. Fconn_checker int32
  3783. Fproto_major_version int32
  3784. Fproto_minor_version int32
  3785. Fvendor uintptr
  3786. Fresource_base TXID
  3787. Fresource_mask TXID
  3788. Fresource_id TXID
  3789. Fresource_shift int32
  3790. Fresource_alloc uintptr
  3791. Fbyte_order int32
  3792. Fbitmap_unit int32
  3793. Fbitmap_pad int32
  3794. Fbitmap_bit_order int32
  3795. Fnformats int32
  3796. Fpixmap_format uintptr
  3797. Fvnumber int32
  3798. Frelease int32
  3799. Fhead uintptr
  3800. Ftail uintptr
  3801. Fqlen int32
  3802. Flast_request_read uint64
  3803. Frequest uint64
  3804. Flast_req uintptr
  3805. Fbuffer uintptr
  3806. Fbufptr uintptr
  3807. Fbufmax uintptr
  3808. Fmax_request_size uint32
  3809. Fdb uintptr
  3810. Fsynchandler uintptr
  3811. Fdisplay_name uintptr
  3812. Fdefault_screen int32
  3813. Fnscreens int32
  3814. Fscreens uintptr
  3815. Fmotion_buffer uint64
  3816. Fflags uint64
  3817. Fmin_keycode int32
  3818. Fmax_keycode int32
  3819. Fkeysyms uintptr
  3820. Fmodifiermap uintptr
  3821. Fkeysyms_per_keycode int32
  3822. Fxdefaults uintptr
  3823. Fscratch_buffer uintptr
  3824. Fscratch_length uint64
  3825. Fext_number int32
  3826. Fext_procs uintptr
  3827. Fevent_vec [128]uintptr
  3828. Fwire_vec [128]uintptr
  3829. Flock_meaning TKeySym
  3830. Flock uintptr
  3831. Fasync_handlers uintptr
  3832. Fbigreq_size uint64
  3833. Flock_fns uintptr
  3834. Fidlist_alloc uintptr
  3835. Fkey_bindings uintptr
  3836. Fcursor_font TFont
  3837. Fatoms uintptr
  3838. Fmode_switch uint32
  3839. Fnum_lock uint32
  3840. Fcontext_db uintptr
  3841. Ferror_vec uintptr
  3842. Fcms struct {
  3843. FdefaultCCCs TXPointer
  3844. FclientCmaps TXPointer
  3845. FperVisualIntensityMaps TXPointer
  3846. }
  3847. Fim_filters uintptr
  3848. Fqfree uintptr
  3849. Fnext_event_serial_num uint64
  3850. Fflushes uintptr
  3851. Fim_fd_info uintptr
  3852. Fim_fd_length int32
  3853. Fconn_watchers uintptr
  3854. Fwatcher_count int32
  3855. Ffiledes TXPointer
  3856. Fsavedsynchandler uintptr
  3857. Fresource_max TXID
  3858. Fxcmisc_opcode int32
  3859. Fxkb_info uintptr
  3860. Ftrans_conn uintptr
  3861. Fxcb uintptr
  3862. Fnext_cookie uint32
  3863. Fgeneric_event_vec [128]uintptr
  3864. Fgeneric_event_copy_vec [128]uintptr
  3865. Fcookiejar uintptr
  3866. Ferror_threads uintptr
  3867. Fexit_handler TXIOErrorExitHandler
  3868. Fexit_handler_data uintptr
  3869. Fin_ifevent TCARD32
  3870. Fifevent_thread Txthread_t
  3871. }
  3872. type TScreen = struct {
  3873. Fext_data uintptr
  3874. Fdisplay uintptr
  3875. Froot TWindow
  3876. Fwidth int32
  3877. Fheight int32
  3878. Fmwidth int32
  3879. Fmheight int32
  3880. Fndepths int32
  3881. Fdepths uintptr
  3882. Froot_depth int32
  3883. Froot_visual uintptr
  3884. Fdefault_gc TGC
  3885. Fcmap TColormap
  3886. Fwhite_pixel uint64
  3887. Fblack_pixel uint64
  3888. Fmax_maps int32
  3889. Fmin_maps int32
  3890. Fbacking_store int32
  3891. Fsave_unders int32
  3892. Froot_input_mask int64
  3893. }
  3894. type TScreenFormat = struct {
  3895. Fext_data uintptr
  3896. Fdepth int32
  3897. Fbits_per_pixel int32
  3898. Fscanline_pad int32
  3899. }
  3900. type TXSetWindowAttributes = struct {
  3901. Fbackground_pixmap TPixmap
  3902. Fbackground_pixel uint64
  3903. Fborder_pixmap TPixmap
  3904. Fborder_pixel uint64
  3905. Fbit_gravity int32
  3906. Fwin_gravity int32
  3907. Fbacking_store int32
  3908. Fbacking_planes uint64
  3909. Fbacking_pixel uint64
  3910. Fsave_under int32
  3911. Fevent_mask int64
  3912. Fdo_not_propagate_mask int64
  3913. Foverride_redirect int32
  3914. Fcolormap TColormap
  3915. Fcursor TCursor
  3916. }
  3917. type TXWindowAttributes = struct {
  3918. Fx int32
  3919. Fy int32
  3920. Fwidth int32
  3921. Fheight int32
  3922. Fborder_width int32
  3923. Fdepth int32
  3924. Fvisual uintptr
  3925. Froot TWindow
  3926. Fclass int32
  3927. Fbit_gravity int32
  3928. Fwin_gravity int32
  3929. Fbacking_store int32
  3930. Fbacking_planes uint64
  3931. Fbacking_pixel uint64
  3932. Fsave_under int32
  3933. Fcolormap TColormap
  3934. Fmap_installed int32
  3935. Fmap_state int32
  3936. Fall_event_masks int64
  3937. Fyour_event_mask int64
  3938. Fdo_not_propagate_mask int64
  3939. Foverride_redirect int32
  3940. Fscreen uintptr
  3941. }
  3942. type TXHostAddress = struct {
  3943. Ffamily int32
  3944. Flength int32
  3945. Faddress uintptr
  3946. }
  3947. type TXServerInterpretedAddress = struct {
  3948. Ftypelength int32
  3949. Fvaluelength int32
  3950. Ftype1 uintptr
  3951. Fvalue uintptr
  3952. }
  3953. type TXImage = struct {
  3954. Fwidth int32
  3955. Fheight int32
  3956. Fxoffset int32
  3957. Fformat int32
  3958. Fdata uintptr
  3959. Fbyte_order int32
  3960. Fbitmap_unit int32
  3961. Fbitmap_bit_order int32
  3962. Fbitmap_pad int32
  3963. Fdepth int32
  3964. Fbytes_per_line int32
  3965. Fbits_per_pixel int32
  3966. Fred_mask uint64
  3967. Fgreen_mask uint64
  3968. Fblue_mask uint64
  3969. Fobdata TXPointer
  3970. Ff Tfuncs
  3971. }
  3972. type T_XImage = TXImage
  3973. type TXWindowChanges = struct {
  3974. Fx int32
  3975. Fy int32
  3976. Fwidth int32
  3977. Fheight int32
  3978. Fborder_width int32
  3979. Fsibling TWindow
  3980. Fstack_mode int32
  3981. }
  3982. type TXColor = struct {
  3983. Fpixel uint64
  3984. Fred uint16
  3985. Fgreen uint16
  3986. Fblue uint16
  3987. Fflags int8
  3988. Fpad int8
  3989. }
  3990. type TXSegment = struct {
  3991. Fx1 int16
  3992. Fy1 int16
  3993. Fx2 int16
  3994. Fy2 int16
  3995. }
  3996. type TXPoint = struct {
  3997. Fx int16
  3998. Fy int16
  3999. }
  4000. type TXRectangle = struct {
  4001. Fx int16
  4002. Fy int16
  4003. Fwidth uint16
  4004. Fheight uint16
  4005. }
  4006. type TXArc = struct {
  4007. Fx int16
  4008. Fy int16
  4009. Fwidth uint16
  4010. Fheight uint16
  4011. Fangle1 int16
  4012. Fangle2 int16
  4013. }
  4014. type TXKeyboardControl = struct {
  4015. Fkey_click_percent int32
  4016. Fbell_percent int32
  4017. Fbell_pitch int32
  4018. Fbell_duration int32
  4019. Fled int32
  4020. Fled_mode int32
  4021. Fkey int32
  4022. Fauto_repeat_mode int32
  4023. }
  4024. type TXKeyboardState = struct {
  4025. Fkey_click_percent int32
  4026. Fbell_percent int32
  4027. Fbell_pitch uint32
  4028. Fbell_duration uint32
  4029. Fled_mask uint64
  4030. Fglobal_auto_repeat int32
  4031. Fauto_repeats [32]int8
  4032. }
  4033. type TXTimeCoord = struct {
  4034. Ftime TTime
  4035. Fx int16
  4036. Fy int16
  4037. }
  4038. type TXModifierKeymap = struct {
  4039. Fmax_keypermod int32
  4040. Fmodifiermap uintptr
  4041. }
  4042. type TDisplay = struct {
  4043. Fext_data uintptr
  4044. Ffree_funcs uintptr
  4045. Ffd int32
  4046. Fconn_checker int32
  4047. Fproto_major_version int32
  4048. Fproto_minor_version int32
  4049. Fvendor uintptr
  4050. Fresource_base TXID
  4051. Fresource_mask TXID
  4052. Fresource_id TXID
  4053. Fresource_shift int32
  4054. Fresource_alloc uintptr
  4055. Fbyte_order int32
  4056. Fbitmap_unit int32
  4057. Fbitmap_pad int32
  4058. Fbitmap_bit_order int32
  4059. Fnformats int32
  4060. Fpixmap_format uintptr
  4061. Fvnumber int32
  4062. Frelease int32
  4063. Fhead uintptr
  4064. Ftail uintptr
  4065. Fqlen int32
  4066. Flast_request_read uint64
  4067. Frequest uint64
  4068. Flast_req uintptr
  4069. Fbuffer uintptr
  4070. Fbufptr uintptr
  4071. Fbufmax uintptr
  4072. Fmax_request_size uint32
  4073. Fdb uintptr
  4074. Fsynchandler uintptr
  4075. Fdisplay_name uintptr
  4076. Fdefault_screen int32
  4077. Fnscreens int32
  4078. Fscreens uintptr
  4079. Fmotion_buffer uint64
  4080. Fflags uint64
  4081. Fmin_keycode int32
  4082. Fmax_keycode int32
  4083. Fkeysyms uintptr
  4084. Fmodifiermap uintptr
  4085. Fkeysyms_per_keycode int32
  4086. Fxdefaults uintptr
  4087. Fscratch_buffer uintptr
  4088. Fscratch_length uint64
  4089. Fext_number int32
  4090. Fext_procs uintptr
  4091. Fevent_vec [128]uintptr
  4092. Fwire_vec [128]uintptr
  4093. Flock_meaning TKeySym
  4094. Flock uintptr
  4095. Fasync_handlers uintptr
  4096. Fbigreq_size uint64
  4097. Flock_fns uintptr
  4098. Fidlist_alloc uintptr
  4099. Fkey_bindings uintptr
  4100. Fcursor_font TFont
  4101. Fatoms uintptr
  4102. Fmode_switch uint32
  4103. Fnum_lock uint32
  4104. Fcontext_db uintptr
  4105. Ferror_vec uintptr
  4106. Fcms struct {
  4107. FdefaultCCCs TXPointer
  4108. FclientCmaps TXPointer
  4109. FperVisualIntensityMaps TXPointer
  4110. }
  4111. Fim_filters uintptr
  4112. Fqfree uintptr
  4113. Fnext_event_serial_num uint64
  4114. Fflushes uintptr
  4115. Fim_fd_info uintptr
  4116. Fim_fd_length int32
  4117. Fconn_watchers uintptr
  4118. Fwatcher_count int32
  4119. Ffiledes TXPointer
  4120. Fsavedsynchandler uintptr
  4121. Fresource_max TXID
  4122. Fxcmisc_opcode int32
  4123. Fxkb_info uintptr
  4124. Ftrans_conn uintptr
  4125. Fxcb uintptr
  4126. Fnext_cookie uint32
  4127. Fgeneric_event_vec [128]uintptr
  4128. Fgeneric_event_copy_vec [128]uintptr
  4129. Fcookiejar uintptr
  4130. Ferror_threads uintptr
  4131. Fexit_handler TXIOErrorExitHandler
  4132. Fexit_handler_data uintptr
  4133. Fin_ifevent TCARD32
  4134. Fifevent_thread Txthread_t
  4135. }
  4136. type T_XPrivDisplay = uintptr
  4137. type TXKeyEvent = struct {
  4138. Ftype1 int32
  4139. Fserial uint64
  4140. Fsend_event int32
  4141. Fdisplay uintptr
  4142. Fwindow TWindow
  4143. Froot TWindow
  4144. Fsubwindow TWindow
  4145. Ftime TTime
  4146. Fx int32
  4147. Fy int32
  4148. Fx_root int32
  4149. Fy_root int32
  4150. Fstate uint32
  4151. Fkeycode uint32
  4152. Fsame_screen int32
  4153. }
  4154. type TXKeyPressedEvent = struct {
  4155. Ftype1 int32
  4156. Fserial uint64
  4157. Fsend_event int32
  4158. Fdisplay uintptr
  4159. Fwindow TWindow
  4160. Froot TWindow
  4161. Fsubwindow TWindow
  4162. Ftime TTime
  4163. Fx int32
  4164. Fy int32
  4165. Fx_root int32
  4166. Fy_root int32
  4167. Fstate uint32
  4168. Fkeycode uint32
  4169. Fsame_screen int32
  4170. }
  4171. type TXKeyReleasedEvent = struct {
  4172. Ftype1 int32
  4173. Fserial uint64
  4174. Fsend_event int32
  4175. Fdisplay uintptr
  4176. Fwindow TWindow
  4177. Froot TWindow
  4178. Fsubwindow TWindow
  4179. Ftime TTime
  4180. Fx int32
  4181. Fy int32
  4182. Fx_root int32
  4183. Fy_root int32
  4184. Fstate uint32
  4185. Fkeycode uint32
  4186. Fsame_screen int32
  4187. }
  4188. type TXButtonEvent = struct {
  4189. Ftype1 int32
  4190. Fserial uint64
  4191. Fsend_event int32
  4192. Fdisplay uintptr
  4193. Fwindow TWindow
  4194. Froot TWindow
  4195. Fsubwindow TWindow
  4196. Ftime TTime
  4197. Fx int32
  4198. Fy int32
  4199. Fx_root int32
  4200. Fy_root int32
  4201. Fstate uint32
  4202. Fbutton uint32
  4203. Fsame_screen int32
  4204. }
  4205. type TXButtonPressedEvent = struct {
  4206. Ftype1 int32
  4207. Fserial uint64
  4208. Fsend_event int32
  4209. Fdisplay uintptr
  4210. Fwindow TWindow
  4211. Froot TWindow
  4212. Fsubwindow TWindow
  4213. Ftime TTime
  4214. Fx int32
  4215. Fy int32
  4216. Fx_root int32
  4217. Fy_root int32
  4218. Fstate uint32
  4219. Fbutton uint32
  4220. Fsame_screen int32
  4221. }
  4222. type TXButtonReleasedEvent = struct {
  4223. Ftype1 int32
  4224. Fserial uint64
  4225. Fsend_event int32
  4226. Fdisplay uintptr
  4227. Fwindow TWindow
  4228. Froot TWindow
  4229. Fsubwindow TWindow
  4230. Ftime TTime
  4231. Fx int32
  4232. Fy int32
  4233. Fx_root int32
  4234. Fy_root int32
  4235. Fstate uint32
  4236. Fbutton uint32
  4237. Fsame_screen int32
  4238. }
  4239. type TXMotionEvent = struct {
  4240. Ftype1 int32
  4241. Fserial uint64
  4242. Fsend_event int32
  4243. Fdisplay uintptr
  4244. Fwindow TWindow
  4245. Froot TWindow
  4246. Fsubwindow TWindow
  4247. Ftime TTime
  4248. Fx int32
  4249. Fy int32
  4250. Fx_root int32
  4251. Fy_root int32
  4252. Fstate uint32
  4253. Fis_hint int8
  4254. Fsame_screen int32
  4255. }
  4256. type TXPointerMovedEvent = struct {
  4257. Ftype1 int32
  4258. Fserial uint64
  4259. Fsend_event int32
  4260. Fdisplay uintptr
  4261. Fwindow TWindow
  4262. Froot TWindow
  4263. Fsubwindow TWindow
  4264. Ftime TTime
  4265. Fx int32
  4266. Fy int32
  4267. Fx_root int32
  4268. Fy_root int32
  4269. Fstate uint32
  4270. Fis_hint int8
  4271. Fsame_screen int32
  4272. }
  4273. type TXCrossingEvent = struct {
  4274. Ftype1 int32
  4275. Fserial uint64
  4276. Fsend_event int32
  4277. Fdisplay uintptr
  4278. Fwindow TWindow
  4279. Froot TWindow
  4280. Fsubwindow TWindow
  4281. Ftime TTime
  4282. Fx int32
  4283. Fy int32
  4284. Fx_root int32
  4285. Fy_root int32
  4286. Fmode int32
  4287. Fdetail int32
  4288. Fsame_screen int32
  4289. Ffocus int32
  4290. Fstate uint32
  4291. }
  4292. type TXEnterWindowEvent = struct {
  4293. Ftype1 int32
  4294. Fserial uint64
  4295. Fsend_event int32
  4296. Fdisplay uintptr
  4297. Fwindow TWindow
  4298. Froot TWindow
  4299. Fsubwindow TWindow
  4300. Ftime TTime
  4301. Fx int32
  4302. Fy int32
  4303. Fx_root int32
  4304. Fy_root int32
  4305. Fmode int32
  4306. Fdetail int32
  4307. Fsame_screen int32
  4308. Ffocus int32
  4309. Fstate uint32
  4310. }
  4311. type TXLeaveWindowEvent = struct {
  4312. Ftype1 int32
  4313. Fserial uint64
  4314. Fsend_event int32
  4315. Fdisplay uintptr
  4316. Fwindow TWindow
  4317. Froot TWindow
  4318. Fsubwindow TWindow
  4319. Ftime TTime
  4320. Fx int32
  4321. Fy int32
  4322. Fx_root int32
  4323. Fy_root int32
  4324. Fmode int32
  4325. Fdetail int32
  4326. Fsame_screen int32
  4327. Ffocus int32
  4328. Fstate uint32
  4329. }
  4330. type TXFocusChangeEvent = struct {
  4331. Ftype1 int32
  4332. Fserial uint64
  4333. Fsend_event int32
  4334. Fdisplay uintptr
  4335. Fwindow TWindow
  4336. Fmode int32
  4337. Fdetail int32
  4338. }
  4339. type TXFocusInEvent = struct {
  4340. Ftype1 int32
  4341. Fserial uint64
  4342. Fsend_event int32
  4343. Fdisplay uintptr
  4344. Fwindow TWindow
  4345. Fmode int32
  4346. Fdetail int32
  4347. }
  4348. type TXFocusOutEvent = struct {
  4349. Ftype1 int32
  4350. Fserial uint64
  4351. Fsend_event int32
  4352. Fdisplay uintptr
  4353. Fwindow TWindow
  4354. Fmode int32
  4355. Fdetail int32
  4356. }
  4357. type TXKeymapEvent = struct {
  4358. Ftype1 int32
  4359. Fserial uint64
  4360. Fsend_event int32
  4361. Fdisplay uintptr
  4362. Fwindow TWindow
  4363. Fkey_vector [32]int8
  4364. }
  4365. type TXExposeEvent = struct {
  4366. Ftype1 int32
  4367. Fserial uint64
  4368. Fsend_event int32
  4369. Fdisplay uintptr
  4370. Fwindow TWindow
  4371. Fx int32
  4372. Fy int32
  4373. Fwidth int32
  4374. Fheight int32
  4375. Fcount int32
  4376. }
  4377. type TXGraphicsExposeEvent = struct {
  4378. Ftype1 int32
  4379. Fserial uint64
  4380. Fsend_event int32
  4381. Fdisplay uintptr
  4382. Fdrawable TDrawable
  4383. Fx int32
  4384. Fy int32
  4385. Fwidth int32
  4386. Fheight int32
  4387. Fcount int32
  4388. Fmajor_code int32
  4389. Fminor_code int32
  4390. }
  4391. type TXNoExposeEvent = struct {
  4392. Ftype1 int32
  4393. Fserial uint64
  4394. Fsend_event int32
  4395. Fdisplay uintptr
  4396. Fdrawable TDrawable
  4397. Fmajor_code int32
  4398. Fminor_code int32
  4399. }
  4400. type TXVisibilityEvent = struct {
  4401. Ftype1 int32
  4402. Fserial uint64
  4403. Fsend_event int32
  4404. Fdisplay uintptr
  4405. Fwindow TWindow
  4406. Fstate int32
  4407. }
  4408. type TXCreateWindowEvent = struct {
  4409. Ftype1 int32
  4410. Fserial uint64
  4411. Fsend_event int32
  4412. Fdisplay uintptr
  4413. Fparent TWindow
  4414. Fwindow TWindow
  4415. Fx int32
  4416. Fy int32
  4417. Fwidth int32
  4418. Fheight int32
  4419. Fborder_width int32
  4420. Foverride_redirect int32
  4421. }
  4422. type TXDestroyWindowEvent = struct {
  4423. Ftype1 int32
  4424. Fserial uint64
  4425. Fsend_event int32
  4426. Fdisplay uintptr
  4427. Fevent TWindow
  4428. Fwindow TWindow
  4429. }
  4430. type TXUnmapEvent = struct {
  4431. Ftype1 int32
  4432. Fserial uint64
  4433. Fsend_event int32
  4434. Fdisplay uintptr
  4435. Fevent TWindow
  4436. Fwindow TWindow
  4437. Ffrom_configure int32
  4438. }
  4439. type TXMapEvent = struct {
  4440. Ftype1 int32
  4441. Fserial uint64
  4442. Fsend_event int32
  4443. Fdisplay uintptr
  4444. Fevent TWindow
  4445. Fwindow TWindow
  4446. Foverride_redirect int32
  4447. }
  4448. type TXMapRequestEvent = struct {
  4449. Ftype1 int32
  4450. Fserial uint64
  4451. Fsend_event int32
  4452. Fdisplay uintptr
  4453. Fparent TWindow
  4454. Fwindow TWindow
  4455. }
  4456. type TXReparentEvent = struct {
  4457. Ftype1 int32
  4458. Fserial uint64
  4459. Fsend_event int32
  4460. Fdisplay uintptr
  4461. Fevent TWindow
  4462. Fwindow TWindow
  4463. Fparent TWindow
  4464. Fx int32
  4465. Fy int32
  4466. Foverride_redirect int32
  4467. }
  4468. type TXConfigureEvent = struct {
  4469. Ftype1 int32
  4470. Fserial uint64
  4471. Fsend_event int32
  4472. Fdisplay uintptr
  4473. Fevent TWindow
  4474. Fwindow TWindow
  4475. Fx int32
  4476. Fy int32
  4477. Fwidth int32
  4478. Fheight int32
  4479. Fborder_width int32
  4480. Fabove TWindow
  4481. Foverride_redirect int32
  4482. }
  4483. type TXGravityEvent = struct {
  4484. Ftype1 int32
  4485. Fserial uint64
  4486. Fsend_event int32
  4487. Fdisplay uintptr
  4488. Fevent TWindow
  4489. Fwindow TWindow
  4490. Fx int32
  4491. Fy int32
  4492. }
  4493. type TXResizeRequestEvent = struct {
  4494. Ftype1 int32
  4495. Fserial uint64
  4496. Fsend_event int32
  4497. Fdisplay uintptr
  4498. Fwindow TWindow
  4499. Fwidth int32
  4500. Fheight int32
  4501. }
  4502. type TXConfigureRequestEvent = struct {
  4503. Ftype1 int32
  4504. Fserial uint64
  4505. Fsend_event int32
  4506. Fdisplay uintptr
  4507. Fparent TWindow
  4508. Fwindow TWindow
  4509. Fx int32
  4510. Fy int32
  4511. Fwidth int32
  4512. Fheight int32
  4513. Fborder_width int32
  4514. Fabove TWindow
  4515. Fdetail int32
  4516. Fvalue_mask uint64
  4517. }
  4518. type TXCirculateEvent = struct {
  4519. Ftype1 int32
  4520. Fserial uint64
  4521. Fsend_event int32
  4522. Fdisplay uintptr
  4523. Fevent TWindow
  4524. Fwindow TWindow
  4525. Fplace int32
  4526. }
  4527. type TXCirculateRequestEvent = struct {
  4528. Ftype1 int32
  4529. Fserial uint64
  4530. Fsend_event int32
  4531. Fdisplay uintptr
  4532. Fparent TWindow
  4533. Fwindow TWindow
  4534. Fplace int32
  4535. }
  4536. type TXPropertyEvent = struct {
  4537. Ftype1 int32
  4538. Fserial uint64
  4539. Fsend_event int32
  4540. Fdisplay uintptr
  4541. Fwindow TWindow
  4542. Fatom TAtom
  4543. Ftime TTime
  4544. Fstate int32
  4545. }
  4546. type TXSelectionClearEvent = struct {
  4547. Ftype1 int32
  4548. Fserial uint64
  4549. Fsend_event int32
  4550. Fdisplay uintptr
  4551. Fwindow TWindow
  4552. Fselection TAtom
  4553. Ftime TTime
  4554. }
  4555. type TXSelectionRequestEvent = struct {
  4556. Ftype1 int32
  4557. Fserial uint64
  4558. Fsend_event int32
  4559. Fdisplay uintptr
  4560. Fowner TWindow
  4561. Frequestor TWindow
  4562. Fselection TAtom
  4563. Ftarget TAtom
  4564. Fproperty TAtom
  4565. Ftime TTime
  4566. }
  4567. type TXSelectionEvent = struct {
  4568. Ftype1 int32
  4569. Fserial uint64
  4570. Fsend_event int32
  4571. Fdisplay uintptr
  4572. Frequestor TWindow
  4573. Fselection TAtom
  4574. Ftarget TAtom
  4575. Fproperty TAtom
  4576. Ftime TTime
  4577. }
  4578. type TXColormapEvent = struct {
  4579. Ftype1 int32
  4580. Fserial uint64
  4581. Fsend_event int32
  4582. Fdisplay uintptr
  4583. Fwindow TWindow
  4584. Fcolormap TColormap
  4585. Fnew1 int32
  4586. Fstate int32
  4587. }
  4588. type TXClientMessageEvent = struct {
  4589. Ftype1 int32
  4590. Fserial uint64
  4591. Fsend_event int32
  4592. Fdisplay uintptr
  4593. Fwindow TWindow
  4594. Fmessage_type TAtom
  4595. Fformat int32
  4596. Fdata struct {
  4597. Fs [0][10]int16
  4598. Fl [0][5]int64
  4599. Fb [20]int8
  4600. F__ccgo_pad3 [20]byte
  4601. }
  4602. }
  4603. type TXMappingEvent = struct {
  4604. Ftype1 int32
  4605. Fserial uint64
  4606. Fsend_event int32
  4607. Fdisplay uintptr
  4608. Fwindow TWindow
  4609. Frequest int32
  4610. Ffirst_keycode int32
  4611. Fcount int32
  4612. }
  4613. type TXErrorEvent = struct {
  4614. Ftype1 int32
  4615. Fdisplay uintptr
  4616. Fresourceid TXID
  4617. Fserial uint64
  4618. Ferror_code uint8
  4619. Frequest_code uint8
  4620. Fminor_code uint8
  4621. }
  4622. type TXAnyEvent = struct {
  4623. Ftype1 int32
  4624. Fserial uint64
  4625. Fsend_event int32
  4626. Fdisplay uintptr
  4627. Fwindow TWindow
  4628. }
  4629. type TXGenericEvent = struct {
  4630. Ftype1 int32
  4631. Fserial uint64
  4632. Fsend_event int32
  4633. Fdisplay uintptr
  4634. Fextension int32
  4635. Fevtype int32
  4636. }
  4637. type TXGenericEventCookie = struct {
  4638. Ftype1 int32
  4639. Fserial uint64
  4640. Fsend_event int32
  4641. Fdisplay uintptr
  4642. Fextension int32
  4643. Fevtype int32
  4644. Fcookie uint32
  4645. Fdata uintptr
  4646. }
  4647. type TXEvent = struct {
  4648. Fxany [0]TXAnyEvent
  4649. Fxkey [0]TXKeyEvent
  4650. Fxbutton [0]TXButtonEvent
  4651. Fxmotion [0]TXMotionEvent
  4652. Fxcrossing [0]TXCrossingEvent
  4653. Fxfocus [0]TXFocusChangeEvent
  4654. Fxexpose [0]TXExposeEvent
  4655. Fxgraphicsexpose [0]TXGraphicsExposeEvent
  4656. Fxnoexpose [0]TXNoExposeEvent
  4657. Fxvisibility [0]TXVisibilityEvent
  4658. Fxcreatewindow [0]TXCreateWindowEvent
  4659. Fxdestroywindow [0]TXDestroyWindowEvent
  4660. Fxunmap [0]TXUnmapEvent
  4661. Fxmap [0]TXMapEvent
  4662. Fxmaprequest [0]TXMapRequestEvent
  4663. Fxreparent [0]TXReparentEvent
  4664. Fxconfigure [0]TXConfigureEvent
  4665. Fxgravity [0]TXGravityEvent
  4666. Fxresizerequest [0]TXResizeRequestEvent
  4667. Fxconfigurerequest [0]TXConfigureRequestEvent
  4668. Fxcirculate [0]TXCirculateEvent
  4669. Fxcirculaterequest [0]TXCirculateRequestEvent
  4670. Fxproperty [0]TXPropertyEvent
  4671. Fxselectionclear [0]TXSelectionClearEvent
  4672. Fxselectionrequest [0]TXSelectionRequestEvent
  4673. Fxselection [0]TXSelectionEvent
  4674. Fxcolormap [0]TXColormapEvent
  4675. Fxclient [0]TXClientMessageEvent
  4676. Fxmapping [0]TXMappingEvent
  4677. Fxerror [0]TXErrorEvent
  4678. Fxkeymap [0]TXKeymapEvent
  4679. Fxgeneric [0]TXGenericEvent
  4680. Fxcookie [0]TXGenericEventCookie
  4681. Fpad [0][24]int64
  4682. Ftype1 int32
  4683. F__ccgo_pad35 [188]byte
  4684. }
  4685. type T_XEvent = TXEvent
  4686. type TXCharStruct = struct {
  4687. Flbearing int16
  4688. Frbearing int16
  4689. Fwidth int16
  4690. Fascent int16
  4691. Fdescent int16
  4692. Fattributes uint16
  4693. }
  4694. type TXFontProp = struct {
  4695. Fname TAtom
  4696. Fcard32 uint64
  4697. }
  4698. type TXFontStruct = struct {
  4699. Fext_data uintptr
  4700. Ffid TFont
  4701. Fdirection uint32
  4702. Fmin_char_or_byte2 uint32
  4703. Fmax_char_or_byte2 uint32
  4704. Fmin_byte1 uint32
  4705. Fmax_byte1 uint32
  4706. Fall_chars_exist int32
  4707. Fdefault_char uint32
  4708. Fn_properties int32
  4709. Fproperties uintptr
  4710. Fmin_bounds TXCharStruct
  4711. Fmax_bounds TXCharStruct
  4712. Fper_char uintptr
  4713. Fascent int32
  4714. Fdescent int32
  4715. }
  4716. type TXTextItem = struct {
  4717. Fchars uintptr
  4718. Fnchars int32
  4719. Fdelta int32
  4720. Ffont TFont
  4721. }
  4722. type TXChar2b = struct {
  4723. Fbyte1 uint8
  4724. Fbyte2 uint8
  4725. }
  4726. type TXTextItem16 = struct {
  4727. Fchars uintptr
  4728. Fnchars int32
  4729. Fdelta int32
  4730. Ffont TFont
  4731. }
  4732. type TXEDataObject = struct {
  4733. Fgc [0]TGC
  4734. Fvisual [0]uintptr
  4735. Fscreen [0]uintptr
  4736. Fpixmap_format [0]uintptr
  4737. Ffont [0]uintptr
  4738. Fdisplay uintptr
  4739. }
  4740. type TXFontSetExtents = struct {
  4741. Fmax_ink_extent TXRectangle
  4742. Fmax_logical_extent TXRectangle
  4743. }
  4744. type TXOM = uintptr
  4745. type TXOC = uintptr
  4746. type TXFontSet = uintptr
  4747. type TXmbTextItem = struct {
  4748. Fchars uintptr
  4749. Fnchars int32
  4750. Fdelta int32
  4751. Ffont_set TXFontSet
  4752. }
  4753. type TXwcTextItem = struct {
  4754. Fchars uintptr
  4755. Fnchars int32
  4756. Fdelta int32
  4757. Ffont_set TXFontSet
  4758. }
  4759. type TXOMCharSetList = struct {
  4760. Fcharset_count int32
  4761. Fcharset_list uintptr
  4762. }
  4763. type TXOrientation = int32
  4764. const _XOMOrientation_LTR_TTB = 0
  4765. const _XOMOrientation_RTL_TTB = 1
  4766. const _XOMOrientation_TTB_LTR = 2
  4767. const _XOMOrientation_TTB_RTL = 3
  4768. const _XOMOrientation_Context = 4
  4769. type TXOMOrientation = struct {
  4770. Fnum_orientation int32
  4771. Forientation uintptr
  4772. }
  4773. type TXOMFontInfo = struct {
  4774. Fnum_font int32
  4775. Ffont_struct_list uintptr
  4776. Ffont_name_list uintptr
  4777. }
  4778. type TXIM = uintptr
  4779. type TXIC = uintptr
  4780. type TXIMProc = uintptr
  4781. type TXICProc = uintptr
  4782. type TXIDProc = uintptr
  4783. type TXIMStyle = uint64
  4784. type TXIMStyles = struct {
  4785. Fcount_styles uint16
  4786. Fsupported_styles uintptr
  4787. }
  4788. type TXVaNestedList = uintptr
  4789. type TXIMCallback = struct {
  4790. Fclient_data TXPointer
  4791. Fcallback TXIMProc
  4792. }
  4793. type TXICCallback = struct {
  4794. Fclient_data TXPointer
  4795. Fcallback TXICProc
  4796. }
  4797. type TXIMFeedback = uint64
  4798. type TXIMText = struct {
  4799. Flength uint16
  4800. Ffeedback uintptr
  4801. Fencoding_is_wchar int32
  4802. Fstring1 struct {
  4803. Fwide_char [0]uintptr
  4804. Fmulti_byte uintptr
  4805. }
  4806. }
  4807. type T_XIMText = TXIMText
  4808. type TXIMPreeditState = uint64
  4809. type TXIMPreeditStateNotifyCallbackStruct = struct {
  4810. Fstate TXIMPreeditState
  4811. }
  4812. type T_XIMPreeditStateNotifyCallbackStruct = TXIMPreeditStateNotifyCallbackStruct
  4813. type TXIMResetState = uint64
  4814. type TXIMStringConversionFeedback = uint64
  4815. type TXIMStringConversionText = struct {
  4816. Flength uint16
  4817. Ffeedback uintptr
  4818. Fencoding_is_wchar int32
  4819. Fstring1 struct {
  4820. Fwcs [0]uintptr
  4821. Fmbs uintptr
  4822. }
  4823. }
  4824. type T_XIMStringConversionText = TXIMStringConversionText
  4825. type TXIMStringConversionPosition = uint16
  4826. type TXIMStringConversionType = uint16
  4827. type TXIMStringConversionOperation = uint16
  4828. type TXIMCaretDirection = int32
  4829. const _XIMForwardChar = 0
  4830. const _XIMBackwardChar = 1
  4831. const _XIMForwardWord = 2
  4832. const _XIMBackwardWord = 3
  4833. const _XIMCaretUp = 4
  4834. const _XIMCaretDown = 5
  4835. const _XIMNextLine = 6
  4836. const _XIMPreviousLine = 7
  4837. const _XIMLineStart = 8
  4838. const _XIMLineEnd = 9
  4839. const _XIMAbsolutePosition = 10
  4840. const _XIMDontChange = 11
  4841. type TXIMStringConversionCallbackStruct = struct {
  4842. Fposition TXIMStringConversionPosition
  4843. Fdirection TXIMCaretDirection
  4844. Foperation TXIMStringConversionOperation
  4845. Ffactor uint16
  4846. Ftext uintptr
  4847. }
  4848. type T_XIMStringConversionCallbackStruct = TXIMStringConversionCallbackStruct
  4849. type TXIMPreeditDrawCallbackStruct = struct {
  4850. Fcaret int32
  4851. Fchg_first int32
  4852. Fchg_length int32
  4853. Ftext uintptr
  4854. }
  4855. type T_XIMPreeditDrawCallbackStruct = TXIMPreeditDrawCallbackStruct
  4856. type TXIMCaretStyle = int32
  4857. const _XIMIsInvisible = 0
  4858. const _XIMIsPrimary = 1
  4859. const _XIMIsSecondary = 2
  4860. type TXIMPreeditCaretCallbackStruct = struct {
  4861. Fposition int32
  4862. Fdirection TXIMCaretDirection
  4863. Fstyle TXIMCaretStyle
  4864. }
  4865. type T_XIMPreeditCaretCallbackStruct = TXIMPreeditCaretCallbackStruct
  4866. type TXIMStatusDataType = int32
  4867. const _XIMTextType = 0
  4868. const _XIMBitmapType = 1
  4869. type TXIMStatusDrawCallbackStruct = struct {
  4870. Ftype1 TXIMStatusDataType
  4871. Fdata struct {
  4872. Fbitmap [0]TPixmap
  4873. Ftext uintptr
  4874. }
  4875. }
  4876. type T_XIMStatusDrawCallbackStruct = TXIMStatusDrawCallbackStruct
  4877. type TXIMHotKeyTrigger = struct {
  4878. Fkeysym TKeySym
  4879. Fmodifier int32
  4880. Fmodifier_mask int32
  4881. }
  4882. type T_XIMHotKeyTrigger = TXIMHotKeyTrigger
  4883. type TXIMHotKeyTriggers = struct {
  4884. Fnum_hot_key int32
  4885. Fkey uintptr
  4886. }
  4887. type T_XIMHotKeyTriggers = TXIMHotKeyTriggers
  4888. type TXIMHotKeyState = uint64
  4889. type TXIMValuesList = struct {
  4890. Fcount_values uint16
  4891. Fsupported_values uintptr
  4892. }
  4893. type TXErrorHandler = uintptr
  4894. type TXIOErrorHandler = uintptr
  4895. type TXIOErrorExitHandler = uintptr
  4896. type TXConnectionWatchProc = uintptr
  4897. type TINT64 = int64
  4898. type TINT32 = int32
  4899. type TINT16 = int16
  4900. type TINT8 = int8
  4901. type TCARD64 = uint64
  4902. type TCARD32 = uint32
  4903. type TCARD16 = uint16
  4904. type TCARD8 = uint8
  4905. type TBITS32 = uint32
  4906. type TBITS16 = uint16
  4907. type TBYTE = uint8
  4908. type TBOOL = uint8
  4909. type TxSegment = struct {
  4910. Fx1 TINT16
  4911. Fy1 TINT16
  4912. Fx2 TINT16
  4913. Fy2 TINT16
  4914. }
  4915. type T_xSegment = TxSegment
  4916. type TxPoint = struct {
  4917. Fx TINT16
  4918. Fy TINT16
  4919. }
  4920. type T_xPoint = TxPoint
  4921. type TxRectangle = struct {
  4922. Fx TINT16
  4923. Fy TINT16
  4924. Fwidth TCARD16
  4925. Fheight TCARD16
  4926. }
  4927. type T_xRectangle = TxRectangle
  4928. type TxArc = struct {
  4929. Fx TINT16
  4930. Fy TINT16
  4931. Fwidth TCARD16
  4932. Fheight TCARD16
  4933. Fangle1 TINT16
  4934. Fangle2 TINT16
  4935. }
  4936. type T_xArc = TxArc
  4937. type TKeyButMask = uint16
  4938. type TxConnClientPrefix = struct {
  4939. FbyteOrder TCARD8
  4940. Fpad TBYTE
  4941. FmajorVersion TCARD16
  4942. FminorVersion TCARD16
  4943. FnbytesAuthProto TCARD16
  4944. FnbytesAuthString TCARD16
  4945. Fpad2 TCARD16
  4946. }
  4947. type TxConnSetupPrefix = struct {
  4948. Fsuccess TCARD8
  4949. FlengthReason TBYTE
  4950. FmajorVersion TCARD16
  4951. FminorVersion TCARD16
  4952. Flength TCARD16
  4953. }
  4954. type TxConnSetup = struct {
  4955. Frelease TCARD32
  4956. FridBase TCARD32
  4957. FridMask TCARD32
  4958. FmotionBufferSize TCARD32
  4959. FnbytesVendor TCARD16
  4960. FmaxRequestSize TCARD16
  4961. FnumRoots TCARD8
  4962. FnumFormats TCARD8
  4963. FimageByteOrder TCARD8
  4964. FbitmapBitOrder TCARD8
  4965. FbitmapScanlineUnit TCARD8
  4966. FbitmapScanlinePad TCARD8
  4967. FminKeyCode TCARD8
  4968. FmaxKeyCode TCARD8
  4969. Fpad2 TCARD32
  4970. }
  4971. type TxPixmapFormat = struct {
  4972. Fdepth TCARD8
  4973. FbitsPerPixel TCARD8
  4974. FscanLinePad TCARD8
  4975. Fpad1 TCARD8
  4976. Fpad2 TCARD32
  4977. }
  4978. type TxDepth = struct {
  4979. Fdepth TCARD8
  4980. Fpad1 TCARD8
  4981. FnVisuals TCARD16
  4982. Fpad2 TCARD32
  4983. }
  4984. type TxVisualType = struct {
  4985. FvisualID TCARD32
  4986. Fclass TCARD8
  4987. FbitsPerRGB TCARD8
  4988. FcolormapEntries TCARD16
  4989. FredMask TCARD32
  4990. FgreenMask TCARD32
  4991. FblueMask TCARD32
  4992. Fpad TCARD32
  4993. }
  4994. type TxWindowRoot = struct {
  4995. FwindowId TCARD32
  4996. FdefaultColormap TCARD32
  4997. FwhitePixel TCARD32
  4998. FblackPixel TCARD32
  4999. FcurrentInputMask TCARD32
  5000. FpixWidth TCARD16
  5001. FpixHeight TCARD16
  5002. FmmWidth TCARD16
  5003. FmmHeight TCARD16
  5004. FminInstalledMaps TCARD16
  5005. FmaxInstalledMaps TCARD16
  5006. FrootVisualID TCARD32
  5007. FbackingStore TCARD8
  5008. FsaveUnders TBOOL
  5009. FrootDepth TCARD8
  5010. FnDepths TCARD8
  5011. }
  5012. type TxTimecoord = struct {
  5013. Ftime TCARD32
  5014. Fx TINT16
  5015. Fy TINT16
  5016. }
  5017. type TxHostEntry = struct {
  5018. Ffamily TCARD8
  5019. Fpad TBYTE
  5020. Flength TCARD16
  5021. }
  5022. type TxCharInfo = struct {
  5023. FleftSideBearing TINT16
  5024. FrightSideBearing TINT16
  5025. FcharacterWidth TINT16
  5026. Fascent TINT16
  5027. Fdescent TINT16
  5028. Fattributes TCARD16
  5029. }
  5030. type TxFontProp = struct {
  5031. Fname TCARD32
  5032. Fvalue TCARD32
  5033. }
  5034. type TxTextElt = struct {
  5035. Flen1 TCARD8
  5036. Fdelta TINT8
  5037. }
  5038. type TxColorItem = struct {
  5039. Fpixel TCARD32
  5040. Fred TCARD16
  5041. Fgreen TCARD16
  5042. Fblue TCARD16
  5043. Fflags TCARD8
  5044. Fpad TCARD8
  5045. }
  5046. type Txrgb = struct {
  5047. Fred TCARD16
  5048. Fgreen TCARD16
  5049. Fblue TCARD16
  5050. Fpad TCARD16
  5051. }
  5052. type TKEYCODE = uint8
  5053. type TxGenericReply = struct {
  5054. Ftype1 TBYTE
  5055. Fdata1 TBYTE
  5056. FsequenceNumber TCARD16
  5057. Flength TCARD32
  5058. Fdata00 TCARD32
  5059. Fdata01 TCARD32
  5060. Fdata02 TCARD32
  5061. Fdata03 TCARD32
  5062. Fdata04 TCARD32
  5063. Fdata05 TCARD32
  5064. }
  5065. type TxGetWindowAttributesReply = struct {
  5066. Ftype1 TBYTE
  5067. FbackingStore TCARD8
  5068. FsequenceNumber TCARD16
  5069. Flength TCARD32
  5070. FvisualID TCARD32
  5071. Fclass TCARD16
  5072. FbitGravity TCARD8
  5073. FwinGravity TCARD8
  5074. FbackingBitPlanes TCARD32
  5075. FbackingPixel TCARD32
  5076. FsaveUnder TBOOL
  5077. FmapInstalled TBOOL
  5078. FmapState TCARD8
  5079. Foverride TBOOL
  5080. Fcolormap TCARD32
  5081. FallEventMasks TCARD32
  5082. FyourEventMask TCARD32
  5083. FdoNotPropagateMask TCARD16
  5084. Fpad TCARD16
  5085. }
  5086. type TxGetGeometryReply = struct {
  5087. Ftype1 TBYTE
  5088. Fdepth TCARD8
  5089. FsequenceNumber TCARD16
  5090. Flength TCARD32
  5091. Froot TCARD32
  5092. Fx TINT16
  5093. Fy TINT16
  5094. Fwidth TCARD16
  5095. Fheight TCARD16
  5096. FborderWidth TCARD16
  5097. Fpad1 TCARD16
  5098. Fpad2 TCARD32
  5099. Fpad3 TCARD32
  5100. }
  5101. type TxQueryTreeReply = struct {
  5102. Ftype1 TBYTE
  5103. Fpad1 TBYTE
  5104. FsequenceNumber TCARD16
  5105. Flength TCARD32
  5106. Froot TCARD32
  5107. Fparent TCARD32
  5108. FnChildren TCARD16
  5109. Fpad2 TCARD16
  5110. Fpad3 TCARD32
  5111. Fpad4 TCARD32
  5112. Fpad5 TCARD32
  5113. }
  5114. type TxInternAtomReply = struct {
  5115. Ftype1 TBYTE
  5116. Fpad1 TBYTE
  5117. FsequenceNumber TCARD16
  5118. Flength TCARD32
  5119. Fatom TCARD32
  5120. Fpad2 TCARD32
  5121. Fpad3 TCARD32
  5122. Fpad4 TCARD32
  5123. Fpad5 TCARD32
  5124. Fpad6 TCARD32
  5125. }
  5126. type TxGetAtomNameReply = struct {
  5127. Ftype1 TBYTE
  5128. Fpad1 TBYTE
  5129. FsequenceNumber TCARD16
  5130. Flength TCARD32
  5131. FnameLength TCARD16
  5132. Fpad2 TCARD16
  5133. Fpad3 TCARD32
  5134. Fpad4 TCARD32
  5135. Fpad5 TCARD32
  5136. Fpad6 TCARD32
  5137. Fpad7 TCARD32
  5138. }
  5139. type TxGetPropertyReply = struct {
  5140. Ftype1 TBYTE
  5141. Fformat TCARD8
  5142. FsequenceNumber TCARD16
  5143. Flength TCARD32
  5144. FpropertyType TCARD32
  5145. FbytesAfter TCARD32
  5146. FnItems TCARD32
  5147. Fpad1 TCARD32
  5148. Fpad2 TCARD32
  5149. Fpad3 TCARD32
  5150. }
  5151. type TxListPropertiesReply = struct {
  5152. Ftype1 TBYTE
  5153. Fpad1 TBYTE
  5154. FsequenceNumber TCARD16
  5155. Flength TCARD32
  5156. FnProperties TCARD16
  5157. Fpad2 TCARD16
  5158. Fpad3 TCARD32
  5159. Fpad4 TCARD32
  5160. Fpad5 TCARD32
  5161. Fpad6 TCARD32
  5162. Fpad7 TCARD32
  5163. }
  5164. type TxGetSelectionOwnerReply = struct {
  5165. Ftype1 TBYTE
  5166. Fpad1 TBYTE
  5167. FsequenceNumber TCARD16
  5168. Flength TCARD32
  5169. Fowner TCARD32
  5170. Fpad2 TCARD32
  5171. Fpad3 TCARD32
  5172. Fpad4 TCARD32
  5173. Fpad5 TCARD32
  5174. Fpad6 TCARD32
  5175. }
  5176. type TxGrabPointerReply = struct {
  5177. Ftype1 TBYTE
  5178. Fstatus TBYTE
  5179. FsequenceNumber TCARD16
  5180. Flength TCARD32
  5181. Fpad1 TCARD32
  5182. Fpad2 TCARD32
  5183. Fpad3 TCARD32
  5184. Fpad4 TCARD32
  5185. Fpad5 TCARD32
  5186. Fpad6 TCARD32
  5187. }
  5188. type TxGrabKeyboardReply = struct {
  5189. Ftype1 TBYTE
  5190. Fstatus TBYTE
  5191. FsequenceNumber TCARD16
  5192. Flength TCARD32
  5193. Fpad1 TCARD32
  5194. Fpad2 TCARD32
  5195. Fpad3 TCARD32
  5196. Fpad4 TCARD32
  5197. Fpad5 TCARD32
  5198. Fpad6 TCARD32
  5199. }
  5200. type TxQueryPointerReply = struct {
  5201. Ftype1 TBYTE
  5202. FsameScreen TBOOL
  5203. FsequenceNumber TCARD16
  5204. Flength TCARD32
  5205. Froot TCARD32
  5206. Fchild TCARD32
  5207. FrootX TINT16
  5208. FrootY TINT16
  5209. FwinX TINT16
  5210. FwinY TINT16
  5211. Fmask TCARD16
  5212. Fpad1 TCARD16
  5213. Fpad TCARD32
  5214. }
  5215. type TxGetMotionEventsReply = struct {
  5216. Ftype1 TBYTE
  5217. Fpad1 TBYTE
  5218. FsequenceNumber TCARD16
  5219. Flength TCARD32
  5220. FnEvents TCARD32
  5221. Fpad2 TCARD32
  5222. Fpad3 TCARD32
  5223. Fpad4 TCARD32
  5224. Fpad5 TCARD32
  5225. Fpad6 TCARD32
  5226. }
  5227. type TxTranslateCoordsReply = struct {
  5228. Ftype1 TBYTE
  5229. FsameScreen TBOOL
  5230. FsequenceNumber TCARD16
  5231. Flength TCARD32
  5232. Fchild TCARD32
  5233. FdstX TINT16
  5234. FdstY TINT16
  5235. Fpad2 TCARD32
  5236. Fpad3 TCARD32
  5237. Fpad4 TCARD32
  5238. Fpad5 TCARD32
  5239. }
  5240. type TxGetInputFocusReply = struct {
  5241. Ftype1 TBYTE
  5242. FrevertTo TCARD8
  5243. FsequenceNumber TCARD16
  5244. Flength TCARD32
  5245. Ffocus TCARD32
  5246. Fpad1 TCARD32
  5247. Fpad2 TCARD32
  5248. Fpad3 TCARD32
  5249. Fpad4 TCARD32
  5250. Fpad5 TCARD32
  5251. }
  5252. type TxQueryKeymapReply = struct {
  5253. Ftype1 TBYTE
  5254. Fpad1 TBYTE
  5255. FsequenceNumber TCARD16
  5256. Flength TCARD32
  5257. Fmap1 [32]TBYTE
  5258. }
  5259. type TxQueryFontReply = struct {
  5260. Ftype1 TBYTE
  5261. Fpad1 TBYTE
  5262. FsequenceNumber TCARD16
  5263. Flength TCARD32
  5264. FminBounds TxCharInfo
  5265. Fwalign1 TCARD32
  5266. FmaxBounds TxCharInfo
  5267. Fwalign2 TCARD32
  5268. FminCharOrByte2 TCARD16
  5269. FmaxCharOrByte2 TCARD16
  5270. FdefaultChar TCARD16
  5271. FnFontProps TCARD16
  5272. FdrawDirection TCARD8
  5273. FminByte1 TCARD8
  5274. FmaxByte1 TCARD8
  5275. FallCharsExist TBOOL
  5276. FfontAscent TINT16
  5277. FfontDescent TINT16
  5278. FnCharInfos TCARD32
  5279. }
  5280. type T_xQueryFontReply = TxQueryFontReply
  5281. type TxQueryTextExtentsReply = struct {
  5282. Ftype1 TBYTE
  5283. FdrawDirection TCARD8
  5284. FsequenceNumber TCARD16
  5285. Flength TCARD32
  5286. FfontAscent TINT16
  5287. FfontDescent TINT16
  5288. FoverallAscent TINT16
  5289. FoverallDescent TINT16
  5290. FoverallWidth TINT32
  5291. FoverallLeft TINT32
  5292. FoverallRight TINT32
  5293. Fpad TCARD32
  5294. }
  5295. type TxListFontsReply = struct {
  5296. Ftype1 TBYTE
  5297. Fpad1 TBYTE
  5298. FsequenceNumber TCARD16
  5299. Flength TCARD32
  5300. FnFonts TCARD16
  5301. Fpad2 TCARD16
  5302. Fpad3 TCARD32
  5303. Fpad4 TCARD32
  5304. Fpad5 TCARD32
  5305. Fpad6 TCARD32
  5306. Fpad7 TCARD32
  5307. }
  5308. type TxListFontsWithInfoReply = struct {
  5309. Ftype1 TBYTE
  5310. FnameLength TCARD8
  5311. FsequenceNumber TCARD16
  5312. Flength TCARD32
  5313. FminBounds TxCharInfo
  5314. Fwalign1 TCARD32
  5315. FmaxBounds TxCharInfo
  5316. Fwalign2 TCARD32
  5317. FminCharOrByte2 TCARD16
  5318. FmaxCharOrByte2 TCARD16
  5319. FdefaultChar TCARD16
  5320. FnFontProps TCARD16
  5321. FdrawDirection TCARD8
  5322. FminByte1 TCARD8
  5323. FmaxByte1 TCARD8
  5324. FallCharsExist TBOOL
  5325. FfontAscent TINT16
  5326. FfontDescent TINT16
  5327. FnReplies TCARD32
  5328. }
  5329. type TxGetFontPathReply = struct {
  5330. Ftype1 TBYTE
  5331. Fpad1 TBYTE
  5332. FsequenceNumber TCARD16
  5333. Flength TCARD32
  5334. FnPaths TCARD16
  5335. Fpad2 TCARD16
  5336. Fpad3 TCARD32
  5337. Fpad4 TCARD32
  5338. Fpad5 TCARD32
  5339. Fpad6 TCARD32
  5340. Fpad7 TCARD32
  5341. }
  5342. type TxGetImageReply = struct {
  5343. Ftype1 TBYTE
  5344. Fdepth TCARD8
  5345. FsequenceNumber TCARD16
  5346. Flength TCARD32
  5347. Fvisual TCARD32
  5348. Fpad3 TCARD32
  5349. Fpad4 TCARD32
  5350. Fpad5 TCARD32
  5351. Fpad6 TCARD32
  5352. Fpad7 TCARD32
  5353. }
  5354. type TxListInstalledColormapsReply = struct {
  5355. Ftype1 TBYTE
  5356. Fpad1 TBYTE
  5357. FsequenceNumber TCARD16
  5358. Flength TCARD32
  5359. FnColormaps TCARD16
  5360. Fpad2 TCARD16
  5361. Fpad3 TCARD32
  5362. Fpad4 TCARD32
  5363. Fpad5 TCARD32
  5364. Fpad6 TCARD32
  5365. Fpad7 TCARD32
  5366. }
  5367. type TxAllocColorReply = struct {
  5368. Ftype1 TBYTE
  5369. Fpad1 TBYTE
  5370. FsequenceNumber TCARD16
  5371. Flength TCARD32
  5372. Fred TCARD16
  5373. Fgreen TCARD16
  5374. Fblue TCARD16
  5375. Fpad2 TCARD16
  5376. Fpixel TCARD32
  5377. Fpad3 TCARD32
  5378. Fpad4 TCARD32
  5379. Fpad5 TCARD32
  5380. }
  5381. type TxAllocNamedColorReply = struct {
  5382. Ftype1 TBYTE
  5383. Fpad1 TBYTE
  5384. FsequenceNumber TCARD16
  5385. Flength TCARD32
  5386. Fpixel TCARD32
  5387. FexactRed TCARD16
  5388. FexactGreen TCARD16
  5389. FexactBlue TCARD16
  5390. FscreenRed TCARD16
  5391. FscreenGreen TCARD16
  5392. FscreenBlue TCARD16
  5393. Fpad2 TCARD32
  5394. Fpad3 TCARD32
  5395. }
  5396. type TxAllocColorCellsReply = struct {
  5397. Ftype1 TBYTE
  5398. Fpad1 TBYTE
  5399. FsequenceNumber TCARD16
  5400. Flength TCARD32
  5401. FnPixels TCARD16
  5402. FnMasks TCARD16
  5403. Fpad3 TCARD32
  5404. Fpad4 TCARD32
  5405. Fpad5 TCARD32
  5406. Fpad6 TCARD32
  5407. Fpad7 TCARD32
  5408. }
  5409. type TxAllocColorPlanesReply = struct {
  5410. Ftype1 TBYTE
  5411. Fpad1 TBYTE
  5412. FsequenceNumber TCARD16
  5413. Flength TCARD32
  5414. FnPixels TCARD16
  5415. Fpad2 TCARD16
  5416. FredMask TCARD32
  5417. FgreenMask TCARD32
  5418. FblueMask TCARD32
  5419. Fpad3 TCARD32
  5420. Fpad4 TCARD32
  5421. }
  5422. type TxQueryColorsReply = struct {
  5423. Ftype1 TBYTE
  5424. Fpad1 TBYTE
  5425. FsequenceNumber TCARD16
  5426. Flength TCARD32
  5427. FnColors TCARD16
  5428. Fpad2 TCARD16
  5429. Fpad3 TCARD32
  5430. Fpad4 TCARD32
  5431. Fpad5 TCARD32
  5432. Fpad6 TCARD32
  5433. Fpad7 TCARD32
  5434. }
  5435. type TxLookupColorReply = struct {
  5436. Ftype1 TBYTE
  5437. Fpad1 TBYTE
  5438. FsequenceNumber TCARD16
  5439. Flength TCARD32
  5440. FexactRed TCARD16
  5441. FexactGreen TCARD16
  5442. FexactBlue TCARD16
  5443. FscreenRed TCARD16
  5444. FscreenGreen TCARD16
  5445. FscreenBlue TCARD16
  5446. Fpad3 TCARD32
  5447. Fpad4 TCARD32
  5448. Fpad5 TCARD32
  5449. }
  5450. type TxQueryBestSizeReply = struct {
  5451. Ftype1 TBYTE
  5452. Fpad1 TBYTE
  5453. FsequenceNumber TCARD16
  5454. Flength TCARD32
  5455. Fwidth TCARD16
  5456. Fheight TCARD16
  5457. Fpad3 TCARD32
  5458. Fpad4 TCARD32
  5459. Fpad5 TCARD32
  5460. Fpad6 TCARD32
  5461. Fpad7 TCARD32
  5462. }
  5463. type TxQueryExtensionReply = struct {
  5464. Ftype1 TBYTE
  5465. Fpad1 TBYTE
  5466. FsequenceNumber TCARD16
  5467. Flength TCARD32
  5468. Fpresent TBOOL
  5469. Fmajor_opcode TCARD8
  5470. Ffirst_event TCARD8
  5471. Ffirst_error TCARD8
  5472. Fpad3 TCARD32
  5473. Fpad4 TCARD32
  5474. Fpad5 TCARD32
  5475. Fpad6 TCARD32
  5476. Fpad7 TCARD32
  5477. }
  5478. type TxListExtensionsReply = struct {
  5479. Ftype1 TBYTE
  5480. FnExtensions TCARD8
  5481. FsequenceNumber TCARD16
  5482. Flength TCARD32
  5483. Fpad2 TCARD32
  5484. Fpad3 TCARD32
  5485. Fpad4 TCARD32
  5486. Fpad5 TCARD32
  5487. Fpad6 TCARD32
  5488. Fpad7 TCARD32
  5489. }
  5490. type TxSetMappingReply = struct {
  5491. Ftype1 TBYTE
  5492. Fsuccess TCARD8
  5493. FsequenceNumber TCARD16
  5494. Flength TCARD32
  5495. Fpad2 TCARD32
  5496. Fpad3 TCARD32
  5497. Fpad4 TCARD32
  5498. Fpad5 TCARD32
  5499. Fpad6 TCARD32
  5500. Fpad7 TCARD32
  5501. }
  5502. type TxSetPointerMappingReply = struct {
  5503. Ftype1 TBYTE
  5504. Fsuccess TCARD8
  5505. FsequenceNumber TCARD16
  5506. Flength TCARD32
  5507. Fpad2 TCARD32
  5508. Fpad3 TCARD32
  5509. Fpad4 TCARD32
  5510. Fpad5 TCARD32
  5511. Fpad6 TCARD32
  5512. Fpad7 TCARD32
  5513. }
  5514. type TxSetModifierMappingReply = struct {
  5515. Ftype1 TBYTE
  5516. Fsuccess TCARD8
  5517. FsequenceNumber TCARD16
  5518. Flength TCARD32
  5519. Fpad2 TCARD32
  5520. Fpad3 TCARD32
  5521. Fpad4 TCARD32
  5522. Fpad5 TCARD32
  5523. Fpad6 TCARD32
  5524. Fpad7 TCARD32
  5525. }
  5526. type TxGetPointerMappingReply = struct {
  5527. Ftype1 TBYTE
  5528. FnElts TCARD8
  5529. FsequenceNumber TCARD16
  5530. Flength TCARD32
  5531. Fpad2 TCARD32
  5532. Fpad3 TCARD32
  5533. Fpad4 TCARD32
  5534. Fpad5 TCARD32
  5535. Fpad6 TCARD32
  5536. Fpad7 TCARD32
  5537. }
  5538. type TxGetKeyboardMappingReply = struct {
  5539. Ftype1 TBYTE
  5540. FkeySymsPerKeyCode TCARD8
  5541. FsequenceNumber TCARD16
  5542. Flength TCARD32
  5543. Fpad2 TCARD32
  5544. Fpad3 TCARD32
  5545. Fpad4 TCARD32
  5546. Fpad5 TCARD32
  5547. Fpad6 TCARD32
  5548. Fpad7 TCARD32
  5549. }
  5550. type TxGetModifierMappingReply = struct {
  5551. Ftype1 TBYTE
  5552. FnumKeyPerModifier TCARD8
  5553. FsequenceNumber TCARD16
  5554. Flength TCARD32
  5555. Fpad1 TCARD32
  5556. Fpad2 TCARD32
  5557. Fpad3 TCARD32
  5558. Fpad4 TCARD32
  5559. Fpad5 TCARD32
  5560. Fpad6 TCARD32
  5561. }
  5562. type TxGetKeyboardControlReply = struct {
  5563. Ftype1 TBYTE
  5564. FglobalAutoRepeat TBOOL
  5565. FsequenceNumber TCARD16
  5566. Flength TCARD32
  5567. FledMask TCARD32
  5568. FkeyClickPercent TCARD8
  5569. FbellPercent TCARD8
  5570. FbellPitch TCARD16
  5571. FbellDuration TCARD16
  5572. Fpad TCARD16
  5573. Fmap1 [32]TBYTE
  5574. }
  5575. type TxGetPointerControlReply = struct {
  5576. Ftype1 TBYTE
  5577. Fpad1 TBYTE
  5578. FsequenceNumber TCARD16
  5579. Flength TCARD32
  5580. FaccelNumerator TCARD16
  5581. FaccelDenominator TCARD16
  5582. Fthreshold TCARD16
  5583. Fpad2 TCARD16
  5584. Fpad3 TCARD32
  5585. Fpad4 TCARD32
  5586. Fpad5 TCARD32
  5587. Fpad6 TCARD32
  5588. }
  5589. type TxGetScreenSaverReply = struct {
  5590. Ftype1 TBYTE
  5591. Fpad1 TBYTE
  5592. FsequenceNumber TCARD16
  5593. Flength TCARD32
  5594. Ftimeout TCARD16
  5595. Finterval TCARD16
  5596. FpreferBlanking TBOOL
  5597. FallowExposures TBOOL
  5598. Fpad2 TCARD16
  5599. Fpad3 TCARD32
  5600. Fpad4 TCARD32
  5601. Fpad5 TCARD32
  5602. Fpad6 TCARD32
  5603. }
  5604. type TxListHostsReply = struct {
  5605. Ftype1 TBYTE
  5606. Fenabled TBOOL
  5607. FsequenceNumber TCARD16
  5608. Flength TCARD32
  5609. FnHosts TCARD16
  5610. Fpad1 TCARD16
  5611. Fpad3 TCARD32
  5612. Fpad4 TCARD32
  5613. Fpad5 TCARD32
  5614. Fpad6 TCARD32
  5615. Fpad7 TCARD32
  5616. }
  5617. type TxError = struct {
  5618. Ftype1 TBYTE
  5619. FerrorCode TBYTE
  5620. FsequenceNumber TCARD16
  5621. FresourceID TCARD32
  5622. FminorCode TCARD16
  5623. FmajorCode TCARD8
  5624. Fpad1 TBYTE
  5625. Fpad3 TCARD32
  5626. Fpad4 TCARD32
  5627. Fpad5 TCARD32
  5628. Fpad6 TCARD32
  5629. Fpad7 TCARD32
  5630. }
  5631. type TxEvent = struct {
  5632. Fu struct {
  5633. FkeyButtonPointer [0]struct {
  5634. Fpad00 TCARD32
  5635. Ftime TCARD32
  5636. Froot TCARD32
  5637. Fevent TCARD32
  5638. Fchild TCARD32
  5639. FrootX TINT16
  5640. FrootY TINT16
  5641. FeventX TINT16
  5642. FeventY TINT16
  5643. Fstate TKeyButMask
  5644. FsameScreen TBOOL
  5645. Fpad1 TBYTE
  5646. }
  5647. FenterLeave [0]struct {
  5648. Fpad00 TCARD32
  5649. Ftime TCARD32
  5650. Froot TCARD32
  5651. Fevent TCARD32
  5652. Fchild TCARD32
  5653. FrootX TINT16
  5654. FrootY TINT16
  5655. FeventX TINT16
  5656. FeventY TINT16
  5657. Fstate TKeyButMask
  5658. Fmode TBYTE
  5659. Fflags TBYTE
  5660. }
  5661. Ffocus [0]struct {
  5662. Fpad00 TCARD32
  5663. Fwindow TCARD32
  5664. Fmode TBYTE
  5665. Fpad1 TBYTE
  5666. Fpad2 TBYTE
  5667. Fpad3 TBYTE
  5668. }
  5669. Fexpose [0]struct {
  5670. Fpad00 TCARD32
  5671. Fwindow TCARD32
  5672. Fx TCARD16
  5673. Fy TCARD16
  5674. Fwidth TCARD16
  5675. Fheight TCARD16
  5676. Fcount TCARD16
  5677. Fpad2 TCARD16
  5678. }
  5679. FgraphicsExposure [0]struct {
  5680. Fpad00 TCARD32
  5681. Fdrawable TCARD32
  5682. Fx TCARD16
  5683. Fy TCARD16
  5684. Fwidth TCARD16
  5685. Fheight TCARD16
  5686. FminorEvent TCARD16
  5687. Fcount TCARD16
  5688. FmajorEvent TBYTE
  5689. Fpad1 TBYTE
  5690. Fpad2 TBYTE
  5691. Fpad3 TBYTE
  5692. }
  5693. FnoExposure [0]struct {
  5694. Fpad00 TCARD32
  5695. Fdrawable TCARD32
  5696. FminorEvent TCARD16
  5697. FmajorEvent TBYTE
  5698. Fbpad TBYTE
  5699. }
  5700. Fvisibility [0]struct {
  5701. Fpad00 TCARD32
  5702. Fwindow TCARD32
  5703. Fstate TCARD8
  5704. Fpad1 TBYTE
  5705. Fpad2 TBYTE
  5706. Fpad3 TBYTE
  5707. }
  5708. FcreateNotify [0]struct {
  5709. Fpad00 TCARD32
  5710. Fparent TCARD32
  5711. Fwindow TCARD32
  5712. Fx TINT16
  5713. Fy TINT16
  5714. Fwidth TCARD16
  5715. Fheight TCARD16
  5716. FborderWidth TCARD16
  5717. Foverride TBOOL
  5718. Fbpad TBYTE
  5719. }
  5720. FdestroyNotify [0]struct {
  5721. Fpad00 TCARD32
  5722. Fevent TCARD32
  5723. Fwindow TCARD32
  5724. }
  5725. FunmapNotify [0]struct {
  5726. Fpad00 TCARD32
  5727. Fevent TCARD32
  5728. Fwindow TCARD32
  5729. FfromConfigure TBOOL
  5730. Fpad1 TBYTE
  5731. Fpad2 TBYTE
  5732. Fpad3 TBYTE
  5733. }
  5734. FmapNotify [0]struct {
  5735. Fpad00 TCARD32
  5736. Fevent TCARD32
  5737. Fwindow TCARD32
  5738. Foverride TBOOL
  5739. Fpad1 TBYTE
  5740. Fpad2 TBYTE
  5741. Fpad3 TBYTE
  5742. }
  5743. FmapRequest [0]struct {
  5744. Fpad00 TCARD32
  5745. Fparent TCARD32
  5746. Fwindow TCARD32
  5747. }
  5748. Freparent [0]struct {
  5749. Fpad00 TCARD32
  5750. Fevent TCARD32
  5751. Fwindow TCARD32
  5752. Fparent TCARD32
  5753. Fx TINT16
  5754. Fy TINT16
  5755. Foverride TBOOL
  5756. Fpad1 TBYTE
  5757. Fpad2 TBYTE
  5758. Fpad3 TBYTE
  5759. }
  5760. FconfigureNotify [0]struct {
  5761. Fpad00 TCARD32
  5762. Fevent TCARD32
  5763. Fwindow TCARD32
  5764. FaboveSibling TCARD32
  5765. Fx TINT16
  5766. Fy TINT16
  5767. Fwidth TCARD16
  5768. Fheight TCARD16
  5769. FborderWidth TCARD16
  5770. Foverride TBOOL
  5771. Fbpad TBYTE
  5772. }
  5773. FconfigureRequest [0]struct {
  5774. Fpad00 TCARD32
  5775. Fparent TCARD32
  5776. Fwindow TCARD32
  5777. Fsibling TCARD32
  5778. Fx TINT16
  5779. Fy TINT16
  5780. Fwidth TCARD16
  5781. Fheight TCARD16
  5782. FborderWidth TCARD16
  5783. FvalueMask TCARD16
  5784. Fpad1 TCARD32
  5785. }
  5786. Fgravity [0]struct {
  5787. Fpad00 TCARD32
  5788. Fevent TCARD32
  5789. Fwindow TCARD32
  5790. Fx TINT16
  5791. Fy TINT16
  5792. Fpad1 TCARD32
  5793. Fpad2 TCARD32
  5794. Fpad3 TCARD32
  5795. Fpad4 TCARD32
  5796. }
  5797. FresizeRequest [0]struct {
  5798. Fpad00 TCARD32
  5799. Fwindow TCARD32
  5800. Fwidth TCARD16
  5801. Fheight TCARD16
  5802. }
  5803. Fcirculate [0]struct {
  5804. Fpad00 TCARD32
  5805. Fevent TCARD32
  5806. Fwindow TCARD32
  5807. Fparent TCARD32
  5808. Fplace TBYTE
  5809. Fpad1 TBYTE
  5810. Fpad2 TBYTE
  5811. Fpad3 TBYTE
  5812. }
  5813. Fproperty [0]struct {
  5814. Fpad00 TCARD32
  5815. Fwindow TCARD32
  5816. Fatom TCARD32
  5817. Ftime TCARD32
  5818. Fstate TBYTE
  5819. Fpad1 TBYTE
  5820. Fpad2 TCARD16
  5821. }
  5822. FselectionClear [0]struct {
  5823. Fpad00 TCARD32
  5824. Ftime TCARD32
  5825. Fwindow TCARD32
  5826. Fatom TCARD32
  5827. }
  5828. FselectionRequest [0]struct {
  5829. Fpad00 TCARD32
  5830. Ftime TCARD32
  5831. Fowner TCARD32
  5832. Frequestor TCARD32
  5833. Fselection TCARD32
  5834. Ftarget TCARD32
  5835. Fproperty TCARD32
  5836. }
  5837. FselectionNotify [0]struct {
  5838. Fpad00 TCARD32
  5839. Ftime TCARD32
  5840. Frequestor TCARD32
  5841. Fselection TCARD32
  5842. Ftarget TCARD32
  5843. Fproperty TCARD32
  5844. }
  5845. Fcolormap [0]struct {
  5846. Fpad00 TCARD32
  5847. Fwindow TCARD32
  5848. Fcolormap TCARD32
  5849. Fnew1 TBOOL
  5850. Fstate TBYTE
  5851. Fpad1 TBYTE
  5852. Fpad2 TBYTE
  5853. }
  5854. FmappingNotify [0]struct {
  5855. Fpad00 TCARD32
  5856. Frequest TCARD8
  5857. FfirstKeyCode TCARD8
  5858. Fcount TCARD8
  5859. Fpad1 TBYTE
  5860. }
  5861. FclientMessage [0]struct {
  5862. Fpad00 TCARD32
  5863. Fwindow TCARD32
  5864. Fu struct {
  5865. Fs [0]struct {
  5866. Ftype1 TCARD32
  5867. Fshorts0 TINT16
  5868. Fshorts1 TINT16
  5869. Fshorts2 TINT16
  5870. Fshorts3 TINT16
  5871. Fshorts4 TINT16
  5872. Fshorts5 TINT16
  5873. Fshorts6 TINT16
  5874. Fshorts7 TINT16
  5875. Fshorts8 TINT16
  5876. Fshorts9 TINT16
  5877. }
  5878. Fb [0]struct {
  5879. Ftype1 TCARD32
  5880. Fbytes [20]TINT8
  5881. }
  5882. Fl struct {
  5883. Ftype1 TCARD32
  5884. Flongs0 TINT32
  5885. Flongs1 TINT32
  5886. Flongs2 TINT32
  5887. Flongs3 TINT32
  5888. Flongs4 TINT32
  5889. }
  5890. }
  5891. }
  5892. Fu struct {
  5893. Ftype1 TBYTE
  5894. Fdetail TBYTE
  5895. FsequenceNumber TCARD16
  5896. }
  5897. F__ccgo_pad26 [28]byte
  5898. }
  5899. }
  5900. type T_xEvent = TxEvent
  5901. type TxGenericEvent = struct {
  5902. Ftype1 TBYTE
  5903. Fextension TCARD8
  5904. FsequenceNumber TCARD16
  5905. Flength TCARD32
  5906. Fevtype TCARD16
  5907. Fpad2 TCARD16
  5908. Fpad3 TCARD32
  5909. Fpad4 TCARD32
  5910. Fpad5 TCARD32
  5911. Fpad6 TCARD32
  5912. Fpad7 TCARD32
  5913. }
  5914. type TxKeymapEvent = struct {
  5915. Ftype1 TBYTE
  5916. Fmap1 [31]TBYTE
  5917. }
  5918. type TxReply = struct {
  5919. Fgeom [0]TxGetGeometryReply
  5920. Ftree [0]TxQueryTreeReply
  5921. Fatom [0]TxInternAtomReply
  5922. FatomName [0]TxGetAtomNameReply
  5923. Fproperty [0]TxGetPropertyReply
  5924. FlistProperties [0]TxListPropertiesReply
  5925. Fselection [0]TxGetSelectionOwnerReply
  5926. FgrabPointer [0]TxGrabPointerReply
  5927. FgrabKeyboard [0]TxGrabKeyboardReply
  5928. Fpointer [0]TxQueryPointerReply
  5929. FmotionEvents [0]TxGetMotionEventsReply
  5930. Fcoords [0]TxTranslateCoordsReply
  5931. FinputFocus [0]TxGetInputFocusReply
  5932. FtextExtents [0]TxQueryTextExtentsReply
  5933. Ffonts [0]TxListFontsReply
  5934. FfontPath [0]TxGetFontPathReply
  5935. Fimage [0]TxGetImageReply
  5936. Fcolormaps [0]TxListInstalledColormapsReply
  5937. FallocColor [0]TxAllocColorReply
  5938. FallocNamedColor [0]TxAllocNamedColorReply
  5939. FcolorCells [0]TxAllocColorCellsReply
  5940. FcolorPlanes [0]TxAllocColorPlanesReply
  5941. Fcolors [0]TxQueryColorsReply
  5942. FlookupColor [0]TxLookupColorReply
  5943. FbestSize [0]TxQueryBestSizeReply
  5944. Fextension [0]TxQueryExtensionReply
  5945. Fextensions [0]TxListExtensionsReply
  5946. FsetModifierMapping [0]TxSetModifierMappingReply
  5947. FgetModifierMapping [0]TxGetModifierMappingReply
  5948. FsetPointerMapping [0]TxSetPointerMappingReply
  5949. FgetKeyboardMapping [0]TxGetKeyboardMappingReply
  5950. FgetPointerMapping [0]TxGetPointerMappingReply
  5951. FpointerControl [0]TxGetPointerControlReply
  5952. FscreenSaver [0]TxGetScreenSaverReply
  5953. Fhosts [0]TxListHostsReply
  5954. Ferror1 [0]TxError
  5955. Fevent [0]TxEvent
  5956. Fgeneric TxGenericReply
  5957. }
  5958. type TxReq = struct {
  5959. FreqType TCARD8
  5960. Fdata TCARD8
  5961. Flength TCARD16
  5962. }
  5963. type T_xReq = TxReq
  5964. type TxResourceReq = struct {
  5965. FreqType TCARD8
  5966. Fpad TBYTE
  5967. Flength TCARD16
  5968. Fid TCARD32
  5969. }
  5970. type TxCreateWindowReq = struct {
  5971. FreqType TCARD8
  5972. Fdepth TCARD8
  5973. Flength TCARD16
  5974. Fwid TCARD32
  5975. Fparent TCARD32
  5976. Fx TINT16
  5977. Fy TINT16
  5978. Fwidth TCARD16
  5979. Fheight TCARD16
  5980. FborderWidth TCARD16
  5981. Fclass TCARD16
  5982. Fvisual TCARD32
  5983. Fmask TCARD32
  5984. }
  5985. type TxChangeWindowAttributesReq = struct {
  5986. FreqType TCARD8
  5987. Fpad TBYTE
  5988. Flength TCARD16
  5989. Fwindow TCARD32
  5990. FvalueMask TCARD32
  5991. }
  5992. type TxChangeSaveSetReq = struct {
  5993. FreqType TCARD8
  5994. Fmode TBYTE
  5995. Flength TCARD16
  5996. Fwindow TCARD32
  5997. }
  5998. type TxReparentWindowReq = struct {
  5999. FreqType TCARD8
  6000. Fpad TBYTE
  6001. Flength TCARD16
  6002. Fwindow TCARD32
  6003. Fparent TCARD32
  6004. Fx TINT16
  6005. Fy TINT16
  6006. }
  6007. type TxConfigureWindowReq = struct {
  6008. FreqType TCARD8
  6009. Fpad TCARD8
  6010. Flength TCARD16
  6011. Fwindow TCARD32
  6012. Fmask TCARD16
  6013. Fpad2 TCARD16
  6014. }
  6015. type TxCirculateWindowReq = struct {
  6016. FreqType TCARD8
  6017. Fdirection TCARD8
  6018. Flength TCARD16
  6019. Fwindow TCARD32
  6020. }
  6021. type TxInternAtomReq = struct {
  6022. FreqType TCARD8
  6023. FonlyIfExists TBOOL
  6024. Flength TCARD16
  6025. Fnbytes TCARD16
  6026. Fpad TCARD16
  6027. }
  6028. type TxChangePropertyReq = struct {
  6029. FreqType TCARD8
  6030. Fmode TCARD8
  6031. Flength TCARD16
  6032. Fwindow TCARD32
  6033. Fproperty TCARD32
  6034. Ftype1 TCARD32
  6035. Fformat TCARD8
  6036. Fpad [3]TBYTE
  6037. FnUnits TCARD32
  6038. }
  6039. type TxDeletePropertyReq = struct {
  6040. FreqType TCARD8
  6041. Fpad TBYTE
  6042. Flength TCARD16
  6043. Fwindow TCARD32
  6044. Fproperty TCARD32
  6045. }
  6046. type TxGetPropertyReq = struct {
  6047. FreqType TCARD8
  6048. Fdelete1 TBOOL
  6049. Flength TCARD16
  6050. Fwindow TCARD32
  6051. Fproperty TCARD32
  6052. Ftype1 TCARD32
  6053. FlongOffset TCARD32
  6054. FlongLength TCARD32
  6055. }
  6056. type TxSetSelectionOwnerReq = struct {
  6057. FreqType TCARD8
  6058. Fpad TBYTE
  6059. Flength TCARD16
  6060. Fwindow TCARD32
  6061. Fselection TCARD32
  6062. Ftime TCARD32
  6063. }
  6064. type TxConvertSelectionReq = struct {
  6065. FreqType TCARD8
  6066. Fpad TBYTE
  6067. Flength TCARD16
  6068. Frequestor TCARD32
  6069. Fselection TCARD32
  6070. Ftarget TCARD32
  6071. Fproperty TCARD32
  6072. Ftime TCARD32
  6073. }
  6074. type TxSendEventReq = struct {
  6075. FreqType TCARD8
  6076. Fpropagate TBOOL
  6077. Flength TCARD16
  6078. Fdestination TCARD32
  6079. FeventMask TCARD32
  6080. Fevent TxEvent
  6081. }
  6082. type TxGrabPointerReq = struct {
  6083. FreqType TCARD8
  6084. FownerEvents TBOOL
  6085. Flength TCARD16
  6086. FgrabWindow TCARD32
  6087. FeventMask TCARD16
  6088. FpointerMode TBYTE
  6089. FkeyboardMode TBYTE
  6090. FconfineTo TCARD32
  6091. Fcursor TCARD32
  6092. Ftime TCARD32
  6093. }
  6094. type TxGrabButtonReq = struct {
  6095. FreqType TCARD8
  6096. FownerEvents TBOOL
  6097. Flength TCARD16
  6098. FgrabWindow TCARD32
  6099. FeventMask TCARD16
  6100. FpointerMode TBYTE
  6101. FkeyboardMode TBYTE
  6102. FconfineTo TCARD32
  6103. Fcursor TCARD32
  6104. Fbutton TCARD8
  6105. Fpad TBYTE
  6106. Fmodifiers TCARD16
  6107. }
  6108. type TxUngrabButtonReq = struct {
  6109. FreqType TCARD8
  6110. Fbutton TCARD8
  6111. Flength TCARD16
  6112. FgrabWindow TCARD32
  6113. Fmodifiers TCARD16
  6114. Fpad TCARD16
  6115. }
  6116. type TxChangeActivePointerGrabReq = struct {
  6117. FreqType TCARD8
  6118. Fpad TBYTE
  6119. Flength TCARD16
  6120. Fcursor TCARD32
  6121. Ftime TCARD32
  6122. FeventMask TCARD16
  6123. Fpad2 TCARD16
  6124. }
  6125. type TxGrabKeyboardReq = struct {
  6126. FreqType TCARD8
  6127. FownerEvents TBOOL
  6128. Flength TCARD16
  6129. FgrabWindow TCARD32
  6130. Ftime TCARD32
  6131. FpointerMode TBYTE
  6132. FkeyboardMode TBYTE
  6133. Fpad TCARD16
  6134. }
  6135. type TxGrabKeyReq = struct {
  6136. FreqType TCARD8
  6137. FownerEvents TBOOL
  6138. Flength TCARD16
  6139. FgrabWindow TCARD32
  6140. Fmodifiers TCARD16
  6141. Fkey TCARD8
  6142. FpointerMode TBYTE
  6143. FkeyboardMode TBYTE
  6144. Fpad1 TBYTE
  6145. Fpad2 TBYTE
  6146. Fpad3 TBYTE
  6147. }
  6148. type TxUngrabKeyReq = struct {
  6149. FreqType TCARD8
  6150. Fkey TCARD8
  6151. Flength TCARD16
  6152. FgrabWindow TCARD32
  6153. Fmodifiers TCARD16
  6154. Fpad TCARD16
  6155. }
  6156. type TxAllowEventsReq = struct {
  6157. FreqType TCARD8
  6158. Fmode TCARD8
  6159. Flength TCARD16
  6160. Ftime TCARD32
  6161. }
  6162. type TxGetMotionEventsReq = struct {
  6163. FreqType TCARD8
  6164. Fpad TBYTE
  6165. Flength TCARD16
  6166. Fwindow TCARD32
  6167. Fstart TCARD32
  6168. Fstop TCARD32
  6169. }
  6170. type TxTranslateCoordsReq = struct {
  6171. FreqType TCARD8
  6172. Fpad TBYTE
  6173. Flength TCARD16
  6174. FsrcWid TCARD32
  6175. FdstWid TCARD32
  6176. FsrcX TINT16
  6177. FsrcY TINT16
  6178. }
  6179. type TxWarpPointerReq = struct {
  6180. FreqType TCARD8
  6181. Fpad TBYTE
  6182. Flength TCARD16
  6183. FsrcWid TCARD32
  6184. FdstWid TCARD32
  6185. FsrcX TINT16
  6186. FsrcY TINT16
  6187. FsrcWidth TCARD16
  6188. FsrcHeight TCARD16
  6189. FdstX TINT16
  6190. FdstY TINT16
  6191. }
  6192. type TxSetInputFocusReq = struct {
  6193. FreqType TCARD8
  6194. FrevertTo TCARD8
  6195. Flength TCARD16
  6196. Ffocus TCARD32
  6197. Ftime TCARD32
  6198. }
  6199. type TxOpenFontReq = struct {
  6200. FreqType TCARD8
  6201. Fpad TBYTE
  6202. Flength TCARD16
  6203. Ffid TCARD32
  6204. Fnbytes TCARD16
  6205. Fpad1 TBYTE
  6206. Fpad2 TBYTE
  6207. }
  6208. type TxQueryTextExtentsReq = struct {
  6209. FreqType TCARD8
  6210. FoddLength TBOOL
  6211. Flength TCARD16
  6212. Ffid TCARD32
  6213. }
  6214. type TxListFontsReq = struct {
  6215. FreqType TCARD8
  6216. Fpad TBYTE
  6217. Flength TCARD16
  6218. FmaxNames TCARD16
  6219. Fnbytes TCARD16
  6220. }
  6221. type TxListFontsWithInfoReq = struct {
  6222. FreqType TCARD8
  6223. Fpad TBYTE
  6224. Flength TCARD16
  6225. FmaxNames TCARD16
  6226. Fnbytes TCARD16
  6227. }
  6228. type TxSetFontPathReq = struct {
  6229. FreqType TCARD8
  6230. Fpad TBYTE
  6231. Flength TCARD16
  6232. FnFonts TCARD16
  6233. Fpad1 TBYTE
  6234. Fpad2 TBYTE
  6235. }
  6236. type TxCreatePixmapReq = struct {
  6237. FreqType TCARD8
  6238. Fdepth TCARD8
  6239. Flength TCARD16
  6240. Fpid TCARD32
  6241. Fdrawable TCARD32
  6242. Fwidth TCARD16
  6243. Fheight TCARD16
  6244. }
  6245. type TxCreateGCReq = struct {
  6246. FreqType TCARD8
  6247. Fpad TBYTE
  6248. Flength TCARD16
  6249. Fgc TCARD32
  6250. Fdrawable TCARD32
  6251. Fmask TCARD32
  6252. }
  6253. type TxChangeGCReq = struct {
  6254. FreqType TCARD8
  6255. Fpad TBYTE
  6256. Flength TCARD16
  6257. Fgc TCARD32
  6258. Fmask TCARD32
  6259. }
  6260. type TxCopyGCReq = struct {
  6261. FreqType TCARD8
  6262. Fpad TBYTE
  6263. Flength TCARD16
  6264. FsrcGC TCARD32
  6265. FdstGC TCARD32
  6266. Fmask TCARD32
  6267. }
  6268. type TxSetDashesReq = struct {
  6269. FreqType TCARD8
  6270. Fpad TBYTE
  6271. Flength TCARD16
  6272. Fgc TCARD32
  6273. FdashOffset TCARD16
  6274. FnDashes TCARD16
  6275. }
  6276. type TxSetClipRectanglesReq = struct {
  6277. FreqType TCARD8
  6278. Fordering TBYTE
  6279. Flength TCARD16
  6280. Fgc TCARD32
  6281. FxOrigin TINT16
  6282. FyOrigin TINT16
  6283. }
  6284. type TxClearAreaReq = struct {
  6285. FreqType TCARD8
  6286. Fexposures TBOOL
  6287. Flength TCARD16
  6288. Fwindow TCARD32
  6289. Fx TINT16
  6290. Fy TINT16
  6291. Fwidth TCARD16
  6292. Fheight TCARD16
  6293. }
  6294. type TxCopyAreaReq = struct {
  6295. FreqType TCARD8
  6296. Fpad TBYTE
  6297. Flength TCARD16
  6298. FsrcDrawable TCARD32
  6299. FdstDrawable TCARD32
  6300. Fgc TCARD32
  6301. FsrcX TINT16
  6302. FsrcY TINT16
  6303. FdstX TINT16
  6304. FdstY TINT16
  6305. Fwidth TCARD16
  6306. Fheight TCARD16
  6307. }
  6308. type TxCopyPlaneReq = struct {
  6309. FreqType TCARD8
  6310. Fpad TBYTE
  6311. Flength TCARD16
  6312. FsrcDrawable TCARD32
  6313. FdstDrawable TCARD32
  6314. Fgc TCARD32
  6315. FsrcX TINT16
  6316. FsrcY TINT16
  6317. FdstX TINT16
  6318. FdstY TINT16
  6319. Fwidth TCARD16
  6320. Fheight TCARD16
  6321. FbitPlane TCARD32
  6322. }
  6323. type TxPolyPointReq = struct {
  6324. FreqType TCARD8
  6325. FcoordMode TBYTE
  6326. Flength TCARD16
  6327. Fdrawable TCARD32
  6328. Fgc TCARD32
  6329. }
  6330. type TxPolyLineReq = struct {
  6331. FreqType TCARD8
  6332. FcoordMode TBYTE
  6333. Flength TCARD16
  6334. Fdrawable TCARD32
  6335. Fgc TCARD32
  6336. }
  6337. type TxPolySegmentReq = struct {
  6338. FreqType TCARD8
  6339. Fpad TBYTE
  6340. Flength TCARD16
  6341. Fdrawable TCARD32
  6342. Fgc TCARD32
  6343. }
  6344. type TxPolyArcReq = struct {
  6345. FreqType TCARD8
  6346. Fpad TBYTE
  6347. Flength TCARD16
  6348. Fdrawable TCARD32
  6349. Fgc TCARD32
  6350. }
  6351. type TxPolyRectangleReq = struct {
  6352. FreqType TCARD8
  6353. Fpad TBYTE
  6354. Flength TCARD16
  6355. Fdrawable TCARD32
  6356. Fgc TCARD32
  6357. }
  6358. type TxPolyFillRectangleReq = struct {
  6359. FreqType TCARD8
  6360. Fpad TBYTE
  6361. Flength TCARD16
  6362. Fdrawable TCARD32
  6363. Fgc TCARD32
  6364. }
  6365. type TxPolyFillArcReq = struct {
  6366. FreqType TCARD8
  6367. Fpad TBYTE
  6368. Flength TCARD16
  6369. Fdrawable TCARD32
  6370. Fgc TCARD32
  6371. }
  6372. type TxFillPolyReq = struct {
  6373. FreqType TCARD8
  6374. Fpad TBYTE
  6375. Flength TCARD16
  6376. Fdrawable TCARD32
  6377. Fgc TCARD32
  6378. Fshape TBYTE
  6379. FcoordMode TBYTE
  6380. Fpad1 TCARD16
  6381. }
  6382. type T_FillPolyReq = TxFillPolyReq
  6383. type TxPutImageReq = struct {
  6384. FreqType TCARD8
  6385. Fformat TCARD8
  6386. Flength TCARD16
  6387. Fdrawable TCARD32
  6388. Fgc TCARD32
  6389. Fwidth TCARD16
  6390. Fheight TCARD16
  6391. FdstX TINT16
  6392. FdstY TINT16
  6393. FleftPad TCARD8
  6394. Fdepth TCARD8
  6395. Fpad TCARD16
  6396. }
  6397. type T_PutImageReq = TxPutImageReq
  6398. type TxGetImageReq = struct {
  6399. FreqType TCARD8
  6400. Fformat TCARD8
  6401. Flength TCARD16
  6402. Fdrawable TCARD32
  6403. Fx TINT16
  6404. Fy TINT16
  6405. Fwidth TCARD16
  6406. Fheight TCARD16
  6407. FplaneMask TCARD32
  6408. }
  6409. type TxPolyTextReq = struct {
  6410. FreqType TCARD8
  6411. Fpad TCARD8
  6412. Flength TCARD16
  6413. Fdrawable TCARD32
  6414. Fgc TCARD32
  6415. Fx TINT16
  6416. Fy TINT16
  6417. }
  6418. type TxPolyText8Req = struct {
  6419. FreqType TCARD8
  6420. Fpad TCARD8
  6421. Flength TCARD16
  6422. Fdrawable TCARD32
  6423. Fgc TCARD32
  6424. Fx TINT16
  6425. Fy TINT16
  6426. }
  6427. type TxPolyText16Req = struct {
  6428. FreqType TCARD8
  6429. Fpad TCARD8
  6430. Flength TCARD16
  6431. Fdrawable TCARD32
  6432. Fgc TCARD32
  6433. Fx TINT16
  6434. Fy TINT16
  6435. }
  6436. type TxImageTextReq = struct {
  6437. FreqType TCARD8
  6438. FnChars TBYTE
  6439. Flength TCARD16
  6440. Fdrawable TCARD32
  6441. Fgc TCARD32
  6442. Fx TINT16
  6443. Fy TINT16
  6444. }
  6445. type TxImageText8Req = struct {
  6446. FreqType TCARD8
  6447. FnChars TBYTE
  6448. Flength TCARD16
  6449. Fdrawable TCARD32
  6450. Fgc TCARD32
  6451. Fx TINT16
  6452. Fy TINT16
  6453. }
  6454. type TxImageText16Req = struct {
  6455. FreqType TCARD8
  6456. FnChars TBYTE
  6457. Flength TCARD16
  6458. Fdrawable TCARD32
  6459. Fgc TCARD32
  6460. Fx TINT16
  6461. Fy TINT16
  6462. }
  6463. type TxCreateColormapReq = struct {
  6464. FreqType TCARD8
  6465. Falloc TBYTE
  6466. Flength TCARD16
  6467. Fmid TCARD32
  6468. Fwindow TCARD32
  6469. Fvisual TCARD32
  6470. }
  6471. type TxCopyColormapAndFreeReq = struct {
  6472. FreqType TCARD8
  6473. Fpad TBYTE
  6474. Flength TCARD16
  6475. Fmid TCARD32
  6476. FsrcCmap TCARD32
  6477. }
  6478. type TxAllocColorReq = struct {
  6479. FreqType TCARD8
  6480. Fpad TBYTE
  6481. Flength TCARD16
  6482. Fcmap TCARD32
  6483. Fred TCARD16
  6484. Fgreen TCARD16
  6485. Fblue TCARD16
  6486. Fpad2 TCARD16
  6487. }
  6488. type TxAllocNamedColorReq = struct {
  6489. FreqType TCARD8
  6490. Fpad TBYTE
  6491. Flength TCARD16
  6492. Fcmap TCARD32
  6493. Fnbytes TCARD16
  6494. Fpad1 TBYTE
  6495. Fpad2 TBYTE
  6496. }
  6497. type TxAllocColorCellsReq = struct {
  6498. FreqType TCARD8
  6499. Fcontiguous TBOOL
  6500. Flength TCARD16
  6501. Fcmap TCARD32
  6502. Fcolors TCARD16
  6503. Fplanes TCARD16
  6504. }
  6505. type TxAllocColorPlanesReq = struct {
  6506. FreqType TCARD8
  6507. Fcontiguous TBOOL
  6508. Flength TCARD16
  6509. Fcmap TCARD32
  6510. Fcolors TCARD16
  6511. Fred TCARD16
  6512. Fgreen TCARD16
  6513. Fblue TCARD16
  6514. }
  6515. type TxFreeColorsReq = struct {
  6516. FreqType TCARD8
  6517. Fpad TBYTE
  6518. Flength TCARD16
  6519. Fcmap TCARD32
  6520. FplaneMask TCARD32
  6521. }
  6522. type TxStoreColorsReq = struct {
  6523. FreqType TCARD8
  6524. Fpad TBYTE
  6525. Flength TCARD16
  6526. Fcmap TCARD32
  6527. }
  6528. type TxStoreNamedColorReq = struct {
  6529. FreqType TCARD8
  6530. Fflags TCARD8
  6531. Flength TCARD16
  6532. Fcmap TCARD32
  6533. Fpixel TCARD32
  6534. Fnbytes TCARD16
  6535. Fpad1 TBYTE
  6536. Fpad2 TBYTE
  6537. }
  6538. type TxQueryColorsReq = struct {
  6539. FreqType TCARD8
  6540. Fpad TBYTE
  6541. Flength TCARD16
  6542. Fcmap TCARD32
  6543. }
  6544. type TxLookupColorReq = struct {
  6545. FreqType TCARD8
  6546. Fpad TBYTE
  6547. Flength TCARD16
  6548. Fcmap TCARD32
  6549. Fnbytes TCARD16
  6550. Fpad1 TBYTE
  6551. Fpad2 TBYTE
  6552. }
  6553. type TxCreateCursorReq = struct {
  6554. FreqType TCARD8
  6555. Fpad TBYTE
  6556. Flength TCARD16
  6557. Fcid TCARD32
  6558. Fsource TCARD32
  6559. Fmask TCARD32
  6560. FforeRed TCARD16
  6561. FforeGreen TCARD16
  6562. FforeBlue TCARD16
  6563. FbackRed TCARD16
  6564. FbackGreen TCARD16
  6565. FbackBlue TCARD16
  6566. Fx TCARD16
  6567. Fy TCARD16
  6568. }
  6569. type TxCreateGlyphCursorReq = struct {
  6570. FreqType TCARD8
  6571. Fpad TBYTE
  6572. Flength TCARD16
  6573. Fcid TCARD32
  6574. Fsource TCARD32
  6575. Fmask TCARD32
  6576. FsourceChar TCARD16
  6577. FmaskChar TCARD16
  6578. FforeRed TCARD16
  6579. FforeGreen TCARD16
  6580. FforeBlue TCARD16
  6581. FbackRed TCARD16
  6582. FbackGreen TCARD16
  6583. FbackBlue TCARD16
  6584. }
  6585. type TxRecolorCursorReq = struct {
  6586. FreqType TCARD8
  6587. Fpad TBYTE
  6588. Flength TCARD16
  6589. Fcursor TCARD32
  6590. FforeRed TCARD16
  6591. FforeGreen TCARD16
  6592. FforeBlue TCARD16
  6593. FbackRed TCARD16
  6594. FbackGreen TCARD16
  6595. FbackBlue TCARD16
  6596. }
  6597. type TxQueryBestSizeReq = struct {
  6598. FreqType TCARD8
  6599. Fclass TCARD8
  6600. Flength TCARD16
  6601. Fdrawable TCARD32
  6602. Fwidth TCARD16
  6603. Fheight TCARD16
  6604. }
  6605. type TxQueryExtensionReq = struct {
  6606. FreqType TCARD8
  6607. Fpad TBYTE
  6608. Flength TCARD16
  6609. Fnbytes TCARD16
  6610. Fpad1 TBYTE
  6611. Fpad2 TBYTE
  6612. }
  6613. type TxSetModifierMappingReq = struct {
  6614. FreqType TCARD8
  6615. FnumKeyPerModifier TCARD8
  6616. Flength TCARD16
  6617. }
  6618. type TxSetPointerMappingReq = struct {
  6619. FreqType TCARD8
  6620. FnElts TCARD8
  6621. Flength TCARD16
  6622. }
  6623. type TxGetKeyboardMappingReq = struct {
  6624. FreqType TCARD8
  6625. Fpad TBYTE
  6626. Flength TCARD16
  6627. FfirstKeyCode TCARD8
  6628. Fcount TCARD8
  6629. Fpad1 TCARD16
  6630. }
  6631. type TxChangeKeyboardMappingReq = struct {
  6632. FreqType TCARD8
  6633. FkeyCodes TCARD8
  6634. Flength TCARD16
  6635. FfirstKeyCode TCARD8
  6636. FkeySymsPerKeyCode TCARD8
  6637. Fpad1 TCARD16
  6638. }
  6639. type TxChangeKeyboardControlReq = struct {
  6640. FreqType TCARD8
  6641. Fpad TBYTE
  6642. Flength TCARD16
  6643. Fmask TCARD32
  6644. }
  6645. type TxBellReq = struct {
  6646. FreqType TCARD8
  6647. Fpercent TINT8
  6648. Flength TCARD16
  6649. }
  6650. type TxChangePointerControlReq = struct {
  6651. FreqType TCARD8
  6652. Fpad TBYTE
  6653. Flength TCARD16
  6654. FaccelNum TINT16
  6655. FaccelDenum TINT16
  6656. Fthreshold TINT16
  6657. FdoAccel TBOOL
  6658. FdoThresh TBOOL
  6659. }
  6660. type TxSetScreenSaverReq = struct {
  6661. FreqType TCARD8
  6662. Fpad TBYTE
  6663. Flength TCARD16
  6664. Ftimeout TINT16
  6665. Finterval TINT16
  6666. FpreferBlank TBYTE
  6667. FallowExpose TBYTE
  6668. Fpad2 TCARD16
  6669. }
  6670. type TxChangeHostsReq = struct {
  6671. FreqType TCARD8
  6672. Fmode TBYTE
  6673. Flength TCARD16
  6674. FhostFamily TCARD8
  6675. Fpad TBYTE
  6676. FhostLength TCARD16
  6677. }
  6678. type TxListHostsReq = struct {
  6679. FreqType TCARD8
  6680. Fpad TBYTE
  6681. Flength TCARD16
  6682. }
  6683. type TxChangeModeReq = struct {
  6684. FreqType TCARD8
  6685. Fmode TBYTE
  6686. Flength TCARD16
  6687. }
  6688. type TxSetAccessControlReq = struct {
  6689. FreqType TCARD8
  6690. Fmode TBYTE
  6691. Flength TCARD16
  6692. }
  6693. type TxSetCloseDownModeReq = struct {
  6694. FreqType TCARD8
  6695. Fmode TBYTE
  6696. Flength TCARD16
  6697. }
  6698. type TxForceScreenSaverReq = struct {
  6699. FreqType TCARD8
  6700. Fmode TBYTE
  6701. Flength TCARD16
  6702. }
  6703. type TxRotatePropertiesReq = struct {
  6704. FreqType TCARD8
  6705. Fpad TBYTE
  6706. Flength TCARD16
  6707. Fwindow TCARD32
  6708. FnAtoms TCARD16
  6709. FnPositions TINT16
  6710. }
  6711. type Tsigval = struct {
  6712. Fsival_ptr [0]uintptr
  6713. Fsigval_int [0]int32
  6714. Fsigval_ptr [0]uintptr
  6715. Fsival_int int32
  6716. F__ccgo_pad4 [4]byte
  6717. }
  6718. type Tsched_param = struct {
  6719. Fsched_priority int32
  6720. }
  6721. type T_cpuset = struct {
  6722. F__bits [16]int64
  6723. }
  6724. type Tcpuset_t = struct {
  6725. F__bits [16]int64
  6726. }
  6727. type Tcpu_set_t = struct {
  6728. F__bits [16]int64
  6729. }
  6730. type Ttm = struct {
  6731. Ftm_sec int32
  6732. Ftm_min int32
  6733. Ftm_hour int32
  6734. Ftm_mday int32
  6735. Ftm_mon int32
  6736. Ftm_year int32
  6737. Ftm_wday int32
  6738. Ftm_yday int32
  6739. Ftm_isdst int32
  6740. Ftm_gmtoff int64
  6741. Ftm_zone uintptr
  6742. }
  6743. type Tlocale_t = uintptr
  6744. type _pthread_mutextype = int32
  6745. const _PTHREAD_MUTEX_ERRORCHECK = 1
  6746. const _PTHREAD_MUTEX_RECURSIVE = 2
  6747. const _PTHREAD_MUTEX_NORMAL = 3
  6748. const _PTHREAD_MUTEX_ADAPTIVE_NP = 4
  6749. const _PTHREAD_MUTEX_TYPE_MAX = 5
  6750. type T_pthread_cleanup_info = struct {
  6751. Fpthread_cleanup_pad [8]t__uintptr_t
  6752. }
  6753. type Txthread_t = uintptr
  6754. type Txthread_key_t = int32
  6755. type Txcondition_rec = uintptr
  6756. type Txmutex_rec = uintptr
  6757. type Txcondition_t = uintptr
  6758. type Txmutex_t = uintptr
  6759. type T_XQEvent = struct {
  6760. Fnext uintptr
  6761. Fevent TXEvent
  6762. Fqserial_num uint64
  6763. }
  6764. type T_XSQEvent = T_XQEvent
  6765. type Terrno_t = int32
  6766. type Tdiv_t = struct {
  6767. Fquot int32
  6768. Frem int32
  6769. }
  6770. type Tldiv_t = struct {
  6771. Fquot int64
  6772. Frem int64
  6773. }
  6774. type Tlldiv_t = struct {
  6775. Fquot int64
  6776. Frem int64
  6777. }
  6778. type Tconstraint_handler_t = uintptr
  6779. type TLockInfoPtr = uintptr
  6780. type T_XLockPtrs = struct {
  6781. Flock_display uintptr
  6782. Funlock_display uintptr
  6783. }
  6784. type T_XAsyncHandler = struct {
  6785. Fnext uintptr
  6786. Fhandler uintptr
  6787. Fdata TXPointer
  6788. }
  6789. type T_XInternalAsync = T_XAsyncHandler
  6790. type T_XAsyncErrorState = struct {
  6791. Fmin_sequence_number uint64
  6792. Fmax_sequence_number uint64
  6793. Ferror_code uint8
  6794. Fmajor_opcode uint8
  6795. Fminor_opcode uint16
  6796. Flast_error_received uint8
  6797. Ferror_count int32
  6798. }
  6799. type T_XAsyncEState = T_XAsyncErrorState
  6800. type TFreeFuncType = uintptr
  6801. type TFreeModmapType = uintptr
  6802. type T_XFreeFuncRec = struct {
  6803. Fatoms TFreeFuncType
  6804. Fmodifiermap TFreeModmapType
  6805. Fkey_bindings TFreeFuncType
  6806. Fcontext_db TFreeFuncType
  6807. FdefaultCCCs TFreeFuncType
  6808. FclientCmaps TFreeFuncType
  6809. FintensityMaps TFreeFuncType
  6810. Fim_filters TFreeFuncType
  6811. Fxkb TFreeFuncType
  6812. }
  6813. type T_XFreeFuncs = T_XFreeFuncRec
  6814. type TCreateGCType = uintptr
  6815. type TCopyGCType = uintptr
  6816. type TFlushGCType = uintptr
  6817. type TFreeGCType = uintptr
  6818. type TCreateFontType = uintptr
  6819. type TFreeFontType = uintptr
  6820. type TCloseDisplayType = uintptr
  6821. type TErrorType = uintptr
  6822. type TErrorStringType = uintptr
  6823. type TPrintErrorType = uintptr
  6824. type TBeforeFlushType = uintptr
  6825. type T_XExtension = struct {
  6826. Fnext uintptr
  6827. Fcodes TXExtCodes
  6828. Fcreate_GC TCreateGCType
  6829. Fcopy_GC TCopyGCType
  6830. Fflush_GC TFlushGCType
  6831. Ffree_GC TFreeGCType
  6832. Fcreate_Font TCreateFontType
  6833. Ffree_Font TFreeFontType
  6834. Fclose_display TCloseDisplayType
  6835. Ferror1 TErrorType
  6836. Ferror_string TErrorStringType
  6837. Fname uintptr
  6838. Ferror_values TPrintErrorType
  6839. Fbefore_flush TBeforeFlushType
  6840. Fnext_flush uintptr
  6841. }
  6842. type T_XExten = T_XExtension
  6843. type T_XInternalConnectionProc = uintptr
  6844. type T_XConnectionInfo = struct {
  6845. Ffd int32
  6846. Fread_callback T_XInternalConnectionProc
  6847. Fcall_data TXPointer
  6848. Fwatch_data uintptr
  6849. Fnext uintptr
  6850. }
  6851. type T_XConnWatchInfo = struct {
  6852. Ffn TXConnectionWatchProc
  6853. Fclient_data TXPointer
  6854. Fnext uintptr
  6855. }
  6856. type TXSizeHints = struct {
  6857. Fflags int64
  6858. Fx int32
  6859. Fy int32
  6860. Fwidth int32
  6861. Fheight int32
  6862. Fmin_width int32
  6863. Fmin_height int32
  6864. Fmax_width int32
  6865. Fmax_height int32
  6866. Fwidth_inc int32
  6867. Fheight_inc int32
  6868. Fmin_aspect struct {
  6869. Fx int32
  6870. Fy int32
  6871. }
  6872. Fmax_aspect struct {
  6873. Fx int32
  6874. Fy int32
  6875. }
  6876. Fbase_width int32
  6877. Fbase_height int32
  6878. Fwin_gravity int32
  6879. }
  6880. type TXWMHints = struct {
  6881. Fflags int64
  6882. Finput int32
  6883. Finitial_state int32
  6884. Ficon_pixmap TPixmap
  6885. Ficon_window TWindow
  6886. Ficon_x int32
  6887. Ficon_y int32
  6888. Ficon_mask TPixmap
  6889. Fwindow_group TXID
  6890. }
  6891. type TXTextProperty = struct {
  6892. Fvalue uintptr
  6893. Fencoding TAtom
  6894. Fformat int32
  6895. Fnitems uint64
  6896. }
  6897. type TXICCEncodingStyle = int32
  6898. const _XStringStyle = 0
  6899. const _XCompoundTextStyle = 1
  6900. const _XTextStyle = 2
  6901. const _XStdICCTextStyle = 3
  6902. const _XUTF8StringStyle = 4
  6903. type TXIconSize = struct {
  6904. Fmin_width int32
  6905. Fmin_height int32
  6906. Fmax_width int32
  6907. Fmax_height int32
  6908. Fwidth_inc int32
  6909. Fheight_inc int32
  6910. }
  6911. type TXClassHint = struct {
  6912. Fres_name uintptr
  6913. Fres_class uintptr
  6914. }
  6915. type TXComposeStatus = struct {
  6916. Fcompose_ptr TXPointer
  6917. Fchars_matched int32
  6918. }
  6919. type T_XComposeStatus = TXComposeStatus
  6920. type TRegion = uintptr
  6921. type TXVisualInfo = struct {
  6922. Fvisual uintptr
  6923. Fvisualid TVisualID
  6924. Fscreen int32
  6925. Fdepth int32
  6926. Fclass int32
  6927. Fred_mask uint64
  6928. Fgreen_mask uint64
  6929. Fblue_mask uint64
  6930. Fcolormap_size int32
  6931. Fbits_per_rgb int32
  6932. }
  6933. type TXStandardColormap = struct {
  6934. Fcolormap TColormap
  6935. Fred_max uint64
  6936. Fred_mult uint64
  6937. Fgreen_max uint64
  6938. Fgreen_mult uint64
  6939. Fblue_max uint64
  6940. Fblue_mult uint64
  6941. Fbase_pixel uint64
  6942. Fvisualid TVisualID
  6943. Fkillid TXID
  6944. }
  6945. type TXContext = int32
  6946. type Tpointer = uintptr
  6947. type TClientPtr = uintptr
  6948. type TFontPtr = uintptr
  6949. type TFSID = uint64
  6950. type TAccContext = uint64
  6951. type TOSTimePtr = uintptr
  6952. type TBlockHandlerProcPtr = uintptr
  6953. type TGlyph = uint64
  6954. type TGlyphSet = uint64
  6955. type TPicture = uint64
  6956. type TPictFormat = uint64
  6957. type TxDirectFormat = struct {
  6958. Fred TCARD16
  6959. FredMask TCARD16
  6960. Fgreen TCARD16
  6961. FgreenMask TCARD16
  6962. Fblue TCARD16
  6963. FblueMask TCARD16
  6964. Falpha TCARD16
  6965. FalphaMask TCARD16
  6966. }
  6967. type TxPictFormInfo = struct {
  6968. Fid TCARD32
  6969. Ftype1 TCARD8
  6970. Fdepth TCARD8
  6971. Fpad1 TCARD16
  6972. Fdirect TxDirectFormat
  6973. Fcolormap TCARD32
  6974. }
  6975. type TxPictVisual = struct {
  6976. Fvisual TCARD32
  6977. Fformat TCARD32
  6978. }
  6979. type TxPictDepth = struct {
  6980. Fdepth TCARD8
  6981. Fpad1 TCARD8
  6982. FnPictVisuals TCARD16
  6983. Fpad2 TCARD32
  6984. }
  6985. type TxPictScreen = struct {
  6986. FnDepth TCARD32
  6987. Ffallback TCARD32
  6988. }
  6989. type TxIndexValue = struct {
  6990. Fpixel TCARD32
  6991. Fred TCARD16
  6992. Fgreen TCARD16
  6993. Fblue TCARD16
  6994. Falpha TCARD16
  6995. }
  6996. type TxRenderColor = struct {
  6997. Fred TCARD16
  6998. Fgreen TCARD16
  6999. Fblue TCARD16
  7000. Falpha TCARD16
  7001. }
  7002. type TxPointFixed = struct {
  7003. Fx TINT32
  7004. Fy TINT32
  7005. }
  7006. type TxLineFixed = struct {
  7007. Fp1 TxPointFixed
  7008. Fp2 TxPointFixed
  7009. }
  7010. type TxTriangle = struct {
  7011. Fp1 TxPointFixed
  7012. Fp2 TxPointFixed
  7013. Fp3 TxPointFixed
  7014. }
  7015. type TxTrapezoid = struct {
  7016. Ftop TINT32
  7017. Fbottom TINT32
  7018. Fleft TxLineFixed
  7019. Fright TxLineFixed
  7020. }
  7021. type TxGlyphInfo = struct {
  7022. Fwidth TCARD16
  7023. Fheight TCARD16
  7024. Fx TINT16
  7025. Fy TINT16
  7026. FxOff TINT16
  7027. FyOff TINT16
  7028. }
  7029. type TxGlyphElt = struct {
  7030. Flen1 TCARD8
  7031. Fpad1 TCARD8
  7032. Fpad2 TCARD16
  7033. Fdeltax TINT16
  7034. Fdeltay TINT16
  7035. }
  7036. type TxSpanFix = struct {
  7037. Fl TINT32
  7038. Fr TINT32
  7039. Fy TINT32
  7040. }
  7041. type TxTrap = struct {
  7042. Ftop TxSpanFix
  7043. Fbot TxSpanFix
  7044. }
  7045. type TxRenderQueryVersionReq = struct {
  7046. FreqType TCARD8
  7047. FrenderReqType TCARD8
  7048. Flength TCARD16
  7049. FmajorVersion TCARD32
  7050. FminorVersion TCARD32
  7051. }
  7052. type TxRenderQueryVersionReply = struct {
  7053. Ftype1 TBYTE
  7054. Fpad1 TBYTE
  7055. FsequenceNumber TCARD16
  7056. Flength TCARD32
  7057. FmajorVersion TCARD32
  7058. FminorVersion TCARD32
  7059. Fpad2 TCARD32
  7060. Fpad3 TCARD32
  7061. Fpad4 TCARD32
  7062. Fpad5 TCARD32
  7063. }
  7064. type TxRenderQueryPictFormatsReq = struct {
  7065. FreqType TCARD8
  7066. FrenderReqType TCARD8
  7067. Flength TCARD16
  7068. }
  7069. type TxRenderQueryPictFormatsReply = struct {
  7070. Ftype1 TBYTE
  7071. Fpad1 TBYTE
  7072. FsequenceNumber TCARD16
  7073. Flength TCARD32
  7074. FnumFormats TCARD32
  7075. FnumScreens TCARD32
  7076. FnumDepths TCARD32
  7077. FnumVisuals TCARD32
  7078. FnumSubpixel TCARD32
  7079. Fpad5 TCARD32
  7080. }
  7081. type TxRenderQueryPictIndexValuesReq = struct {
  7082. FreqType TCARD8
  7083. FrenderReqType TCARD8
  7084. Flength TCARD16
  7085. Fformat TCARD32
  7086. }
  7087. type TxRenderQueryPictIndexValuesReply = struct {
  7088. Ftype1 TBYTE
  7089. Fpad1 TBYTE
  7090. FsequenceNumber TCARD16
  7091. Flength TCARD32
  7092. FnumIndexValues TCARD32
  7093. Fpad2 TCARD32
  7094. Fpad3 TCARD32
  7095. Fpad4 TCARD32
  7096. Fpad5 TCARD32
  7097. Fpad6 TCARD32
  7098. }
  7099. type TxRenderCreatePictureReq = struct {
  7100. FreqType TCARD8
  7101. FrenderReqType TCARD8
  7102. Flength TCARD16
  7103. Fpid TCARD32
  7104. Fdrawable TCARD32
  7105. Fformat TCARD32
  7106. Fmask TCARD32
  7107. }
  7108. type TxRenderChangePictureReq = struct {
  7109. FreqType TCARD8
  7110. FrenderReqType TCARD8
  7111. Flength TCARD16
  7112. Fpicture TCARD32
  7113. Fmask TCARD32
  7114. }
  7115. type TxRenderSetPictureClipRectanglesReq = struct {
  7116. FreqType TCARD8
  7117. FrenderReqType TCARD8
  7118. Flength TCARD16
  7119. Fpicture TCARD32
  7120. FxOrigin TINT16
  7121. FyOrigin TINT16
  7122. }
  7123. type TxRenderFreePictureReq = struct {
  7124. FreqType TCARD8
  7125. FrenderReqType TCARD8
  7126. Flength TCARD16
  7127. Fpicture TCARD32
  7128. }
  7129. type TxRenderCompositeReq = struct {
  7130. FreqType TCARD8
  7131. FrenderReqType TCARD8
  7132. Flength TCARD16
  7133. Fop TCARD8
  7134. Fpad1 TCARD8
  7135. Fpad2 TCARD16
  7136. Fsrc TCARD32
  7137. Fmask TCARD32
  7138. Fdst TCARD32
  7139. FxSrc TINT16
  7140. FySrc TINT16
  7141. FxMask TINT16
  7142. FyMask TINT16
  7143. FxDst TINT16
  7144. FyDst TINT16
  7145. Fwidth TCARD16
  7146. Fheight TCARD16
  7147. }
  7148. type TxRenderScaleReq = struct {
  7149. FreqType TCARD8
  7150. FrenderReqType TCARD8
  7151. Flength TCARD16
  7152. Fsrc TCARD32
  7153. Fdst TCARD32
  7154. FcolorScale TCARD32
  7155. FalphaScale TCARD32
  7156. FxSrc TINT16
  7157. FySrc TINT16
  7158. FxDst TINT16
  7159. FyDst TINT16
  7160. Fwidth TCARD16
  7161. Fheight TCARD16
  7162. }
  7163. type TxRenderTrapezoidsReq = struct {
  7164. FreqType TCARD8
  7165. FrenderReqType TCARD8
  7166. Flength TCARD16
  7167. Fop TCARD8
  7168. Fpad1 TCARD8
  7169. Fpad2 TCARD16
  7170. Fsrc TCARD32
  7171. Fdst TCARD32
  7172. FmaskFormat TCARD32
  7173. FxSrc TINT16
  7174. FySrc TINT16
  7175. }
  7176. type TxRenderTrianglesReq = struct {
  7177. FreqType TCARD8
  7178. FrenderReqType TCARD8
  7179. Flength TCARD16
  7180. Fop TCARD8
  7181. Fpad1 TCARD8
  7182. Fpad2 TCARD16
  7183. Fsrc TCARD32
  7184. Fdst TCARD32
  7185. FmaskFormat TCARD32
  7186. FxSrc TINT16
  7187. FySrc TINT16
  7188. }
  7189. type TxRenderTriStripReq = struct {
  7190. FreqType TCARD8
  7191. FrenderReqType TCARD8
  7192. Flength TCARD16
  7193. Fop TCARD8
  7194. Fpad1 TCARD8
  7195. Fpad2 TCARD16
  7196. Fsrc TCARD32
  7197. Fdst TCARD32
  7198. FmaskFormat TCARD32
  7199. FxSrc TINT16
  7200. FySrc TINT16
  7201. }
  7202. type TxRenderTriFanReq = struct {
  7203. FreqType TCARD8
  7204. FrenderReqType TCARD8
  7205. Flength TCARD16
  7206. Fop TCARD8
  7207. Fpad1 TCARD8
  7208. Fpad2 TCARD16
  7209. Fsrc TCARD32
  7210. Fdst TCARD32
  7211. FmaskFormat TCARD32
  7212. FxSrc TINT16
  7213. FySrc TINT16
  7214. }
  7215. type TxRenderCreateGlyphSetReq = struct {
  7216. FreqType TCARD8
  7217. FrenderReqType TCARD8
  7218. Flength TCARD16
  7219. Fgsid TCARD32
  7220. Fformat TCARD32
  7221. }
  7222. type TxRenderReferenceGlyphSetReq = struct {
  7223. FreqType TCARD8
  7224. FrenderReqType TCARD8
  7225. Flength TCARD16
  7226. Fgsid TCARD32
  7227. Fexisting TCARD32
  7228. }
  7229. type TxRenderFreeGlyphSetReq = struct {
  7230. FreqType TCARD8
  7231. FrenderReqType TCARD8
  7232. Flength TCARD16
  7233. Fglyphset TCARD32
  7234. }
  7235. type TxRenderAddGlyphsReq = struct {
  7236. FreqType TCARD8
  7237. FrenderReqType TCARD8
  7238. Flength TCARD16
  7239. Fglyphset TCARD32
  7240. Fnglyphs TCARD32
  7241. }
  7242. type TxRenderFreeGlyphsReq = struct {
  7243. FreqType TCARD8
  7244. FrenderReqType TCARD8
  7245. Flength TCARD16
  7246. Fglyphset TCARD32
  7247. }
  7248. type TxRenderCompositeGlyphsReq = struct {
  7249. FreqType TCARD8
  7250. FrenderReqType TCARD8
  7251. Flength TCARD16
  7252. Fop TCARD8
  7253. Fpad1 TCARD8
  7254. Fpad2 TCARD16
  7255. Fsrc TCARD32
  7256. Fdst TCARD32
  7257. FmaskFormat TCARD32
  7258. Fglyphset TCARD32
  7259. FxSrc TINT16
  7260. FySrc TINT16
  7261. }
  7262. type TxRenderCompositeGlyphs8Req = struct {
  7263. FreqType TCARD8
  7264. FrenderReqType TCARD8
  7265. Flength TCARD16
  7266. Fop TCARD8
  7267. Fpad1 TCARD8
  7268. Fpad2 TCARD16
  7269. Fsrc TCARD32
  7270. Fdst TCARD32
  7271. FmaskFormat TCARD32
  7272. Fglyphset TCARD32
  7273. FxSrc TINT16
  7274. FySrc TINT16
  7275. }
  7276. type TxRenderCompositeGlyphs16Req = struct {
  7277. FreqType TCARD8
  7278. FrenderReqType TCARD8
  7279. Flength TCARD16
  7280. Fop TCARD8
  7281. Fpad1 TCARD8
  7282. Fpad2 TCARD16
  7283. Fsrc TCARD32
  7284. Fdst TCARD32
  7285. FmaskFormat TCARD32
  7286. Fglyphset TCARD32
  7287. FxSrc TINT16
  7288. FySrc TINT16
  7289. }
  7290. type TxRenderCompositeGlyphs32Req = struct {
  7291. FreqType TCARD8
  7292. FrenderReqType TCARD8
  7293. Flength TCARD16
  7294. Fop TCARD8
  7295. Fpad1 TCARD8
  7296. Fpad2 TCARD16
  7297. Fsrc TCARD32
  7298. Fdst TCARD32
  7299. FmaskFormat TCARD32
  7300. Fglyphset TCARD32
  7301. FxSrc TINT16
  7302. FySrc TINT16
  7303. }
  7304. type TxRenderFillRectanglesReq = struct {
  7305. FreqType TCARD8
  7306. FrenderReqType TCARD8
  7307. Flength TCARD16
  7308. Fop TCARD8
  7309. Fpad1 TCARD8
  7310. Fpad2 TCARD16
  7311. Fdst TCARD32
  7312. Fcolor TxRenderColor
  7313. }
  7314. type TxRenderCreateCursorReq = struct {
  7315. FreqType TCARD8
  7316. FrenderReqType TCARD8
  7317. Flength TCARD16
  7318. Fcid TCARD32
  7319. Fsrc TCARD32
  7320. Fx TCARD16
  7321. Fy TCARD16
  7322. }
  7323. type TxRenderTransform = struct {
  7324. Fmatrix11 TINT32
  7325. Fmatrix12 TINT32
  7326. Fmatrix13 TINT32
  7327. Fmatrix21 TINT32
  7328. Fmatrix22 TINT32
  7329. Fmatrix23 TINT32
  7330. Fmatrix31 TINT32
  7331. Fmatrix32 TINT32
  7332. Fmatrix33 TINT32
  7333. }
  7334. type TxRenderSetPictureTransformReq = struct {
  7335. FreqType TCARD8
  7336. FrenderReqType TCARD8
  7337. Flength TCARD16
  7338. Fpicture TCARD32
  7339. Ftransform TxRenderTransform
  7340. }
  7341. type TxRenderQueryFiltersReq = struct {
  7342. FreqType TCARD8
  7343. FrenderReqType TCARD8
  7344. Flength TCARD16
  7345. Fdrawable TCARD32
  7346. }
  7347. type TxRenderQueryFiltersReply = struct {
  7348. Ftype1 TBYTE
  7349. Fpad1 TBYTE
  7350. FsequenceNumber TCARD16
  7351. Flength TCARD32
  7352. FnumAliases TCARD32
  7353. FnumFilters TCARD32
  7354. Fpad2 TCARD32
  7355. Fpad3 TCARD32
  7356. Fpad4 TCARD32
  7357. Fpad5 TCARD32
  7358. }
  7359. type TxRenderSetPictureFilterReq = struct {
  7360. FreqType TCARD8
  7361. FrenderReqType TCARD8
  7362. Flength TCARD16
  7363. Fpicture TCARD32
  7364. Fnbytes TCARD16
  7365. Fpad TCARD16
  7366. }
  7367. type TxAnimCursorElt = struct {
  7368. Fcursor TCARD32
  7369. Fdelay TCARD32
  7370. }
  7371. type TxRenderCreateAnimCursorReq = struct {
  7372. FreqType TCARD8
  7373. FrenderReqType TCARD8
  7374. Flength TCARD16
  7375. Fcid TCARD32
  7376. }
  7377. type TxRenderAddTrapsReq = struct {
  7378. FreqType TCARD8
  7379. FrenderReqType TCARD8
  7380. Flength TCARD16
  7381. Fpicture TCARD32
  7382. FxOff TINT16
  7383. FyOff TINT16
  7384. }
  7385. type TxRenderCreateSolidFillReq = struct {
  7386. FreqType TCARD8
  7387. FrenderReqType TCARD8
  7388. Flength TCARD16
  7389. Fpid TCARD32
  7390. Fcolor TxRenderColor
  7391. }
  7392. type TxRenderCreateLinearGradientReq = struct {
  7393. FreqType TCARD8
  7394. FrenderReqType TCARD8
  7395. Flength TCARD16
  7396. Fpid TCARD32
  7397. Fp1 TxPointFixed
  7398. Fp2 TxPointFixed
  7399. FnStops TCARD32
  7400. }
  7401. type TxRenderCreateRadialGradientReq = struct {
  7402. FreqType TCARD8
  7403. FrenderReqType TCARD8
  7404. Flength TCARD16
  7405. Fpid TCARD32
  7406. Finner TxPointFixed
  7407. Fouter TxPointFixed
  7408. Finner_radius TINT32
  7409. Fouter_radius TINT32
  7410. FnStops TCARD32
  7411. }
  7412. type TxRenderCreateConicalGradientReq = struct {
  7413. FreqType TCARD8
  7414. FrenderReqType TCARD8
  7415. Flength TCARD16
  7416. Fpid TCARD32
  7417. Fcenter TxPointFixed
  7418. Fangle TINT32
  7419. FnStops TCARD32
  7420. }
  7421. type TXRenderDirectFormat = struct {
  7422. Fred int16
  7423. FredMask int16
  7424. Fgreen int16
  7425. FgreenMask int16
  7426. Fblue int16
  7427. FblueMask int16
  7428. Falpha int16
  7429. FalphaMask int16
  7430. }
  7431. type TXRenderPictFormat = struct {
  7432. Fid TPictFormat
  7433. Ftype1 int32
  7434. Fdepth int32
  7435. Fdirect TXRenderDirectFormat
  7436. Fcolormap TColormap
  7437. }
  7438. type TXRenderPictureAttributes = struct {
  7439. Frepeat int32
  7440. Falpha_map TPicture
  7441. Falpha_x_origin int32
  7442. Falpha_y_origin int32
  7443. Fclip_x_origin int32
  7444. Fclip_y_origin int32
  7445. Fclip_mask TPixmap
  7446. Fgraphics_exposures int32
  7447. Fsubwindow_mode int32
  7448. Fpoly_edge int32
  7449. Fpoly_mode int32
  7450. Fdither TAtom
  7451. Fcomponent_alpha int32
  7452. }
  7453. type T_XRenderPictureAttributes = TXRenderPictureAttributes
  7454. type TXRenderColor = struct {
  7455. Fred uint16
  7456. Fgreen uint16
  7457. Fblue uint16
  7458. Falpha uint16
  7459. }
  7460. type TXGlyphInfo = struct {
  7461. Fwidth uint16
  7462. Fheight uint16
  7463. Fx int16
  7464. Fy int16
  7465. FxOff int16
  7466. FyOff int16
  7467. }
  7468. type T_XGlyphInfo = TXGlyphInfo
  7469. type TXGlyphElt8 = struct {
  7470. Fglyphset TGlyphSet
  7471. Fchars uintptr
  7472. Fnchars int32
  7473. FxOff int32
  7474. FyOff int32
  7475. }
  7476. type T_XGlyphElt8 = TXGlyphElt8
  7477. type TXGlyphElt16 = struct {
  7478. Fglyphset TGlyphSet
  7479. Fchars uintptr
  7480. Fnchars int32
  7481. FxOff int32
  7482. FyOff int32
  7483. }
  7484. type T_XGlyphElt16 = TXGlyphElt16
  7485. type TXGlyphElt32 = struct {
  7486. Fglyphset TGlyphSet
  7487. Fchars uintptr
  7488. Fnchars int32
  7489. FxOff int32
  7490. FyOff int32
  7491. }
  7492. type T_XGlyphElt32 = TXGlyphElt32
  7493. type TXDouble = float64
  7494. type TXPointDouble = struct {
  7495. Fx TXDouble
  7496. Fy TXDouble
  7497. }
  7498. type T_XPointDouble = TXPointDouble
  7499. type TXFixed = int32
  7500. type TXPointFixed = struct {
  7501. Fx TXFixed
  7502. Fy TXFixed
  7503. }
  7504. type T_XPointFixed = TXPointFixed
  7505. type TXLineFixed = struct {
  7506. Fp1 TXPointFixed
  7507. Fp2 TXPointFixed
  7508. }
  7509. type T_XLineFixed = TXLineFixed
  7510. type TXTriangle = struct {
  7511. Fp1 TXPointFixed
  7512. Fp2 TXPointFixed
  7513. Fp3 TXPointFixed
  7514. }
  7515. type T_XTriangle = TXTriangle
  7516. type TXCircle = struct {
  7517. Fx TXFixed
  7518. Fy TXFixed
  7519. Fradius TXFixed
  7520. }
  7521. type T_XCircle = TXCircle
  7522. type TXTrapezoid = struct {
  7523. Ftop TXFixed
  7524. Fbottom TXFixed
  7525. Fleft TXLineFixed
  7526. Fright TXLineFixed
  7527. }
  7528. type T_XTrapezoid = TXTrapezoid
  7529. type TXTransform = struct {
  7530. Fmatrix [3][3]TXFixed
  7531. }
  7532. type T_XTransform = TXTransform
  7533. type TXFilters = struct {
  7534. Fnfilter int32
  7535. Ffilter uintptr
  7536. Fnalias int32
  7537. Falias uintptr
  7538. }
  7539. type T_XFilters = TXFilters
  7540. type TXIndexValue = struct {
  7541. Fpixel uint64
  7542. Fred uint16
  7543. Fgreen uint16
  7544. Fblue uint16
  7545. Falpha uint16
  7546. }
  7547. type T_XIndexValue = TXIndexValue
  7548. type TXAnimCursor = struct {
  7549. Fcursor TCursor
  7550. Fdelay uint64
  7551. }
  7552. type T_XAnimCursor = TXAnimCursor
  7553. type TXSpanFix = struct {
  7554. Fleft TXFixed
  7555. Fright TXFixed
  7556. Fy TXFixed
  7557. }
  7558. type T_XSpanFix = TXSpanFix
  7559. type TXTrap = struct {
  7560. Ftop TXSpanFix
  7561. Fbottom TXSpanFix
  7562. }
  7563. type T_XTrap = TXTrap
  7564. type TXLinearGradient = struct {
  7565. Fp1 TXPointFixed
  7566. Fp2 TXPointFixed
  7567. }
  7568. type T_XLinearGradient = TXLinearGradient
  7569. type TXRadialGradient = struct {
  7570. Finner TXCircle
  7571. Fouter TXCircle
  7572. }
  7573. type T_XRadialGradient = TXRadialGradient
  7574. type TXConicalGradient = struct {
  7575. Fcenter TXPointFixed
  7576. Fangle TXFixed
  7577. }
  7578. type T_XConicalGradient = TXConicalGradient
  7579. type TXRenderVisual = struct {
  7580. Fvisual uintptr
  7581. Fformat uintptr
  7582. }
  7583. type TXRenderDepth = struct {
  7584. Fdepth int32
  7585. Fnvisuals int32
  7586. Fvisuals uintptr
  7587. }
  7588. type TXRenderScreen = struct {
  7589. Fdepths uintptr
  7590. Fndepths int32
  7591. Ffallback uintptr
  7592. Fsubpixel int32
  7593. }
  7594. type TXRenderInfo = struct {
  7595. Fmajor_version int32
  7596. Fminor_version int32
  7597. Fformat uintptr
  7598. Fnformat int32
  7599. Fscreen uintptr
  7600. Fnscreen int32
  7601. Fdepth uintptr
  7602. Fndepth int32
  7603. Fvisual uintptr
  7604. Fnvisual int32
  7605. Fsubpixel uintptr
  7606. Fnsubpixel int32
  7607. Ffilter uintptr
  7608. Fnfilter int32
  7609. Ffilter_alias uintptr
  7610. Fnfilter_alias int32
  7611. }
  7612. type T_XRenderInfo = TXRenderInfo
  7613. type TXRenderExtDisplayInfo = struct {
  7614. Fnext uintptr
  7615. Fdisplay uintptr
  7616. Fcodes uintptr
  7617. Finfo uintptr
  7618. }
  7619. type T_XRenderExtDisplayInfo = TXRenderExtDisplayInfo
  7620. type TXRenderExtInfo = struct {
  7621. Fhead uintptr
  7622. Fcur uintptr
  7623. Fndisplays int32
  7624. }
  7625. type T_XRenderExtInfo = TXRenderExtInfo
  7626. /*
  7627. * Xlib uses long for 32-bit values. Xrender uses int. This
  7628. * matters on alpha. Note that this macro assumes that int is 32 bits
  7629. * except on WORD64 machines where it is 64 bits.
  7630. */
  7631. func XXRenderAddTraps(tls *libc.TLS, dpy uintptr, picture TPicture, xOff int32, yOff int32, traps uintptr, ntrap int32) {
  7632. bp := tls.Alloc(16)
  7633. defer tls.Free(16)
  7634. var _BRlen TCARD32
  7635. var info, req uintptr
  7636. var len1 int64
  7637. var max_req, v1 uint64
  7638. var n int32
  7639. var _ /* _BRdat at bp+0 */ TCARD64
  7640. _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1
  7641. info = XXRenderFindDisplay(tls, dpy)
  7642. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7643. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  7644. } else {
  7645. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  7646. }
  7647. max_req = v1
  7648. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7649. return
  7650. }
  7651. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7652. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7653. }
  7654. for ntrap != 0 {
  7655. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddTraps), uint64(m_sz_xRenderAddTrapsReq))
  7656. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7657. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddTraps)
  7658. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  7659. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FxOff = int16(xOff)
  7660. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).FyOff = int16(yOff)
  7661. n = ntrap
  7662. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7663. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) {
  7664. n = libc.Int32FromUint64((max_req - uint64((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2)))
  7665. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrap)>>libc.Int32FromInt32(2))
  7666. }
  7667. if libc.Int64FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  7668. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  7669. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  7670. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  7671. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  7672. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  7673. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  7674. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  7675. } else {
  7676. len1 = len1
  7677. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) + len1)
  7678. }
  7679. } else {
  7680. (*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderAddTrapsReq)(unsafe.Pointer(req)).Flength) + len1)
  7681. }
  7682. len1 <<= int64(2)
  7683. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  7684. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt64(len1))
  7685. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  7686. } else {
  7687. libx11.X_XSend(tls, dpy, traps, len1)
  7688. }
  7689. ntrap -= n
  7690. traps += uintptr(n) * 24
  7691. }
  7692. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7693. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7694. }
  7695. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7696. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7697. }
  7698. }
  7699. type Tfuncs = struct {
  7700. Fcreate_image uintptr
  7701. Fdestroy_image uintptr
  7702. Fget_pixel uintptr
  7703. Fput_pixel uintptr
  7704. Fsub_image uintptr
  7705. Fadd_pixel uintptr
  7706. }
  7707. /*
  7708. * Xlib uses long for 32-bit values. Xrender uses int. This
  7709. * matters on alpha. Note that this macro assumes that int is 32 bits
  7710. * except on WORD64 machines where it is 64 bits.
  7711. */
  7712. func XXRenderParseColor(tls *libc.TLS, dpy uintptr, spec uintptr, def uintptr) (r int32) {
  7713. bp := tls.Alloc(32)
  7714. defer tls.Free(32)
  7715. var c int8
  7716. var colormap TColormap
  7717. var i, n, v2 int32
  7718. var pShort, v3, p4, p5, p6 uintptr
  7719. var _ /* coreColor at bp+8 */ TXColor
  7720. var _ /* elements at bp+0 */ [4]uint16
  7721. _, _, _, _, _, _, _, _, _, _ = c, colormap, i, n, pShort, v2, v3, p4, p5, p6
  7722. if !(libc.Xstrncmp(tls, spec, __ccgo_ts, uint64(5)) != 0) {
  7723. spec += uintptr(5)
  7724. /*
  7725. * Attempt to parse the value portion.
  7726. */
  7727. pShort = bp
  7728. i = 0
  7729. for {
  7730. if !(i < int32(4)) {
  7731. break
  7732. }
  7733. n = 0
  7734. *(*uint16)(unsafe.Pointer(pShort)) = uint16(0)
  7735. for int32(*(*int8)(unsafe.Pointer(spec))) != int32('/') && int32(*(*int8)(unsafe.Pointer(spec))) != int32('\000') {
  7736. n++
  7737. v2 = n
  7738. if v2 > int32(4) {
  7739. return 0
  7740. }
  7741. v3 = spec
  7742. spec++
  7743. c = *(*int8)(unsafe.Pointer(v3))
  7744. p4 = pShort
  7745. *(*uint16)(unsafe.Pointer(p4)) = uint16(int32(*(*uint16)(unsafe.Pointer(p4))) << libc.Int32FromInt32(4))
  7746. if int32(c) >= int32('0') && int32(c) <= int32('9') {
  7747. p5 = pShort
  7748. *(*uint16)(unsafe.Pointer(p5)) = uint16(int32(*(*uint16)(unsafe.Pointer(p5))) | (int32(c) - libc.Int32FromUint8('0')))
  7749. } else {
  7750. if int32(c) >= int32('a') && int32(c) <= int32('f') {
  7751. p6 = pShort
  7752. *(*uint16)(unsafe.Pointer(p6)) = uint16(int32(*(*uint16)(unsafe.Pointer(p6))) | (int32(c) - (libc.Int32FromUint8('a') - libc.Int32FromInt32(10))))
  7753. } else {
  7754. return 0
  7755. }
  7756. }
  7757. }
  7758. if n == 0 {
  7759. return 0
  7760. }
  7761. if n < int32(4) {
  7762. *(*uint16)(unsafe.Pointer(pShort)) = uint16(uint64(*(*uint16)(unsafe.Pointer(pShort))) * uint64(0xFFFF) / libc.Uint64FromInt32(libc.Int32FromInt32(1)<<(n*libc.Int32FromInt32(4))-libc.Int32FromInt32(1)))
  7763. }
  7764. goto _1
  7765. _1:
  7766. ;
  7767. i++
  7768. pShort += 2
  7769. spec++
  7770. }
  7771. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*[4]uint16)(unsafe.Pointer(bp)))[0]
  7772. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(1)]
  7773. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(2)]
  7774. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = (*(*[4]uint16)(unsafe.Pointer(bp)))[int32(3)]
  7775. } else {
  7776. colormap = (*TScreen)(unsafe.Pointer((*struct {
  7777. Fext_data uintptr
  7778. Fprivate1 uintptr
  7779. Ffd int32
  7780. Fprivate2 int32
  7781. Fproto_major_version int32
  7782. Fproto_minor_version int32
  7783. Fvendor uintptr
  7784. Fprivate3 TXID
  7785. Fprivate4 TXID
  7786. Fprivate5 TXID
  7787. Fprivate6 int32
  7788. Fresource_alloc uintptr
  7789. Fbyte_order int32
  7790. Fbitmap_unit int32
  7791. Fbitmap_pad int32
  7792. Fbitmap_bit_order int32
  7793. Fnformats int32
  7794. Fpixmap_format uintptr
  7795. Fprivate8 int32
  7796. Frelease int32
  7797. Fprivate9 uintptr
  7798. Fprivate10 uintptr
  7799. Fqlen int32
  7800. Flast_request_read uint64
  7801. Frequest uint64
  7802. Fprivate11 TXPointer
  7803. Fprivate12 TXPointer
  7804. Fprivate13 TXPointer
  7805. Fprivate14 TXPointer
  7806. Fmax_request_size uint32
  7807. Fdb uintptr
  7808. Fprivate15 uintptr
  7809. Fdisplay_name uintptr
  7810. Fdefault_screen int32
  7811. Fnscreens int32
  7812. Fscreens uintptr
  7813. Fmotion_buffer uint64
  7814. Fprivate16 uint64
  7815. Fmin_keycode int32
  7816. Fmax_keycode int32
  7817. Fprivate17 TXPointer
  7818. Fprivate18 TXPointer
  7819. Fprivate19 int32
  7820. Fxdefaults uintptr
  7821. })(unsafe.Pointer(dpy)).Fscreens + uintptr((*struct {
  7822. Fext_data uintptr
  7823. Fprivate1 uintptr
  7824. Ffd int32
  7825. Fprivate2 int32
  7826. Fproto_major_version int32
  7827. Fproto_minor_version int32
  7828. Fvendor uintptr
  7829. Fprivate3 TXID
  7830. Fprivate4 TXID
  7831. Fprivate5 TXID
  7832. Fprivate6 int32
  7833. Fresource_alloc uintptr
  7834. Fbyte_order int32
  7835. Fbitmap_unit int32
  7836. Fbitmap_pad int32
  7837. Fbitmap_bit_order int32
  7838. Fnformats int32
  7839. Fpixmap_format uintptr
  7840. Fprivate8 int32
  7841. Frelease int32
  7842. Fprivate9 uintptr
  7843. Fprivate10 uintptr
  7844. Fqlen int32
  7845. Flast_request_read uint64
  7846. Frequest uint64
  7847. Fprivate11 TXPointer
  7848. Fprivate12 TXPointer
  7849. Fprivate13 TXPointer
  7850. Fprivate14 TXPointer
  7851. Fmax_request_size uint32
  7852. Fdb uintptr
  7853. Fprivate15 uintptr
  7854. Fdisplay_name uintptr
  7855. Fdefault_screen int32
  7856. Fnscreens int32
  7857. Fscreens uintptr
  7858. Fmotion_buffer uint64
  7859. Fprivate16 uint64
  7860. Fmin_keycode int32
  7861. Fmax_keycode int32
  7862. Fprivate17 TXPointer
  7863. Fprivate18 TXPointer
  7864. Fprivate19 int32
  7865. Fxdefaults uintptr
  7866. })(unsafe.Pointer(dpy)).Fdefault_screen)*128)).Fcmap
  7867. if !(libx11.XXParseColor(tls, dpy, colormap, spec, bp+8) != 0) {
  7868. return 0
  7869. }
  7870. (*TXRenderColor)(unsafe.Pointer(def)).Fred = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fred
  7871. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fgreen
  7872. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = (*(*TXColor)(unsafe.Pointer(bp + 8))).Fblue
  7873. (*TXRenderColor)(unsafe.Pointer(def)).Falpha = uint16(0xffff)
  7874. }
  7875. (*TXRenderColor)(unsafe.Pointer(def)).Fred = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fred)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7876. (*TXRenderColor)(unsafe.Pointer(def)).Fgreen = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fgreen)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7877. (*TXRenderColor)(unsafe.Pointer(def)).Fblue = uint16(libc.Uint32FromInt32(libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Fblue)*libc.Int32FromUint16((*TXRenderColor)(unsafe.Pointer(def)).Falpha)) / uint32(0xffff))
  7878. return int32(1)
  7879. }
  7880. /*
  7881. * Xlib uses long for 32-bit values. Xrender uses int. This
  7882. * matters on alpha. Note that this macro assumes that int is 32 bits
  7883. * except on WORD64 machines where it is 64 bits.
  7884. */
  7885. 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) {
  7886. var info, req uintptr
  7887. _, _ = info, req
  7888. info = XXRenderFindDisplay(tls, dpy)
  7889. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7890. return
  7891. }
  7892. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7893. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7894. }
  7895. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderComposite), uint64(m_sz_xRenderCompositeReq))
  7896. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7897. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderComposite)
  7898. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  7899. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  7900. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fmask = uint32(mask)
  7901. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  7902. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxSrc = int16(src_x)
  7903. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FySrc = int16(src_y)
  7904. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxMask = int16(mask_x)
  7905. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyMask = int16(mask_y)
  7906. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FxDst = int16(dst_x)
  7907. (*TxRenderCompositeReq)(unsafe.Pointer(req)).FyDst = int16(dst_y)
  7908. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fwidth = uint16(width)
  7909. (*TxRenderCompositeReq)(unsafe.Pointer(req)).Fheight = uint16(height)
  7910. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7911. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7912. }
  7913. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7914. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7915. }
  7916. }
  7917. /*
  7918. * Xlib uses long for 32-bit values. Xrender uses int. This
  7919. * matters on alpha. Note that this macro assumes that int is 32 bits
  7920. * except on WORD64 machines where it is 64 bits.
  7921. */
  7922. func XXRenderCreateCursor(tls *libc.TLS, dpy uintptr, source TPicture, x uint32, y uint32) (r TCursor) {
  7923. var cid, v1 TCursor
  7924. var info, req uintptr
  7925. _, _, _, _ = cid, info, req, v1
  7926. info = XXRenderFindDisplay(tls, dpy)
  7927. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  7928. return uint64(0)
  7929. }
  7930. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7931. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  7932. }
  7933. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateCursor), uint64(m_sz_xRenderCreateCursorReq))
  7934. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  7935. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateCursor)
  7936. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  7937. Fext_data uintptr
  7938. Fprivate1 uintptr
  7939. Ffd int32
  7940. Fprivate2 int32
  7941. Fproto_major_version int32
  7942. Fproto_minor_version int32
  7943. Fvendor uintptr
  7944. Fprivate3 TXID
  7945. Fprivate4 TXID
  7946. Fprivate5 TXID
  7947. Fprivate6 int32
  7948. Fresource_alloc uintptr
  7949. Fbyte_order int32
  7950. Fbitmap_unit int32
  7951. Fbitmap_pad int32
  7952. Fbitmap_bit_order int32
  7953. Fnformats int32
  7954. Fpixmap_format uintptr
  7955. Fprivate8 int32
  7956. Frelease int32
  7957. Fprivate9 uintptr
  7958. Fprivate10 uintptr
  7959. Fqlen int32
  7960. Flast_request_read uint64
  7961. Frequest uint64
  7962. Fprivate11 TXPointer
  7963. Fprivate12 TXPointer
  7964. Fprivate13 TXPointer
  7965. Fprivate14 TXPointer
  7966. Fmax_request_size uint32
  7967. Fdb uintptr
  7968. Fprivate15 uintptr
  7969. Fdisplay_name uintptr
  7970. Fdefault_screen int32
  7971. Fnscreens int32
  7972. Fscreens uintptr
  7973. Fmotion_buffer uint64
  7974. Fprivate16 uint64
  7975. Fmin_keycode int32
  7976. Fmax_keycode int32
  7977. Fprivate17 TXPointer
  7978. Fprivate18 TXPointer
  7979. Fprivate19 int32
  7980. Fxdefaults uintptr
  7981. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  7982. cid = v1
  7983. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  7984. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fsrc = uint32(source)
  7985. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fx = uint16(x)
  7986. (*TxRenderCreateCursorReq)(unsafe.Pointer(req)).Fy = uint16(y)
  7987. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  7988. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  7989. }
  7990. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  7991. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  7992. }
  7993. return cid
  7994. }
  7995. func XXRenderCreateAnimCursor(tls *libc.TLS, dpy uintptr, ncursor int32, cursors uintptr) (r TCursor) {
  7996. bp := tls.Alloc(16)
  7997. defer tls.Free(16)
  7998. var _BRlen TCARD32
  7999. var cid, v1 TCursor
  8000. var info, req uintptr
  8001. var len1 int64
  8002. var _ /* _BRdat at bp+0 */ TCARD64
  8003. _, _, _, _, _, _ = _BRlen, cid, info, len1, req, v1
  8004. info = XXRenderFindDisplay(tls, dpy)
  8005. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8006. return uint64(0)
  8007. }
  8008. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8009. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8010. }
  8011. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateAnimCursor), uint64(m_sz_xRenderCreateAnimCursorReq))
  8012. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8013. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateAnimCursor)
  8014. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8015. Fext_data uintptr
  8016. Fprivate1 uintptr
  8017. Ffd int32
  8018. Fprivate2 int32
  8019. Fproto_major_version int32
  8020. Fproto_minor_version int32
  8021. Fvendor uintptr
  8022. Fprivate3 TXID
  8023. Fprivate4 TXID
  8024. Fprivate5 TXID
  8025. Fprivate6 int32
  8026. Fresource_alloc uintptr
  8027. Fbyte_order int32
  8028. Fbitmap_unit int32
  8029. Fbitmap_pad int32
  8030. Fbitmap_bit_order int32
  8031. Fnformats int32
  8032. Fpixmap_format uintptr
  8033. Fprivate8 int32
  8034. Frelease int32
  8035. Fprivate9 uintptr
  8036. Fprivate10 uintptr
  8037. Fqlen int32
  8038. Flast_request_read uint64
  8039. Frequest uint64
  8040. Fprivate11 TXPointer
  8041. Fprivate12 TXPointer
  8042. Fprivate13 TXPointer
  8043. Fprivate14 TXPointer
  8044. Fmax_request_size uint32
  8045. Fdb uintptr
  8046. Fprivate15 uintptr
  8047. Fdisplay_name uintptr
  8048. Fdefault_screen int32
  8049. Fnscreens int32
  8050. Fscreens uintptr
  8051. Fmotion_buffer uint64
  8052. Fprivate16 uint64
  8053. Fmin_keycode int32
  8054. Fmax_keycode int32
  8055. Fprivate17 TXPointer
  8056. Fprivate18 TXPointer
  8057. Fprivate19 int32
  8058. Fxdefaults uintptr
  8059. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8060. cid = v1
  8061. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Fcid = uint32(v1)
  8062. len1 = int64(ncursor) * int64(m_sz_xAnimCursorElt) >> int32(2)
  8063. if libc.Int64FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8064. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8065. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  8066. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8067. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8068. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8069. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  8070. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  8071. } else {
  8072. len1 = len1
  8073. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) + len1)
  8074. }
  8075. } else {
  8076. (*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateAnimCursorReq)(unsafe.Pointer(req)).Flength) + len1)
  8077. }
  8078. len1 <<= int64(2)
  8079. libx11.X_XData32(tls, dpy, cursors, libc.Uint32FromInt64(len1))
  8080. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8081. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8082. }
  8083. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8084. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8085. }
  8086. return cid
  8087. }
  8088. /*
  8089. * Xlib uses long for 32-bit values. Xrender uses int. This
  8090. * matters on alpha. Note that this macro assumes that int is 32 bits
  8091. * except on WORD64 machines where it is 64 bits.
  8092. */
  8093. /* precompute the maximum size of batching request allowed */
  8094. func XXRenderFillRectangle(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, x int32, y int32, width uint32, height uint32) {
  8095. var info, rect, req, p1 uintptr
  8096. _, _, _, _ = info, rect, req, p1
  8097. info = XXRenderFindDisplay(tls, dpy)
  8098. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8099. return
  8100. }
  8101. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8102. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8103. }
  8104. req = (*TDisplay)(unsafe.Pointer(dpy)).Flast_req
  8105. /* if same as previous request, with same drawable, batch requests */
  8106. 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)) {
  8107. p1 = req + 2
  8108. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + libc.Int32FromInt32(m_sz_xRectangle)>>libc.Int32FromInt32(2))
  8109. rect = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  8110. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(m_sz_xRectangle)
  8111. } else {
  8112. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderFillRectanglesReq)+libc.Int32FromInt32(m_sz_xRectangle)))
  8113. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8114. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  8115. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8116. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8117. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  8118. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  8119. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  8120. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  8121. rect = req + libc.UintptrFromInt32(1)*20
  8122. }
  8123. (*TxRectangle)(unsafe.Pointer(rect)).Fx = int16(x)
  8124. (*TxRectangle)(unsafe.Pointer(rect)).Fy = int16(y)
  8125. (*TxRectangle)(unsafe.Pointer(rect)).Fwidth = uint16(width)
  8126. (*TxRectangle)(unsafe.Pointer(rect)).Fheight = uint16(height)
  8127. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8128. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8129. }
  8130. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8131. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8132. }
  8133. }
  8134. /*
  8135. * Xlib uses long for 32-bit values. Xrender uses int. This
  8136. * matters on alpha. Note that this macro assumes that int is 32 bits
  8137. * except on WORD64 machines where it is 64 bits.
  8138. */
  8139. /* precompute the maximum size of batching request allowed */
  8140. func XXRenderFillRectangles(tls *libc.TLS, dpy uintptr, op int32, dst TPicture, color uintptr, rectangles uintptr, n_rects int32) {
  8141. bp := tls.Alloc(16)
  8142. defer tls.Free(16)
  8143. var _BRlen TCARD32
  8144. var info, req uintptr
  8145. var len1 int64
  8146. var n int32
  8147. var _ /* _BRdat at bp+0 */ TCARD64
  8148. _, _, _, _, _ = _BRlen, info, len1, n, req
  8149. info = XXRenderFindDisplay(tls, dpy)
  8150. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8151. return
  8152. }
  8153. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8154. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8155. }
  8156. for n_rects != 0 {
  8157. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFillRectangles), uint64(m_sz_xRenderFillRectanglesReq))
  8158. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8159. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFillRectangles)
  8160. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8161. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8162. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  8163. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  8164. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  8165. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  8166. n = n_rects
  8167. len1 = int64(n) << int32(1)
  8168. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) {
  8169. n = libc.Int32FromUint32(((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size - uint32((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)) >> int32(1))
  8170. len1 = int64(n) << int32(1)
  8171. }
  8172. if libc.Int64FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8173. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8174. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  8175. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8176. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8177. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8178. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  8179. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  8180. } else {
  8181. len1 = len1
  8182. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) + len1)
  8183. }
  8184. } else {
  8185. (*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderFillRectanglesReq)(unsafe.Pointer(req)).Flength) + len1)
  8186. }
  8187. len1 <<= int64(2) /* watch out for macros... */
  8188. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8189. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rectangles, libc.Uint64FromInt64(len1))
  8190. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  8191. } else {
  8192. libx11.X_XSend(tls, dpy, rectangles, len1)
  8193. }
  8194. n_rects -= n
  8195. rectangles += uintptr(n) * 8
  8196. }
  8197. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8198. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8199. }
  8200. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8201. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8202. }
  8203. }
  8204. const m_BC_BASE_MAX = 99
  8205. const m_BC_DIM_MAX = 2048
  8206. const m_BC_SCALE_MAX = 99
  8207. const m_BC_STRING_MAX = 1000
  8208. const m_CHARCLASS_NAME_MAX = 14
  8209. const m_CHAR_BIT = "__CHAR_BIT"
  8210. const m_CHAR_MAX = "SCHAR_MAX"
  8211. const m_CHAR_MIN = "SCHAR_MIN"
  8212. const m_CHILD_MAX = 40
  8213. const m_COLL_WEIGHTS_MAX = 10
  8214. const m_EXPR_NEST_MAX = 32
  8215. const m_GID_MAX = "UINT_MAX"
  8216. const m_INT_MAX = "__INT_MAX"
  8217. const m_INT_MIN = "__INT_MIN"
  8218. const m_IOV_MAX = 1024
  8219. const m_LINE_MAX = 2048
  8220. const m_LLONG_MAX = "__LLONG_MAX"
  8221. const m_LLONG_MIN = "__LLONG_MIN"
  8222. const m_LONG_BIT = "__LONG_BIT"
  8223. const m_LONG_MAX = "__LONG_MAX"
  8224. const m_LONG_MIN = "__LONG_MIN"
  8225. const m_MAX_CANON = 255
  8226. const m_MAX_INPUT = 255
  8227. const m_MB_LEN_MAX = 6
  8228. const m_MQ_PRIO_MAX = 64
  8229. const m_NAME_MAX = 255
  8230. const m_NGROUPS_MAX = 1023
  8231. const m_NL_ARGMAX = 4096
  8232. const m_NL_LANGMAX = 31
  8233. const m_NL_MSGMAX = 32767
  8234. const m_NL_NMAX = 1
  8235. const m_NL_SETMAX = 255
  8236. const m_NL_TEXTMAX = 2048
  8237. const m_OFF_MAX = "__OFF_MAX"
  8238. const m_OFF_MIN = "__OFF_MIN"
  8239. const m_OPEN_MAX = 64
  8240. const m_PASS_MAX = 128
  8241. const m_PATH_MAX = 1024
  8242. const m_PIPE_BUF = 512
  8243. const m_QUAD_MAX = "__QUAD_MAX"
  8244. const m_QUAD_MIN = "__QUAD_MIN"
  8245. const m_RE_DUP_MAX = 255
  8246. const m_SCHAR_MAX = "__SCHAR_MAX"
  8247. const m_SCHAR_MIN = "__SCHAR_MIN"
  8248. const m_SHRT_MAX = "__SHRT_MAX"
  8249. const m_SHRT_MIN = "__SHRT_MIN"
  8250. const m_SIZE_T_MAX = "__SIZE_T_MAX"
  8251. const m_SSIZE_MAX = "__SSIZE_MAX"
  8252. const m_UCHAR_MAX = "__UCHAR_MAX"
  8253. const m_UID_MAX = "UINT_MAX"
  8254. const m_UINT_MAX = "__UINT_MAX"
  8255. const m_ULLONG_MAX = "__ULLONG_MAX"
  8256. const m_ULONG_MAX = "__ULONG_MAX"
  8257. const m_UQUAD_MAX = "__UQUAD_MAX"
  8258. const m_USHRT_MAX = "__USHRT_MAX"
  8259. const m_WORD_BIT = "__WORD_BIT"
  8260. const m__POSIX2_BC_BASE_MAX = 99
  8261. const m__POSIX2_BC_DIM_MAX = 2048
  8262. const m__POSIX2_BC_SCALE_MAX = 99
  8263. const m__POSIX2_BC_STRING_MAX = 1000
  8264. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  8265. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  8266. const m__POSIX2_EQUIV_CLASS_MAX = 2
  8267. const m__POSIX2_EXPR_NEST_MAX = 32
  8268. const m__POSIX2_LINE_MAX = 2048
  8269. const m__POSIX2_RE_DUP_MAX = 255
  8270. const m__POSIX_AIO_LISTIO_MAX = 2
  8271. const m__POSIX_AIO_MAX = 1
  8272. const m__POSIX_ARG_MAX = 4096
  8273. const m__POSIX_CHILD_MAX = 25
  8274. const m__POSIX_CLOCKRES_MIN = 20000000
  8275. const m__POSIX_DELAYTIMER_MAX = 32
  8276. const m__POSIX_HOST_NAME_MAX = 255
  8277. const m__POSIX_LINK_MAX = 8
  8278. const m__POSIX_LOGIN_NAME_MAX = 9
  8279. const m__POSIX_MAX_CANON = 255
  8280. const m__POSIX_MAX_INPUT = 255
  8281. const m__POSIX_MQ_OPEN_MAX = 8
  8282. const m__POSIX_MQ_PRIO_MAX = 32
  8283. const m__POSIX_NAME_MAX = 14
  8284. const m__POSIX_NGROUPS_MAX = 8
  8285. const m__POSIX_OPEN_MAX = 20
  8286. const m__POSIX_PATH_MAX = 256
  8287. const m__POSIX_PIPE_BUF = 512
  8288. const m__POSIX_RE_DUP_MAX = "_POSIX2_RE_DUP_MAX"
  8289. const m__POSIX_RTSIG_MAX = 8
  8290. const m__POSIX_SEM_NSEMS_MAX = 256
  8291. const m__POSIX_SEM_VALUE_MAX = 32767
  8292. const m__POSIX_SIGQUEUE_MAX = 32
  8293. const m__POSIX_SSIZE_MAX = 32767
  8294. const m__POSIX_SS_REPL_MAX = 4
  8295. const m__POSIX_STREAM_MAX = 8
  8296. const m__POSIX_SYMLINK_MAX = 255
  8297. const m__POSIX_SYMLOOP_MAX = 8
  8298. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  8299. const m__POSIX_THREAD_KEYS_MAX = 128
  8300. const m__POSIX_THREAD_THREADS_MAX = 64
  8301. const m__POSIX_TIMER_MAX = 32
  8302. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  8303. const m__POSIX_TRACE_NAME_MAX = 8
  8304. const m__POSIX_TRACE_SYS_MAX = 8
  8305. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  8306. const m__POSIX_TTY_NAME_MAX = 9
  8307. const m__POSIX_TZNAME_MAX = 6
  8308. const m__XOPEN_IOV_MAX = 16
  8309. const m__XOPEN_NAME_MAX = 255
  8310. const m__XOPEN_PATH_MAX = 1024
  8311. const m___INT_MAX1 = 2147483647
  8312. /*
  8313. * Xlib uses long for 32-bit values. Xrender uses int. This
  8314. * matters on alpha. Note that this macro assumes that int is 32 bits
  8315. * except on WORD64 machines where it is 64 bits.
  8316. */
  8317. /*-
  8318. * SPDX-License-Identifier: BSD-3-Clause
  8319. *
  8320. * Copyright (c) 1988, 1993
  8321. * The Regents of the University of California. All rights reserved.
  8322. *
  8323. * Redistribution and use in source and binary forms, with or without
  8324. * modification, are permitted provided that the following conditions
  8325. * are met:
  8326. * 1. Redistributions of source code must retain the above copyright
  8327. * notice, this list of conditions and the following disclaimer.
  8328. * 2. Redistributions in binary form must reproduce the above copyright
  8329. * notice, this list of conditions and the following disclaimer in the
  8330. * documentation and/or other materials provided with the distribution.
  8331. * 3. Neither the name of the University nor the names of its contributors
  8332. * may be used to endorse or promote products derived from this software
  8333. * without specific prior written permission.
  8334. *
  8335. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8336. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8337. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8338. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8339. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8340. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8341. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8342. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8343. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8344. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8345. * SUCH DAMAGE.
  8346. *
  8347. * @(#)limits.h 8.2 (Berkeley) 1/4/94
  8348. */
  8349. /*-
  8350. * SPDX-License-Identifier: BSD-3-Clause
  8351. *
  8352. * Copyright (c) 1991, 1993
  8353. * The Regents of the University of California. All rights reserved.
  8354. *
  8355. * This code is derived from software contributed to Berkeley by
  8356. * Berkeley Software Design, Inc.
  8357. *
  8358. * Redistribution and use in source and binary forms, with or without
  8359. * modification, are permitted provided that the following conditions
  8360. * are met:
  8361. * 1. Redistributions of source code must retain the above copyright
  8362. * notice, this list of conditions and the following disclaimer.
  8363. * 2. Redistributions in binary form must reproduce the above copyright
  8364. * notice, this list of conditions and the following disclaimer in the
  8365. * documentation and/or other materials provided with the distribution.
  8366. * 3. Neither the name of the University nor the names of its contributors
  8367. * may be used to endorse or promote products derived from this software
  8368. * without specific prior written permission.
  8369. *
  8370. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8371. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8372. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8373. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8374. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8375. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8376. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8377. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8378. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8379. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8380. * SUCH DAMAGE.
  8381. *
  8382. * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  8383. */
  8384. /*-
  8385. * SPDX-License-Identifier: BSD-3-Clause
  8386. *
  8387. * Copyright (c) 1988, 1993
  8388. * The Regents of the University of California. All rights reserved.
  8389. *
  8390. * Redistribution and use in source and binary forms, with or without
  8391. * modification, are permitted provided that the following conditions
  8392. * are met:
  8393. * 1. Redistributions of source code must retain the above copyright
  8394. * notice, this list of conditions and the following disclaimer.
  8395. * 2. Redistributions in binary form must reproduce the above copyright
  8396. * notice, this list of conditions and the following disclaimer in the
  8397. * documentation and/or other materials provided with the distribution.
  8398. * 3. Neither the name of the University nor the names of its contributors
  8399. * may be used to endorse or promote products derived from this software
  8400. * without specific prior written permission.
  8401. *
  8402. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8403. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8404. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8405. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8406. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8407. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8408. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8409. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8410. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8411. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8412. * SUCH DAMAGE.
  8413. */
  8414. /*-
  8415. * SPDX-License-Identifier: BSD-3-Clause
  8416. *
  8417. * Copyright (c) 1991, 1993
  8418. * The Regents of the University of California. All rights reserved.
  8419. *
  8420. * This code is derived from software contributed to Berkeley by
  8421. * Berkeley Software Design, Inc.
  8422. *
  8423. * Redistribution and use in source and binary forms, with or without
  8424. * modification, are permitted provided that the following conditions
  8425. * are met:
  8426. * 1. Redistributions of source code must retain the above copyright
  8427. * notice, this list of conditions and the following disclaimer.
  8428. * 2. Redistributions in binary form must reproduce the above copyright
  8429. * notice, this list of conditions and the following disclaimer in the
  8430. * documentation and/or other materials provided with the distribution.
  8431. * 3. Neither the name of the University nor the names of its contributors
  8432. * may be used to endorse or promote products derived from this software
  8433. * without specific prior written permission.
  8434. *
  8435. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8436. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8437. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8438. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8439. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8440. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8441. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8442. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8443. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8444. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8445. * SUCH DAMAGE.
  8446. *
  8447. * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  8448. */
  8449. /*-
  8450. * This file is in the public domain.
  8451. */
  8452. /*-
  8453. * SPDX-License-Identifier: BSD-3-Clause
  8454. *
  8455. * Copyright (c) 1988, 1993
  8456. * The Regents of the University of California. All rights reserved.
  8457. *
  8458. * Redistribution and use in source and binary forms, with or without
  8459. * modification, are permitted provided that the following conditions
  8460. * are met:
  8461. * 1. Redistributions of source code must retain the above copyright
  8462. * notice, this list of conditions and the following disclaimer.
  8463. * 2. Redistributions in binary form must reproduce the above copyright
  8464. * notice, this list of conditions and the following disclaimer in the
  8465. * documentation and/or other materials provided with the distribution.
  8466. * 3. Neither the name of the University nor the names of its contributors
  8467. * may be used to endorse or promote products derived from this software
  8468. * without specific prior written permission.
  8469. *
  8470. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8471. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8472. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8473. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8474. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8475. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8476. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8477. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8478. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8479. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8480. * SUCH DAMAGE.
  8481. *
  8482. * @(#)limits.h 8.3 (Berkeley) 1/4/94
  8483. */
  8484. /*-
  8485. * SPDX-License-Identifier: BSD-3-Clause
  8486. *
  8487. * Copyright (c) 1988, 1993
  8488. * The Regents of the University of California. All rights reserved.
  8489. *
  8490. * Redistribution and use in source and binary forms, with or without
  8491. * modification, are permitted provided that the following conditions
  8492. * are met:
  8493. * 1. Redistributions of source code must retain the above copyright
  8494. * notice, this list of conditions and the following disclaimer.
  8495. * 2. Redistributions in binary form must reproduce the above copyright
  8496. * notice, this list of conditions and the following disclaimer in the
  8497. * documentation and/or other materials provided with the distribution.
  8498. * 3. Neither the name of the University nor the names of its contributors
  8499. * may be used to endorse or promote products derived from this software
  8500. * without specific prior written permission.
  8501. *
  8502. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  8503. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  8504. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  8505. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  8506. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  8507. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  8508. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  8509. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  8510. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  8511. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  8512. * SUCH DAMAGE.
  8513. *
  8514. * @(#)syslimits.h 8.1 (Berkeley) 6/2/93
  8515. */
  8516. /*
  8517. * Do not add any new variables here. (See the comment at the end of
  8518. * the file for why.)
  8519. */
  8520. /*
  8521. * We leave the following values undefined to force applications to either
  8522. * assume conservative values or call sysconf() to get the current value.
  8523. *
  8524. * HOST_NAME_MAX
  8525. *
  8526. * (We should do this for most of the values currently defined here,
  8527. * but many programs are not prepared to deal with this yet.)
  8528. */
  8529. func XXRenderQueryFilters(tls *libc.TLS, dpy uintptr, drawable TDrawable) (r uintptr) {
  8530. bp := tls.Alloc(48)
  8531. defer tls.Free(48)
  8532. var filters, info, name, req, xri uintptr
  8533. var i, l int32
  8534. var nbytes, nbytesAlias, nbytesName, reply_left uint64
  8535. var _ /* len at bp+32 */ int8
  8536. var _ /* rep at bp+0 */ TxRenderQueryFiltersReply
  8537. _, _, _, _, _, _, _, _, _, _, _ = filters, i, info, l, name, nbytes, nbytesAlias, nbytesName, reply_left, req, xri
  8538. info = XXRenderFindDisplay(tls, dpy)
  8539. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8540. return libc.UintptrFromInt32(0)
  8541. }
  8542. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  8543. return libc.UintptrFromInt32(0)
  8544. }
  8545. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  8546. if (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version < int32(6) {
  8547. return libc.UintptrFromInt32(0)
  8548. }
  8549. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8550. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8551. }
  8552. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryFilters), uint64(m_sz_xRenderQueryFiltersReq))
  8553. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8554. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryFilters)
  8555. (*TxRenderQueryFiltersReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  8556. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  8557. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8558. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8559. }
  8560. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8561. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8562. }
  8563. return libc.UintptrFromInt32(0)
  8564. }
  8565. /*
  8566. * Limit each component of combined size to 1/4 the max, which is far
  8567. * more than they should ever possibly need.
  8568. */
  8569. if (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m___INT_MAX1)>>libc.Int32FromInt32(2)) && uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX1)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(8) && uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX1)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(2) {
  8570. /*
  8571. * Compute total number of bytes for filter names
  8572. */
  8573. nbytes = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength) << int32(2)
  8574. nbytesAlias = uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases * uint32(2))
  8575. if (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases&uint32(1) != 0 {
  8576. nbytesAlias += uint64(2)
  8577. }
  8578. nbytesName = nbytes - nbytesAlias
  8579. /*
  8580. * Allocate one giant block for the whole data structure
  8581. */
  8582. filters = libc.Xmalloc(tls, libc.Uint64FromInt64(32)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*libc.Uint64FromInt64(8)+uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*libc.Uint64FromInt64(2)+nbytesName)
  8583. } else {
  8584. filters = libc.UintptrFromInt32(0)
  8585. }
  8586. if !(filters != 0) {
  8587. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength))
  8588. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8589. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8590. }
  8591. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8592. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8593. }
  8594. return libc.UintptrFromInt32(0)
  8595. }
  8596. /*
  8597. * Layout:
  8598. * XFilters
  8599. * numFilters char * pointers to filter names
  8600. * numAliases short alias values
  8601. * nbytesName char strings
  8602. */
  8603. (*TXFilters)(unsafe.Pointer(filters)).Fnfilter = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)
  8604. (*TXFilters)(unsafe.Pointer(filters)).Fnalias = libc.Int32FromUint32((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8605. (*TXFilters)(unsafe.Pointer(filters)).Ffilter = filters + libc.UintptrFromInt32(1)*32
  8606. (*TXFilters)(unsafe.Pointer(filters)).Falias = (*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters)*8
  8607. name = (*TXFilters)(unsafe.Pointer(filters)).Falias + uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2
  8608. /*
  8609. * Read the filter aliases
  8610. */
  8611. libx11.X_XReadPad(tls, dpy, (*TXFilters)(unsafe.Pointer(filters)).Falias, libc.Int64FromUint32(libc.Uint32FromInt32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases))
  8612. reply_left = uint64(uint32(8) + (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).Flength - uint32(2)*(*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)
  8613. /*
  8614. * Read the filter names
  8615. */
  8616. i = 0
  8617. for {
  8618. if !(libc.Uint32FromInt32(i) < (*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumFilters) {
  8619. break
  8620. }
  8621. libx11.X_XRead(tls, dpy, bp+32, int64(1))
  8622. reply_left--
  8623. l = int32(*(*int8)(unsafe.Pointer(bp + 32))) & int32(0xff)
  8624. if libc.Uint64FromInt32(l)+uint64(1) > nbytesName {
  8625. libx11.X_XEatDataWords(tls, dpy, reply_left)
  8626. libc.Xfree(tls, filters)
  8627. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8628. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8629. }
  8630. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8631. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8632. }
  8633. return libc.UintptrFromInt32(0)
  8634. }
  8635. nbytesName -= libc.Uint64FromInt32(l + int32(1))
  8636. *(*uintptr)(unsafe.Pointer((*TXFilters)(unsafe.Pointer(filters)).Ffilter + uintptr(i)*8)) = name
  8637. libx11.X_XRead(tls, dpy, name, int64(l))
  8638. reply_left -= libc.Uint64FromInt32(l)
  8639. *(*int8)(unsafe.Pointer(name + uintptr(l))) = int8('\000')
  8640. name += uintptr(l + int32(1))
  8641. goto _1
  8642. _1:
  8643. ;
  8644. i++
  8645. }
  8646. i = int32(int64(name) - int64((*TXFilters)(unsafe.Pointer(filters)).Falias+uintptr((*(*TxRenderQueryFiltersReply)(unsafe.Pointer(bp))).FnumAliases)*2))
  8647. if i&int32(3) != 0 {
  8648. libx11.X_XEatData(tls, dpy, libc.Uint64FromInt32(int32(4)-i&int32(3)))
  8649. }
  8650. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8651. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8652. }
  8653. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8654. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8655. }
  8656. return filters
  8657. }
  8658. func XXRenderSetPictureFilter(tls *libc.TLS, dpy uintptr, picture TPicture, filter uintptr, params uintptr, nparams int32) {
  8659. var info, req, p1 uintptr
  8660. var nbytes int32
  8661. _, _, _, _ = info, nbytes, req, p1
  8662. info = XXRenderFindDisplay(tls, dpy)
  8663. nbytes = libc.Int32FromUint64(libc.Xstrlen(tls, filter))
  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_RenderSetPictureFilter), uint64(m_sz_xRenderSetPictureFilterReq))
  8671. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8672. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureFilter)
  8673. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  8674. (*TxRenderSetPictureFilterReq)(unsafe.Pointer(req)).Fnbytes = libc.Uint16FromInt32(nbytes)
  8675. p1 = req + 2
  8676. *(*TCARD16)(unsafe.Pointer(p1)) = TCARD16(int32(*(*TCARD16)(unsafe.Pointer(p1))) + ((nbytes+libc.Int32FromInt32(3))>>libc.Int32FromInt32(2) + nparams))
  8677. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8678. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, filter, libc.Uint64FromInt32(nbytes))
  8679. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nbytes+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  8680. } else {
  8681. libx11.X_XSend(tls, dpy, filter, int64(nbytes))
  8682. }
  8683. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nparams<<libc.Int32FromInt32(2)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8684. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, params, libc.Uint64FromInt32(nparams<<libc.Int32FromInt32(2)))
  8685. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nparams<<libc.Int32FromInt32(2)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  8686. } else {
  8687. libx11.X_XSend(tls, dpy, params, int64(nparams<<libc.Int32FromInt32(2)))
  8688. }
  8689. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8690. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8691. }
  8692. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8693. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8694. }
  8695. }
  8696. const m___INT_MAX2 = 0x7fffffff
  8697. /*
  8698. * Xlib uses long for 32-bit values. Xrender uses int. This
  8699. * matters on alpha. Note that this macro assumes that int is 32 bits
  8700. * except on WORD64 machines where it is 64 bits.
  8701. */
  8702. func XXRenderCreateGlyphSet(tls *libc.TLS, dpy uintptr, format uintptr) (r TGlyphSet) {
  8703. var gsid, v1 TGlyphSet
  8704. var info, req uintptr
  8705. _, _, _, _ = gsid, info, req, v1
  8706. info = XXRenderFindDisplay(tls, dpy)
  8707. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8708. return uint64(0)
  8709. }
  8710. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8711. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8712. }
  8713. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateGlyphSet), uint64(m_sz_xRenderCreateGlyphSetReq))
  8714. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8715. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateGlyphSet)
  8716. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8717. Fext_data uintptr
  8718. Fprivate1 uintptr
  8719. Ffd int32
  8720. Fprivate2 int32
  8721. Fproto_major_version int32
  8722. Fproto_minor_version int32
  8723. Fvendor uintptr
  8724. Fprivate3 TXID
  8725. Fprivate4 TXID
  8726. Fprivate5 TXID
  8727. Fprivate6 int32
  8728. Fresource_alloc uintptr
  8729. Fbyte_order int32
  8730. Fbitmap_unit int32
  8731. Fbitmap_pad int32
  8732. Fbitmap_bit_order int32
  8733. Fnformats int32
  8734. Fpixmap_format uintptr
  8735. Fprivate8 int32
  8736. Frelease int32
  8737. Fprivate9 uintptr
  8738. Fprivate10 uintptr
  8739. Fqlen int32
  8740. Flast_request_read uint64
  8741. Frequest uint64
  8742. Fprivate11 TXPointer
  8743. Fprivate12 TXPointer
  8744. Fprivate13 TXPointer
  8745. Fprivate14 TXPointer
  8746. Fmax_request_size uint32
  8747. Fdb uintptr
  8748. Fprivate15 uintptr
  8749. Fdisplay_name uintptr
  8750. Fdefault_screen int32
  8751. Fnscreens int32
  8752. Fscreens uintptr
  8753. Fmotion_buffer uint64
  8754. Fprivate16 uint64
  8755. Fmin_keycode int32
  8756. Fmax_keycode int32
  8757. Fprivate17 TXPointer
  8758. Fprivate18 TXPointer
  8759. Fprivate19 int32
  8760. Fxdefaults uintptr
  8761. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8762. gsid = v1
  8763. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8764. (*TxRenderCreateGlyphSetReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  8765. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8766. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8767. }
  8768. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8769. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8770. }
  8771. return gsid
  8772. }
  8773. func XXRenderReferenceGlyphSet(tls *libc.TLS, dpy uintptr, existing TGlyphSet) (r TGlyphSet) {
  8774. var gsid, v1 TGlyphSet
  8775. var info, req uintptr
  8776. _, _, _, _ = gsid, info, req, v1
  8777. info = XXRenderFindDisplay(tls, dpy)
  8778. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8779. return uint64(0)
  8780. }
  8781. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8782. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8783. }
  8784. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderReferenceGlyphSet), uint64(m_sz_xRenderReferenceGlyphSetReq))
  8785. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8786. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderReferenceGlyphSet)
  8787. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  8788. Fext_data uintptr
  8789. Fprivate1 uintptr
  8790. Ffd int32
  8791. Fprivate2 int32
  8792. Fproto_major_version int32
  8793. Fproto_minor_version int32
  8794. Fvendor uintptr
  8795. Fprivate3 TXID
  8796. Fprivate4 TXID
  8797. Fprivate5 TXID
  8798. Fprivate6 int32
  8799. Fresource_alloc uintptr
  8800. Fbyte_order int32
  8801. Fbitmap_unit int32
  8802. Fbitmap_pad int32
  8803. Fbitmap_bit_order int32
  8804. Fnformats int32
  8805. Fpixmap_format uintptr
  8806. Fprivate8 int32
  8807. Frelease int32
  8808. Fprivate9 uintptr
  8809. Fprivate10 uintptr
  8810. Fqlen int32
  8811. Flast_request_read uint64
  8812. Frequest uint64
  8813. Fprivate11 TXPointer
  8814. Fprivate12 TXPointer
  8815. Fprivate13 TXPointer
  8816. Fprivate14 TXPointer
  8817. Fmax_request_size uint32
  8818. Fdb uintptr
  8819. Fprivate15 uintptr
  8820. Fdisplay_name uintptr
  8821. Fdefault_screen int32
  8822. Fnscreens int32
  8823. Fscreens uintptr
  8824. Fmotion_buffer uint64
  8825. Fprivate16 uint64
  8826. Fmin_keycode int32
  8827. Fmax_keycode int32
  8828. Fprivate17 TXPointer
  8829. Fprivate18 TXPointer
  8830. Fprivate19 int32
  8831. Fxdefaults uintptr
  8832. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  8833. gsid = v1
  8834. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fgsid = uint32(v1)
  8835. (*TxRenderReferenceGlyphSetReq)(unsafe.Pointer(req)).Fexisting = uint32(existing)
  8836. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8837. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8838. }
  8839. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8840. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8841. }
  8842. return gsid
  8843. }
  8844. func XXRenderFreeGlyphSet(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet) {
  8845. var info, req uintptr
  8846. _, _ = info, req
  8847. info = XXRenderFindDisplay(tls, dpy)
  8848. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8849. return
  8850. }
  8851. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8852. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8853. }
  8854. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphSet), uint64(m_sz_xRenderFreeGlyphSetReq))
  8855. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8856. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphSet)
  8857. (*TxRenderFreeGlyphSetReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8858. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8859. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8860. }
  8861. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8862. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8863. }
  8864. }
  8865. func XXRenderAddGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, glyphs uintptr, nglyphs int32, images uintptr, nbyte_images int32) {
  8866. bp := tls.Alloc(16)
  8867. defer tls.Free(16)
  8868. var _BRlen TCARD32
  8869. var info, req uintptr
  8870. var len1 int64
  8871. var _ /* _BRdat at bp+0 */ TCARD64
  8872. _, _, _, _ = _BRlen, info, len1, req
  8873. info = XXRenderFindDisplay(tls, dpy)
  8874. if nbyte_images&int32(3) != 0 {
  8875. nbyte_images += int32(4) - nbyte_images&int32(3)
  8876. }
  8877. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8878. return
  8879. }
  8880. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8881. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8882. }
  8883. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderAddGlyphs), uint64(m_sz_xRenderAddGlyphsReq))
  8884. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8885. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderAddGlyphs)
  8886. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8887. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Fnglyphs = libc.Uint32FromInt32(nglyphs)
  8888. len1 = int64((nglyphs*(libc.Int32FromInt32(m_sz_xGlyphInfo)+libc.Int32FromInt32(4)) + nbyte_images) >> int32(2))
  8889. if libc.Int64FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8890. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8891. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  8892. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8893. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8894. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8895. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  8896. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  8897. } else {
  8898. len1 = len1
  8899. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) + len1)
  8900. }
  8901. } else {
  8902. (*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderAddGlyphsReq)(unsafe.Pointer(req)).Flength) + len1)
  8903. }
  8904. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt32(nglyphs*libc.Int32FromInt32(4)))
  8905. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8906. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, glyphs, libc.Uint64FromInt32(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8907. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  8908. } else {
  8909. libx11.X_XSend(tls, dpy, glyphs, int64(nglyphs*libc.Int32FromInt32(m_sz_xGlyphInfo)))
  8910. }
  8911. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbyte_images) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  8912. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, images, libc.Uint64FromInt32(nbyte_images))
  8913. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nbyte_images+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  8914. } else {
  8915. libx11.X_XSend(tls, dpy, images, int64(nbyte_images))
  8916. }
  8917. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8918. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8919. }
  8920. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8921. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8922. }
  8923. }
  8924. func XXRenderFreeGlyphs(tls *libc.TLS, dpy uintptr, glyphset TGlyphSet, gids uintptr, nglyphs int32) {
  8925. bp := tls.Alloc(16)
  8926. defer tls.Free(16)
  8927. var _BRlen TCARD32
  8928. var info, req uintptr
  8929. var len1 int64
  8930. var _ /* _BRdat at bp+0 */ TCARD64
  8931. _, _, _, _ = _BRlen, info, len1, req
  8932. info = XXRenderFindDisplay(tls, dpy)
  8933. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8934. return
  8935. }
  8936. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8937. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8938. }
  8939. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreeGlyphs), uint64(m_sz_xRenderFreeGlyphsReq))
  8940. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8941. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreeGlyphs)
  8942. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8943. len1 = int64(nglyphs)
  8944. if libc.Int64FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  8945. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  8946. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  8947. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  8948. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  8949. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  8950. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  8951. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  8952. } else {
  8953. len1 = len1
  8954. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) + len1)
  8955. }
  8956. } else {
  8957. (*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderFreeGlyphsReq)(unsafe.Pointer(req)).Flength) + len1)
  8958. }
  8959. len1 <<= int64(2)
  8960. libx11.X_XData32(tls, dpy, gids, libc.Uint32FromInt64(len1))
  8961. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8962. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  8963. }
  8964. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  8965. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  8966. }
  8967. }
  8968. 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) {
  8969. var elt, info, req, p2 uintptr
  8970. var len1 int64
  8971. var nbytes int32
  8972. var v1 uint64
  8973. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  8974. info = XXRenderFindDisplay(tls, dpy)
  8975. if !(nchar != 0) {
  8976. return
  8977. }
  8978. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  8979. return
  8980. }
  8981. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  8982. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  8983. }
  8984. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  8985. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  8986. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  8987. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  8988. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  8989. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  8990. if maskFormat != 0 {
  8991. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  8992. } else {
  8993. v1 = uint64(0)
  8994. }
  8995. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  8996. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  8997. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  8998. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  8999. /*
  9000. * xGlyphElt must be aligned on a 32-bit boundary; this is
  9001. * easily done by filling no more than 252 glyphs in each
  9002. * bucket
  9003. */
  9004. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(252)-int32(1))/int32(252)) + nchar)
  9005. p2 = req + 2
  9006. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  9007. /*
  9008. * If the entire request does not fit into the remaining space in the
  9009. * buffer, flush the buffer first.
  9010. */
  9011. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9012. libx11.X_XFlush(tls, dpy)
  9013. }
  9014. for nchar > int32(252) {
  9015. nbytes = libc.Int32FromInt32(252) + libc.Int32FromInt32(m_sz_xGlyphElt)
  9016. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9017. libx11.X_XFlush(tls, dpy)
  9018. }
  9019. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9020. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9021. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9022. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(252)
  9023. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9024. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9025. xDst = 0
  9026. yDst = 0
  9027. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, uint64(252))
  9028. nchar = nchar - int32(252)
  9029. string1 += uintptr(252)
  9030. }
  9031. if nchar != 0 {
  9032. nbytes = (nchar + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  9033. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9034. libx11.X_XFlush(tls, dpy)
  9035. }
  9036. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9037. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9038. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9039. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  9040. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9041. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9042. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar))
  9043. }
  9044. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9045. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9046. }
  9047. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9048. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9049. }
  9050. }
  9051. 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) {
  9052. var elt, info, req, p2 uintptr
  9053. var len1 int64
  9054. var nbytes int32
  9055. var v1 uint64
  9056. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  9057. info = XXRenderFindDisplay(tls, dpy)
  9058. if !(nchar != 0) {
  9059. return
  9060. }
  9061. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9062. return
  9063. }
  9064. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9065. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9066. }
  9067. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  9068. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9069. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  9070. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9071. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9072. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9073. if maskFormat != 0 {
  9074. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9075. } else {
  9076. v1 = uint64(0)
  9077. }
  9078. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9079. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  9080. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9081. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9082. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(2))
  9083. p2 = req + 2
  9084. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  9085. /*
  9086. * If the entire request does not fit into the remaining space in the
  9087. * buffer, flush the buffer first.
  9088. */
  9089. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9090. libx11.X_XFlush(tls, dpy)
  9091. }
  9092. for nchar > int32(254) {
  9093. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(2) + libc.Int32FromInt32(m_sz_xGlyphElt)
  9094. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9095. libx11.X_XFlush(tls, dpy)
  9096. }
  9097. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9098. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9099. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9100. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  9101. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9102. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9103. xDst = 0
  9104. yDst = 0
  9105. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(2)))
  9106. nchar = nchar - int32(254)
  9107. string1 += uintptr(254) * 2
  9108. }
  9109. if nchar != 0 {
  9110. nbytes = (nchar*int32(2) + int32(m_sz_xGlyphElt) + int32(3)) & ^libc.Int32FromInt32(3)
  9111. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9112. libx11.X_XFlush(tls, dpy)
  9113. }
  9114. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9115. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9116. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9117. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  9118. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9119. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9120. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(2)))
  9121. }
  9122. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9123. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9124. }
  9125. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9126. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9127. }
  9128. }
  9129. 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) {
  9130. var elt, info, req, p2 uintptr
  9131. var len1 int64
  9132. var nbytes int32
  9133. var v1 uint64
  9134. _, _, _, _, _, _, _ = elt, info, len1, nbytes, req, v1, p2
  9135. info = XXRenderFindDisplay(tls, dpy)
  9136. if !(nchar != 0) {
  9137. return
  9138. }
  9139. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9140. return
  9141. }
  9142. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9143. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9144. }
  9145. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  9146. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9147. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  9148. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9149. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9150. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9151. if maskFormat != 0 {
  9152. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9153. } else {
  9154. v1 = uint64(0)
  9155. }
  9156. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9157. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32(glyphset)
  9158. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9159. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9160. len1 = int64(int32(m_sz_xGlyphElt)*((nchar+int32(254)-int32(1))/int32(254)) + nchar*int32(4))
  9161. p2 = req + 2
  9162. *(*TCARD16)(unsafe.Pointer(p2)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p2))) + (len1+libc.Int64FromInt32(3))>>libc.Int32FromInt32(2)) /* convert to number of 32-bit words */
  9163. /*
  9164. * If the entire request does not fit into the remaining space in the
  9165. * buffer, flush the buffer first.
  9166. */
  9167. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9168. libx11.X_XFlush(tls, dpy)
  9169. }
  9170. for nchar > int32(254) {
  9171. nbytes = libc.Int32FromInt32(254)*libc.Int32FromInt32(4) + libc.Int32FromInt32(m_sz_xGlyphElt)
  9172. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9173. libx11.X_XFlush(tls, dpy)
  9174. }
  9175. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9176. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9177. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9178. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(254)
  9179. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9180. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9181. xDst = 0
  9182. yDst = 0
  9183. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(libc.Int32FromInt32(254)*libc.Int32FromInt32(4)))
  9184. nchar = nchar - int32(254)
  9185. string1 += uintptr(254) * 4
  9186. }
  9187. if nchar != 0 {
  9188. nbytes = nchar*int32(4) + int32(m_sz_xGlyphElt)
  9189. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nbytes) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9190. libx11.X_XFlush(tls, dpy)
  9191. }
  9192. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9193. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(nbytes))
  9194. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(nbytes)
  9195. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(nchar)
  9196. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9197. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9198. libc.Xmemcpy(tls, elt+libc.UintptrFromInt32(1)*8, string1, libc.Uint64FromInt32(nchar*int32(4)))
  9199. }
  9200. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9201. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9202. }
  9203. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9204. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9205. }
  9206. }
  9207. 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) {
  9208. bp := tls.Alloc(16)
  9209. defer tls.Free(16)
  9210. var chars, elt, info, req, p3 uintptr
  9211. var elen, len1 int64
  9212. var i, nchars, this_chars, v5 int32
  9213. var v1 uint64
  9214. var _ /* glyphset at bp+0 */ TGlyphSet
  9215. _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_chars, v1, v5, p3
  9216. info = XXRenderFindDisplay(tls, dpy)
  9217. if !(nelt != 0) {
  9218. return
  9219. }
  9220. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9221. return
  9222. }
  9223. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9224. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9225. }
  9226. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs8), uint64(m_sz_xRenderCompositeGlyphs8Req))
  9227. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9228. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs8)
  9229. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9230. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9231. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9232. if maskFormat != 0 {
  9233. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9234. } else {
  9235. v1 = uint64(0)
  9236. }
  9237. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9238. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset)
  9239. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9240. (*TxRenderCompositeGlyphs8Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9241. /*
  9242. * Compute the space necessary
  9243. */
  9244. len1 = 0
  9245. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  9246. i = 0
  9247. for {
  9248. if !(i < nelt) {
  9249. break
  9250. }
  9251. /*
  9252. * Check for glyphset change
  9253. */
  9254. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9255. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9256. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  9257. }
  9258. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9259. /*
  9260. * xGlyphElt must be aligned on a 32-bit boundary; this is
  9261. * easily done by filling no more than 252 glyphs in each
  9262. * bucket
  9263. */
  9264. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(252)-int32(1))/int32(252)) + nchars)
  9265. len1 += (elen + int64(3)) >> int32(2)
  9266. goto _2
  9267. _2:
  9268. ;
  9269. i++
  9270. }
  9271. p3 = req + 2
  9272. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9273. /*
  9274. * Send the glyphs
  9275. */
  9276. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts))).Fglyphset
  9277. i = 0
  9278. for {
  9279. if !(i < nelt) {
  9280. break
  9281. }
  9282. /*
  9283. * Switch glyphsets
  9284. */
  9285. if (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9286. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9287. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9288. libx11.X_XFlush(tls, dpy)
  9289. }
  9290. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9291. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9292. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9293. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9294. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9295. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9296. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  9297. }
  9298. nchars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9299. xDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9300. yDst = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9301. chars = (*(*TXGlyphElt8)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9302. for nchars != 0 {
  9303. if nchars > int32(252) {
  9304. v5 = int32(252)
  9305. } else {
  9306. v5 = nchars
  9307. }
  9308. this_chars = v5
  9309. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9310. libx11.X_XFlush(tls, dpy)
  9311. }
  9312. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9313. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9314. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9315. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9316. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9317. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9318. xDst = 0
  9319. yDst = 0
  9320. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_chars) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9321. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_chars))
  9322. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(this_chars+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  9323. } else {
  9324. libx11.X_XSend(tls, dpy, chars, int64(this_chars))
  9325. }
  9326. nchars -= this_chars
  9327. chars += uintptr(this_chars)
  9328. }
  9329. goto _4
  9330. _4:
  9331. ;
  9332. i++
  9333. }
  9334. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9335. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9336. }
  9337. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9338. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9339. }
  9340. }
  9341. 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) {
  9342. bp := tls.Alloc(16)
  9343. defer tls.Free(16)
  9344. var chars, elt, info, req, p3 uintptr
  9345. var elen, len1 int64
  9346. var i, nchars, this_bytes, this_chars, v5 int32
  9347. var v1 uint64
  9348. var _ /* glyphset at bp+0 */ TGlyphSet
  9349. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  9350. info = XXRenderFindDisplay(tls, dpy)
  9351. if !(nelt != 0) {
  9352. return
  9353. }
  9354. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9355. return
  9356. }
  9357. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9358. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9359. }
  9360. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs16), uint64(m_sz_xRenderCompositeGlyphs16Req))
  9361. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9362. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs16)
  9363. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9364. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9365. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9366. if maskFormat != 0 {
  9367. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9368. } else {
  9369. v1 = uint64(0)
  9370. }
  9371. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9372. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset)
  9373. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9374. (*TxRenderCompositeGlyphs16Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9375. /*
  9376. * Compute the space necessary
  9377. */
  9378. len1 = 0
  9379. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  9380. i = 0
  9381. for {
  9382. if !(i < nelt) {
  9383. break
  9384. }
  9385. /*
  9386. * Check for glyphset change
  9387. */
  9388. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9389. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9390. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  9391. }
  9392. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9393. /*
  9394. * xGlyphElt must be aligned on a 32-bit boundary; this is
  9395. * easily done by filling no more than 254 glyphs in each
  9396. * bucket
  9397. */
  9398. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(2))
  9399. len1 += (elen + int64(3)) >> int32(2)
  9400. goto _2
  9401. _2:
  9402. ;
  9403. i++
  9404. }
  9405. p3 = req + 2
  9406. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9407. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts))).Fglyphset
  9408. i = 0
  9409. for {
  9410. if !(i < nelt) {
  9411. break
  9412. }
  9413. /*
  9414. * Switch glyphsets
  9415. */
  9416. if (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9417. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9418. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9419. libx11.X_XFlush(tls, dpy)
  9420. }
  9421. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9422. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9423. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9424. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9425. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9426. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9427. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  9428. }
  9429. nchars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9430. xDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9431. yDst = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9432. chars = (*(*TXGlyphElt16)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9433. for nchars != 0 {
  9434. if nchars > int32(254) {
  9435. v5 = int32(254)
  9436. } else {
  9437. v5 = nchars
  9438. }
  9439. this_chars = v5
  9440. this_bytes = this_chars * int32(2)
  9441. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9442. libx11.X_XFlush(tls, dpy)
  9443. }
  9444. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9445. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9446. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9447. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9448. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9449. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9450. xDst = 0
  9451. yDst = 0
  9452. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9453. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  9454. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(this_bytes+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  9455. } else {
  9456. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  9457. }
  9458. nchars -= this_chars
  9459. chars += uintptr(this_chars) * 2
  9460. }
  9461. goto _4
  9462. _4:
  9463. ;
  9464. i++
  9465. }
  9466. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9467. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9468. }
  9469. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9470. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9471. }
  9472. }
  9473. 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) {
  9474. bp := tls.Alloc(16)
  9475. defer tls.Free(16)
  9476. var chars, elt, info, req, p3 uintptr
  9477. var elen, len1 int64
  9478. var i, nchars, this_bytes, this_chars, v5 int32
  9479. var v1 uint64
  9480. var _ /* glyphset at bp+0 */ TGlyphSet
  9481. _, _, _, _, _, _, _, _, _, _, _, _, _ = chars, elen, elt, i, info, len1, nchars, req, this_bytes, this_chars, v1, v5, p3
  9482. info = XXRenderFindDisplay(tls, dpy)
  9483. if !(nelt != 0) {
  9484. return
  9485. }
  9486. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9487. return
  9488. }
  9489. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9490. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9491. }
  9492. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCompositeGlyphs32), uint64(m_sz_xRenderCompositeGlyphs32Req))
  9493. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9494. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCompositeGlyphs32)
  9495. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  9496. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fsrc = uint32(src)
  9497. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fdst = uint32(dst)
  9498. if maskFormat != 0 {
  9499. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  9500. } else {
  9501. v1 = uint64(0)
  9502. }
  9503. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  9504. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).Fglyphset = uint32((*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset)
  9505. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  9506. (*TxRenderCompositeGlyphs32Req)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  9507. /*
  9508. * Compute the space necessary
  9509. */
  9510. len1 = 0
  9511. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9512. i = 0
  9513. for {
  9514. if !(i < nelt) {
  9515. break
  9516. }
  9517. /*
  9518. * Check for glyphset change
  9519. */
  9520. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9521. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9522. len1 += int64((libc.Int32FromInt32(m_sz_xGlyphElt) + libc.Int32FromInt32(4)) >> libc.Int32FromInt32(2))
  9523. }
  9524. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9525. elen = int64(int32(m_sz_xGlyphElt)*((nchars+int32(254)-int32(1))/int32(254)) + nchars*int32(4))
  9526. len1 += (elen + int64(3)) >> int32(2)
  9527. goto _2
  9528. _2:
  9529. ;
  9530. i++
  9531. }
  9532. p3 = req + 2
  9533. *(*TCARD16)(unsafe.Pointer(p3)) = TCARD16(int64(*(*TCARD16)(unsafe.Pointer(p3))) + len1)
  9534. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts))).Fglyphset
  9535. i = 0
  9536. for {
  9537. if !(i < nelt) {
  9538. break
  9539. }
  9540. /*
  9541. * Switch glyphsets
  9542. */
  9543. if (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset != *(*TGlyphSet)(unsafe.Pointer(bp)) {
  9544. *(*TGlyphSet)(unsafe.Pointer(bp)) = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fglyphset
  9545. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9546. libx11.X_XFlush(tls, dpy)
  9547. }
  9548. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9549. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9550. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9551. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = uint8(0xff)
  9552. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = 0
  9553. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = 0
  9554. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  9555. }
  9556. nchars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fnchars
  9557. xDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FxOff
  9558. yDst = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).FyOff
  9559. chars = (*(*TXGlyphElt32)(unsafe.Pointer(elts + uintptr(i)*32))).Fchars
  9560. for nchars != 0 {
  9561. if nchars > int32(254) {
  9562. v5 = int32(254)
  9563. } else {
  9564. v5 = nchars
  9565. }
  9566. this_chars = v5
  9567. this_bytes = this_chars * int32(4)
  9568. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(libc.Int32FromInt32(m_sz_xGlyphElt)) > (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9569. libx11.X_XFlush(tls, dpy)
  9570. }
  9571. elt = (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr
  9572. libc.Xmemset(tls, elt, int32('\000'), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xGlyphElt)))
  9573. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Int32FromInt32(m_sz_xGlyphElt))
  9574. (*TxGlyphElt)(unsafe.Pointer(elt)).Flen1 = libc.Uint8FromInt32(this_chars)
  9575. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltax = int16(xDst)
  9576. (*TxGlyphElt)(unsafe.Pointer(elt)).Fdeltay = int16(yDst)
  9577. xDst = 0
  9578. yDst = 0
  9579. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(this_bytes) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9580. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, chars, libc.Uint64FromInt32(this_bytes))
  9581. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(this_bytes+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  9582. } else {
  9583. libx11.X_XSend(tls, dpy, chars, int64(this_bytes))
  9584. }
  9585. nchars -= this_chars
  9586. chars += uintptr(this_chars) * 4
  9587. }
  9588. goto _4
  9589. _4:
  9590. ;
  9591. i++
  9592. }
  9593. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9594. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9595. }
  9596. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9597. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9598. }
  9599. }
  9600. const m_FALSE = 0
  9601. const m_MAXSHORT = 32767
  9602. const m_NUMPTSTOBUFFER = 200
  9603. const m_TRUE = 1
  9604. type T_XRegion = struct {
  9605. Fsize int64
  9606. FnumRects int64
  9607. Frects uintptr
  9608. Fextents TBOX
  9609. }
  9610. type TBox = struct {
  9611. Fx1 int16
  9612. Fx2 int16
  9613. Fy1 int16
  9614. Fy2 int16
  9615. }
  9616. type TBOX = struct {
  9617. Fx1 int16
  9618. Fx2 int16
  9619. Fy1 int16
  9620. Fy2 int16
  9621. }
  9622. type TBoxRec = struct {
  9623. Fx1 int16
  9624. Fx2 int16
  9625. Fy1 int16
  9626. Fy2 int16
  9627. }
  9628. type TBoxPtr = uintptr
  9629. type TRECTANGLE = struct {
  9630. Fx int16
  9631. Fy int16
  9632. Fwidth int16
  9633. Fheight int16
  9634. }
  9635. type TRectangleRec = struct {
  9636. Fx int16
  9637. Fy int16
  9638. Fwidth int16
  9639. Fheight int16
  9640. }
  9641. type TRectanglePtr = uintptr
  9642. type TREGION = struct {
  9643. Fsize int64
  9644. FnumRects int64
  9645. Frects uintptr
  9646. Fextents TBOX
  9647. }
  9648. type TPOINTBLOCK = struct {
  9649. Fpts [200]TXPoint
  9650. Fnext uintptr
  9651. }
  9652. type T_POINTBLOCK = TPOINTBLOCK
  9653. func __XRenderProcessPictureAttributes(tls *libc.TLS, dpy uintptr, req uintptr, valuemask uint64, attributes uintptr) {
  9654. bp := tls.Alloc(256)
  9655. defer tls.Free(256)
  9656. var nvalues, v15 uint32
  9657. var value, v1, v10, v11, v12, v13, v2, v3, v4, v5, v6, v7, v8, v9, p14 uintptr
  9658. var _ /* values at bp+0 */ [32]uint64
  9659. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = nvalues, value, v1, v10, v11, v12, v13, v15, v2, v3, v4, v5, v6, v7, v8, v9, p14
  9660. value = bp
  9661. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  9662. v1 = value
  9663. value += 8
  9664. *(*uint64)(unsafe.Pointer(v1)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Frepeat)
  9665. }
  9666. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  9667. v2 = value
  9668. value += 8
  9669. *(*uint64)(unsafe.Pointer(v2)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_map
  9670. }
  9671. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  9672. v3 = value
  9673. value += 8
  9674. *(*uint64)(unsafe.Pointer(v3)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_x_origin)
  9675. }
  9676. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  9677. v4 = value
  9678. value += 8
  9679. *(*uint64)(unsafe.Pointer(v4)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Falpha_y_origin)
  9680. }
  9681. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  9682. v5 = value
  9683. value += 8
  9684. *(*uint64)(unsafe.Pointer(v5)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_x_origin)
  9685. }
  9686. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  9687. v6 = value
  9688. value += 8
  9689. *(*uint64)(unsafe.Pointer(v6)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_y_origin)
  9690. }
  9691. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  9692. v7 = value
  9693. value += 8
  9694. *(*uint64)(unsafe.Pointer(v7)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fclip_mask
  9695. }
  9696. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  9697. v8 = value
  9698. value += 8
  9699. *(*uint64)(unsafe.Pointer(v8)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fgraphics_exposures)
  9700. }
  9701. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  9702. v9 = value
  9703. value += 8
  9704. *(*uint64)(unsafe.Pointer(v9)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fsubwindow_mode)
  9705. }
  9706. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  9707. v10 = value
  9708. value += 8
  9709. *(*uint64)(unsafe.Pointer(v10)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_edge)
  9710. }
  9711. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  9712. v11 = value
  9713. value += 8
  9714. *(*uint64)(unsafe.Pointer(v11)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fpoly_mode)
  9715. }
  9716. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  9717. v12 = value
  9718. value += 8
  9719. *(*uint64)(unsafe.Pointer(v12)) = (*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fdither
  9720. }
  9721. if valuemask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(12)) != 0 {
  9722. v13 = value
  9723. value += 8
  9724. *(*uint64)(unsafe.Pointer(v13)) = libc.Uint64FromInt32((*TXRenderPictureAttributes)(unsafe.Pointer(attributes)).Fcomponent_alpha)
  9725. }
  9726. p14 = req + 2
  9727. v15 = libc.Uint32FromInt64((int64(value) - t__predefined_ptrdiff_t(bp)) / 8)
  9728. nvalues = v15
  9729. *(*TCARD16)(unsafe.Pointer(p14)) = TCARD16(uint32(*(*TCARD16)(unsafe.Pointer(p14))) + v15)
  9730. nvalues <<= uint32(2) /* watch out for macros... */
  9731. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt64(libc.Int64FromUint32(nvalues)))
  9732. }
  9733. func XXRenderCreatePicture(tls *libc.TLS, dpy uintptr, drawable TDrawable, format uintptr, valuemask uint64, attributes uintptr) (r TPicture) {
  9734. var info, req uintptr
  9735. var pid, v1 TPicture
  9736. var v2 TCARD32
  9737. _, _, _, _, _ = info, pid, req, v1, v2
  9738. info = XXRenderFindDisplay(tls, dpy)
  9739. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9740. return uint64(0)
  9741. }
  9742. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9743. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9744. }
  9745. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreatePicture), uint64(m_sz_xRenderCreatePictureReq))
  9746. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9747. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreatePicture)
  9748. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  9749. Fext_data uintptr
  9750. Fprivate1 uintptr
  9751. Ffd int32
  9752. Fprivate2 int32
  9753. Fproto_major_version int32
  9754. Fproto_minor_version int32
  9755. Fvendor uintptr
  9756. Fprivate3 TXID
  9757. Fprivate4 TXID
  9758. Fprivate5 TXID
  9759. Fprivate6 int32
  9760. Fresource_alloc uintptr
  9761. Fbyte_order int32
  9762. Fbitmap_unit int32
  9763. Fbitmap_pad int32
  9764. Fbitmap_bit_order int32
  9765. Fnformats int32
  9766. Fpixmap_format uintptr
  9767. Fprivate8 int32
  9768. Frelease int32
  9769. Fprivate9 uintptr
  9770. Fprivate10 uintptr
  9771. Fqlen int32
  9772. Flast_request_read uint64
  9773. Frequest uint64
  9774. Fprivate11 TXPointer
  9775. Fprivate12 TXPointer
  9776. Fprivate13 TXPointer
  9777. Fprivate14 TXPointer
  9778. Fmax_request_size uint32
  9779. Fdb uintptr
  9780. Fprivate15 uintptr
  9781. Fdisplay_name uintptr
  9782. Fdefault_screen int32
  9783. Fnscreens int32
  9784. Fscreens uintptr
  9785. Fmotion_buffer uint64
  9786. Fprivate16 uint64
  9787. Fmin_keycode int32
  9788. Fmax_keycode int32
  9789. Fprivate17 TXPointer
  9790. Fprivate18 TXPointer
  9791. Fprivate19 int32
  9792. Fxdefaults uintptr
  9793. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  9794. pid = v1
  9795. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  9796. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fdrawable = uint32(drawable)
  9797. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  9798. v2 = uint32(valuemask)
  9799. (*TxRenderCreatePictureReq)(unsafe.Pointer(req)).Fmask = v2
  9800. if v2 != 0 {
  9801. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9802. }
  9803. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9804. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9805. }
  9806. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9807. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9808. }
  9809. return pid
  9810. }
  9811. func XXRenderChangePicture(tls *libc.TLS, dpy uintptr, picture TPicture, valuemask uint64, attributes uintptr) {
  9812. var info, req uintptr
  9813. _, _ = info, req
  9814. info = XXRenderFindDisplay(tls, dpy)
  9815. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9816. return
  9817. }
  9818. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9819. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9820. }
  9821. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderChangePicture), uint64(m_sz_xRenderChangePictureReq))
  9822. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9823. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderChangePicture)
  9824. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9825. (*TxRenderChangePictureReq)(unsafe.Pointer(req)).Fmask = uint32(valuemask)
  9826. __XRenderProcessPictureAttributes(tls, dpy, req, valuemask, attributes)
  9827. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9828. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9829. }
  9830. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9831. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9832. }
  9833. }
  9834. func __XRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, info uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9835. bp := tls.Alloc(16)
  9836. defer tls.Free(16)
  9837. var _BRlen TCARD32
  9838. var len1 int64
  9839. var req uintptr
  9840. var _ /* _BRdat at bp+0 */ TCARD64
  9841. _, _, _ = _BRlen, len1, req
  9842. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureClipRectangles), uint64(m_sz_xRenderSetPictureClipRectanglesReq))
  9843. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9844. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureClipRectangles)
  9845. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9846. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FxOrigin = int16(xOrigin)
  9847. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).FyOrigin = int16(yOrigin)
  9848. len1 = int64(n) << int32(1)
  9849. if libc.Int64FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  9850. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  9851. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  9852. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  9853. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  9854. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  9855. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  9856. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  9857. } else {
  9858. len1 = int64(1)
  9859. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) + len1)
  9860. }
  9861. } else {
  9862. (*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderSetPictureClipRectanglesReq)(unsafe.Pointer(req)).Flength) + len1)
  9863. }
  9864. len1 <<= int64(2)
  9865. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  9866. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, rects, libc.Uint64FromInt64(len1))
  9867. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  9868. } else {
  9869. libx11.X_XSend(tls, dpy, rects, len1)
  9870. }
  9871. }
  9872. func XXRenderSetPictureClipRectangles(tls *libc.TLS, dpy uintptr, picture TPicture, xOrigin int32, yOrigin int32, rects uintptr, n int32) {
  9873. var info uintptr
  9874. _ = info
  9875. info = XXRenderFindDisplay(tls, dpy)
  9876. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9877. return
  9878. }
  9879. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9880. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9881. }
  9882. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, xOrigin, yOrigin, rects, n)
  9883. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9884. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9885. }
  9886. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9887. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9888. }
  9889. }
  9890. func XXRenderSetPictureClipRegion(tls *libc.TLS, dpy uintptr, picture TPicture, r TRegion) {
  9891. var i, v3 int32
  9892. var info, pb, pr, xr, v1 uintptr
  9893. var total uint64
  9894. _, _, _, _, _, _, _, _ = i, info, pb, pr, total, xr, v1, v3
  9895. info = XXRenderFindDisplay(tls, dpy)
  9896. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9897. return
  9898. }
  9899. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9900. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9901. }
  9902. total = libc.Uint64FromInt64((*T_XRegion)(unsafe.Pointer(r)).FnumRects) * uint64(8)
  9903. v1 = libx11.X_XAllocTemp(tls, dpy, total)
  9904. xr = v1
  9905. if v1 != 0 {
  9906. pr = xr
  9907. pb = (*T_XRegion)(unsafe.Pointer(r)).Frects
  9908. i = int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects)
  9909. for {
  9910. i--
  9911. v3 = i
  9912. if !(v3 >= 0) {
  9913. break
  9914. }
  9915. (*TXRectangle)(unsafe.Pointer(pr)).Fx = (*TBOX)(unsafe.Pointer(pb)).Fx1
  9916. (*TXRectangle)(unsafe.Pointer(pr)).Fy = (*TBOX)(unsafe.Pointer(pb)).Fy1
  9917. (*TXRectangle)(unsafe.Pointer(pr)).Fwidth = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fx2) - int32((*TBOX)(unsafe.Pointer(pb)).Fx1))
  9918. (*TXRectangle)(unsafe.Pointer(pr)).Fheight = libc.Uint16FromInt32(int32((*TBOX)(unsafe.Pointer(pb)).Fy2) - int32((*TBOX)(unsafe.Pointer(pb)).Fy1))
  9919. goto _2
  9920. _2:
  9921. ;
  9922. pr += 8
  9923. pb += 8
  9924. }
  9925. }
  9926. if xr != 0 || !((*T_XRegion)(unsafe.Pointer(r)).FnumRects != 0) {
  9927. __XRenderSetPictureClipRectangles(tls, dpy, info, picture, 0, 0, xr, int32((*T_XRegion)(unsafe.Pointer(r)).FnumRects))
  9928. }
  9929. if xr != 0 {
  9930. libx11.X_XFreeTemp(tls, dpy, xr, total)
  9931. }
  9932. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9933. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9934. }
  9935. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9936. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9937. }
  9938. }
  9939. func XXRenderSetPictureTransform(tls *libc.TLS, dpy uintptr, picture TPicture, transform uintptr) {
  9940. var info, req uintptr
  9941. _, _ = info, req
  9942. info = XXRenderFindDisplay(tls, dpy)
  9943. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9944. return
  9945. }
  9946. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9947. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9948. }
  9949. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderSetPictureTransform), uint64(m_sz_xRenderSetPictureTransformReq))
  9950. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9951. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderSetPictureTransform)
  9952. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9953. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix11 = *(*TXFixed)(unsafe.Pointer(transform))
  9954. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix12 = *(*TXFixed)(unsafe.Pointer(transform + 1*4))
  9955. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix13 = *(*TXFixed)(unsafe.Pointer(transform + 2*4))
  9956. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix21 = *(*TXFixed)(unsafe.Pointer(transform + 1*12))
  9957. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix22 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 1*4))
  9958. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix23 = *(*TXFixed)(unsafe.Pointer(transform + 1*12 + 2*4))
  9959. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix31 = *(*TXFixed)(unsafe.Pointer(transform + 2*12))
  9960. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix32 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 1*4))
  9961. (*TxRenderSetPictureTransformReq)(unsafe.Pointer(req)).Ftransform.Fmatrix33 = *(*TXFixed)(unsafe.Pointer(transform + 2*12 + 2*4))
  9962. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9963. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9964. }
  9965. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9966. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9967. }
  9968. }
  9969. func XXRenderFreePicture(tls *libc.TLS, dpy uintptr, picture TPicture) {
  9970. var info, req uintptr
  9971. _, _ = info, req
  9972. info = XXRenderFindDisplay(tls, dpy)
  9973. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9974. return
  9975. }
  9976. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9977. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  9978. }
  9979. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderFreePicture), uint64(m_sz_xRenderFreePictureReq))
  9980. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  9981. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderFreePicture)
  9982. (*TxRenderFreePictureReq)(unsafe.Pointer(req)).Fpicture = uint32(picture)
  9983. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9984. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  9985. }
  9986. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  9987. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  9988. }
  9989. }
  9990. func XXRenderCreateSolidFill(tls *libc.TLS, dpy uintptr, color uintptr) (r TPicture) {
  9991. var info, req uintptr
  9992. var pid, v1 TPicture
  9993. _, _, _, _ = info, pid, req, v1
  9994. info = XXRenderFindDisplay(tls, dpy)
  9995. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  9996. return uint64(0)
  9997. }
  9998. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  9999. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10000. }
  10001. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateSolidFill), uint64(m_sz_xRenderCreateSolidFillReq))
  10002. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10003. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateSolidFill)
  10004. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  10005. Fext_data uintptr
  10006. Fprivate1 uintptr
  10007. Ffd int32
  10008. Fprivate2 int32
  10009. Fproto_major_version int32
  10010. Fproto_minor_version int32
  10011. Fvendor uintptr
  10012. Fprivate3 TXID
  10013. Fprivate4 TXID
  10014. Fprivate5 TXID
  10015. Fprivate6 int32
  10016. Fresource_alloc uintptr
  10017. Fbyte_order int32
  10018. Fbitmap_unit int32
  10019. Fbitmap_pad int32
  10020. Fbitmap_bit_order int32
  10021. Fnformats int32
  10022. Fpixmap_format uintptr
  10023. Fprivate8 int32
  10024. Frelease int32
  10025. Fprivate9 uintptr
  10026. Fprivate10 uintptr
  10027. Fqlen int32
  10028. Flast_request_read uint64
  10029. Frequest uint64
  10030. Fprivate11 TXPointer
  10031. Fprivate12 TXPointer
  10032. Fprivate13 TXPointer
  10033. Fprivate14 TXPointer
  10034. Fmax_request_size uint32
  10035. Fdb uintptr
  10036. Fprivate15 uintptr
  10037. Fdisplay_name uintptr
  10038. Fdefault_screen int32
  10039. Fnscreens int32
  10040. Fscreens uintptr
  10041. Fmotion_buffer uint64
  10042. Fprivate16 uint64
  10043. Fmin_keycode int32
  10044. Fmax_keycode int32
  10045. Fprivate17 TXPointer
  10046. Fprivate18 TXPointer
  10047. Fprivate19 int32
  10048. Fxdefaults uintptr
  10049. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  10050. pid = v1
  10051. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  10052. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fred = (*TXRenderColor)(unsafe.Pointer(color)).Fred
  10053. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fgreen = (*TXRenderColor)(unsafe.Pointer(color)).Fgreen
  10054. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Fblue = (*TXRenderColor)(unsafe.Pointer(color)).Fblue
  10055. (*TxRenderCreateSolidFillReq)(unsafe.Pointer(req)).Fcolor.Falpha = (*TXRenderColor)(unsafe.Pointer(color)).Falpha
  10056. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10057. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10058. }
  10059. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10060. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10061. }
  10062. return pid
  10063. }
  10064. func XXRenderCreateLinearGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  10065. bp := tls.Alloc(16)
  10066. defer tls.Free(16)
  10067. var _BRlen TCARD32
  10068. var info, req uintptr
  10069. var len1 int64
  10070. var pid, v1 TPicture
  10071. var _ /* _BRdat at bp+0 */ TCARD64
  10072. _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1
  10073. info = XXRenderFindDisplay(tls, dpy)
  10074. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10075. return uint64(0)
  10076. }
  10077. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10078. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10079. }
  10080. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateLinearGradient), uint64(m_sz_xRenderCreateLinearGradientReq))
  10081. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10082. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateLinearGradient)
  10083. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  10084. Fext_data uintptr
  10085. Fprivate1 uintptr
  10086. Ffd int32
  10087. Fprivate2 int32
  10088. Fproto_major_version int32
  10089. Fproto_minor_version int32
  10090. Fvendor uintptr
  10091. Fprivate3 TXID
  10092. Fprivate4 TXID
  10093. Fprivate5 TXID
  10094. Fprivate6 int32
  10095. Fresource_alloc uintptr
  10096. Fbyte_order int32
  10097. Fbitmap_unit int32
  10098. Fbitmap_pad int32
  10099. Fbitmap_bit_order int32
  10100. Fnformats int32
  10101. Fpixmap_format uintptr
  10102. Fprivate8 int32
  10103. Frelease int32
  10104. Fprivate9 uintptr
  10105. Fprivate10 uintptr
  10106. Fqlen int32
  10107. Flast_request_read uint64
  10108. Frequest uint64
  10109. Fprivate11 TXPointer
  10110. Fprivate12 TXPointer
  10111. Fprivate13 TXPointer
  10112. Fprivate14 TXPointer
  10113. Fmax_request_size uint32
  10114. Fdb uintptr
  10115. Fprivate15 uintptr
  10116. Fdisplay_name uintptr
  10117. Fdefault_screen int32
  10118. Fnscreens int32
  10119. Fscreens uintptr
  10120. Fmotion_buffer uint64
  10121. Fprivate16 uint64
  10122. Fmin_keycode int32
  10123. Fmax_keycode int32
  10124. Fprivate17 TXPointer
  10125. Fprivate18 TXPointer
  10126. Fprivate19 int32
  10127. Fxdefaults uintptr
  10128. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  10129. pid = v1
  10130. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  10131. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fx
  10132. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp1.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp1.Fy
  10133. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fx = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fx
  10134. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Fp2.Fy = (*TXLinearGradient)(unsafe.Pointer(gradient)).Fp2.Fy
  10135. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  10136. len1 = int64(nStops) * int64(3)
  10137. if libc.Int64FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10138. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10139. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10140. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10141. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10142. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10143. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10144. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10145. } else {
  10146. len1 = int64(6)
  10147. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10148. }
  10149. } else {
  10150. (*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateLinearGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10151. }
  10152. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10153. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  10154. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10155. } else {
  10156. libx11.X_XSend(tls, dpy, stops, int64(nStops*libc.Int32FromInt32(4)))
  10157. }
  10158. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10159. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  10160. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10161. } else {
  10162. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  10163. }
  10164. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10165. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10166. }
  10167. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10168. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10169. }
  10170. return pid
  10171. }
  10172. func XXRenderCreateRadialGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  10173. bp := tls.Alloc(16)
  10174. defer tls.Free(16)
  10175. var _BRlen TCARD32
  10176. var info, req uintptr
  10177. var len1 int64
  10178. var pid, v1 TPicture
  10179. var _ /* _BRdat at bp+0 */ TCARD64
  10180. _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1
  10181. info = XXRenderFindDisplay(tls, dpy)
  10182. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10183. return uint64(0)
  10184. }
  10185. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10186. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10187. }
  10188. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateRadialGradient), uint64(m_sz_xRenderCreateRadialGradientReq))
  10189. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10190. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateRadialGradient)
  10191. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  10192. Fext_data uintptr
  10193. Fprivate1 uintptr
  10194. Ffd int32
  10195. Fprivate2 int32
  10196. Fproto_major_version int32
  10197. Fproto_minor_version int32
  10198. Fvendor uintptr
  10199. Fprivate3 TXID
  10200. Fprivate4 TXID
  10201. Fprivate5 TXID
  10202. Fprivate6 int32
  10203. Fresource_alloc uintptr
  10204. Fbyte_order int32
  10205. Fbitmap_unit int32
  10206. Fbitmap_pad int32
  10207. Fbitmap_bit_order int32
  10208. Fnformats int32
  10209. Fpixmap_format uintptr
  10210. Fprivate8 int32
  10211. Frelease int32
  10212. Fprivate9 uintptr
  10213. Fprivate10 uintptr
  10214. Fqlen int32
  10215. Flast_request_read uint64
  10216. Frequest uint64
  10217. Fprivate11 TXPointer
  10218. Fprivate12 TXPointer
  10219. Fprivate13 TXPointer
  10220. Fprivate14 TXPointer
  10221. Fmax_request_size uint32
  10222. Fdb uintptr
  10223. Fprivate15 uintptr
  10224. Fdisplay_name uintptr
  10225. Fdefault_screen int32
  10226. Fnscreens int32
  10227. Fscreens uintptr
  10228. Fmotion_buffer uint64
  10229. Fprivate16 uint64
  10230. Fmin_keycode int32
  10231. Fmax_keycode int32
  10232. Fprivate17 TXPointer
  10233. Fprivate18 TXPointer
  10234. Fprivate19 int32
  10235. Fxdefaults uintptr
  10236. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  10237. pid = v1
  10238. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  10239. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fx
  10240. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fy
  10241. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fx = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fx
  10242. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter.Fy = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fy
  10243. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Finner_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Finner.Fradius
  10244. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Fouter_radius = (*TXRadialGradient)(unsafe.Pointer(gradient)).Fouter.Fradius
  10245. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  10246. len1 = int64(nStops) * int64(3)
  10247. if libc.Int64FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10248. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10249. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10250. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10251. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10252. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10253. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10254. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10255. } else {
  10256. len1 = int64(6)
  10257. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10258. }
  10259. } else {
  10260. (*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateRadialGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10261. }
  10262. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10263. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  10264. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10265. } else {
  10266. libx11.X_XSend(tls, dpy, stops, int64(nStops*libc.Int32FromInt32(4)))
  10267. }
  10268. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10269. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  10270. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10271. } else {
  10272. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  10273. }
  10274. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10275. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10276. }
  10277. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10278. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10279. }
  10280. return pid
  10281. }
  10282. func XXRenderCreateConicalGradient(tls *libc.TLS, dpy uintptr, gradient uintptr, stops uintptr, colors uintptr, nStops int32) (r TPicture) {
  10283. bp := tls.Alloc(16)
  10284. defer tls.Free(16)
  10285. var _BRlen TCARD32
  10286. var info, req uintptr
  10287. var len1 int64
  10288. var pid, v1 TPicture
  10289. var _ /* _BRdat at bp+0 */ TCARD64
  10290. _, _, _, _, _, _ = _BRlen, info, len1, pid, req, v1
  10291. info = XXRenderFindDisplay(tls, dpy)
  10292. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10293. return uint64(0)
  10294. }
  10295. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10296. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10297. }
  10298. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderCreateConicalGradient), uint64(m_sz_xRenderCreateConicalGradientReq))
  10299. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10300. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderCreateConicalGradient)
  10301. v1 = (*(*func(*libc.TLS, uintptr) TXID)(unsafe.Pointer(&struct{ uintptr }{(*struct {
  10302. Fext_data uintptr
  10303. Fprivate1 uintptr
  10304. Ffd int32
  10305. Fprivate2 int32
  10306. Fproto_major_version int32
  10307. Fproto_minor_version int32
  10308. Fvendor uintptr
  10309. Fprivate3 TXID
  10310. Fprivate4 TXID
  10311. Fprivate5 TXID
  10312. Fprivate6 int32
  10313. Fresource_alloc uintptr
  10314. Fbyte_order int32
  10315. Fbitmap_unit int32
  10316. Fbitmap_pad int32
  10317. Fbitmap_bit_order int32
  10318. Fnformats int32
  10319. Fpixmap_format uintptr
  10320. Fprivate8 int32
  10321. Frelease int32
  10322. Fprivate9 uintptr
  10323. Fprivate10 uintptr
  10324. Fqlen int32
  10325. Flast_request_read uint64
  10326. Frequest uint64
  10327. Fprivate11 TXPointer
  10328. Fprivate12 TXPointer
  10329. Fprivate13 TXPointer
  10330. Fprivate14 TXPointer
  10331. Fmax_request_size uint32
  10332. Fdb uintptr
  10333. Fprivate15 uintptr
  10334. Fdisplay_name uintptr
  10335. Fdefault_screen int32
  10336. Fnscreens int32
  10337. Fscreens uintptr
  10338. Fmotion_buffer uint64
  10339. Fprivate16 uint64
  10340. Fmin_keycode int32
  10341. Fmax_keycode int32
  10342. Fprivate17 TXPointer
  10343. Fprivate18 TXPointer
  10344. Fprivate19 int32
  10345. Fxdefaults uintptr
  10346. })(unsafe.Pointer(dpy)).Fresource_alloc})))(tls, dpy)
  10347. pid = v1
  10348. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fpid = uint32(v1)
  10349. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fx = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fx
  10350. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fcenter.Fy = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fcenter.Fy
  10351. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Fangle = (*TXConicalGradient)(unsafe.Pointer(gradient)).Fangle
  10352. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).FnStops = libc.Uint32FromInt32(nStops)
  10353. len1 = int64(nStops) * int64(3)
  10354. if libc.Int64FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10355. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10356. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10357. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10358. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10359. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10360. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10361. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10362. } else {
  10363. len1 = int64(6)
  10364. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10365. }
  10366. } else {
  10367. (*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderCreateConicalGradientReq)(unsafe.Pointer(req)).Flength) + len1)
  10368. }
  10369. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(4)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10370. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, stops, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)))
  10371. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(4)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10372. } else {
  10373. libx11.X_XSend(tls, dpy, stops, int64(nStops*libc.Int32FromInt32(4)))
  10374. }
  10375. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(nStops*libc.Int32FromInt32(8)) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10376. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, colors, libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)))
  10377. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt32(nStops*libc.Int32FromInt32(8)+libc.Int32FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10378. } else {
  10379. libx11.X_XSend(tls, dpy, colors, int64(nStops*libc.Int32FromInt32(8)))
  10380. }
  10381. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10382. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10383. }
  10384. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10385. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10386. }
  10387. return pid
  10388. }
  10389. /*
  10390. * Xlib uses long for 32-bit values. Xrender uses int. This
  10391. * matters on alpha. Note that this macro assumes that int is 32 bits
  10392. * except on WORD64 machines where it is 64 bits.
  10393. */
  10394. type TEdge = struct {
  10395. Fedge TXLineFixed
  10396. Fcurrent_x TXFixed
  10397. FclockWise int32
  10398. Fnext uintptr
  10399. Fprev uintptr
  10400. }
  10401. /*
  10402. * Xlib uses long for 32-bit values. Xrender uses int. This
  10403. * matters on alpha. Note that this macro assumes that int is 32 bits
  10404. * except on WORD64 machines where it is 64 bits.
  10405. */
  10406. type T_Edge = TEdge
  10407. func _CompareEdge(tls *libc.TLS, o1 uintptr, o2 uintptr) (r int32) {
  10408. var e1, e2 uintptr
  10409. _, _ = e1, e2
  10410. e1 = o1
  10411. e2 = o2
  10412. return (*TEdge)(unsafe.Pointer(e1)).Fedge.Fp1.Fy - (*TEdge)(unsafe.Pointer(e2)).Fedge.Fp1.Fy
  10413. }
  10414. func _XRenderComputeX(tls *libc.TLS, line uintptr, y TXFixed) (r TXFixed) {
  10415. var dx, dy TXFixed
  10416. var ex float64
  10417. _, _, _ = dx, dy, ex
  10418. dx = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fx - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx
  10419. ex = float64(float64(y-(*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy) * float64(dx))
  10420. dy = (*TXLineFixed)(unsafe.Pointer(line)).Fp2.Fy - (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fy
  10421. return (*TXLineFixed)(unsafe.Pointer(line)).Fp1.Fx + int32(ex/float64(dy))
  10422. }
  10423. func _XRenderComputeInverseSlope(tls *libc.TLS, l uintptr) (r float64) {
  10424. 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))
  10425. }
  10426. func _XRenderComputeXIntercept(tls *libc.TLS, l uintptr, inverse_slope float64) (r float64) {
  10427. return float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fx)/libc.Float64FromInt32(65536) - TXDouble(inverse_slope*(float64((*TXLineFixed)(unsafe.Pointer(l)).Fp1.Fy)/libc.Float64FromInt32(65536)))
  10428. }
  10429. func _XRenderComputeIntersect(tls *libc.TLS, l1 uintptr, l2 uintptr) (r TXFixed) {
  10430. var b1, b2, m1, m2 float64
  10431. _, _, _, _ = b1, b2, m1, m2
  10432. /*
  10433. * x = m1y + b1
  10434. * x = m2y + b2
  10435. * m1y + b1 = m2y + b2
  10436. * y * (m1 - m2) = b2 - b1
  10437. * y = (b2 - b1) / (m1 - m2)
  10438. */
  10439. m1 = _XRenderComputeInverseSlope(tls, l1)
  10440. b1 = _XRenderComputeXIntercept(tls, l1, m1)
  10441. m2 = _XRenderComputeInverseSlope(tls, l2)
  10442. b2 = _XRenderComputeXIntercept(tls, l2, m2)
  10443. return int32(float64((b2 - b1) / (m1 - m2) * libc.Float64FromInt32(65536)))
  10444. }
  10445. func _XRenderComputeTrapezoids(tls *libc.TLS, edges uintptr, nedges int32, winding int32, traps uintptr) (r int32) {
  10446. var active, e, en, next, v6 uintptr
  10447. var inactive, ntraps int32
  10448. var intersect, next_y, y TXFixed
  10449. var v7 bool
  10450. _, _, _, _, _, _, _, _, _, _, _ = active, e, en, inactive, intersect, next, next_y, ntraps, y, v6, v7
  10451. ntraps = 0
  10452. libc.Xqsort(tls, edges, libc.Uint64FromInt32(nedges), uint64(40), __ccgo_fp(_CompareEdge))
  10453. y = (*(*TEdge)(unsafe.Pointer(edges))).Fedge.Fp1.Fy
  10454. active = libc.UintptrFromInt32(0)
  10455. inactive = 0
  10456. for active != 0 || inactive < nedges {
  10457. /* insert new active edges into list */
  10458. for inactive < nedges {
  10459. e = edges + uintptr(inactive)*40
  10460. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp1.Fy > y {
  10461. break
  10462. }
  10463. /* move this edge into the active list */
  10464. inactive++
  10465. (*TEdge)(unsafe.Pointer(e)).Fnext = active
  10466. (*TEdge)(unsafe.Pointer(e)).Fprev = libc.UintptrFromInt32(0)
  10467. if active != 0 {
  10468. (*TEdge)(unsafe.Pointer(active)).Fprev = e
  10469. }
  10470. active = e
  10471. }
  10472. /* compute x coordinates along this group */
  10473. e = active
  10474. for {
  10475. if !(e != 0) {
  10476. break
  10477. }
  10478. (*TEdge)(unsafe.Pointer(e)).Fcurrent_x = _XRenderComputeX(tls, e, y)
  10479. goto _1
  10480. _1:
  10481. ;
  10482. e = (*TEdge)(unsafe.Pointer(e)).Fnext
  10483. }
  10484. /* sort active list */
  10485. e = active
  10486. for {
  10487. if !(e != 0) {
  10488. break
  10489. }
  10490. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10491. /*
  10492. * Find one later in the list that belongs before the
  10493. * current one
  10494. */
  10495. en = next
  10496. for {
  10497. if !(en != 0) {
  10498. break
  10499. }
  10500. 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 {
  10501. /*
  10502. * insert en before e
  10503. *
  10504. * extract en
  10505. */
  10506. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(en)).Fnext
  10507. if (*TEdge)(unsafe.Pointer(en)).Fnext != 0 {
  10508. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(en)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(en)).Fprev
  10509. }
  10510. /*
  10511. * insert en
  10512. */
  10513. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10514. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = en
  10515. } else {
  10516. active = en
  10517. }
  10518. (*TEdge)(unsafe.Pointer(en)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10519. (*TEdge)(unsafe.Pointer(e)).Fprev = en
  10520. (*TEdge)(unsafe.Pointer(en)).Fnext = e
  10521. /*
  10522. * start over at en
  10523. */
  10524. next = en
  10525. break
  10526. }
  10527. goto _3
  10528. _3:
  10529. ;
  10530. en = (*TEdge)(unsafe.Pointer(en)).Fnext
  10531. }
  10532. goto _2
  10533. _2:
  10534. ;
  10535. e = next
  10536. }
  10537. /* find next inflection point */
  10538. next_y = (*TEdge)(unsafe.Pointer(active)).Fedge.Fp2.Fy
  10539. e = active
  10540. for {
  10541. if !(e != 0) {
  10542. break
  10543. }
  10544. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy < next_y {
  10545. next_y = (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy
  10546. }
  10547. en = (*TEdge)(unsafe.Pointer(e)).Fnext
  10548. /* check intersect */
  10549. if en != 0 && (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fx > (*TEdge)(unsafe.Pointer(en)).Fedge.Fp2.Fx {
  10550. intersect = _XRenderComputeIntersect(tls, e, (*TEdge)(unsafe.Pointer(e)).Fnext)
  10551. /* make sure this point is below the actual intersection */
  10552. intersect = intersect + int32(1)
  10553. if intersect < next_y {
  10554. next_y = intersect
  10555. }
  10556. }
  10557. goto _4
  10558. _4:
  10559. ;
  10560. e = en
  10561. }
  10562. /* check next inactive point */
  10563. if inactive < nedges && (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy < next_y {
  10564. next_y = (*(*TEdge)(unsafe.Pointer(edges + uintptr(inactive)*40))).Fedge.Fp1.Fy
  10565. }
  10566. /* walk the list generating trapezoids */
  10567. e = active
  10568. for {
  10569. if v7 = e != 0; v7 {
  10570. v6 = (*TEdge)(unsafe.Pointer(e)).Fnext
  10571. en = v6
  10572. }
  10573. if !(v7 && v6 != 0) {
  10574. break
  10575. }
  10576. (*TXTrapezoid)(unsafe.Pointer(traps)).Ftop = y
  10577. (*TXTrapezoid)(unsafe.Pointer(traps)).Fbottom = next_y
  10578. (*TXTrapezoid)(unsafe.Pointer(traps)).Fleft = (*TEdge)(unsafe.Pointer(e)).Fedge
  10579. (*TXTrapezoid)(unsafe.Pointer(traps)).Fright = (*TEdge)(unsafe.Pointer(en)).Fedge
  10580. traps += 40
  10581. ntraps++
  10582. goto _5
  10583. _5:
  10584. ;
  10585. e = (*TEdge)(unsafe.Pointer(en)).Fnext
  10586. }
  10587. y = next_y
  10588. /* delete inactive edges from list */
  10589. e = active
  10590. for {
  10591. if !(e != 0) {
  10592. break
  10593. }
  10594. next = (*TEdge)(unsafe.Pointer(e)).Fnext
  10595. if (*TEdge)(unsafe.Pointer(e)).Fedge.Fp2.Fy <= y {
  10596. if (*TEdge)(unsafe.Pointer(e)).Fprev != 0 {
  10597. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fprev)).Fnext = (*TEdge)(unsafe.Pointer(e)).Fnext
  10598. } else {
  10599. active = (*TEdge)(unsafe.Pointer(e)).Fnext
  10600. }
  10601. if (*TEdge)(unsafe.Pointer(e)).Fnext != 0 {
  10602. (*TEdge)(unsafe.Pointer((*TEdge)(unsafe.Pointer(e)).Fnext)).Fprev = (*TEdge)(unsafe.Pointer(e)).Fprev
  10603. }
  10604. }
  10605. goto _8
  10606. _8:
  10607. ;
  10608. e = next
  10609. }
  10610. }
  10611. return ntraps
  10612. }
  10613. 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) {
  10614. var bottom, firstx, firsty, prevx, prevy, top, x, y TXFixed
  10615. var edges, traps uintptr
  10616. var i, nedges, ntraps int32
  10617. _, _, _, _, _, _, _, _, _, _, _, _, _ = bottom, edges, firstx, firsty, i, nedges, ntraps, prevx, prevy, top, traps, x, y
  10618. prevx = 0
  10619. prevy = 0
  10620. firstx = 0
  10621. firsty = 0
  10622. top = 0
  10623. bottom = 0 /* GCCism */
  10624. edges = libc.Xmalloc(tls, libc.Uint64FromInt32(npoints)*libc.Uint64FromInt64(40)+libc.Uint64FromInt32(npoints*npoints)*libc.Uint64FromInt64(40))
  10625. if !(edges != 0) {
  10626. return
  10627. }
  10628. traps = edges + uintptr(npoints)*40
  10629. nedges = 0
  10630. i = 0
  10631. for {
  10632. if !(i <= npoints) {
  10633. break
  10634. }
  10635. if i == npoints {
  10636. x = firstx
  10637. y = firsty
  10638. } else {
  10639. x = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fx * libc.Float64FromInt32(65536)))
  10640. y = int32(TXDouble((*(*TXPointDouble)(unsafe.Pointer(fpoints + uintptr(i)*16))).Fy * libc.Float64FromInt32(65536)))
  10641. }
  10642. if i != 0 {
  10643. if y < top {
  10644. top = y
  10645. } else {
  10646. if y > bottom {
  10647. bottom = y
  10648. }
  10649. }
  10650. if prevy < y {
  10651. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = prevx
  10652. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = prevy
  10653. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = x
  10654. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = y
  10655. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = int32(m_True)
  10656. nedges++
  10657. } else {
  10658. if prevy > y {
  10659. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fx = x
  10660. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp1.Fy = y
  10661. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fx = prevx
  10662. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).Fedge.Fp2.Fy = prevy
  10663. (*(*TEdge)(unsafe.Pointer(edges + uintptr(nedges)*40))).FclockWise = m_False
  10664. nedges++
  10665. }
  10666. }
  10667. /* drop horizontal edges */
  10668. } else {
  10669. top = y
  10670. bottom = y
  10671. firstx = x
  10672. firsty = y
  10673. }
  10674. prevx = x
  10675. prevy = y
  10676. goto _1
  10677. _1:
  10678. ;
  10679. i++
  10680. }
  10681. ntraps = _XRenderComputeTrapezoids(tls, edges, nedges, winding, traps)
  10682. /* XXX adjust xSrc/xDst */
  10683. XXRenderCompositeTrapezoids(tls, dpy, op, src, dst, maskFormat, xSrc, ySrc, traps, ntraps)
  10684. libc.Xfree(tls, edges)
  10685. }
  10686. /*
  10687. * Xlib uses long for 32-bit values. Xrender uses int. This
  10688. * matters on alpha. Note that this macro assumes that int is 32 bits
  10689. * except on WORD64 machines where it is 64 bits.
  10690. */
  10691. func XXRenderCompositeTrapezoids(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, traps uintptr, ntrap int32) {
  10692. bp := tls.Alloc(16)
  10693. defer tls.Free(16)
  10694. var _BRlen TCARD32
  10695. var info, req uintptr
  10696. var len1 int64
  10697. var max_req, v1, v2 uint64
  10698. var n int32
  10699. var _ /* _BRdat at bp+0 */ TCARD64
  10700. _, _, _, _, _, _, _, _ = _BRlen, info, len1, max_req, n, req, v1, v2
  10701. info = XXRenderFindDisplay(tls, dpy)
  10702. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10703. v1 = (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size
  10704. } else {
  10705. v1 = uint64((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size)
  10706. }
  10707. max_req = v1
  10708. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10709. return
  10710. }
  10711. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10712. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10713. }
  10714. for ntrap != 0 {
  10715. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTrapezoids), uint64(m_sz_xRenderTrapezoidsReq))
  10716. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10717. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTrapezoids)
  10718. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10719. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10720. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10721. if maskFormat != 0 {
  10722. v2 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10723. } else {
  10724. v2 = uint64(0)
  10725. }
  10726. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v2)
  10727. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10728. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10729. n = ntrap
  10730. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10731. if libc.Uint64FromInt64(len1) > max_req-uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) {
  10732. n = libc.Int32FromUint64((max_req - uint64((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)) / libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2)))
  10733. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTrapezoid)>>libc.Int32FromInt32(2))
  10734. }
  10735. if libc.Int64FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10736. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10737. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10738. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10739. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10740. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10741. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10742. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10743. } else {
  10744. len1 = len1
  10745. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) + len1)
  10746. }
  10747. } else {
  10748. (*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTrapezoidsReq)(unsafe.Pointer(req)).Flength) + len1)
  10749. }
  10750. len1 <<= int64(2)
  10751. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10752. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, traps, libc.Uint64FromInt64(len1))
  10753. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10754. } else {
  10755. libx11.X_XSend(tls, dpy, traps, len1)
  10756. }
  10757. ntrap -= n
  10758. traps += uintptr(n) * 40
  10759. }
  10760. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10761. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10762. }
  10763. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10764. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10765. }
  10766. }
  10767. /*
  10768. * Xlib uses long for 32-bit values. Xrender uses int. This
  10769. * matters on alpha. Note that this macro assumes that int is 32 bits
  10770. * except on WORD64 machines where it is 64 bits.
  10771. */
  10772. func XXRenderCompositeTriangles(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, triangles uintptr, ntriangle int32) {
  10773. bp := tls.Alloc(16)
  10774. defer tls.Free(16)
  10775. var _BRlen TCARD32
  10776. var info, req uintptr
  10777. var len1 int64
  10778. var n int32
  10779. var v1 uint64
  10780. var _ /* _BRdat at bp+0 */ TCARD64
  10781. _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1
  10782. info = XXRenderFindDisplay(tls, dpy)
  10783. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10784. return
  10785. }
  10786. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10787. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10788. }
  10789. for ntriangle != 0 {
  10790. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriangles), uint64(m_sz_xRenderTrianglesReq))
  10791. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10792. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriangles)
  10793. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10794. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10795. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10796. if maskFormat != 0 {
  10797. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10798. } else {
  10799. v1 = uint64(0)
  10800. }
  10801. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10802. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10803. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10804. n = ntriangle
  10805. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10806. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)) {
  10807. 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)))
  10808. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xTriangle)>>libc.Int32FromInt32(2))
  10809. }
  10810. if libc.Int64FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10811. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10812. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10813. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10814. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10815. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10816. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10817. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10818. } else {
  10819. len1 = len1
  10820. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength) + len1)
  10821. }
  10822. } else {
  10823. (*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTrianglesReq)(unsafe.Pointer(req)).Flength) + len1)
  10824. }
  10825. len1 <<= int64(2)
  10826. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10827. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, triangles, libc.Uint64FromInt64(len1))
  10828. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10829. } else {
  10830. libx11.X_XSend(tls, dpy, triangles, len1)
  10831. }
  10832. ntriangle -= n
  10833. triangles += uintptr(n) * 24
  10834. }
  10835. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10836. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10837. }
  10838. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10839. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10840. }
  10841. }
  10842. func XXRenderCompositeTriStrip(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10843. bp := tls.Alloc(16)
  10844. defer tls.Free(16)
  10845. var _BRlen TCARD32
  10846. var info, req uintptr
  10847. var len1 int64
  10848. var n int32
  10849. var v1 uint64
  10850. var _ /* _BRdat at bp+0 */ TCARD64
  10851. _, _, _, _, _, _ = _BRlen, info, len1, n, req, v1
  10852. info = XXRenderFindDisplay(tls, dpy)
  10853. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10854. return
  10855. }
  10856. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10857. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10858. }
  10859. for npoint > int32(2) {
  10860. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriStrip), uint64(m_sz_xRenderTriStripReq))
  10861. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10862. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriStrip)
  10863. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10864. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10865. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10866. if maskFormat != 0 {
  10867. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10868. } else {
  10869. v1 = uint64(0)
  10870. }
  10871. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10872. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10873. (*TxRenderTriStripReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10874. n = npoint
  10875. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10876. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)) {
  10877. 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)))
  10878. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10879. }
  10880. if libc.Int64FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10881. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10882. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10883. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10884. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10885. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10886. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10887. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10888. } else {
  10889. len1 = len1
  10890. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength) + len1)
  10891. }
  10892. } else {
  10893. (*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTriStripReq)(unsafe.Pointer(req)).Flength) + len1)
  10894. }
  10895. len1 <<= int64(2)
  10896. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10897. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt64(len1))
  10898. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10899. } else {
  10900. libx11.X_XSend(tls, dpy, points, len1)
  10901. }
  10902. npoint -= n - int32(2)
  10903. points += uintptr(n-libc.Int32FromInt32(2)) * 8
  10904. }
  10905. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10906. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10907. }
  10908. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10909. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10910. }
  10911. }
  10912. func XXRenderCompositeTriFan(tls *libc.TLS, dpy uintptr, op int32, src TPicture, dst TPicture, maskFormat uintptr, xSrc int32, ySrc int32, points uintptr, npoint int32) {
  10913. bp := tls.Alloc(16)
  10914. defer tls.Free(16)
  10915. var _BRlen TCARD32
  10916. var first, info, p, req uintptr
  10917. var len1 int64
  10918. var n int32
  10919. var v1 uint64
  10920. var _ /* _BRdat at bp+0 */ TCARD64
  10921. _, _, _, _, _, _, _, _ = _BRlen, first, info, len1, n, p, req, v1
  10922. info = XXRenderFindDisplay(tls, dpy)
  10923. first = points
  10924. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  10925. return
  10926. }
  10927. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10928. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  10929. }
  10930. points += 8
  10931. npoint--
  10932. for npoint > int32(1) {
  10933. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderTriFan), libc.Uint64FromInt32(libc.Int32FromInt32(m_sz_xRenderTriFanReq)+libc.Int32FromInt32(m_sz_xPointFixed)))
  10934. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  10935. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderTriFan)
  10936. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fop = libc.Uint8FromInt32(op)
  10937. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fsrc = uint32(src)
  10938. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Fdst = uint32(dst)
  10939. if maskFormat != 0 {
  10940. v1 = (*TXRenderPictFormat)(unsafe.Pointer(maskFormat)).Fid
  10941. } else {
  10942. v1 = uint64(0)
  10943. }
  10944. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FmaskFormat = uint32(v1)
  10945. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FxSrc = int16(xSrc)
  10946. (*TxRenderTriFanReq)(unsafe.Pointer(req)).FySrc = int16(ySrc)
  10947. p = req + libc.UintptrFromInt32(1)*24
  10948. (*TxPointFixed)(unsafe.Pointer(p)).Fx = (*TXPointFixed)(unsafe.Pointer(first)).Fx
  10949. (*TxPointFixed)(unsafe.Pointer(p)).Fy = (*TXPointFixed)(unsafe.Pointer(first)).Fy
  10950. n = npoint
  10951. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10952. if !((*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0) && len1 > libc.Int64FromUint32((*TDisplay)(unsafe.Pointer(dpy)).Fmax_request_size-uint32((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)) {
  10953. 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)))
  10954. len1 = int64(n) * int64(libc.Int32FromInt32(m_sz_xPointFixed)>>libc.Int32FromInt32(2))
  10955. }
  10956. if libc.Int64FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength)+len1 > libc.Int64FromUint32(libc.Uint32FromInt32(65535)) {
  10957. if (*TDisplay)(unsafe.Pointer(dpy)).Fbigreq_size != 0 {
  10958. _BRlen = libc.Uint32FromInt32(libc.Int32FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength) - libc.Int32FromInt32(1))
  10959. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength = uint16(0)
  10960. *(*TCARD64)(unsafe.Pointer(bp)) = uint64(*(*TCARD32)(unsafe.Pointer(req + uintptr(_BRlen)*4)))
  10961. libc.Xmemmove(tls, req+uintptr(8), req+uintptr(4), uint64((_BRlen-uint32(1))<<int32(2)))
  10962. *(*TCARD32)(unsafe.Pointer(req + 1*4)) = _BRlen + libc.Uint32FromInt64(len1) + uint32(2)
  10963. libx11.X_XData32(tls, dpy, bp, libc.Uint32FromInt32(libc.Int32FromInt32(4)))
  10964. } else {
  10965. len1 = len1
  10966. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength) + len1)
  10967. }
  10968. } else {
  10969. (*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength = libc.Uint16FromInt64(libc.Int64FromUint16((*TxRenderTriFanReq)(unsafe.Pointer(req)).Flength) + len1)
  10970. }
  10971. len1 <<= int64(2)
  10972. if (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr+uintptr(len1) <= (*TDisplay)(unsafe.Pointer(dpy)).Fbufmax {
  10973. libc.Xmemcpy(tls, (*TDisplay)(unsafe.Pointer(dpy)).Fbufptr, points, libc.Uint64FromInt64(len1))
  10974. *(*uintptr)(unsafe.Pointer(dpy + 176)) += uintptr(libc.Uint64FromInt64(len1+libc.Int64FromInt32(3)) & libc.Uint64FromInt32(^libc.Int32FromInt32(3)))
  10975. } else {
  10976. libx11.X_XSend(tls, dpy, points, len1)
  10977. }
  10978. npoint -= n - int32(1)
  10979. points += uintptr(n-libc.Int32FromInt32(1)) * 8
  10980. }
  10981. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  10982. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  10983. }
  10984. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  10985. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  10986. }
  10987. }
  10988. const m___INT_MAX3 = 2147483647
  10989. // C documentation
  10990. //
  10991. // /*
  10992. // * XRenderExtFindDisplay - look for a display in this extension; keeps a
  10993. // * cache of the most-recently used for efficiency. (Replaces
  10994. // * XextFindDisplay.)
  10995. // */
  10996. func _XRenderExtFindDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r uintptr) {
  10997. var dpyinfo, v1 uintptr
  10998. _, _ = dpyinfo, v1
  10999. /*
  11000. * see if this was the most recently accessed display
  11001. */
  11002. v1 = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur
  11003. dpyinfo = v1
  11004. if v1 != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  11005. return dpyinfo
  11006. }
  11007. /*
  11008. * look for display in list
  11009. */
  11010. if libx11.X_XLockMutex_fn != 0 {
  11011. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11012. }
  11013. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  11014. for {
  11015. if !(dpyinfo != 0) {
  11016. break
  11017. }
  11018. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  11019. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo /* cache most recently used */
  11020. if libx11.X_XUnlockMutex_fn != 0 {
  11021. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11022. }
  11023. return dpyinfo
  11024. }
  11025. goto _2
  11026. _2:
  11027. ;
  11028. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11029. }
  11030. if libx11.X_XUnlockMutex_fn != 0 {
  11031. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11032. }
  11033. return libc.UintptrFromInt32(0)
  11034. }
  11035. /*
  11036. * If the server is missing support for any of the required depths on
  11037. * any screen, tell the application that Render is not present.
  11038. */
  11039. /*
  11040. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  11041. */
  11042. type TDepthCheckRec = struct {
  11043. Fnext uintptr
  11044. Fdpy uintptr
  11045. Fmissing TCARD32
  11046. Fserial uint64
  11047. }
  11048. /*
  11049. * If the server is missing support for any of the required depths on
  11050. * any screen, tell the application that Render is not present.
  11051. */
  11052. /*
  11053. * Render requires support for depth 1, 4, 8, 24 and 32 pixmaps
  11054. */
  11055. type T_DepthCheckRec = TDepthCheckRec
  11056. type TDepthCheckPtr = uintptr
  11057. var _depthChecks TDepthCheckPtr
  11058. func _XRenderDepthCheckErrorHandler(tls *libc.TLS, dpy uintptr, evt uintptr) (r int32) {
  11059. var d TDepthCheckPtr
  11060. _ = d
  11061. if libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Frequest_code) == int32(m_X_CreatePixmap) && libc.Int32FromUint8((*TXErrorEvent)(unsafe.Pointer(evt)).Ferror_code) == int32(m_BadValue) {
  11062. if libx11.X_XLockMutex_fn != 0 {
  11063. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11064. }
  11065. d = _depthChecks
  11066. for {
  11067. if !(d != 0) {
  11068. break
  11069. }
  11070. if (*T_DepthCheckRec)(unsafe.Pointer(d)).Fdpy == dpy {
  11071. if libc.Int64FromUint64((*TXErrorEvent)(unsafe.Pointer(evt)).Fserial-(*T_DepthCheckRec)(unsafe.Pointer(d)).Fserial) >= 0 {
  11072. *(*TCARD32)(unsafe.Pointer(d + 16)) |= uint32(1) << ((*TXErrorEvent)(unsafe.Pointer(evt)).Fresourceid - uint64(1))
  11073. }
  11074. break
  11075. }
  11076. goto _1
  11077. _1:
  11078. ;
  11079. d = (*T_DepthCheckRec)(unsafe.Pointer(d)).Fnext
  11080. }
  11081. if libx11.X_XUnlockMutex_fn != 0 {
  11082. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11083. }
  11084. }
  11085. return 0
  11086. }
  11087. func _XRenderHasDepths(tls *libc.TLS, dpy uintptr) (r int32) {
  11088. bp := tls.Alloc(32)
  11089. defer tls.Free(32)
  11090. var d, s int32
  11091. var depths, missing TCARD32
  11092. var dp, scr uintptr
  11093. var p TPixmap
  11094. var previousHandler TXErrorHandler
  11095. var _ /* dc at bp+0 */ TDepthCheckRec
  11096. _, _, _, _, _, _, _, _ = d, depths, dp, missing, p, previousHandler, s, scr
  11097. s = 0
  11098. for {
  11099. if !(s < (*struct {
  11100. Fext_data uintptr
  11101. Fprivate1 uintptr
  11102. Ffd int32
  11103. Fprivate2 int32
  11104. Fproto_major_version int32
  11105. Fproto_minor_version int32
  11106. Fvendor uintptr
  11107. Fprivate3 TXID
  11108. Fprivate4 TXID
  11109. Fprivate5 TXID
  11110. Fprivate6 int32
  11111. Fresource_alloc uintptr
  11112. Fbyte_order int32
  11113. Fbitmap_unit int32
  11114. Fbitmap_pad int32
  11115. Fbitmap_bit_order int32
  11116. Fnformats int32
  11117. Fpixmap_format uintptr
  11118. Fprivate8 int32
  11119. Frelease int32
  11120. Fprivate9 uintptr
  11121. Fprivate10 uintptr
  11122. Fqlen int32
  11123. Flast_request_read uint64
  11124. Frequest uint64
  11125. Fprivate11 TXPointer
  11126. Fprivate12 TXPointer
  11127. Fprivate13 TXPointer
  11128. Fprivate14 TXPointer
  11129. Fmax_request_size uint32
  11130. Fdb uintptr
  11131. Fprivate15 uintptr
  11132. Fdisplay_name uintptr
  11133. Fdefault_screen int32
  11134. Fnscreens int32
  11135. Fscreens uintptr
  11136. Fmotion_buffer uint64
  11137. Fprivate16 uint64
  11138. Fmin_keycode int32
  11139. Fmax_keycode int32
  11140. Fprivate17 TXPointer
  11141. Fprivate18 TXPointer
  11142. Fprivate19 int32
  11143. Fxdefaults uintptr
  11144. })(unsafe.Pointer(dpy)).Fnscreens) {
  11145. break
  11146. }
  11147. depths = uint32(0)
  11148. scr = (*struct {
  11149. Fext_data uintptr
  11150. Fprivate1 uintptr
  11151. Ffd int32
  11152. Fprivate2 int32
  11153. Fproto_major_version int32
  11154. Fproto_minor_version int32
  11155. Fvendor uintptr
  11156. Fprivate3 TXID
  11157. Fprivate4 TXID
  11158. Fprivate5 TXID
  11159. Fprivate6 int32
  11160. Fresource_alloc uintptr
  11161. Fbyte_order int32
  11162. Fbitmap_unit int32
  11163. Fbitmap_pad int32
  11164. Fbitmap_bit_order int32
  11165. Fnformats int32
  11166. Fpixmap_format uintptr
  11167. Fprivate8 int32
  11168. Frelease int32
  11169. Fprivate9 uintptr
  11170. Fprivate10 uintptr
  11171. Fqlen int32
  11172. Flast_request_read uint64
  11173. Frequest uint64
  11174. Fprivate11 TXPointer
  11175. Fprivate12 TXPointer
  11176. Fprivate13 TXPointer
  11177. Fprivate14 TXPointer
  11178. Fmax_request_size uint32
  11179. Fdb uintptr
  11180. Fprivate15 uintptr
  11181. Fdisplay_name uintptr
  11182. Fdefault_screen int32
  11183. Fnscreens int32
  11184. Fscreens uintptr
  11185. Fmotion_buffer uint64
  11186. Fprivate16 uint64
  11187. Fmin_keycode int32
  11188. Fmax_keycode int32
  11189. Fprivate17 TXPointer
  11190. Fprivate18 TXPointer
  11191. Fprivate19 int32
  11192. Fxdefaults uintptr
  11193. })(unsafe.Pointer(dpy)).Fscreens + uintptr(s)*128
  11194. d = 0
  11195. for {
  11196. if !(d < (*TScreen)(unsafe.Pointer(scr)).Fndepths) {
  11197. break
  11198. }
  11199. depths |= uint32(1) << ((*(*TDepth)(unsafe.Pointer((*TScreen)(unsafe.Pointer(scr)).Fdepths + uintptr(d)*16))).Fdepth - int32(1))
  11200. goto _2
  11201. _2:
  11202. ;
  11203. d++
  11204. }
  11205. 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)))
  11206. if missing != 0 {
  11207. /*
  11208. * Ok, this is ugly. It should be sufficient at this
  11209. * point to just return False, but Xinerama is broken at
  11210. * this point and only advertises depths which have an
  11211. * associated visual. Of course, the other depths still
  11212. * work, but the only way to find out is to try them.
  11213. */
  11214. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fdpy = dpy
  11215. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing = uint32(0)
  11216. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fserial = libx11.XXNextRequest(tls, dpy)
  11217. if libx11.X_XLockMutex_fn != 0 {
  11218. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11219. }
  11220. (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext = _depthChecks
  11221. _depthChecks = bp
  11222. if libx11.X_XUnlockMutex_fn != 0 {
  11223. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11224. }
  11225. /*
  11226. * I suspect this is not really thread safe, but Xlib doesn't
  11227. * provide a lot of options here
  11228. */
  11229. previousHandler = libx11.XXSetErrorHandler(tls, __ccgo_fp(_XRenderDepthCheckErrorHandler))
  11230. /*
  11231. * Try each missing depth and see if pixmap creation succeeds
  11232. */
  11233. d = int32(1)
  11234. for {
  11235. if !(d <= int32(32)) {
  11236. break
  11237. }
  11238. /* don't check depth 1 == Xcursor recurses... */
  11239. if missing&(uint32(1)<<(d-int32(1))) != 0 && d != int32(1) {
  11240. p = libx11.XXCreatePixmap(tls, dpy, (*TScreen)(unsafe.Pointer((*struct {
  11241. Fext_data uintptr
  11242. Fprivate1 uintptr
  11243. Ffd int32
  11244. Fprivate2 int32
  11245. Fproto_major_version int32
  11246. Fproto_minor_version int32
  11247. Fvendor uintptr
  11248. Fprivate3 TXID
  11249. Fprivate4 TXID
  11250. Fprivate5 TXID
  11251. Fprivate6 int32
  11252. Fresource_alloc uintptr
  11253. Fbyte_order int32
  11254. Fbitmap_unit int32
  11255. Fbitmap_pad int32
  11256. Fbitmap_bit_order int32
  11257. Fnformats int32
  11258. Fpixmap_format uintptr
  11259. Fprivate8 int32
  11260. Frelease int32
  11261. Fprivate9 uintptr
  11262. Fprivate10 uintptr
  11263. Fqlen int32
  11264. Flast_request_read uint64
  11265. Frequest uint64
  11266. Fprivate11 TXPointer
  11267. Fprivate12 TXPointer
  11268. Fprivate13 TXPointer
  11269. Fprivate14 TXPointer
  11270. Fmax_request_size uint32
  11271. Fdb uintptr
  11272. Fprivate15 uintptr
  11273. Fdisplay_name uintptr
  11274. Fdefault_screen int32
  11275. Fnscreens int32
  11276. Fscreens uintptr
  11277. Fmotion_buffer uint64
  11278. Fprivate16 uint64
  11279. Fmin_keycode int32
  11280. Fmax_keycode int32
  11281. Fprivate17 TXPointer
  11282. Fprivate18 TXPointer
  11283. Fprivate19 int32
  11284. Fxdefaults uintptr
  11285. })(unsafe.Pointer(dpy)).Fscreens+uintptr(s)*128)).Froot, uint32(1), uint32(1), libc.Uint32FromInt32(d))
  11286. libx11.XXFreePixmap(tls, dpy, p)
  11287. }
  11288. goto _3
  11289. _3:
  11290. ;
  11291. d++
  11292. }
  11293. libx11.XXSync(tls, dpy, m_False)
  11294. libx11.XXSetErrorHandler(tls, previousHandler)
  11295. /*
  11296. * Unhook from the list of depth check records
  11297. */
  11298. if libx11.X_XLockMutex_fn != 0 {
  11299. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11300. }
  11301. dp = uintptr(unsafe.Pointer(&_depthChecks))
  11302. for {
  11303. if !(*(*uintptr)(unsafe.Pointer(dp)) != 0) {
  11304. break
  11305. }
  11306. if *(*uintptr)(unsafe.Pointer(dp)) == bp {
  11307. *(*uintptr)(unsafe.Pointer(dp)) = (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fnext
  11308. break
  11309. }
  11310. goto _4
  11311. _4:
  11312. ;
  11313. dp = *(*uintptr)(unsafe.Pointer(dp))
  11314. }
  11315. if libx11.X_XUnlockMutex_fn != 0 {
  11316. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11317. }
  11318. if (*(*TDepthCheckRec)(unsafe.Pointer(bp))).Fmissing != 0 {
  11319. return m_False
  11320. }
  11321. }
  11322. goto _1
  11323. _1:
  11324. ;
  11325. s++
  11326. }
  11327. return int32(m_True)
  11328. }
  11329. // C documentation
  11330. //
  11331. // /*
  11332. // * XRenderExtAddDisplay - add a display to this extension. (Replaces
  11333. // * XextAddDisplay)
  11334. // */
  11335. func _XRenderExtAddDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr, ext_name uintptr) (r uintptr) {
  11336. var codes, dpyinfo uintptr
  11337. _, _ = codes, dpyinfo
  11338. dpyinfo = libc.Xmalloc(tls, libc.Uint64FromInt64(32))
  11339. if !(dpyinfo != 0) {
  11340. return libc.UintptrFromInt32(0)
  11341. }
  11342. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay = dpy
  11343. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Finfo = libc.UintptrFromInt32(0)
  11344. if _XRenderHasDepths(tls, dpy) != 0 {
  11345. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libx11.XXInitExtension(tls, dpy, ext_name)
  11346. } else {
  11347. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes = libc.UintptrFromInt32(0)
  11348. }
  11349. /*
  11350. * if the server has the extension, then we can initialize the
  11351. * appropriate function vectors
  11352. */
  11353. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes != 0 {
  11354. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fcodes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  11355. } else {
  11356. /* The server doesn't have this extension.
  11357. * Use a private Xlib-internal extension to hang the close_display
  11358. * hook on so that the "cache" (extinfo->cur) is properly cleaned.
  11359. * (XBUG 7955)
  11360. */
  11361. codes = libx11.XXAddExtension(tls, dpy)
  11362. if !(codes != 0) {
  11363. libx11.XXFree(tls, dpyinfo)
  11364. return libc.UintptrFromInt32(0)
  11365. }
  11366. libx11.XXESetCloseDisplay(tls, dpy, (*TXExtCodes)(unsafe.Pointer(codes)).Fextension, __ccgo_fp(_XRenderCloseDisplay))
  11367. }
  11368. /*
  11369. * now, chain it onto the list
  11370. */
  11371. if libx11.X_XLockMutex_fn != 0 {
  11372. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11373. }
  11374. (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  11375. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = dpyinfo
  11376. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = dpyinfo
  11377. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays++
  11378. if libx11.X_XUnlockMutex_fn != 0 {
  11379. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11380. }
  11381. return dpyinfo
  11382. }
  11383. // C documentation
  11384. //
  11385. // /*
  11386. // * XRenderExtRemoveDisplay - remove the indicated display from the
  11387. // * extension object. (Replaces XextRemoveDisplay.)
  11388. // */
  11389. func _XRenderExtRemoveDisplay(tls *libc.TLS, extinfo uintptr, dpy uintptr) (r int32) {
  11390. var dpyinfo, prev uintptr
  11391. _, _ = dpyinfo, prev
  11392. /*
  11393. * locate this display and its back link so that it can be removed
  11394. */
  11395. if libx11.X_XLockMutex_fn != 0 {
  11396. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XLockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11397. }
  11398. prev = libc.UintptrFromInt32(0)
  11399. dpyinfo = (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead
  11400. for {
  11401. if !(dpyinfo != 0) {
  11402. break
  11403. }
  11404. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fdisplay == dpy {
  11405. break
  11406. }
  11407. prev = dpyinfo
  11408. goto _1
  11409. _1:
  11410. ;
  11411. dpyinfo = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11412. }
  11413. if !(dpyinfo != 0) {
  11414. if libx11.X_XUnlockMutex_fn != 0 {
  11415. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11416. }
  11417. return 0 /* hmm, actually an error */
  11418. }
  11419. /*
  11420. * remove the display from the list; handles going to zero
  11421. */
  11422. if prev != 0 {
  11423. (*TXRenderExtDisplayInfo)(unsafe.Pointer(prev)).Fnext = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11424. } else {
  11425. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fhead = (*TXRenderExtDisplayInfo)(unsafe.Pointer(dpyinfo)).Fnext
  11426. }
  11427. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fndisplays--
  11428. if dpyinfo == (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur {
  11429. (*TXRenderExtInfo)(unsafe.Pointer(extinfo)).Fcur = libc.UintptrFromInt32(0)
  11430. } /* flush cache */
  11431. if libx11.X_XUnlockMutex_fn != 0 {
  11432. (*(*func(*libc.TLS, TLockInfoPtr))(unsafe.Pointer(&struct{ uintptr }{libx11.X_XUnlockMutex_fn})))(tls, libx11.X_Xglobal_lock)
  11433. }
  11434. libc.Xfree(tls, dpyinfo)
  11435. return int32(1)
  11436. }
  11437. func XXRenderFindDisplay(tls *libc.TLS, dpy uintptr) (r uintptr) {
  11438. var dpyinfo uintptr
  11439. _ = dpyinfo
  11440. dpyinfo = _XRenderExtFindDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  11441. if !(dpyinfo != 0) {
  11442. dpyinfo = _XRenderExtAddDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy, uintptr(unsafe.Pointer(&XXRenderExtensionName)))
  11443. }
  11444. return dpyinfo
  11445. }
  11446. func _XRenderCloseDisplay(tls *libc.TLS, dpy uintptr, codes uintptr) (r int32) {
  11447. var info uintptr
  11448. _ = info
  11449. info = XXRenderFindDisplay(tls, dpy)
  11450. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11451. libx11.XXFree(tls, (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo)
  11452. }
  11453. return _XRenderExtRemoveDisplay(tls, uintptr(unsafe.Pointer(&XXRenderExtensionInfo)), dpy)
  11454. }
  11455. /****************************************************************************
  11456. * *
  11457. * Render public interfaces *
  11458. * *
  11459. ****************************************************************************/
  11460. func XXRenderQueryExtension(tls *libc.TLS, dpy uintptr, event_basep uintptr, error_basep uintptr) (r int32) {
  11461. var info uintptr
  11462. _ = info
  11463. info = XXRenderFindDisplay(tls, dpy)
  11464. if info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0 {
  11465. *(*int32)(unsafe.Pointer(event_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_event
  11466. *(*int32)(unsafe.Pointer(error_basep)) = (*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Ffirst_error
  11467. return int32(m_True)
  11468. } else {
  11469. return m_False
  11470. }
  11471. return r
  11472. }
  11473. func XXRenderQueryVersion(tls *libc.TLS, dpy uintptr, major_versionp uintptr, minor_versionp uintptr) (r int32) {
  11474. var info, xri uintptr
  11475. _, _ = info, xri
  11476. info = XXRenderFindDisplay(tls, dpy)
  11477. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11478. return 0
  11479. }
  11480. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11481. return 0
  11482. }
  11483. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11484. *(*int32)(unsafe.Pointer(major_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version
  11485. *(*int32)(unsafe.Pointer(minor_versionp)) = (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version
  11486. return int32(1)
  11487. }
  11488. func __XRenderFindFormat(tls *libc.TLS, xri uintptr, format TPictFormat) (r uintptr) {
  11489. var nf int32
  11490. _ = nf
  11491. nf = 0
  11492. for {
  11493. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11494. break
  11495. }
  11496. if (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid == format {
  11497. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11498. }
  11499. goto _1
  11500. _1:
  11501. ;
  11502. nf++
  11503. }
  11504. return libc.UintptrFromInt32(0)
  11505. }
  11506. func __XRenderFindVisual(tls *libc.TLS, dpy uintptr, vid TVisualID) (r uintptr) {
  11507. return libx11.X_XVIDtoVisual(tls, dpy, vid)
  11508. }
  11509. type T_XrenderVersionState = struct {
  11510. Fversion_seq uint64
  11511. Ferror1 int32
  11512. Fmajor_version int32
  11513. Fminor_version int32
  11514. }
  11515. type T_renderVersionState = T_XrenderVersionState
  11516. func __XRenderVersionHandler(tls *libc.TLS, dpy uintptr, rep uintptr, buf uintptr, len1 int32, data TXPointer) (r int32) {
  11517. bp := tls.Alloc(32)
  11518. defer tls.Free(32)
  11519. var repl, state uintptr
  11520. var _ /* replbuf at bp+0 */ TxRenderQueryVersionReply
  11521. _, _ = repl, state
  11522. state = data
  11523. if (*TDisplay)(unsafe.Pointer(dpy)).Flast_request_read != (*T_XrenderVersionState)(unsafe.Pointer(state)).Fversion_seq {
  11524. return m_False
  11525. }
  11526. if libc.Int32FromUint8((*TxReply)(unsafe.Pointer(rep)).Fgeneric.Ftype1) == m_X_Error {
  11527. (*T_XrenderVersionState)(unsafe.Pointer(state)).Ferror1 = int32(m_True)
  11528. return m_False
  11529. }
  11530. 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))
  11531. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fmajor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FmajorVersion)
  11532. (*T_XrenderVersionState)(unsafe.Pointer(state)).Fminor_version = libc.Int32FromUint32((*TxRenderQueryVersionReply)(unsafe.Pointer(repl)).FminorVersion)
  11533. return int32(m_True)
  11534. }
  11535. func XXRenderQueryFormats(tls *libc.TLS, dpy uintptr) (r int32) {
  11536. bp := tls.Alloc(80)
  11537. defer tls.Free(80)
  11538. var depth, format, info, req, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri uintptr
  11539. var nbytes, rlength, v1 uint64
  11540. var nd, nf, ns, nv int32
  11541. var _ /* async at bp+0 */ T_XAsyncHandler
  11542. var _ /* async_state at bp+24 */ T_XrenderVersionState
  11543. var _ /* rep at bp+48 */ TxRenderQueryPictFormatsReply
  11544. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = depth, format, info, nbytes, nd, nf, ns, nv, req, rlength, screen, visual, vreq, xData, xDepth, xFormat, xScreen, xSubpixel, xVisual, xri, v1
  11545. info = XXRenderFindDisplay(tls, dpy)
  11546. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11547. return 0
  11548. }
  11549. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11550. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  11551. }
  11552. if (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo != 0 {
  11553. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11554. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11555. }
  11556. return int32(1)
  11557. }
  11558. vreq = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryVersion), uint64(m_sz_xRenderQueryVersionReq))
  11559. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11560. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FrenderReqType = uint8(m_X_RenderQueryVersion)
  11561. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FmajorVersion = uint32(m_RENDER_MAJOR)
  11562. (*TxRenderQueryVersionReq)(unsafe.Pointer(vreq)).FminorVersion = uint32(m_RENDER_MINOR)
  11563. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fversion_seq = (*TDisplay)(unsafe.Pointer(dpy)).Frequest
  11564. (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 = m_False
  11565. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fnext = (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers
  11566. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fhandler = __ccgo_fp(__XRenderVersionHandler)
  11567. (*(*T_XAsyncHandler)(unsafe.Pointer(bp))).Fdata = bp + 24
  11568. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = bp
  11569. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictFormats), uint64(m_sz_xRenderQueryPictFormatsReq))
  11570. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  11571. (*TxRenderQueryPictFormatsReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictFormats)
  11572. if !(libx11.X_XReply(tls, dpy, bp+48, 0, m_xFalse) != 0) {
  11573. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11574. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11575. } else {
  11576. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11577. }
  11578. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11579. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11580. }
  11581. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11582. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11583. }
  11584. return 0
  11585. }
  11586. if (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers == bp {
  11587. (*TDisplay)(unsafe.Pointer(dpy)).Fasync_handlers = (*T_XAsyncHandler)(unsafe.Pointer(bp)).Fnext
  11588. } else {
  11589. libx11.X_XDeqAsyncHandler(tls, dpy, bp)
  11590. }
  11591. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Ferror1 != 0 {
  11592. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11593. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11594. }
  11595. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11596. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11597. }
  11598. return 0
  11599. }
  11600. /*
  11601. * Check for the lack of sub-pixel data
  11602. */
  11603. if (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version == 0 && (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version < int32(6) {
  11604. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel = uint32(0)
  11605. }
  11606. if uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX3)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(40) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX3)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(32) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX3)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(16) && uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals) < libc.Uint64FromInt32(libc.Int32FromInt32(m___INT_MAX3)/libc.Int32FromInt32(4))/libc.Uint64FromInt64(16) && (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel < libc.Uint32FromInt32(libc.Int32FromInt32(m___INT_MAX3)/libc.Int32FromInt32(4)/libc.Int32FromInt32(4)) && (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m___INT_MAX3)>>libc.Int32FromInt32(2)) {
  11607. xri = libc.Xmalloc(tls, libc.Uint64FromInt64(120)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*libc.Uint64FromInt64(40)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*libc.Uint64FromInt64(32)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*libc.Uint64FromInt64(16)+uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)*libc.Uint64FromInt64(16))
  11608. 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))
  11609. xData = libc.Xmalloc(tls, rlength)
  11610. nbytes = uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength) << int32(2)
  11611. } else {
  11612. xri = libc.UintptrFromInt32(0)
  11613. xData = libc.UintptrFromInt32(0)
  11614. v1 = libc.Uint64FromInt32(0)
  11615. nbytes = v1
  11616. rlength = v1
  11617. }
  11618. if !(xri != 0) || !(xData != 0) || nbytes < rlength {
  11619. if xri != 0 {
  11620. libc.Xfree(tls, xri)
  11621. }
  11622. if xData != 0 {
  11623. libc.Xfree(tls, xData)
  11624. }
  11625. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11626. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11627. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11628. }
  11629. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11630. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11631. }
  11632. return 0
  11633. }
  11634. (*TXRenderInfo)(unsafe.Pointer(xri)).Fmajor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fmajor_version
  11635. (*TXRenderInfo)(unsafe.Pointer(xri)).Fminor_version = (*(*T_XrenderVersionState)(unsafe.Pointer(bp + 24))).Fminor_version
  11636. (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat = xri + libc.UintptrFromInt32(1)*120
  11637. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)
  11638. (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats)*40
  11639. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)
  11640. (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumScreens)*32
  11641. (*TXRenderInfo)(unsafe.Pointer(xri)).Fndepth = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)
  11642. (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth + uintptr((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths)*16
  11643. (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual = libc.Int32FromUint32((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals)
  11644. libx11.X_XRead(tls, dpy, xData, libc.Int64FromUint64(rlength))
  11645. format = (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat
  11646. xFormat = xData
  11647. nf = 0
  11648. for {
  11649. if !(libc.Uint32FromInt32(nf) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumFormats) {
  11650. break
  11651. }
  11652. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fid = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fid)
  11653. (*TXRenderPictFormat)(unsafe.Pointer(format)).Ftype1 = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Ftype1)
  11654. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdepth = libc.Int32FromUint8((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdepth)
  11655. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fred = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fred)
  11656. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FredMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FredMask)
  11657. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fgreen = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fgreen)
  11658. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FgreenMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FgreenMask)
  11659. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Fblue = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Fblue)
  11660. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FblueMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FblueMask)
  11661. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.Falpha = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.Falpha)
  11662. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fdirect.FalphaMask = libc.Int16FromUint16((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fdirect.FalphaMask)
  11663. (*TXRenderPictFormat)(unsafe.Pointer(format)).Fcolormap = uint64((*TxPictFormInfo)(unsafe.Pointer(xFormat)).Fcolormap)
  11664. format += 40
  11665. xFormat += 28
  11666. goto _2
  11667. _2:
  11668. ;
  11669. nf++
  11670. }
  11671. xScreen = xFormat
  11672. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11673. depth = (*TXRenderInfo)(unsafe.Pointer(xri)).Fdepth
  11674. visual = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11675. ns = 0
  11676. for {
  11677. if !(ns < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnscreen) {
  11678. break
  11679. }
  11680. (*TXRenderScreen)(unsafe.Pointer(screen)).Fdepths = depth
  11681. (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths = libc.Int32FromUint32((*TxPictScreen)(unsafe.Pointer(xScreen)).FnDepth)
  11682. (*TXRenderScreen)(unsafe.Pointer(screen)).Ffallback = __XRenderFindFormat(tls, xri, uint64((*TxPictScreen)(unsafe.Pointer(xScreen)).Ffallback))
  11683. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = m_SubPixelUnknown
  11684. xDepth = xScreen + libc.UintptrFromInt32(1)*8
  11685. if libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths {
  11686. libc.Xfree(tls, xri)
  11687. libc.Xfree(tls, xData)
  11688. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11689. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11690. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11691. }
  11692. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11693. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11694. }
  11695. return 0
  11696. }
  11697. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumDepths -= libc.Uint32FromInt32((*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths)
  11698. nd = 0
  11699. for {
  11700. if !(nd < (*TXRenderScreen)(unsafe.Pointer(screen)).Fndepths) {
  11701. break
  11702. }
  11703. (*TXRenderDepth)(unsafe.Pointer(depth)).Fdepth = libc.Int32FromUint8((*TxPictDepth)(unsafe.Pointer(xDepth)).Fdepth)
  11704. (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals = libc.Int32FromUint16((*TxPictDepth)(unsafe.Pointer(xDepth)).FnPictVisuals)
  11705. (*TXRenderDepth)(unsafe.Pointer(depth)).Fvisuals = visual
  11706. xVisual = xDepth + libc.UintptrFromInt32(1)*8
  11707. if libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) > (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals {
  11708. libc.Xfree(tls, xri)
  11709. libc.Xfree(tls, xData)
  11710. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).Flength))
  11711. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11712. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11713. }
  11714. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11715. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11716. }
  11717. return 0
  11718. }
  11719. (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumVisuals -= libc.Uint32FromInt32((*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals)
  11720. nv = 0
  11721. for {
  11722. if !(nv < (*TXRenderDepth)(unsafe.Pointer(depth)).Fnvisuals) {
  11723. break
  11724. }
  11725. (*TXRenderVisual)(unsafe.Pointer(visual)).Fvisual = __XRenderFindVisual(tls, dpy, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fvisual))
  11726. (*TXRenderVisual)(unsafe.Pointer(visual)).Fformat = __XRenderFindFormat(tls, xri, uint64((*TxPictVisual)(unsafe.Pointer(xVisual)).Fformat))
  11727. visual += 16
  11728. xVisual += 8
  11729. goto _5
  11730. _5:
  11731. ;
  11732. nv++
  11733. }
  11734. depth += 16
  11735. xDepth = xVisual
  11736. goto _4
  11737. _4:
  11738. ;
  11739. nd++
  11740. }
  11741. screen += 32
  11742. xScreen = xDepth
  11743. goto _3
  11744. _3:
  11745. ;
  11746. ns++
  11747. }
  11748. xSubpixel = xScreen
  11749. screen = (*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen
  11750. ns = 0
  11751. for {
  11752. if !(libc.Uint32FromInt32(ns) < (*(*TxRenderQueryPictFormatsReply)(unsafe.Pointer(bp + 48))).FnumSubpixel) {
  11753. break
  11754. }
  11755. (*TXRenderScreen)(unsafe.Pointer(screen)).Fsubpixel = libc.Int32FromUint32(*(*TCARD32)(unsafe.Pointer(xSubpixel)))
  11756. xSubpixel += 4
  11757. screen += 32
  11758. goto _6
  11759. _6:
  11760. ;
  11761. ns++
  11762. }
  11763. (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo = xri
  11764. /*
  11765. * Skip any extra data
  11766. */
  11767. if nbytes > rlength {
  11768. libx11.X_XEatData(tls, dpy, nbytes-rlength)
  11769. }
  11770. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  11771. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  11772. }
  11773. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  11774. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  11775. }
  11776. libc.Xfree(tls, xData)
  11777. return int32(1)
  11778. }
  11779. func XXRenderQuerySubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32) (r int32) {
  11780. var info, xri uintptr
  11781. _, _ = info, xri
  11782. info = XXRenderFindDisplay(tls, dpy)
  11783. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11784. return m_SubPixelUnknown
  11785. }
  11786. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11787. return m_SubPixelUnknown
  11788. }
  11789. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11790. return (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel
  11791. }
  11792. func XXRenderSetSubpixelOrder(tls *libc.TLS, dpy uintptr, screen int32, subpixel int32) (r int32) {
  11793. var info, xri uintptr
  11794. _, _ = info, xri
  11795. info = XXRenderFindDisplay(tls, dpy)
  11796. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11797. return m_False
  11798. }
  11799. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11800. return m_False
  11801. }
  11802. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11803. (*(*TXRenderScreen)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fscreen + uintptr(screen)*32))).Fsubpixel = subpixel
  11804. return int32(m_True)
  11805. }
  11806. func XXRenderFindVisualFormat(tls *libc.TLS, dpy uintptr, visual uintptr) (r uintptr) {
  11807. var info, xri, xrv uintptr
  11808. var nv int32
  11809. _, _, _, _ = info, nv, xri, xrv
  11810. info = XXRenderFindDisplay(tls, dpy)
  11811. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11812. return libc.UintptrFromInt32(0)
  11813. }
  11814. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11815. return libc.UintptrFromInt32(0)
  11816. }
  11817. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11818. nv = 0
  11819. xrv = (*TXRenderInfo)(unsafe.Pointer(xri)).Fvisual
  11820. for {
  11821. if !(nv < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnvisual) {
  11822. break
  11823. }
  11824. if (*TXRenderVisual)(unsafe.Pointer(xrv)).Fvisual == visual {
  11825. return (*TXRenderVisual)(unsafe.Pointer(xrv)).Fformat
  11826. }
  11827. goto _1
  11828. _1:
  11829. ;
  11830. nv++
  11831. xrv += 16
  11832. }
  11833. return libc.UintptrFromInt32(0)
  11834. }
  11835. func XXRenderFindFormat(tls *libc.TLS, dpy uintptr, mask uint64, template uintptr, count int32) (r uintptr) {
  11836. var info, xri uintptr
  11837. var nf, v2 int32
  11838. _, _, _, _ = info, nf, xri, v2
  11839. info = XXRenderFindDisplay(tls, dpy)
  11840. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  11841. return libc.UintptrFromInt32(0)
  11842. }
  11843. if !(XXRenderQueryFormats(tls, dpy) != 0) {
  11844. return libc.UintptrFromInt32(0)
  11845. }
  11846. xri = (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Finfo
  11847. nf = 0
  11848. for {
  11849. if !(nf < (*TXRenderInfo)(unsafe.Pointer(xri)).Fnformat) {
  11850. break
  11851. }
  11852. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(0)) != 0 {
  11853. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fid != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fid {
  11854. goto _1
  11855. }
  11856. }
  11857. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(1)) != 0 {
  11858. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Ftype1 != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Ftype1 {
  11859. goto _1
  11860. }
  11861. }
  11862. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(2)) != 0 {
  11863. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fdepth != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdepth {
  11864. goto _1
  11865. }
  11866. }
  11867. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(3)) != 0 {
  11868. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fred) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fred) {
  11869. goto _1
  11870. }
  11871. }
  11872. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(4)) != 0 {
  11873. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FredMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FredMask) {
  11874. goto _1
  11875. }
  11876. }
  11877. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(5)) != 0 {
  11878. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fgreen) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fgreen) {
  11879. goto _1
  11880. }
  11881. }
  11882. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(6)) != 0 {
  11883. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FgreenMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FgreenMask) {
  11884. goto _1
  11885. }
  11886. }
  11887. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(7)) != 0 {
  11888. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Fblue) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Fblue) {
  11889. goto _1
  11890. }
  11891. }
  11892. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(8)) != 0 {
  11893. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FblueMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FblueMask) {
  11894. goto _1
  11895. }
  11896. }
  11897. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(9)) != 0 {
  11898. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.Falpha) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.Falpha) {
  11899. goto _1
  11900. }
  11901. }
  11902. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(10)) != 0 {
  11903. if int32((*TXRenderPictFormat)(unsafe.Pointer(template)).Fdirect.FalphaMask) != int32((*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fdirect.FalphaMask) {
  11904. goto _1
  11905. }
  11906. }
  11907. if mask&libc.Uint64FromInt32(libc.Int32FromInt32(1)<<libc.Int32FromInt32(11)) != 0 {
  11908. if (*TXRenderPictFormat)(unsafe.Pointer(template)).Fcolormap != (*(*TXRenderPictFormat)(unsafe.Pointer((*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40))).Fcolormap {
  11909. goto _1
  11910. }
  11911. }
  11912. v2 = count
  11913. count--
  11914. if v2 == 0 {
  11915. return (*TXRenderInfo)(unsafe.Pointer(xri)).Fformat + uintptr(nf)*40
  11916. }
  11917. goto _1
  11918. _1:
  11919. ;
  11920. nf++
  11921. }
  11922. return libc.UintptrFromInt32(0)
  11923. }
  11924. func XXRenderFindStandardFormat(tls *libc.TLS, dpy uintptr, format int32) (r uintptr) {
  11925. if 0 <= format && format < int32(m_PictStandardNUM) {
  11926. return XXRenderFindFormat(tls, dpy, _standardFormats[format].Fmask, uintptr(unsafe.Pointer(&_standardFormats))+uintptr(format)*48, 0)
  11927. }
  11928. return libc.UintptrFromInt32(0)
  11929. }
  11930. var _standardFormats = [5]struct {
  11931. Ftempl TXRenderPictFormat
  11932. Fmask uint64
  11933. }{
  11934. 0: {
  11935. Ftempl: TXRenderPictFormat{
  11936. Ftype1: int32(m_PictTypeDirect),
  11937. Fdepth: int32(32),
  11938. Fdirect: TXRenderDirectFormat{
  11939. Fred: int16(16),
  11940. FredMask: int16(0xff),
  11941. Fgreen: int16(8),
  11942. FgreenMask: int16(0xff),
  11943. FblueMask: int16(0xff),
  11944. Falpha: int16(24),
  11945. FalphaMask: int16(0xff),
  11946. },
  11947. },
  11948. 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)),
  11949. },
  11950. 1: {
  11951. Ftempl: TXRenderPictFormat{
  11952. Ftype1: int32(m_PictTypeDirect),
  11953. Fdepth: int32(24),
  11954. Fdirect: TXRenderDirectFormat{
  11955. Fred: int16(16),
  11956. FredMask: int16(0xff),
  11957. Fgreen: int16(8),
  11958. FgreenMask: int16(0xff),
  11959. FblueMask: int16(0xff),
  11960. },
  11961. },
  11962. 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)),
  11963. },
  11964. 2: {
  11965. Ftempl: TXRenderPictFormat{
  11966. Ftype1: int32(m_PictTypeDirect),
  11967. Fdepth: int32(8),
  11968. Fdirect: TXRenderDirectFormat{
  11969. FalphaMask: int16(0xff),
  11970. },
  11971. },
  11972. 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)),
  11973. },
  11974. 3: {
  11975. Ftempl: TXRenderPictFormat{
  11976. Ftype1: int32(m_PictTypeDirect),
  11977. Fdepth: int32(4),
  11978. Fdirect: TXRenderDirectFormat{
  11979. FalphaMask: int16(0x0f),
  11980. },
  11981. },
  11982. 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)),
  11983. },
  11984. 4: {
  11985. Ftempl: TXRenderPictFormat{
  11986. Ftype1: int32(m_PictTypeDirect),
  11987. Fdepth: int32(1),
  11988. Fdirect: TXRenderDirectFormat{
  11989. FalphaMask: int16(0x01),
  11990. },
  11991. },
  11992. 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)),
  11993. },
  11994. }
  11995. func XXRenderQueryPictIndexValues(tls *libc.TLS, dpy uintptr, format uintptr, num uintptr) (r uintptr) {
  11996. bp := tls.Alloc(48)
  11997. defer tls.Free(48)
  11998. var i, nbytes, nread, rlength, v1, v2 uint32
  11999. var info, req, values uintptr
  12000. var _ /* rep at bp+0 */ TxRenderQueryPictIndexValuesReply
  12001. var _ /* value at bp+32 */ TxIndexValue
  12002. _, _, _, _, _, _, _, _, _ = i, info, nbytes, nread, req, rlength, values, v1, v2
  12003. info = XXRenderFindDisplay(tls, dpy)
  12004. if !(info != 0 && (*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes != 0) {
  12005. return libc.UintptrFromInt32(0)
  12006. }
  12007. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  12008. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Flock_display})))(tls, dpy)
  12009. }
  12010. req = libx11.X_XGetRequest(tls, dpy, uint8(m_X_RenderQueryPictIndexValues), uint64(m_sz_xRenderQueryPictIndexValuesReq))
  12011. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FreqType = libc.Uint8FromInt32((*TXExtCodes)(unsafe.Pointer((*TXRenderExtDisplayInfo)(unsafe.Pointer(info)).Fcodes)).Fmajor_opcode)
  12012. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).FrenderReqType = uint8(m_X_RenderQueryPictIndexValues)
  12013. (*TxRenderQueryPictIndexValuesReq)(unsafe.Pointer(req)).Fformat = uint32((*TXRenderPictFormat)(unsafe.Pointer(format)).Fid)
  12014. if !(libx11.X_XReply(tls, dpy, bp, 0, m_xFalse) != 0) {
  12015. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  12016. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  12017. }
  12018. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  12019. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  12020. }
  12021. return libc.UintptrFromInt32(0)
  12022. }
  12023. if (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength < libc.Uint32FromInt32(libc.Int32FromInt32(m___INT_MAX3)>>libc.Int32FromInt32(2)) && uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) < libc.Uint64FromInt32(m___INT_MAX3)/libc.Uint64FromInt64(16) {
  12024. /* request data length */
  12025. nbytes = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength << int32(2)
  12026. /* bytes of actual data in the request */
  12027. nread = (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues * uint32(m_sz_xIndexValue)
  12028. /* size of array returned to application */
  12029. rlength = uint32(uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) * uint64(16))
  12030. /* allocate returned data */
  12031. values = libc.Xmalloc(tls, uint64(rlength))
  12032. } else {
  12033. v2 = libc.Uint32FromInt32(0)
  12034. rlength = v2
  12035. v1 = v2
  12036. nread = v1
  12037. nbytes = v1
  12038. values = libc.UintptrFromInt32(0)
  12039. }
  12040. if !(values != 0) {
  12041. libx11.X_XEatDataWords(tls, dpy, uint64((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).Flength))
  12042. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  12043. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  12044. }
  12045. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  12046. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  12047. }
  12048. return libc.UintptrFromInt32(0)
  12049. }
  12050. /* read the values one at a time and convert */
  12051. *(*int32)(unsafe.Pointer(num)) = libc.Int32FromUint32((*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues)
  12052. i = uint32(0)
  12053. for {
  12054. if !(i < (*(*TxRenderQueryPictIndexValuesReply)(unsafe.Pointer(bp))).FnumIndexValues) {
  12055. break
  12056. }
  12057. libx11.X_XRead(tls, dpy, bp+32, int64(m_sz_xIndexValue))
  12058. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fpixel = uint64((*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fpixel)
  12059. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fred = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fred
  12060. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fgreen = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fgreen
  12061. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Fblue = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Fblue
  12062. (*(*TXIndexValue)(unsafe.Pointer(values + uintptr(i)*16))).Falpha = (*(*TxIndexValue)(unsafe.Pointer(bp + 32))).Falpha
  12063. goto _3
  12064. _3:
  12065. ;
  12066. i++
  12067. }
  12068. /* skip any padding */
  12069. if nbytes > nread {
  12070. libx11.X_XEatData(tls, dpy, uint64(nbytes-nread))
  12071. }
  12072. if (*TDisplay)(unsafe.Pointer(dpy)).Flock_fns != 0 {
  12073. (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&struct{ uintptr }{(*T_XLockPtrs)(unsafe.Pointer((*TDisplay)(unsafe.Pointer(dpy)).Flock_fns)).Funlock_display})))(tls, dpy)
  12074. }
  12075. if (*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler != 0 {
  12076. (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(&struct{ uintptr }{(*TDisplay)(unsafe.Pointer(dpy)).Fsynchandler})))(tls, dpy)
  12077. }
  12078. return values
  12079. }
  12080. func __ccgo_fp(f interface{}) uintptr {
  12081. type iface [2]uintptr
  12082. return (*iface)(unsafe.Pointer(&f))[1]
  12083. }
  12084. /*
  12085. * Xlib uses long for 32-bit values. Xrender uses int. This
  12086. * matters on alpha. Note that this macro assumes that int is 32 bits
  12087. * except on WORD64 machines where it is 64 bits.
  12088. */
  12089. /*-
  12090. * SPDX-License-Identifier: BSD-3-Clause
  12091. *
  12092. * Copyright (c) 1988, 1993
  12093. * The Regents of the University of California. All rights reserved.
  12094. *
  12095. * Redistribution and use in source and binary forms, with or without
  12096. * modification, are permitted provided that the following conditions
  12097. * are met:
  12098. * 1. Redistributions of source code must retain the above copyright
  12099. * notice, this list of conditions and the following disclaimer.
  12100. * 2. Redistributions in binary form must reproduce the above copyright
  12101. * notice, this list of conditions and the following disclaimer in the
  12102. * documentation and/or other materials provided with the distribution.
  12103. * 3. Neither the name of the University nor the names of its contributors
  12104. * may be used to endorse or promote products derived from this software
  12105. * without specific prior written permission.
  12106. *
  12107. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12108. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12109. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12110. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12111. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12112. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12113. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12114. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12115. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12116. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12117. * SUCH DAMAGE.
  12118. *
  12119. * @(#)limits.h 8.2 (Berkeley) 1/4/94
  12120. */
  12121. /*-
  12122. * SPDX-License-Identifier: BSD-3-Clause
  12123. *
  12124. * Copyright (c) 1991, 1993
  12125. * The Regents of the University of California. All rights reserved.
  12126. *
  12127. * This code is derived from software contributed to Berkeley by
  12128. * Berkeley Software Design, Inc.
  12129. *
  12130. * Redistribution and use in source and binary forms, with or without
  12131. * modification, are permitted provided that the following conditions
  12132. * are met:
  12133. * 1. Redistributions of source code must retain the above copyright
  12134. * notice, this list of conditions and the following disclaimer.
  12135. * 2. Redistributions in binary form must reproduce the above copyright
  12136. * notice, this list of conditions and the following disclaimer in the
  12137. * documentation and/or other materials provided with the distribution.
  12138. * 3. Neither the name of the University nor the names of its contributors
  12139. * may be used to endorse or promote products derived from this software
  12140. * without specific prior written permission.
  12141. *
  12142. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12143. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12144. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12145. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12146. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12147. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12148. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12149. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12150. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12151. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12152. * SUCH DAMAGE.
  12153. *
  12154. * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  12155. */
  12156. /*-
  12157. * SPDX-License-Identifier: BSD-3-Clause
  12158. *
  12159. * Copyright (c) 1988, 1993
  12160. * The Regents of the University of California. All rights reserved.
  12161. *
  12162. * Redistribution and use in source and binary forms, with or without
  12163. * modification, are permitted provided that the following conditions
  12164. * are met:
  12165. * 1. Redistributions of source code must retain the above copyright
  12166. * notice, this list of conditions and the following disclaimer.
  12167. * 2. Redistributions in binary form must reproduce the above copyright
  12168. * notice, this list of conditions and the following disclaimer in the
  12169. * documentation and/or other materials provided with the distribution.
  12170. * 3. Neither the name of the University nor the names of its contributors
  12171. * may be used to endorse or promote products derived from this software
  12172. * without specific prior written permission.
  12173. *
  12174. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12175. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12176. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12177. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12178. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12179. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12180. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12181. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12182. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12183. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12184. * SUCH DAMAGE.
  12185. */
  12186. /*-
  12187. * SPDX-License-Identifier: BSD-3-Clause
  12188. *
  12189. * Copyright (c) 1991, 1993
  12190. * The Regents of the University of California. All rights reserved.
  12191. *
  12192. * This code is derived from software contributed to Berkeley by
  12193. * Berkeley Software Design, Inc.
  12194. *
  12195. * Redistribution and use in source and binary forms, with or without
  12196. * modification, are permitted provided that the following conditions
  12197. * are met:
  12198. * 1. Redistributions of source code must retain the above copyright
  12199. * notice, this list of conditions and the following disclaimer.
  12200. * 2. Redistributions in binary form must reproduce the above copyright
  12201. * notice, this list of conditions and the following disclaimer in the
  12202. * documentation and/or other materials provided with the distribution.
  12203. * 3. Neither the name of the University nor the names of its contributors
  12204. * may be used to endorse or promote products derived from this software
  12205. * without specific prior written permission.
  12206. *
  12207. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12208. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12209. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12210. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12211. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12212. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12213. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12214. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12215. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12216. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12217. * SUCH DAMAGE.
  12218. *
  12219. * @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  12220. */
  12221. /*-
  12222. * This file is in the public domain.
  12223. */
  12224. /*-
  12225. * SPDX-License-Identifier: BSD-3-Clause
  12226. *
  12227. * Copyright (c) 1988, 1993
  12228. * The Regents of the University of California. All rights reserved.
  12229. *
  12230. * Redistribution and use in source and binary forms, with or without
  12231. * modification, are permitted provided that the following conditions
  12232. * are met:
  12233. * 1. Redistributions of source code must retain the above copyright
  12234. * notice, this list of conditions and the following disclaimer.
  12235. * 2. Redistributions in binary form must reproduce the above copyright
  12236. * notice, this list of conditions and the following disclaimer in the
  12237. * documentation and/or other materials provided with the distribution.
  12238. * 3. Neither the name of the University nor the names of its contributors
  12239. * may be used to endorse or promote products derived from this software
  12240. * without specific prior written permission.
  12241. *
  12242. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12243. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12244. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12245. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12246. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12247. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12248. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12249. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12250. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12251. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12252. * SUCH DAMAGE.
  12253. *
  12254. * @(#)limits.h 8.3 (Berkeley) 1/4/94
  12255. */
  12256. /*-
  12257. * SPDX-License-Identifier: BSD-3-Clause
  12258. *
  12259. * Copyright (c) 1988, 1993
  12260. * The Regents of the University of California. All rights reserved.
  12261. *
  12262. * Redistribution and use in source and binary forms, with or without
  12263. * modification, are permitted provided that the following conditions
  12264. * are met:
  12265. * 1. Redistributions of source code must retain the above copyright
  12266. * notice, this list of conditions and the following disclaimer.
  12267. * 2. Redistributions in binary form must reproduce the above copyright
  12268. * notice, this list of conditions and the following disclaimer in the
  12269. * documentation and/or other materials provided with the distribution.
  12270. * 3. Neither the name of the University nor the names of its contributors
  12271. * may be used to endorse or promote products derived from this software
  12272. * without specific prior written permission.
  12273. *
  12274. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  12275. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12276. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  12277. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  12278. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  12279. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  12280. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  12281. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  12282. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  12283. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  12284. * SUCH DAMAGE.
  12285. *
  12286. * @(#)syslimits.h 8.1 (Berkeley) 6/2/93
  12287. */
  12288. /*
  12289. * Do not add any new variables here. (See the comment at the end of
  12290. * the file for why.)
  12291. */
  12292. /*
  12293. * We leave the following values undefined to force applications to either
  12294. * assume conservative values or call sysconf() to get the current value.
  12295. *
  12296. * HOST_NAME_MAX
  12297. *
  12298. * (We should do this for most of the values currently defined here,
  12299. * but many programs are not prepared to deal with this yet.)
  12300. */
  12301. var XXRenderExtensionInfo TXRenderExtInfo
  12302. var XXRenderExtensionName = [7]int8{'R', 'E', 'N', 'D', 'E', 'R'}
  12303. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  12304. var __ccgo_ts1 = "rgba:\x00"