AngelScriptAPI.h 220 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint8 unsigned char
  6. #define uint16 unsigned short
  7. #define uint64 unsigned long
  8. #define null 0
  9. // Classes
  10. class AnimatedModel
  11. {
  12. // Methods:
  13. AnimationState AddAnimationState(Animation);
  14. void ApplyAttributes();
  15. void ApplyMaterialList(const String& = String ( ));
  16. void DrawDebugGeometry(DebugRenderer, bool);
  17. AnimationState GetAnimationState(Animation) const;
  18. AnimationState GetAnimationState(uint) const;
  19. Variant GetAttribute(const String&) const;
  20. Variant GetAttributeDefault(const String&) const;
  21. float GetMorphWeight(uint) const;
  22. bool IsInView(Camera) const;
  23. bool Load(File, bool = false);
  24. bool LoadXML(const XMLElement&, bool = false);
  25. void MarkNetworkUpdate() const;
  26. void Remove();
  27. void RemoveAllAnimationStates();
  28. void RemoveAnimationState(Animation);
  29. void RemoveAnimationState(AnimationState);
  30. void RemoveAnimationState(const String&);
  31. void RemoveAnimationState(uint);
  32. void RemoveInstanceDefault();
  33. void ResetMorphWeights();
  34. void ResetToDefault();
  35. bool Save(File) const;
  36. bool SaveXML(XMLElement&) const;
  37. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  38. bool SetAttribute(const String&, const Variant&);
  39. void SetMorphWeight(uint, float);
  40. // Properties:
  41. float animationLodBias;
  42. /* readonly */
  43. Array<AnimationState> animationStates;
  44. /* readonly */
  45. Array<Variant> attributeDefaults;
  46. /* readonly */
  47. Array<AttributeInfo> attributeInfos;
  48. Array<Variant> attributes;
  49. /* readonly */
  50. ShortStringHash baseType;
  51. /* readonly */
  52. BoundingBox boundingBox;
  53. bool castShadows;
  54. /* readonly */
  55. String category;
  56. float drawDistance;
  57. bool enabled;
  58. /* readonly */
  59. bool enabledEffective;
  60. /* readonly */
  61. uint id;
  62. /* readonly */
  63. bool inView;
  64. uint lightMask;
  65. float lodBias;
  66. /* writeonly */
  67. Material material;
  68. Array<Material> materials;
  69. uint maxLights;
  70. Model model;
  71. /* readonly */
  72. Array<String> morphNames;
  73. Array<float> morphWeights;
  74. /* readonly */
  75. Node node;
  76. /* readonly */
  77. uint numAnimationStates;
  78. /* readonly */
  79. uint numAttributes;
  80. /* readonly */
  81. uint numGeometries;
  82. /* readonly */
  83. uint numMorphs;
  84. bool occludee;
  85. bool occluder;
  86. /* readonly */
  87. int refs;
  88. float shadowDistance;
  89. uint shadowMask;
  90. /* readonly */
  91. Skeleton skeleton;
  92. bool temporary;
  93. /* readonly */
  94. ShortStringHash type;
  95. /* readonly */
  96. String typeName;
  97. bool updateInvisible;
  98. uint viewMask;
  99. /* readonly */
  100. int weakRefs;
  101. /* readonly */
  102. BoundingBox worldBoundingBox;
  103. /* readonly */
  104. Zone zone;
  105. uint zoneMask;
  106. };
  107. class AnimatedSprite2D
  108. {
  109. // Methods:
  110. void ApplyAttributes();
  111. void DrawDebugGeometry(DebugRenderer, bool);
  112. Variant GetAttribute(const String&) const;
  113. Variant GetAttributeDefault(const String&) const;
  114. bool IsInView(Camera) const;
  115. bool Load(File, bool = false);
  116. bool LoadXML(const XMLElement&, bool = false);
  117. void MarkNetworkUpdate() const;
  118. void Remove();
  119. void RemoveInstanceDefault();
  120. void ResetToDefault();
  121. bool Save(File) const;
  122. bool SaveXML(XMLElement&) const;
  123. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  124. bool SetAttribute(const String&, const Variant&);
  125. void SetFlip(bool, bool);
  126. // Properties:
  127. Animation2D animation;
  128. /* readonly */
  129. Array<Variant> attributeDefaults;
  130. /* readonly */
  131. Array<AttributeInfo> attributeInfos;
  132. Array<Variant> attributes;
  133. /* readonly */
  134. ShortStringHash baseType;
  135. BlendMode blendMode;
  136. /* readonly */
  137. BoundingBox boundingBox;
  138. bool castShadows;
  139. /* readonly */
  140. String category;
  141. Color color;
  142. CycleMode cycleMode;
  143. float drawDistance;
  144. bool enabled;
  145. /* readonly */
  146. bool enabledEffective;
  147. bool flipX;
  148. bool flipY;
  149. /* readonly */
  150. uint id;
  151. /* readonly */
  152. bool inView;
  153. uint lightMask;
  154. float lodBias;
  155. Material material;
  156. uint maxLights;
  157. /* readonly */
  158. Node node;
  159. /* readonly */
  160. uint numAttributes;
  161. bool occludee;
  162. bool occluder;
  163. /* readonly */
  164. int refs;
  165. float shadowDistance;
  166. uint shadowMask;
  167. float speed;
  168. Sprite2D sprite;
  169. bool temporary;
  170. /* readonly */
  171. ShortStringHash type;
  172. /* readonly */
  173. String typeName;
  174. uint viewMask;
  175. /* readonly */
  176. int weakRefs;
  177. /* readonly */
  178. BoundingBox worldBoundingBox;
  179. float zValue;
  180. uint zoneMask;
  181. };
  182. class Animation
  183. {
  184. // Methods:
  185. void AddTrigger(float, bool, const Variant&);
  186. bool Load(File);
  187. void RemoveAllTriggers();
  188. void RemoveTrigger(uint);
  189. bool Save(File) const;
  190. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  191. // Properties:
  192. /* readonly */
  193. String animationName;
  194. /* readonly */
  195. ShortStringHash baseType;
  196. /* readonly */
  197. String category;
  198. /* readonly */
  199. float length;
  200. /* readonly */
  201. uint memoryUse;
  202. String name;
  203. /* readonly */
  204. uint numTracks;
  205. uint numTriggers;
  206. /* readonly */
  207. int refs;
  208. /* readonly */
  209. Array<AnimationTriggerPoint> triggers;
  210. /* readonly */
  211. ShortStringHash type;
  212. /* readonly */
  213. String typeName;
  214. /* readonly */
  215. uint useTimer;
  216. /* readonly */
  217. int weakRefs;
  218. };
  219. class Animation2D
  220. {
  221. // Methods:
  222. Sprite GetFrameSprite(uint) const;
  223. Sprite GetFrameSpriteByTime(float) const;
  224. bool Load(File);
  225. bool Save(File) const;
  226. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  227. // Properties:
  228. /* readonly */
  229. ShortStringHash baseType;
  230. /* readonly */
  231. String category;
  232. /* readonly */
  233. uint memoryUse;
  234. String name;
  235. /* readonly */
  236. uint numFrames;
  237. /* readonly */
  238. int refs;
  239. /* readonly */
  240. float totalTime;
  241. /* readonly */
  242. ShortStringHash type;
  243. /* readonly */
  244. String typeName;
  245. /* readonly */
  246. uint useTimer;
  247. /* readonly */
  248. int weakRefs;
  249. };
  250. class AnimationController
  251. {
  252. // Methods:
  253. void ApplyAttributes();
  254. void DrawDebugGeometry(DebugRenderer, bool);
  255. bool Fade(const String&, float, float);
  256. bool FadeOthers(const String&, float, float);
  257. AnimationState GetAnimationState(StringHash) const;
  258. AnimationState GetAnimationState(const String&) const;
  259. Variant GetAttribute(const String&) const;
  260. Variant GetAttributeDefault(const String&) const;
  261. float GetAutoFade(const String&) const;
  262. float GetFadeTarget(const String&) const;
  263. uint8 GetLayer(const String&) const;
  264. float GetLength(const String&) const;
  265. bool GetLooped(const String&) const;
  266. float GetSpeed(const String&) const;
  267. float GetTime(const String&) const;
  268. float GetWeight(const String&) const;
  269. bool IsFadingIn(const String&) const;
  270. bool IsFadingOut(const String&) const;
  271. bool IsPlaying(const String&) const;
  272. bool Load(File, bool = false);
  273. bool LoadXML(const XMLElement&, bool = false);
  274. void MarkNetworkUpdate() const;
  275. bool Play(const String&, uint8, bool, float = 0.0f);
  276. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  277. void Remove();
  278. void RemoveInstanceDefault();
  279. void ResetToDefault();
  280. bool Save(File) const;
  281. bool SaveXML(XMLElement&) const;
  282. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  283. bool SetAttribute(const String&, const Variant&);
  284. bool SetAutoFade(const String&, float);
  285. bool SetLayer(const String&, uint8);
  286. bool SetLooped(const String&, bool);
  287. bool SetSpeed(const String&, float);
  288. bool SetStartBone(const String&, const String&);
  289. bool SetTime(const String&, float);
  290. bool SetWeight(const String&, float);
  291. void Stop(const String&, float = 0.0f);
  292. void StopAll(float = 0.0f);
  293. void StopLayer(uint8, float = 0.0f);
  294. const String& GetStartBone(const String&) const;
  295. // Properties:
  296. /* readonly */
  297. Array<Variant> attributeDefaults;
  298. /* readonly */
  299. Array<AttributeInfo> attributeInfos;
  300. Array<Variant> attributes;
  301. /* readonly */
  302. ShortStringHash baseType;
  303. /* readonly */
  304. String category;
  305. bool enabled;
  306. /* readonly */
  307. bool enabledEffective;
  308. /* readonly */
  309. uint id;
  310. /* readonly */
  311. Node node;
  312. /* readonly */
  313. uint numAttributes;
  314. /* readonly */
  315. int refs;
  316. bool temporary;
  317. /* readonly */
  318. ShortStringHash type;
  319. /* readonly */
  320. String typeName;
  321. /* readonly */
  322. int weakRefs;
  323. };
  324. class AnimationState
  325. {
  326. // Methods:
  327. void AddTime(float);
  328. void AddWeight(float);
  329. void Apply();
  330. float GetBoneWeight(StringHash) const;
  331. float GetBoneWeight(uint) const;
  332. uint GetTrackIndex(StringHash) const;
  333. uint GetTrackIndex(const String&) const;
  334. void SetBoneWeight(StringHash, float, bool = false);
  335. void SetBoneWeight(const String&, float, bool = false);
  336. void SetBoneWeight(uint, float, bool = false);
  337. // Properties:
  338. /* readonly */
  339. Animation animation;
  340. Array<float> boneWeights;
  341. /* readonly */
  342. bool enabled;
  343. uint8 layer;
  344. /* readonly */
  345. float length;
  346. bool looped;
  347. /* readonly */
  348. AnimatedModel model;
  349. /* readonly */
  350. Node node;
  351. /* readonly */
  352. int refs;
  353. Bone startBone;
  354. float time;
  355. /* readonly */
  356. int weakRefs;
  357. float weight;
  358. };
  359. class AnimationTriggerPoint
  360. {
  361. // Properties:
  362. Variant data;
  363. float time;
  364. };
  365. template <class T> class Array
  366. {
  367. // Methods:
  368. void Clear();
  369. void Erase(uint);
  370. int Find(const T&) const;
  371. int Find(uint, const T&) const;
  372. void Insert(uint, const T&);
  373. void Pop();
  374. void Push(const T&);
  375. void Resize(uint);
  376. void Reverse();
  377. void Sort();
  378. void Sort(uint, uint);
  379. void SortReverse();
  380. void SortReverse(uint, uint);
  381. // Properties:
  382. /* readonly */
  383. bool empty;
  384. uint length;
  385. };
  386. class AttributeInfo
  387. {
  388. // Properties:
  389. Variant defaultValue;
  390. /* readonly */
  391. Array<String> enumNames;
  392. uint mode;
  393. String name;
  394. VariantType type;
  395. };
  396. class Audio
  397. {
  398. // Methods:
  399. bool Play();
  400. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  401. void SetMode(int, int, bool, bool = true);
  402. void Stop();
  403. // Properties:
  404. /* readonly */
  405. ShortStringHash baseType;
  406. /* readonly */
  407. String category;
  408. /* readonly */
  409. bool initialized;
  410. /* readonly */
  411. bool interpolation;
  412. SoundListener listener;
  413. Array<float> masterGain;
  414. /* readonly */
  415. int mixRate;
  416. /* readonly */
  417. bool playing;
  418. /* readonly */
  419. int refs;
  420. /* readonly */
  421. uint sampleSize;
  422. /* readonly */
  423. bool stereo;
  424. /* readonly */
  425. ShortStringHash type;
  426. /* readonly */
  427. String typeName;
  428. /* readonly */
  429. int weakRefs;
  430. };
  431. class BiasParameters
  432. {
  433. // Properties:
  434. float constantBias;
  435. float slopeScaledBias;
  436. };
  437. class Billboard
  438. {
  439. // Properties:
  440. Color color;
  441. bool enabled;
  442. Vector3 position;
  443. float rotation;
  444. Vector2 size;
  445. Rect uv;
  446. };
  447. class BillboardSet
  448. {
  449. // Methods:
  450. void ApplyAttributes();
  451. void Commit();
  452. void DrawDebugGeometry(DebugRenderer, bool);
  453. Variant GetAttribute(const String&) const;
  454. Variant GetAttributeDefault(const String&) const;
  455. bool IsInView(Camera) const;
  456. bool Load(File, bool = false);
  457. bool LoadXML(const XMLElement&, bool = false);
  458. void MarkNetworkUpdate() const;
  459. void Remove();
  460. void RemoveInstanceDefault();
  461. void ResetToDefault();
  462. bool Save(File) const;
  463. bool SaveXML(XMLElement&) const;
  464. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  465. bool SetAttribute(const String&, const Variant&);
  466. // Properties:
  467. float animationLodBias;
  468. /* readonly */
  469. Array<Variant> attributeDefaults;
  470. /* readonly */
  471. Array<AttributeInfo> attributeInfos;
  472. Array<Variant> attributes;
  473. /* readonly */
  474. ShortStringHash baseType;
  475. /* readonly */
  476. Array<Billboard> billboards;
  477. /* readonly */
  478. BoundingBox boundingBox;
  479. bool castShadows;
  480. /* readonly */
  481. String category;
  482. float drawDistance;
  483. bool enabled;
  484. /* readonly */
  485. bool enabledEffective;
  486. bool faceCamera;
  487. /* readonly */
  488. uint id;
  489. /* readonly */
  490. bool inView;
  491. uint lightMask;
  492. float lodBias;
  493. Material material;
  494. uint maxLights;
  495. /* readonly */
  496. Node node;
  497. /* readonly */
  498. uint numAttributes;
  499. uint numBillboards;
  500. bool occludee;
  501. bool occluder;
  502. /* readonly */
  503. int refs;
  504. bool relative;
  505. bool scaled;
  506. float shadowDistance;
  507. uint shadowMask;
  508. bool sorted;
  509. bool temporary;
  510. /* readonly */
  511. ShortStringHash type;
  512. /* readonly */
  513. String typeName;
  514. uint viewMask;
  515. /* readonly */
  516. int weakRefs;
  517. /* readonly */
  518. BoundingBox worldBoundingBox;
  519. /* readonly */
  520. Zone zone;
  521. uint zoneMask;
  522. };
  523. class Bone
  524. {
  525. // Properties:
  526. bool animated;
  527. BoundingBox boundingBox;
  528. Vector3 initialPosition;
  529. Quaternion initialRotation;
  530. Vector3 initialScale;
  531. String name;
  532. Node node;
  533. float radius;
  534. };
  535. class BorderImage
  536. {
  537. // Methods:
  538. void AddChild(UIElement);
  539. void ApplyAttributes();
  540. void BringToFront();
  541. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  542. void DisableLayoutUpdate();
  543. IntVector2 ElementToScreen(const IntVector2&);
  544. void EnableLayoutUpdate();
  545. uint FindChild(UIElement) const;
  546. Variant GetAttribute(const String&) const;
  547. Variant GetAttributeDefault(const String&) const;
  548. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  549. UIElement GetChild(const String&, bool = false) const;
  550. Array<UIElement> GetChildren(bool = false) const;
  551. UIElement GetElementEventSender() const;
  552. uint GetNumChildren(bool) const;
  553. void InsertChild(uint, UIElement);
  554. bool IsInside(IntVector2, bool);
  555. bool IsInsideCombined(IntVector2, bool);
  556. bool Load(File, bool = false);
  557. bool LoadChildXML(XMLFile, XMLFile = null);
  558. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  559. bool LoadXML(File);
  560. bool LoadXML(XMLFile, XMLFile);
  561. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  562. bool LoadXML(const XMLElement&, bool = false);
  563. void Remove();
  564. void RemoveAllChildren();
  565. void RemoveChild(UIElement, uint = 0);
  566. void RemoveChild(uint);
  567. void RemoveInstanceDefault();
  568. void ResetToDefault();
  569. bool Save(File) const;
  570. bool SaveXML(File);
  571. bool SaveXML(XMLElement&) const;
  572. IntVector2 ScreenToElement(const IntVector2&);
  573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  574. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  575. bool SetAttribute(const String&, const Variant&);
  576. void SetFixedHeight(int);
  577. void SetFixedSize(int, int);
  578. void SetFixedWidth(int);
  579. void SetFullImageRect();
  580. void SetHoverOffset(int, int);
  581. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  582. void SetMaxSize(int, int);
  583. void SetMinSize(int, int);
  584. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  585. void SetPosition(int, int);
  586. void SetSize(int, int);
  587. bool SetStyle(const String&, XMLFile = null);
  588. bool SetStyle(const XMLElement&);
  589. bool SetStyleAuto(XMLFile = null);
  590. void UpdateLayout();
  591. const Variant& GetVar(const ShortStringHash&);
  592. // Properties:
  593. /* readonly */
  594. Array<Variant> attributeDefaults;
  595. /* readonly */
  596. Array<AttributeInfo> attributeInfos;
  597. Array<Variant> attributes;
  598. /* readonly */
  599. ShortStringHash baseType;
  600. BlendMode blendMode;
  601. IntRect border;
  602. bool bringToBack;
  603. bool bringToFront;
  604. /* readonly */
  605. String category;
  606. /* readonly */
  607. IntVector2 childOffset;
  608. /* readonly */
  609. Array<UIElement> children;
  610. IntRect clipBorder;
  611. bool clipChildren;
  612. /* writeonly */
  613. Color color;
  614. /* readonly */
  615. bool colorGradient;
  616. Array<Color> colors;
  617. /* readonly */
  618. IntRect combinedScreenRect;
  619. XMLFile defaultStyle;
  620. /* readonly */
  621. float derivedOpacity;
  622. uint dragDropMode;
  623. bool editable;
  624. bool elementEventSender;
  625. bool enabled;
  626. /* readonly */
  627. bool fixedHeight;
  628. /* readonly */
  629. bool fixedSize;
  630. /* readonly */
  631. bool fixedWidth;
  632. bool focus;
  633. FocusMode focusMode;
  634. int height;
  635. HorizontalAlignment horizontalAlignment;
  636. IntVector2 hoverOffset;
  637. /* readonly */
  638. bool hovering;
  639. IntRect imageRect;
  640. int indent;
  641. int indentSpacing;
  642. /* readonly */
  643. int indentWidth;
  644. bool internal;
  645. IntRect layoutBorder;
  646. LayoutMode layoutMode;
  647. int layoutSpacing;
  648. int maxHeight;
  649. IntVector2 maxSize;
  650. int maxWidth;
  651. int minHeight;
  652. IntVector2 minSize;
  653. int minWidth;
  654. String name;
  655. /* readonly */
  656. uint numAllChildren;
  657. /* readonly */
  658. uint numAttributes;
  659. /* readonly */
  660. uint numChildren;
  661. float opacity;
  662. UIElement parent;
  663. IntVector2 position;
  664. int priority;
  665. /* readonly */
  666. int refs;
  667. /* readonly */
  668. UIElement root;
  669. /* readonly */
  670. IntVector2 screenPosition;
  671. bool selected;
  672. IntVector2 size;
  673. bool sortChildren;
  674. String style;
  675. bool temporary;
  676. Texture texture;
  677. bool tiled;
  678. TraversalMode traversalMode;
  679. /* readonly */
  680. ShortStringHash type;
  681. /* readonly */
  682. String typeName;
  683. bool useDerivedOpacity;
  684. /* readonly */
  685. VariantMap vars;
  686. VerticalAlignment verticalAlignment;
  687. bool visible;
  688. /* readonly */
  689. int weakRefs;
  690. int width;
  691. };
  692. class BoundingBox
  693. {
  694. // Methods:
  695. void Clear();
  696. void Clip(const BoundingBox&);
  697. void Define(const BoundingBox&);
  698. void Define(const Frustum&);
  699. void Define(const Polyhedron&);
  700. void Define(const Sphere&);
  701. void Define(const Vector3&);
  702. void Define(const Vector3&, const Vector3&);
  703. void Define(float, float);
  704. Intersection IsInside(const BoundingBox&) const;
  705. Intersection IsInside(const Sphere&) const;
  706. Intersection IsInside(const Vector3&) const;
  707. void Merge(const BoundingBox&);
  708. void Merge(const Frustum&);
  709. void Merge(const Polyhedron&);
  710. void Merge(const Sphere&);
  711. void Merge(const Vector3&);
  712. Rect Projected(const Matrix4&) const;
  713. String ToString() const;
  714. void Transform(const Matrix3&);
  715. void Transform(const Matrix3x4&);
  716. BoundingBox Transformed(const Matrix3&) const;
  717. BoundingBox Transformed(const Matrix3x4&) const;
  718. // Properties:
  719. /* readonly */
  720. Vector3 center;
  721. bool defined;
  722. /* readonly */
  723. Vector3 halfSize;
  724. Vector3 max;
  725. Vector3 min;
  726. /* readonly */
  727. Vector3 size;
  728. };
  729. class Button
  730. {
  731. // Methods:
  732. void AddChild(UIElement);
  733. void ApplyAttributes();
  734. void BringToFront();
  735. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  736. void DisableLayoutUpdate();
  737. IntVector2 ElementToScreen(const IntVector2&);
  738. void EnableLayoutUpdate();
  739. uint FindChild(UIElement) const;
  740. Variant GetAttribute(const String&) const;
  741. Variant GetAttributeDefault(const String&) const;
  742. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  743. UIElement GetChild(const String&, bool = false) const;
  744. Array<UIElement> GetChildren(bool = false) const;
  745. UIElement GetElementEventSender() const;
  746. uint GetNumChildren(bool) const;
  747. void InsertChild(uint, UIElement);
  748. bool IsInside(IntVector2, bool);
  749. bool IsInsideCombined(IntVector2, bool);
  750. bool Load(File, bool = false);
  751. bool LoadChildXML(XMLFile, XMLFile = null);
  752. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  753. bool LoadXML(File);
  754. bool LoadXML(XMLFile, XMLFile);
  755. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  756. bool LoadXML(const XMLElement&, bool = false);
  757. void Remove();
  758. void RemoveAllChildren();
  759. void RemoveChild(UIElement, uint = 0);
  760. void RemoveChild(uint);
  761. void RemoveInstanceDefault();
  762. void ResetToDefault();
  763. bool Save(File) const;
  764. bool SaveXML(File);
  765. bool SaveXML(XMLElement&) const;
  766. IntVector2 ScreenToElement(const IntVector2&);
  767. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  768. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  769. bool SetAttribute(const String&, const Variant&);
  770. void SetFixedHeight(int);
  771. void SetFixedSize(int, int);
  772. void SetFixedWidth(int);
  773. void SetFullImageRect();
  774. void SetHoverOffset(int, int);
  775. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  776. void SetMaxSize(int, int);
  777. void SetMinSize(int, int);
  778. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  779. void SetPosition(int, int);
  780. void SetPressedChildOffset(int, int);
  781. void SetPressedOffset(int, int);
  782. void SetRepeat(float, float);
  783. void SetSize(int, int);
  784. bool SetStyle(const String&, XMLFile = null);
  785. bool SetStyle(const XMLElement&);
  786. bool SetStyleAuto(XMLFile = null);
  787. void UpdateLayout();
  788. const Variant& GetVar(const ShortStringHash&);
  789. // Properties:
  790. /* readonly */
  791. Array<Variant> attributeDefaults;
  792. /* readonly */
  793. Array<AttributeInfo> attributeInfos;
  794. Array<Variant> attributes;
  795. /* readonly */
  796. ShortStringHash baseType;
  797. BlendMode blendMode;
  798. IntRect border;
  799. bool bringToBack;
  800. bool bringToFront;
  801. /* readonly */
  802. String category;
  803. /* readonly */
  804. IntVector2 childOffset;
  805. /* readonly */
  806. Array<UIElement> children;
  807. IntRect clipBorder;
  808. bool clipChildren;
  809. /* writeonly */
  810. Color color;
  811. /* readonly */
  812. bool colorGradient;
  813. Array<Color> colors;
  814. /* readonly */
  815. IntRect combinedScreenRect;
  816. XMLFile defaultStyle;
  817. /* readonly */
  818. float derivedOpacity;
  819. uint dragDropMode;
  820. bool editable;
  821. bool elementEventSender;
  822. bool enabled;
  823. /* readonly */
  824. bool fixedHeight;
  825. /* readonly */
  826. bool fixedSize;
  827. /* readonly */
  828. bool fixedWidth;
  829. bool focus;
  830. FocusMode focusMode;
  831. int height;
  832. HorizontalAlignment horizontalAlignment;
  833. IntVector2 hoverOffset;
  834. /* readonly */
  835. bool hovering;
  836. IntRect imageRect;
  837. int indent;
  838. int indentSpacing;
  839. /* readonly */
  840. int indentWidth;
  841. bool internal;
  842. IntRect layoutBorder;
  843. LayoutMode layoutMode;
  844. int layoutSpacing;
  845. int maxHeight;
  846. IntVector2 maxSize;
  847. int maxWidth;
  848. int minHeight;
  849. IntVector2 minSize;
  850. int minWidth;
  851. String name;
  852. /* readonly */
  853. uint numAllChildren;
  854. /* readonly */
  855. uint numAttributes;
  856. /* readonly */
  857. uint numChildren;
  858. float opacity;
  859. UIElement parent;
  860. IntVector2 position;
  861. /* readonly */
  862. bool pressed;
  863. IntVector2 pressedChildOffset;
  864. IntVector2 pressedOffset;
  865. int priority;
  866. /* readonly */
  867. int refs;
  868. float repeatDelay;
  869. float repeatRate;
  870. /* readonly */
  871. UIElement root;
  872. /* readonly */
  873. IntVector2 screenPosition;
  874. bool selected;
  875. IntVector2 size;
  876. bool sortChildren;
  877. String style;
  878. bool temporary;
  879. Texture texture;
  880. bool tiled;
  881. TraversalMode traversalMode;
  882. /* readonly */
  883. ShortStringHash type;
  884. /* readonly */
  885. String typeName;
  886. bool useDerivedOpacity;
  887. /* readonly */
  888. VariantMap vars;
  889. VerticalAlignment verticalAlignment;
  890. bool visible;
  891. /* readonly */
  892. int weakRefs;
  893. int width;
  894. };
  895. class Camera
  896. {
  897. // Methods:
  898. void ApplyAttributes();
  899. void DrawDebugGeometry(DebugRenderer, bool);
  900. Variant GetAttribute(const String&) const;
  901. Variant GetAttributeDefault(const String&) const;
  902. float GetDistance(const Vector3&) const;
  903. float GetDistanceSquared(const Vector3&) const;
  904. Ray GetScreenRay(float, float) const;
  905. Frustum GetSplitFrustum(float, float) const;
  906. bool Load(File, bool = false);
  907. bool LoadXML(const XMLElement&, bool = false);
  908. void MarkNetworkUpdate() const;
  909. void Remove();
  910. void RemoveInstanceDefault();
  911. void ResetToDefault();
  912. bool Save(File) const;
  913. bool SaveXML(XMLElement&) const;
  914. Vector3 ScreenToWorldPoint(const Vector3&) const;
  915. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  916. bool SetAttribute(const String&, const Variant&);
  917. void SetOrthoSize(const Vector2&);
  918. Vector2 WorldToScreenPoint(const Vector3&) const;
  919. // Properties:
  920. float aspectRatio;
  921. /* readonly */
  922. Array<Variant> attributeDefaults;
  923. /* readonly */
  924. Array<AttributeInfo> attributeInfos;
  925. Array<Variant> attributes;
  926. bool autoAspectRatio;
  927. /* readonly */
  928. ShortStringHash baseType;
  929. /* readonly */
  930. String category;
  931. Plane clipPlane;
  932. /* readonly */
  933. Matrix3x4 effectiveWorldTransform;
  934. bool enabled;
  935. /* readonly */
  936. bool enabledEffective;
  937. float farClip;
  938. FillMode fillMode;
  939. float fov;
  940. /* readonly */
  941. Frustum frustum;
  942. /* readonly */
  943. float halfViewSize;
  944. /* readonly */
  945. uint id;
  946. float lodBias;
  947. float nearClip;
  948. /* readonly */
  949. Node node;
  950. /* readonly */
  951. uint numAttributes;
  952. float orthoSize;
  953. bool orthographic;
  954. /* readonly */
  955. Matrix4 projection;
  956. Vector2 projectionOffset;
  957. Plane reflectionPlane;
  958. /* readonly */
  959. int refs;
  960. bool temporary;
  961. /* readonly */
  962. ShortStringHash type;
  963. /* readonly */
  964. String typeName;
  965. bool useClipping;
  966. bool useReflection;
  967. /* readonly */
  968. Matrix3x4 view;
  969. uint viewMask;
  970. uint viewOverrideFlags;
  971. /* readonly */
  972. Frustum viewSpaceFrustum;
  973. /* readonly */
  974. int weakRefs;
  975. float zoom;
  976. };
  977. class CascadeParameters
  978. {
  979. // Properties:
  980. float biasAutoAdjust;
  981. float fadeStart;
  982. float split1;
  983. float split2;
  984. float split3;
  985. float split4;
  986. };
  987. class CheckBox
  988. {
  989. // Methods:
  990. void AddChild(UIElement);
  991. void ApplyAttributes();
  992. void BringToFront();
  993. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  994. void DisableLayoutUpdate();
  995. IntVector2 ElementToScreen(const IntVector2&);
  996. void EnableLayoutUpdate();
  997. uint FindChild(UIElement) const;
  998. Variant GetAttribute(const String&) const;
  999. Variant GetAttributeDefault(const String&) const;
  1000. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  1001. UIElement GetChild(const String&, bool = false) const;
  1002. Array<UIElement> GetChildren(bool = false) const;
  1003. UIElement GetElementEventSender() const;
  1004. uint GetNumChildren(bool) const;
  1005. void InsertChild(uint, UIElement);
  1006. bool IsInside(IntVector2, bool);
  1007. bool IsInsideCombined(IntVector2, bool);
  1008. bool Load(File, bool = false);
  1009. bool LoadChildXML(XMLFile, XMLFile = null);
  1010. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1011. bool LoadXML(File);
  1012. bool LoadXML(XMLFile, XMLFile);
  1013. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1014. bool LoadXML(const XMLElement&, bool = false);
  1015. void Remove();
  1016. void RemoveAllChildren();
  1017. void RemoveChild(UIElement, uint = 0);
  1018. void RemoveChild(uint);
  1019. void RemoveInstanceDefault();
  1020. void ResetToDefault();
  1021. bool Save(File) const;
  1022. bool SaveXML(File);
  1023. bool SaveXML(XMLElement&) const;
  1024. IntVector2 ScreenToElement(const IntVector2&);
  1025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1026. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1027. bool SetAttribute(const String&, const Variant&);
  1028. void SetCheckedOffset(int, int);
  1029. void SetFixedHeight(int);
  1030. void SetFixedSize(int, int);
  1031. void SetFixedWidth(int);
  1032. void SetFullImageRect();
  1033. void SetHoverOffset(int, int);
  1034. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1035. void SetMaxSize(int, int);
  1036. void SetMinSize(int, int);
  1037. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1038. void SetPosition(int, int);
  1039. void SetSize(int, int);
  1040. bool SetStyle(const String&, XMLFile = null);
  1041. bool SetStyle(const XMLElement&);
  1042. bool SetStyleAuto(XMLFile = null);
  1043. void UpdateLayout();
  1044. const Variant& GetVar(const ShortStringHash&);
  1045. // Properties:
  1046. /* readonly */
  1047. Array<Variant> attributeDefaults;
  1048. /* readonly */
  1049. Array<AttributeInfo> attributeInfos;
  1050. Array<Variant> attributes;
  1051. /* readonly */
  1052. ShortStringHash baseType;
  1053. BlendMode blendMode;
  1054. IntRect border;
  1055. bool bringToBack;
  1056. bool bringToFront;
  1057. /* readonly */
  1058. String category;
  1059. bool checked;
  1060. IntVector2 checkedOffset;
  1061. /* readonly */
  1062. IntVector2 childOffset;
  1063. /* readonly */
  1064. Array<UIElement> children;
  1065. IntRect clipBorder;
  1066. bool clipChildren;
  1067. /* writeonly */
  1068. Color color;
  1069. /* readonly */
  1070. bool colorGradient;
  1071. Array<Color> colors;
  1072. /* readonly */
  1073. IntRect combinedScreenRect;
  1074. XMLFile defaultStyle;
  1075. /* readonly */
  1076. float derivedOpacity;
  1077. uint dragDropMode;
  1078. bool editable;
  1079. bool elementEventSender;
  1080. bool enabled;
  1081. /* readonly */
  1082. bool fixedHeight;
  1083. /* readonly */
  1084. bool fixedSize;
  1085. /* readonly */
  1086. bool fixedWidth;
  1087. bool focus;
  1088. FocusMode focusMode;
  1089. int height;
  1090. HorizontalAlignment horizontalAlignment;
  1091. IntVector2 hoverOffset;
  1092. /* readonly */
  1093. bool hovering;
  1094. IntRect imageRect;
  1095. int indent;
  1096. int indentSpacing;
  1097. /* readonly */
  1098. int indentWidth;
  1099. bool internal;
  1100. IntRect layoutBorder;
  1101. LayoutMode layoutMode;
  1102. int layoutSpacing;
  1103. int maxHeight;
  1104. IntVector2 maxSize;
  1105. int maxWidth;
  1106. int minHeight;
  1107. IntVector2 minSize;
  1108. int minWidth;
  1109. String name;
  1110. /* readonly */
  1111. uint numAllChildren;
  1112. /* readonly */
  1113. uint numAttributes;
  1114. /* readonly */
  1115. uint numChildren;
  1116. float opacity;
  1117. UIElement parent;
  1118. IntVector2 position;
  1119. int priority;
  1120. /* readonly */
  1121. int refs;
  1122. /* readonly */
  1123. UIElement root;
  1124. /* readonly */
  1125. IntVector2 screenPosition;
  1126. bool selected;
  1127. IntVector2 size;
  1128. bool sortChildren;
  1129. String style;
  1130. bool temporary;
  1131. Texture texture;
  1132. bool tiled;
  1133. TraversalMode traversalMode;
  1134. /* readonly */
  1135. ShortStringHash type;
  1136. /* readonly */
  1137. String typeName;
  1138. bool useDerivedOpacity;
  1139. /* readonly */
  1140. VariantMap vars;
  1141. VerticalAlignment verticalAlignment;
  1142. bool visible;
  1143. /* readonly */
  1144. int weakRefs;
  1145. int width;
  1146. };
  1147. class CollisionBox2D
  1148. {
  1149. // Methods:
  1150. void ApplyAttributes();
  1151. void DrawDebugGeometry(DebugRenderer, bool);
  1152. Variant GetAttribute(const String&) const;
  1153. Variant GetAttributeDefault(const String&) const;
  1154. bool Load(File, bool = false);
  1155. bool LoadXML(const XMLElement&, bool = false);
  1156. void MarkNetworkUpdate() const;
  1157. void Remove();
  1158. void RemoveInstanceDefault();
  1159. void ResetToDefault();
  1160. bool Save(File) const;
  1161. bool SaveXML(XMLElement&) const;
  1162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1163. bool SetAttribute(const String&, const Variant&);
  1164. void SetCenter(float, float);
  1165. void SetSize(float, float);
  1166. // Properties:
  1167. float angle;
  1168. /* readonly */
  1169. Array<Variant> attributeDefaults;
  1170. /* readonly */
  1171. Array<AttributeInfo> attributeInfos;
  1172. Array<Variant> attributes;
  1173. /* readonly */
  1174. ShortStringHash baseType;
  1175. /* readonly */
  1176. String category;
  1177. int categoryBits;
  1178. Vector2 center;
  1179. float density;
  1180. bool enabled;
  1181. /* readonly */
  1182. bool enabledEffective;
  1183. float friction;
  1184. int groupIndex;
  1185. /* readonly */
  1186. uint id;
  1187. /* readonly */
  1188. float inertia;
  1189. int maskBits;
  1190. /* readonly */
  1191. float mass;
  1192. /* readonly */
  1193. Vector2 massCenter;
  1194. /* readonly */
  1195. Node node;
  1196. /* readonly */
  1197. uint numAttributes;
  1198. /* readonly */
  1199. int refs;
  1200. float restitution;
  1201. bool sensor;
  1202. Vector2 size;
  1203. bool temporary;
  1204. /* readonly */
  1205. ShortStringHash type;
  1206. /* readonly */
  1207. String typeName;
  1208. /* readonly */
  1209. int weakRefs;
  1210. };
  1211. class CollisionChain2D
  1212. {
  1213. // Methods:
  1214. void ApplyAttributes();
  1215. void DrawDebugGeometry(DebugRenderer, bool);
  1216. Variant GetAttribute(const String&) const;
  1217. Variant GetAttributeDefault(const String&) const;
  1218. Array<Vector2> GetVertices() const;
  1219. bool Load(File, bool = false);
  1220. bool LoadXML(const XMLElement&, bool = false);
  1221. void MarkNetworkUpdate() const;
  1222. void Remove();
  1223. void RemoveInstanceDefault();
  1224. void ResetToDefault();
  1225. bool Save(File) const;
  1226. bool SaveXML(XMLElement&) const;
  1227. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1228. bool SetAttribute(const String&, const Variant&);
  1229. void SetVertex(uint, const Vector2&);
  1230. void SetVertices(Array<Vector2>);
  1231. const Vector2& GetVertex(uint) const;
  1232. // Properties:
  1233. /* readonly */
  1234. Array<Variant> attributeDefaults;
  1235. /* readonly */
  1236. Array<AttributeInfo> attributeInfos;
  1237. Array<Variant> attributes;
  1238. /* readonly */
  1239. ShortStringHash baseType;
  1240. /* readonly */
  1241. String category;
  1242. int categoryBits;
  1243. float density;
  1244. bool enabled;
  1245. /* readonly */
  1246. bool enabledEffective;
  1247. float friction;
  1248. int groupIndex;
  1249. /* readonly */
  1250. uint id;
  1251. /* readonly */
  1252. float inertia;
  1253. bool loop;
  1254. int maskBits;
  1255. /* readonly */
  1256. float mass;
  1257. /* readonly */
  1258. Vector2 massCenter;
  1259. /* readonly */
  1260. Node node;
  1261. /* readonly */
  1262. uint numAttributes;
  1263. /* readonly */
  1264. int refs;
  1265. float restitution;
  1266. bool sensor;
  1267. bool temporary;
  1268. /* readonly */
  1269. ShortStringHash type;
  1270. /* readonly */
  1271. String typeName;
  1272. uint vertexCount;
  1273. /* readonly */
  1274. int weakRefs;
  1275. };
  1276. class CollisionCircle2D
  1277. {
  1278. // Methods:
  1279. void ApplyAttributes();
  1280. void DrawDebugGeometry(DebugRenderer, bool);
  1281. Variant GetAttribute(const String&) const;
  1282. Variant GetAttributeDefault(const String&) const;
  1283. bool Load(File, bool = false);
  1284. bool LoadXML(const XMLElement&, bool = false);
  1285. void MarkNetworkUpdate() const;
  1286. void Remove();
  1287. void RemoveInstanceDefault();
  1288. void ResetToDefault();
  1289. bool Save(File) const;
  1290. bool SaveXML(XMLElement&) const;
  1291. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1292. bool SetAttribute(const String&, const Variant&);
  1293. void SetCenter(float, float);
  1294. // Properties:
  1295. /* readonly */
  1296. Array<Variant> attributeDefaults;
  1297. /* readonly */
  1298. Array<AttributeInfo> attributeInfos;
  1299. Array<Variant> attributes;
  1300. /* readonly */
  1301. ShortStringHash baseType;
  1302. /* readonly */
  1303. String category;
  1304. int categoryBits;
  1305. Vector2 center;
  1306. float density;
  1307. bool enabled;
  1308. /* readonly */
  1309. bool enabledEffective;
  1310. float friction;
  1311. int groupIndex;
  1312. /* readonly */
  1313. uint id;
  1314. /* readonly */
  1315. float inertia;
  1316. int maskBits;
  1317. /* readonly */
  1318. float mass;
  1319. /* readonly */
  1320. Vector2 massCenter;
  1321. /* readonly */
  1322. Node node;
  1323. /* readonly */
  1324. uint numAttributes;
  1325. float radius;
  1326. /* readonly */
  1327. int refs;
  1328. float restitution;
  1329. bool sensor;
  1330. bool temporary;
  1331. /* readonly */
  1332. ShortStringHash type;
  1333. /* readonly */
  1334. String typeName;
  1335. /* readonly */
  1336. int weakRefs;
  1337. };
  1338. class CollisionEdge2D
  1339. {
  1340. // Methods:
  1341. void ApplyAttributes();
  1342. void DrawDebugGeometry(DebugRenderer, bool);
  1343. Variant GetAttribute(const String&) const;
  1344. Variant GetAttributeDefault(const String&) const;
  1345. bool Load(File, bool = false);
  1346. bool LoadXML(const XMLElement&, bool = false);
  1347. void MarkNetworkUpdate() const;
  1348. void Remove();
  1349. void RemoveInstanceDefault();
  1350. void ResetToDefault();
  1351. bool Save(File) const;
  1352. bool SaveXML(XMLElement&) const;
  1353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1354. bool SetAttribute(const String&, const Variant&);
  1355. void SetVertices(const Vector2&, const Vector2&);
  1356. // Properties:
  1357. /* readonly */
  1358. Array<Variant> attributeDefaults;
  1359. /* readonly */
  1360. Array<AttributeInfo> attributeInfos;
  1361. Array<Variant> attributes;
  1362. /* readonly */
  1363. ShortStringHash baseType;
  1364. /* readonly */
  1365. String category;
  1366. int categoryBits;
  1367. float density;
  1368. bool enabled;
  1369. /* readonly */
  1370. bool enabledEffective;
  1371. float friction;
  1372. int groupIndex;
  1373. /* readonly */
  1374. uint id;
  1375. /* readonly */
  1376. float inertia;
  1377. int maskBits;
  1378. /* readonly */
  1379. float mass;
  1380. /* readonly */
  1381. Vector2 massCenter;
  1382. /* readonly */
  1383. Node node;
  1384. /* readonly */
  1385. uint numAttributes;
  1386. /* readonly */
  1387. int refs;
  1388. float restitution;
  1389. bool sensor;
  1390. bool temporary;
  1391. /* readonly */
  1392. ShortStringHash type;
  1393. /* readonly */
  1394. String typeName;
  1395. Vector2 vertex1;
  1396. Vector2 vertex2;
  1397. /* readonly */
  1398. int weakRefs;
  1399. };
  1400. class CollisionPolygon2D
  1401. {
  1402. // Methods:
  1403. void ApplyAttributes();
  1404. void DrawDebugGeometry(DebugRenderer, bool);
  1405. Variant GetAttribute(const String&) const;
  1406. Variant GetAttributeDefault(const String&) const;
  1407. Array<Vector2> GetVertices() const;
  1408. bool Load(File, bool = false);
  1409. bool LoadXML(const XMLElement&, bool = false);
  1410. void MarkNetworkUpdate() const;
  1411. void Remove();
  1412. void RemoveInstanceDefault();
  1413. void ResetToDefault();
  1414. bool Save(File) const;
  1415. bool SaveXML(XMLElement&) const;
  1416. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1417. bool SetAttribute(const String&, const Variant&);
  1418. void SetVertex(uint, const Vector2&);
  1419. void SetVertices(Array<Vector2>);
  1420. const Vector2& GetVertex(uint) const;
  1421. // Properties:
  1422. /* readonly */
  1423. Array<Variant> attributeDefaults;
  1424. /* readonly */
  1425. Array<AttributeInfo> attributeInfos;
  1426. Array<Variant> attributes;
  1427. /* readonly */
  1428. ShortStringHash baseType;
  1429. /* readonly */
  1430. String category;
  1431. int categoryBits;
  1432. float density;
  1433. bool enabled;
  1434. /* readonly */
  1435. bool enabledEffective;
  1436. float friction;
  1437. int groupIndex;
  1438. /* readonly */
  1439. uint id;
  1440. /* readonly */
  1441. float inertia;
  1442. int maskBits;
  1443. /* readonly */
  1444. float mass;
  1445. /* readonly */
  1446. Vector2 massCenter;
  1447. /* readonly */
  1448. Node node;
  1449. /* readonly */
  1450. uint numAttributes;
  1451. /* readonly */
  1452. int refs;
  1453. float restitution;
  1454. bool sensor;
  1455. bool temporary;
  1456. /* readonly */
  1457. ShortStringHash type;
  1458. /* readonly */
  1459. String typeName;
  1460. uint vertexCount;
  1461. /* readonly */
  1462. int weakRefs;
  1463. };
  1464. class CollisionShape
  1465. {
  1466. // Methods:
  1467. void ApplyAttributes();
  1468. void DrawDebugGeometry(DebugRenderer, bool);
  1469. Variant GetAttribute(const String&) const;
  1470. Variant GetAttributeDefault(const String&) const;
  1471. bool Load(File, bool = false);
  1472. bool LoadXML(const XMLElement&, bool = false);
  1473. void MarkNetworkUpdate() const;
  1474. void Remove();
  1475. void RemoveInstanceDefault();
  1476. void ResetToDefault();
  1477. bool Save(File) const;
  1478. bool SaveXML(XMLElement&) const;
  1479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1480. bool SetAttribute(const String&, const Variant&);
  1481. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1482. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1483. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1484. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1485. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1486. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1487. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1488. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1489. void SetTerrain();
  1490. void SetTransform(const Vector3&, const Quaternion&);
  1491. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1492. // Properties:
  1493. /* readonly */
  1494. Array<Variant> attributeDefaults;
  1495. /* readonly */
  1496. Array<AttributeInfo> attributeInfos;
  1497. Array<Variant> attributes;
  1498. /* readonly */
  1499. ShortStringHash baseType;
  1500. /* readonly */
  1501. String category;
  1502. bool enabled;
  1503. /* readonly */
  1504. bool enabledEffective;
  1505. /* readonly */
  1506. uint id;
  1507. uint lodLevel;
  1508. float margin;
  1509. Model model;
  1510. /* readonly */
  1511. Node node;
  1512. /* readonly */
  1513. uint numAttributes;
  1514. Vector3 position;
  1515. /* readonly */
  1516. int refs;
  1517. Quaternion rotation;
  1518. ShapeType shapeType;
  1519. Vector3 size;
  1520. bool temporary;
  1521. /* readonly */
  1522. ShortStringHash type;
  1523. /* readonly */
  1524. String typeName;
  1525. /* readonly */
  1526. int weakRefs;
  1527. /* readonly */
  1528. BoundingBox worldBoundingBox;
  1529. };
  1530. class CollisionShape2D
  1531. {
  1532. // Methods:
  1533. void ApplyAttributes();
  1534. void DrawDebugGeometry(DebugRenderer, bool);
  1535. Variant GetAttribute(const String&) const;
  1536. Variant GetAttributeDefault(const String&) const;
  1537. bool Load(File, bool = false);
  1538. bool LoadXML(const XMLElement&, bool = false);
  1539. void MarkNetworkUpdate() const;
  1540. void Remove();
  1541. void RemoveInstanceDefault();
  1542. void ResetToDefault();
  1543. bool Save(File) const;
  1544. bool SaveXML(XMLElement&) const;
  1545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1546. bool SetAttribute(const String&, const Variant&);
  1547. // Properties:
  1548. /* readonly */
  1549. Array<Variant> attributeDefaults;
  1550. /* readonly */
  1551. Array<AttributeInfo> attributeInfos;
  1552. Array<Variant> attributes;
  1553. /* readonly */
  1554. ShortStringHash baseType;
  1555. /* readonly */
  1556. String category;
  1557. int categoryBits;
  1558. float density;
  1559. bool enabled;
  1560. /* readonly */
  1561. bool enabledEffective;
  1562. float friction;
  1563. int groupIndex;
  1564. /* readonly */
  1565. uint id;
  1566. /* readonly */
  1567. float inertia;
  1568. int maskBits;
  1569. /* readonly */
  1570. float mass;
  1571. /* readonly */
  1572. Vector2 massCenter;
  1573. /* readonly */
  1574. Node node;
  1575. /* readonly */
  1576. uint numAttributes;
  1577. /* readonly */
  1578. int refs;
  1579. float restitution;
  1580. bool sensor;
  1581. bool temporary;
  1582. /* readonly */
  1583. ShortStringHash type;
  1584. /* readonly */
  1585. String typeName;
  1586. /* readonly */
  1587. int weakRefs;
  1588. };
  1589. class Color
  1590. {
  1591. // Methods:
  1592. Color Abs() const;
  1593. float Average() const;
  1594. float Chroma() const;
  1595. void Clip(bool);
  1596. bool Equals() const;
  1597. void FromHSL(float, float, float, float);
  1598. void FromHSV(float, float, float, float);
  1599. float Hue() const;
  1600. void Invert(bool);
  1601. Color Lerp(const Color&, float) const;
  1602. float Lightness() const;
  1603. float Luma() const;
  1604. float MaxRGB() const;
  1605. float MinRGB() const;
  1606. float Range() const;
  1607. float SaturationHSL() const;
  1608. float SaturationHSV() const;
  1609. float SumRGB() const;
  1610. Vector3 ToHSL() const;
  1611. Vector3 ToHSV() const;
  1612. String ToString() const;
  1613. uint ToUInt() const;
  1614. float Value() const;
  1615. // Properties:
  1616. float a;
  1617. float b;
  1618. /* readonly */
  1619. Array<float> data;
  1620. float g;
  1621. float r;
  1622. /* readonly */
  1623. Vector3 rgb;
  1624. /* readonly */
  1625. Vector4 rgba;
  1626. };
  1627. class ColorFrame
  1628. {
  1629. // Properties:
  1630. Color color;
  1631. float time;
  1632. };
  1633. class Component
  1634. {
  1635. // Methods:
  1636. void ApplyAttributes();
  1637. void DrawDebugGeometry(DebugRenderer, bool);
  1638. Variant GetAttribute(const String&) const;
  1639. Variant GetAttributeDefault(const String&) const;
  1640. bool Load(File, bool = false);
  1641. bool LoadXML(const XMLElement&, bool = false);
  1642. void MarkNetworkUpdate() const;
  1643. void Remove();
  1644. void RemoveInstanceDefault();
  1645. void ResetToDefault();
  1646. bool Save(File) const;
  1647. bool SaveXML(XMLElement&) const;
  1648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1649. bool SetAttribute(const String&, const Variant&);
  1650. // Properties:
  1651. /* readonly */
  1652. Array<Variant> attributeDefaults;
  1653. /* readonly */
  1654. Array<AttributeInfo> attributeInfos;
  1655. Array<Variant> attributes;
  1656. /* readonly */
  1657. ShortStringHash baseType;
  1658. /* readonly */
  1659. String category;
  1660. bool enabled;
  1661. /* readonly */
  1662. bool enabledEffective;
  1663. /* readonly */
  1664. uint id;
  1665. /* readonly */
  1666. Node node;
  1667. /* readonly */
  1668. uint numAttributes;
  1669. /* readonly */
  1670. int refs;
  1671. bool temporary;
  1672. /* readonly */
  1673. ShortStringHash type;
  1674. /* readonly */
  1675. String typeName;
  1676. /* readonly */
  1677. int weakRefs;
  1678. };
  1679. class Connection
  1680. {
  1681. // Methods:
  1682. void Disconnect(int = 0);
  1683. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1684. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1685. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1686. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1687. String ToString() const;
  1688. // Properties:
  1689. /* readonly */
  1690. String address;
  1691. /* readonly */
  1692. ShortStringHash baseType;
  1693. /* readonly */
  1694. String category;
  1695. /* readonly */
  1696. bool client;
  1697. /* readonly */
  1698. bool connectPending;
  1699. /* readonly */
  1700. bool connected;
  1701. Controls controls;
  1702. /* readonly */
  1703. String downloadName;
  1704. /* readonly */
  1705. float downloadProgress;
  1706. VariantMap identity;
  1707. bool logStatistics;
  1708. /* readonly */
  1709. uint numDownloads;
  1710. /* readonly */
  1711. uint16 port;
  1712. Vector3 position;
  1713. /* readonly */
  1714. int refs;
  1715. Scene scene;
  1716. /* readonly */
  1717. bool sceneLoaded;
  1718. /* readonly */
  1719. ShortStringHash type;
  1720. /* readonly */
  1721. String typeName;
  1722. /* readonly */
  1723. int weakRefs;
  1724. };
  1725. class Console
  1726. {
  1727. // Methods:
  1728. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1729. void Toggle();
  1730. void UpdateElements();
  1731. // Properties:
  1732. bool autoVisibleOnError;
  1733. /* readonly */
  1734. BorderImage background;
  1735. /* readonly */
  1736. ShortStringHash baseType;
  1737. /* readonly */
  1738. String category;
  1739. XMLFile defaultStyle;
  1740. /* readonly */
  1741. uint historyPosition;
  1742. /* readonly */
  1743. Array<String> historyRow;
  1744. /* readonly */
  1745. LineEdit lineEdit;
  1746. uint numHistoryRows;
  1747. uint numRows;
  1748. /* readonly */
  1749. int refs;
  1750. /* readonly */
  1751. ShortStringHash type;
  1752. /* readonly */
  1753. String typeName;
  1754. bool visible;
  1755. /* readonly */
  1756. int weakRefs;
  1757. };
  1758. class Constraint
  1759. {
  1760. // Methods:
  1761. void ApplyAttributes();
  1762. void DrawDebugGeometry(DebugRenderer, bool);
  1763. Variant GetAttribute(const String&) const;
  1764. Variant GetAttributeDefault(const String&) const;
  1765. bool Load(File, bool = false);
  1766. bool LoadXML(const XMLElement&, bool = false);
  1767. void MarkNetworkUpdate() const;
  1768. void Remove();
  1769. void RemoveInstanceDefault();
  1770. void ResetToDefault();
  1771. bool Save(File) const;
  1772. bool SaveXML(XMLElement&) const;
  1773. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1774. bool SetAttribute(const String&, const Variant&);
  1775. // Properties:
  1776. /* readonly */
  1777. Array<Variant> attributeDefaults;
  1778. /* readonly */
  1779. Array<AttributeInfo> attributeInfos;
  1780. Array<Variant> attributes;
  1781. /* writeonly */
  1782. Vector3 axis;
  1783. /* readonly */
  1784. ShortStringHash baseType;
  1785. /* readonly */
  1786. String category;
  1787. float cfm;
  1788. ConstraintType constraintType;
  1789. bool disableCollision;
  1790. bool enabled;
  1791. /* readonly */
  1792. bool enabledEffective;
  1793. float erp;
  1794. Vector2 highLimit;
  1795. /* readonly */
  1796. uint id;
  1797. Vector2 lowLimit;
  1798. /* readonly */
  1799. Node node;
  1800. /* readonly */
  1801. uint numAttributes;
  1802. /* writeonly */
  1803. Vector3 otherAxis;
  1804. RigidBody otherBody;
  1805. Vector3 otherPosition;
  1806. Quaternion otherRotation;
  1807. /* readonly */
  1808. RigidBody ownBody;
  1809. Vector3 position;
  1810. /* readonly */
  1811. int refs;
  1812. Quaternion rotation;
  1813. bool temporary;
  1814. /* readonly */
  1815. ShortStringHash type;
  1816. /* readonly */
  1817. String typeName;
  1818. /* readonly */
  1819. int weakRefs;
  1820. Vector3 worldPosition;
  1821. };
  1822. class Controls
  1823. {
  1824. // Methods:
  1825. bool IsDown(uint) const;
  1826. bool IsPressed(uint, const Controls&) const;
  1827. void Reset();
  1828. void Set(uint, bool);
  1829. // Properties:
  1830. uint buttons;
  1831. VariantMap extraData;
  1832. float pitch;
  1833. float yaw;
  1834. };
  1835. class Cursor
  1836. {
  1837. // Methods:
  1838. void AddChild(UIElement);
  1839. void ApplyAttributes();
  1840. void BringToFront();
  1841. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1842. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  1843. void DisableLayoutUpdate();
  1844. IntVector2 ElementToScreen(const IntVector2&);
  1845. void EnableLayoutUpdate();
  1846. uint FindChild(UIElement) const;
  1847. Variant GetAttribute(const String&) const;
  1848. Variant GetAttributeDefault(const String&) const;
  1849. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  1850. UIElement GetChild(const String&, bool = false) const;
  1851. Array<UIElement> GetChildren(bool = false) const;
  1852. UIElement GetElementEventSender() const;
  1853. uint GetNumChildren(bool) const;
  1854. void InsertChild(uint, UIElement);
  1855. bool IsInside(IntVector2, bool);
  1856. bool IsInsideCombined(IntVector2, bool);
  1857. bool Load(File, bool = false);
  1858. bool LoadChildXML(XMLFile, XMLFile = null);
  1859. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1860. bool LoadXML(File);
  1861. bool LoadXML(XMLFile, XMLFile);
  1862. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1863. bool LoadXML(const XMLElement&, bool = false);
  1864. void Remove();
  1865. void RemoveAllChildren();
  1866. void RemoveChild(UIElement, uint = 0);
  1867. void RemoveChild(uint);
  1868. void RemoveInstanceDefault();
  1869. void ResetToDefault();
  1870. bool Save(File) const;
  1871. bool SaveXML(File);
  1872. bool SaveXML(XMLElement&) const;
  1873. IntVector2 ScreenToElement(const IntVector2&);
  1874. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1875. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1876. bool SetAttribute(const String&, const Variant&);
  1877. void SetFixedHeight(int);
  1878. void SetFixedSize(int, int);
  1879. void SetFixedWidth(int);
  1880. void SetFullImageRect();
  1881. void SetHoverOffset(int, int);
  1882. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1883. void SetMaxSize(int, int);
  1884. void SetMinSize(int, int);
  1885. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1886. void SetPosition(int, int);
  1887. void SetSize(int, int);
  1888. bool SetStyle(const String&, XMLFile = null);
  1889. bool SetStyle(const XMLElement&);
  1890. bool SetStyleAuto(XMLFile = null);
  1891. void UpdateLayout();
  1892. const Variant& GetVar(const ShortStringHash&);
  1893. // Properties:
  1894. /* readonly */
  1895. Array<Variant> attributeDefaults;
  1896. /* readonly */
  1897. Array<AttributeInfo> attributeInfos;
  1898. Array<Variant> attributes;
  1899. /* readonly */
  1900. ShortStringHash baseType;
  1901. BlendMode blendMode;
  1902. IntRect border;
  1903. bool bringToBack;
  1904. bool bringToFront;
  1905. /* readonly */
  1906. String category;
  1907. /* readonly */
  1908. IntVector2 childOffset;
  1909. /* readonly */
  1910. Array<UIElement> children;
  1911. IntRect clipBorder;
  1912. bool clipChildren;
  1913. /* writeonly */
  1914. Color color;
  1915. /* readonly */
  1916. bool colorGradient;
  1917. Array<Color> colors;
  1918. /* readonly */
  1919. IntRect combinedScreenRect;
  1920. XMLFile defaultStyle;
  1921. /* readonly */
  1922. float derivedOpacity;
  1923. uint dragDropMode;
  1924. bool editable;
  1925. bool elementEventSender;
  1926. bool enabled;
  1927. /* readonly */
  1928. bool fixedHeight;
  1929. /* readonly */
  1930. bool fixedSize;
  1931. /* readonly */
  1932. bool fixedWidth;
  1933. bool focus;
  1934. FocusMode focusMode;
  1935. int height;
  1936. HorizontalAlignment horizontalAlignment;
  1937. IntVector2 hoverOffset;
  1938. /* readonly */
  1939. bool hovering;
  1940. IntRect imageRect;
  1941. int indent;
  1942. int indentSpacing;
  1943. /* readonly */
  1944. int indentWidth;
  1945. bool internal;
  1946. IntRect layoutBorder;
  1947. LayoutMode layoutMode;
  1948. int layoutSpacing;
  1949. int maxHeight;
  1950. IntVector2 maxSize;
  1951. int maxWidth;
  1952. int minHeight;
  1953. IntVector2 minSize;
  1954. int minWidth;
  1955. String name;
  1956. /* readonly */
  1957. uint numAllChildren;
  1958. /* readonly */
  1959. uint numAttributes;
  1960. /* readonly */
  1961. uint numChildren;
  1962. float opacity;
  1963. UIElement parent;
  1964. IntVector2 position;
  1965. int priority;
  1966. /* readonly */
  1967. int refs;
  1968. /* readonly */
  1969. UIElement root;
  1970. /* readonly */
  1971. IntVector2 screenPosition;
  1972. bool selected;
  1973. CursorShape shape;
  1974. IntVector2 size;
  1975. bool sortChildren;
  1976. String style;
  1977. bool temporary;
  1978. Texture texture;
  1979. bool tiled;
  1980. TraversalMode traversalMode;
  1981. /* readonly */
  1982. ShortStringHash type;
  1983. /* readonly */
  1984. String typeName;
  1985. bool useDerivedOpacity;
  1986. bool useSystemShapes;
  1987. /* readonly */
  1988. VariantMap vars;
  1989. VerticalAlignment verticalAlignment;
  1990. bool visible;
  1991. /* readonly */
  1992. int weakRefs;
  1993. int width;
  1994. };
  1995. class CustomGeometry
  1996. {
  1997. // Methods:
  1998. void ApplyAttributes();
  1999. void BeginGeometry(uint, PrimitiveType);
  2000. void Clear();
  2001. void Commit();
  2002. void DefineColor(const Color&);
  2003. void DefineNormal(const Vector3&);
  2004. void DefineTangent(const Vector4&);
  2005. void DefineTexCoord(const Vector2&);
  2006. void DefineVertex(const Vector3&);
  2007. void DrawDebugGeometry(DebugRenderer, bool);
  2008. Variant GetAttribute(const String&) const;
  2009. Variant GetAttributeDefault(const String&) const;
  2010. bool IsInView(Camera) const;
  2011. bool Load(File, bool = false);
  2012. bool LoadXML(const XMLElement&, bool = false);
  2013. void MarkNetworkUpdate() const;
  2014. void Remove();
  2015. void RemoveInstanceDefault();
  2016. void ResetToDefault();
  2017. bool Save(File) const;
  2018. bool SaveXML(XMLElement&) const;
  2019. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2020. bool SetAttribute(const String&, const Variant&);
  2021. // Properties:
  2022. /* readonly */
  2023. Array<Variant> attributeDefaults;
  2024. /* readonly */
  2025. Array<AttributeInfo> attributeInfos;
  2026. Array<Variant> attributes;
  2027. /* readonly */
  2028. ShortStringHash baseType;
  2029. /* readonly */
  2030. BoundingBox boundingBox;
  2031. bool castShadows;
  2032. /* readonly */
  2033. String category;
  2034. float drawDistance;
  2035. bool enabled;
  2036. /* readonly */
  2037. bool enabledEffective;
  2038. /* readonly */
  2039. uint id;
  2040. /* readonly */
  2041. bool inView;
  2042. uint lightMask;
  2043. float lodBias;
  2044. /* writeonly */
  2045. Material material;
  2046. Array<Material> materials;
  2047. uint maxLights;
  2048. /* readonly */
  2049. Node node;
  2050. /* readonly */
  2051. uint numAttributes;
  2052. uint numGeometries;
  2053. bool occludee;
  2054. bool occluder;
  2055. /* readonly */
  2056. int refs;
  2057. float shadowDistance;
  2058. uint shadowMask;
  2059. bool temporary;
  2060. /* readonly */
  2061. ShortStringHash type;
  2062. /* readonly */
  2063. String typeName;
  2064. uint viewMask;
  2065. /* readonly */
  2066. int weakRefs;
  2067. /* readonly */
  2068. BoundingBox worldBoundingBox;
  2069. /* readonly */
  2070. Zone zone;
  2071. uint zoneMask;
  2072. };
  2073. class DebugHud
  2074. {
  2075. // Methods:
  2076. void ClearAppStats();
  2077. void ResetAppStats(const String&);
  2078. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2079. void SetAppStats(const String&, const String&);
  2080. void SetAppStats(const String&, const Variant&);
  2081. void Toggle(uint);
  2082. void ToggleAll();
  2083. // Properties:
  2084. /* readonly */
  2085. ShortStringHash baseType;
  2086. /* readonly */
  2087. String category;
  2088. XMLFile defaultStyle;
  2089. uint mode;
  2090. /* readonly */
  2091. Text modeText;
  2092. float profilerInterval;
  2093. uint profilerMaxDepth;
  2094. /* readonly */
  2095. Text profilerText;
  2096. /* readonly */
  2097. int refs;
  2098. /* readonly */
  2099. Text statsText;
  2100. /* readonly */
  2101. ShortStringHash type;
  2102. /* readonly */
  2103. String typeName;
  2104. bool useRendererStats;
  2105. /* readonly */
  2106. int weakRefs;
  2107. };
  2108. class DebugRenderer
  2109. {
  2110. // Methods:
  2111. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  2112. void AddFrustum(const Frustum&, const Color&, bool = true);
  2113. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  2114. void AddNode(Node, float = 1.0, bool = true);
  2115. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  2116. void AddSkeleton(Skeleton, const Color&, bool = true);
  2117. void AddSphere(const Sphere&, const Color&, bool = true);
  2118. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  2119. void ApplyAttributes();
  2120. void DrawDebugGeometry(DebugRenderer, bool);
  2121. Variant GetAttribute(const String&) const;
  2122. Variant GetAttributeDefault(const String&) const;
  2123. bool Load(File, bool = false);
  2124. bool LoadXML(const XMLElement&, bool = false);
  2125. void MarkNetworkUpdate() const;
  2126. void Remove();
  2127. void RemoveInstanceDefault();
  2128. void ResetToDefault();
  2129. bool Save(File) const;
  2130. bool SaveXML(XMLElement&) const;
  2131. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2132. bool SetAttribute(const String&, const Variant&);
  2133. // Properties:
  2134. /* readonly */
  2135. Array<Variant> attributeDefaults;
  2136. /* readonly */
  2137. Array<AttributeInfo> attributeInfos;
  2138. Array<Variant> attributes;
  2139. /* readonly */
  2140. ShortStringHash baseType;
  2141. /* readonly */
  2142. String category;
  2143. bool enabled;
  2144. /* readonly */
  2145. bool enabledEffective;
  2146. /* readonly */
  2147. uint id;
  2148. /* readonly */
  2149. Node node;
  2150. /* readonly */
  2151. uint numAttributes;
  2152. /* readonly */
  2153. int refs;
  2154. bool temporary;
  2155. /* readonly */
  2156. ShortStringHash type;
  2157. /* readonly */
  2158. String typeName;
  2159. /* readonly */
  2160. int weakRefs;
  2161. };
  2162. class DecalSet
  2163. {
  2164. // Methods:
  2165. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  2166. void ApplyAttributes();
  2167. void DrawDebugGeometry(DebugRenderer, bool);
  2168. Variant GetAttribute(const String&) const;
  2169. Variant GetAttributeDefault(const String&) const;
  2170. bool IsInView(Camera) const;
  2171. bool Load(File, bool = false);
  2172. bool LoadXML(const XMLElement&, bool = false);
  2173. void MarkNetworkUpdate() const;
  2174. void Remove();
  2175. void RemoveAllDecals();
  2176. void RemoveDecals(uint);
  2177. void RemoveInstanceDefault();
  2178. void ResetToDefault();
  2179. bool Save(File) const;
  2180. bool SaveXML(XMLElement&) const;
  2181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2182. bool SetAttribute(const String&, const Variant&);
  2183. // Properties:
  2184. /* readonly */
  2185. Array<Variant> attributeDefaults;
  2186. /* readonly */
  2187. Array<AttributeInfo> attributeInfos;
  2188. Array<Variant> attributes;
  2189. /* readonly */
  2190. ShortStringHash baseType;
  2191. /* readonly */
  2192. BoundingBox boundingBox;
  2193. bool castShadows;
  2194. /* readonly */
  2195. String category;
  2196. float drawDistance;
  2197. bool enabled;
  2198. /* readonly */
  2199. bool enabledEffective;
  2200. /* readonly */
  2201. uint id;
  2202. /* readonly */
  2203. bool inView;
  2204. uint lightMask;
  2205. float lodBias;
  2206. Material material;
  2207. uint maxIndices;
  2208. uint maxLights;
  2209. uint maxVertices;
  2210. /* readonly */
  2211. Node node;
  2212. /* readonly */
  2213. uint numAttributes;
  2214. /* readonly */
  2215. uint numDecals;
  2216. /* readonly */
  2217. uint numIndices;
  2218. /* readonly */
  2219. uint numVertices;
  2220. bool occludee;
  2221. bool occluder;
  2222. /* readonly */
  2223. int refs;
  2224. float shadowDistance;
  2225. uint shadowMask;
  2226. bool temporary;
  2227. /* readonly */
  2228. ShortStringHash type;
  2229. /* readonly */
  2230. String typeName;
  2231. uint viewMask;
  2232. /* readonly */
  2233. int weakRefs;
  2234. /* readonly */
  2235. BoundingBox worldBoundingBox;
  2236. /* readonly */
  2237. Zone zone;
  2238. uint zoneMask;
  2239. };
  2240. class Deserializer
  2241. {
  2242. // Methods:
  2243. Array<uint8> Read(uint);
  2244. bool ReadBool();
  2245. BoundingBox ReadBoundingBox();
  2246. int8 ReadByte();
  2247. Color ReadColor();
  2248. String ReadFileID();
  2249. float ReadFloat();
  2250. int ReadInt();
  2251. IntRect ReadIntRect();
  2252. IntVector2 ReadIntVector2();
  2253. String ReadLine();
  2254. uint ReadNetID();
  2255. Quaternion ReadPackedQuaternion();
  2256. Vector3 ReadPackedVector3(float);
  2257. Quaternion ReadQuaternion();
  2258. int16 ReadShort();
  2259. ShortStringHash ReadShortStringHash();
  2260. String ReadString();
  2261. StringHash ReadStringHash();
  2262. uint8 ReadUByte();
  2263. uint ReadUInt();
  2264. uint16 ReadUShort();
  2265. uint ReadVLE();
  2266. Variant ReadVariant();
  2267. VariantMap ReadVariantMap();
  2268. Vector2 ReadVector2();
  2269. Vector3 ReadVector3();
  2270. Vector4 ReadVector4();
  2271. uint Seek(uint);
  2272. // Properties:
  2273. /* readonly */
  2274. uint checksum;
  2275. /* readonly */
  2276. bool eof;
  2277. /* readonly */
  2278. String name;
  2279. /* readonly */
  2280. uint position;
  2281. /* readonly */
  2282. uint size;
  2283. };
  2284. class Dictionary
  2285. {
  2286. // Methods:
  2287. void Clear();
  2288. void Erase(const String&);
  2289. bool Exists(const String&) const;
  2290. bool Get(const String&, void*) const;
  2291. bool Get(const String&, double&) const;
  2292. bool Get(const String&, int64&) const;
  2293. void Set(const String&, void*);
  2294. void Set(const String&, double&);
  2295. void Set(const String&, int64&);
  2296. // Properties:
  2297. /* readonly */
  2298. bool empty;
  2299. /* readonly */
  2300. Array<String> keys;
  2301. /* readonly */
  2302. uint length;
  2303. };
  2304. class Drawable
  2305. {
  2306. // Methods:
  2307. void ApplyAttributes();
  2308. void DrawDebugGeometry(DebugRenderer, bool);
  2309. Variant GetAttribute(const String&) const;
  2310. Variant GetAttributeDefault(const String&) const;
  2311. bool IsInView(Camera) const;
  2312. bool Load(File, bool = false);
  2313. bool LoadXML(const XMLElement&, bool = false);
  2314. void MarkNetworkUpdate() const;
  2315. void Remove();
  2316. void RemoveInstanceDefault();
  2317. void ResetToDefault();
  2318. bool Save(File) const;
  2319. bool SaveXML(XMLElement&) const;
  2320. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2321. bool SetAttribute(const String&, const Variant&);
  2322. // Properties:
  2323. /* readonly */
  2324. Array<Variant> attributeDefaults;
  2325. /* readonly */
  2326. Array<AttributeInfo> attributeInfos;
  2327. Array<Variant> attributes;
  2328. /* readonly */
  2329. ShortStringHash baseType;
  2330. /* readonly */
  2331. BoundingBox boundingBox;
  2332. bool castShadows;
  2333. /* readonly */
  2334. String category;
  2335. float drawDistance;
  2336. bool enabled;
  2337. /* readonly */
  2338. bool enabledEffective;
  2339. /* readonly */
  2340. uint id;
  2341. /* readonly */
  2342. bool inView;
  2343. uint lightMask;
  2344. float lodBias;
  2345. uint maxLights;
  2346. /* readonly */
  2347. Node node;
  2348. /* readonly */
  2349. uint numAttributes;
  2350. bool occludee;
  2351. bool occluder;
  2352. /* readonly */
  2353. int refs;
  2354. float shadowDistance;
  2355. uint shadowMask;
  2356. bool temporary;
  2357. /* readonly */
  2358. ShortStringHash type;
  2359. /* readonly */
  2360. String typeName;
  2361. uint viewMask;
  2362. /* readonly */
  2363. int weakRefs;
  2364. /* readonly */
  2365. BoundingBox worldBoundingBox;
  2366. uint zoneMask;
  2367. };
  2368. class Drawable2D
  2369. {
  2370. // Methods:
  2371. void ApplyAttributes();
  2372. void DrawDebugGeometry(DebugRenderer, bool);
  2373. Variant GetAttribute(const String&) const;
  2374. Variant GetAttributeDefault(const String&) const;
  2375. bool IsInView(Camera) const;
  2376. bool Load(File, bool = false);
  2377. bool LoadXML(const XMLElement&, bool = false);
  2378. void MarkNetworkUpdate() const;
  2379. void Remove();
  2380. void RemoveInstanceDefault();
  2381. void ResetToDefault();
  2382. bool Save(File) const;
  2383. bool SaveXML(XMLElement&) const;
  2384. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2385. bool SetAttribute(const String&, const Variant&);
  2386. // Properties:
  2387. /* readonly */
  2388. Array<Variant> attributeDefaults;
  2389. /* readonly */
  2390. Array<AttributeInfo> attributeInfos;
  2391. Array<Variant> attributes;
  2392. /* readonly */
  2393. ShortStringHash baseType;
  2394. BlendMode blendMode;
  2395. /* readonly */
  2396. BoundingBox boundingBox;
  2397. bool castShadows;
  2398. /* readonly */
  2399. String category;
  2400. float drawDistance;
  2401. bool enabled;
  2402. /* readonly */
  2403. bool enabledEffective;
  2404. /* readonly */
  2405. uint id;
  2406. /* readonly */
  2407. bool inView;
  2408. uint lightMask;
  2409. float lodBias;
  2410. Material material;
  2411. uint maxLights;
  2412. /* readonly */
  2413. Node node;
  2414. /* readonly */
  2415. uint numAttributes;
  2416. bool occludee;
  2417. bool occluder;
  2418. /* readonly */
  2419. int refs;
  2420. float shadowDistance;
  2421. uint shadowMask;
  2422. Sprite2D sprite;
  2423. bool temporary;
  2424. /* readonly */
  2425. ShortStringHash type;
  2426. /* readonly */
  2427. String typeName;
  2428. uint viewMask;
  2429. /* readonly */
  2430. int weakRefs;
  2431. /* readonly */
  2432. BoundingBox worldBoundingBox;
  2433. float zValue;
  2434. uint zoneMask;
  2435. };
  2436. class DropDownList
  2437. {
  2438. // Methods:
  2439. void AddChild(UIElement);
  2440. void AddItem(UIElement);
  2441. void ApplyAttributes();
  2442. void BringToFront();
  2443. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2444. void DisableLayoutUpdate();
  2445. IntVector2 ElementToScreen(const IntVector2&);
  2446. void EnableLayoutUpdate();
  2447. uint FindChild(UIElement) const;
  2448. Variant GetAttribute(const String&) const;
  2449. Variant GetAttributeDefault(const String&) const;
  2450. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  2451. UIElement GetChild(const String&, bool = false) const;
  2452. Array<UIElement> GetChildren(bool = false) const;
  2453. UIElement GetElementEventSender() const;
  2454. Array<UIElement> GetItems() const;
  2455. uint GetNumChildren(bool) const;
  2456. void InsertChild(uint, UIElement);
  2457. void InsertItem(uint, UIElement);
  2458. bool IsInside(IntVector2, bool);
  2459. bool IsInsideCombined(IntVector2, bool);
  2460. bool Load(File, bool = false);
  2461. bool LoadChildXML(XMLFile, XMLFile = null);
  2462. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2463. bool LoadXML(File);
  2464. bool LoadXML(XMLFile, XMLFile);
  2465. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2466. bool LoadXML(const XMLElement&, bool = false);
  2467. void Remove();
  2468. void RemoveAllChildren();
  2469. void RemoveAllItems();
  2470. void RemoveChild(UIElement, uint = 0);
  2471. void RemoveChild(uint);
  2472. void RemoveInstanceDefault();
  2473. void RemoveItem(UIElement);
  2474. void RemoveItem(uint);
  2475. void ResetToDefault();
  2476. bool Save(File) const;
  2477. bool SaveXML(File);
  2478. bool SaveXML(XMLElement&) const;
  2479. IntVector2 ScreenToElement(const IntVector2&);
  2480. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2481. void SetAccelerator(int, int);
  2482. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2483. bool SetAttribute(const String&, const Variant&);
  2484. void SetFixedHeight(int);
  2485. void SetFixedSize(int, int);
  2486. void SetFixedWidth(int);
  2487. void SetFullImageRect();
  2488. void SetHoverOffset(int, int);
  2489. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2490. void SetMaxSize(int, int);
  2491. void SetMinSize(int, int);
  2492. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2493. void SetPosition(int, int);
  2494. void SetPressedChildOffset(int, int);
  2495. void SetPressedOffset(int, int);
  2496. void SetRepeat(float, float);
  2497. void SetSize(int, int);
  2498. bool SetStyle(const String&, XMLFile = null);
  2499. bool SetStyle(const XMLElement&);
  2500. bool SetStyleAuto(XMLFile = null);
  2501. void UpdateLayout();
  2502. const Variant& GetVar(const ShortStringHash&);
  2503. UIElement getPopup() const;
  2504. // Properties:
  2505. /* readonly */
  2506. int acceleratorKey;
  2507. /* readonly */
  2508. int acceleratorQualifiers;
  2509. /* readonly */
  2510. Array<Variant> attributeDefaults;
  2511. /* readonly */
  2512. Array<AttributeInfo> attributeInfos;
  2513. Array<Variant> attributes;
  2514. /* readonly */
  2515. ShortStringHash baseType;
  2516. BlendMode blendMode;
  2517. IntRect border;
  2518. bool bringToBack;
  2519. bool bringToFront;
  2520. /* readonly */
  2521. String category;
  2522. /* readonly */
  2523. IntVector2 childOffset;
  2524. /* readonly */
  2525. Array<UIElement> children;
  2526. IntRect clipBorder;
  2527. bool clipChildren;
  2528. /* writeonly */
  2529. Color color;
  2530. /* readonly */
  2531. bool colorGradient;
  2532. Array<Color> colors;
  2533. /* readonly */
  2534. IntRect combinedScreenRect;
  2535. XMLFile defaultStyle;
  2536. /* readonly */
  2537. float derivedOpacity;
  2538. uint dragDropMode;
  2539. bool editable;
  2540. bool elementEventSender;
  2541. bool enabled;
  2542. /* readonly */
  2543. bool fixedHeight;
  2544. /* readonly */
  2545. bool fixedSize;
  2546. /* readonly */
  2547. bool fixedWidth;
  2548. bool focus;
  2549. FocusMode focusMode;
  2550. int height;
  2551. HorizontalAlignment horizontalAlignment;
  2552. IntVector2 hoverOffset;
  2553. /* readonly */
  2554. bool hovering;
  2555. IntRect imageRect;
  2556. int indent;
  2557. int indentSpacing;
  2558. /* readonly */
  2559. int indentWidth;
  2560. bool internal;
  2561. /* readonly */
  2562. Array<UIElement> items;
  2563. IntRect layoutBorder;
  2564. LayoutMode layoutMode;
  2565. int layoutSpacing;
  2566. /* readonly */
  2567. ListView listView;
  2568. int maxHeight;
  2569. IntVector2 maxSize;
  2570. int maxWidth;
  2571. int minHeight;
  2572. IntVector2 minSize;
  2573. int minWidth;
  2574. String name;
  2575. /* readonly */
  2576. uint numAllChildren;
  2577. /* readonly */
  2578. uint numAttributes;
  2579. /* readonly */
  2580. uint numChildren;
  2581. /* readonly */
  2582. uint numItems;
  2583. float opacity;
  2584. UIElement parent;
  2585. /* readonly */
  2586. UIElement placeholder;
  2587. String placeholderText;
  2588. IntVector2 position;
  2589. /* readonly */
  2590. bool pressed;
  2591. IntVector2 pressedChildOffset;
  2592. IntVector2 pressedOffset;
  2593. int priority;
  2594. /* readonly */
  2595. int refs;
  2596. float repeatDelay;
  2597. float repeatRate;
  2598. bool resizePopup;
  2599. /* readonly */
  2600. UIElement root;
  2601. /* readonly */
  2602. IntVector2 screenPosition;
  2603. bool selected;
  2604. /* readonly */
  2605. UIElement selectedItem;
  2606. uint selection;
  2607. bool showPopup;
  2608. IntVector2 size;
  2609. bool sortChildren;
  2610. String style;
  2611. bool temporary;
  2612. Texture texture;
  2613. bool tiled;
  2614. TraversalMode traversalMode;
  2615. /* readonly */
  2616. ShortStringHash type;
  2617. /* readonly */
  2618. String typeName;
  2619. bool useDerivedOpacity;
  2620. /* readonly */
  2621. VariantMap vars;
  2622. VerticalAlignment verticalAlignment;
  2623. bool visible;
  2624. /* readonly */
  2625. int weakRefs;
  2626. int width;
  2627. };
  2628. class Engine
  2629. {
  2630. // Methods:
  2631. Console CreateConsole();
  2632. DebugHud CreateDebugHud();
  2633. void DumpMemory();
  2634. void DumpProfiler();
  2635. void DumpResources();
  2636. void Exit();
  2637. void RunFrame();
  2638. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2639. // Properties:
  2640. bool autoExit;
  2641. /* readonly */
  2642. ShortStringHash baseType;
  2643. /* readonly */
  2644. String category;
  2645. /* readonly */
  2646. bool exiting;
  2647. /* readonly */
  2648. bool headless;
  2649. /* readonly */
  2650. bool initialized;
  2651. int maxFps;
  2652. int maxInactiveFps;
  2653. int minFps;
  2654. bool pauseMinimized;
  2655. /* readonly */
  2656. int refs;
  2657. int timeStepSmoothing;
  2658. /* readonly */
  2659. ShortStringHash type;
  2660. /* readonly */
  2661. String typeName;
  2662. /* readonly */
  2663. int weakRefs;
  2664. };
  2665. class File
  2666. {
  2667. // Methods:
  2668. void Close();
  2669. bool Open(const String&, FileMode = FILE_READ);
  2670. Array<uint8> Read(uint);
  2671. bool ReadBool();
  2672. BoundingBox ReadBoundingBox();
  2673. int8 ReadByte();
  2674. Color ReadColor();
  2675. String ReadFileID();
  2676. float ReadFloat();
  2677. int ReadInt();
  2678. IntRect ReadIntRect();
  2679. IntVector2 ReadIntVector2();
  2680. String ReadLine();
  2681. uint ReadNetID();
  2682. Quaternion ReadPackedQuaternion();
  2683. Vector3 ReadPackedVector3(float);
  2684. Quaternion ReadQuaternion();
  2685. int16 ReadShort();
  2686. ShortStringHash ReadShortStringHash();
  2687. String ReadString();
  2688. StringHash ReadStringHash();
  2689. uint8 ReadUByte();
  2690. uint ReadUInt();
  2691. uint16 ReadUShort();
  2692. uint ReadVLE();
  2693. Variant ReadVariant();
  2694. VariantMap ReadVariantMap();
  2695. Vector2 ReadVector2();
  2696. Vector3 ReadVector3();
  2697. Vector4 ReadVector4();
  2698. uint Seek(uint);
  2699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2700. uint Write(Array<uint8>);
  2701. bool WriteBool(bool);
  2702. bool WriteBoundingBox(const BoundingBox&);
  2703. bool WriteByte(int8);
  2704. bool WriteColor(const Color&);
  2705. bool WriteFileID(const String&);
  2706. bool WriteFloat(float);
  2707. bool WriteInt(int);
  2708. bool WriteIntRect(const IntRect&);
  2709. bool WriteIntVector2(const IntVector2&);
  2710. bool WriteLine(const String&);
  2711. bool WriteNetID(uint);
  2712. bool WritePackedQuaternion(const Quaternion&);
  2713. bool WritePackedVector3(const Vector3&, float);
  2714. bool WriteQuaternion(const Quaternion&);
  2715. bool WriteShort(int16);
  2716. bool WriteShortStringHash(const ShortStringHash&);
  2717. bool WriteString(const String&);
  2718. bool WriteStringHash(const StringHash&);
  2719. bool WriteUByte(uint8);
  2720. bool WriteUInt(uint);
  2721. bool WriteUShort(uint16);
  2722. bool WriteVLE(uint);
  2723. bool WriteVariant(const Variant&);
  2724. bool WriteVariantMap(const VariantMap&);
  2725. bool WriteVector2(const Vector2&);
  2726. bool WriteVector3(const Vector3&);
  2727. bool WriteVector4(const Vector4&);
  2728. // Properties:
  2729. /* readonly */
  2730. ShortStringHash baseType;
  2731. /* readonly */
  2732. String category;
  2733. /* readonly */
  2734. uint checksum;
  2735. /* readonly */
  2736. bool eof;
  2737. /* readonly */
  2738. FileMode mode;
  2739. /* readonly */
  2740. String name;
  2741. /* readonly */
  2742. bool open;
  2743. /* readonly */
  2744. bool packaged;
  2745. /* readonly */
  2746. uint position;
  2747. /* readonly */
  2748. int refs;
  2749. /* readonly */
  2750. uint size;
  2751. /* readonly */
  2752. ShortStringHash type;
  2753. /* readonly */
  2754. String typeName;
  2755. /* readonly */
  2756. int weakRefs;
  2757. };
  2758. class FileSelector
  2759. {
  2760. // Methods:
  2761. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2762. void SetButtonTexts(const String&, const String&);
  2763. void SetFilters(Array<String>, uint);
  2764. void UpdateElements();
  2765. // Properties:
  2766. /* readonly */
  2767. ShortStringHash baseType;
  2768. /* readonly */
  2769. Button cancelButton;
  2770. /* readonly */
  2771. String category;
  2772. XMLFile defaultStyle;
  2773. bool directoryMode;
  2774. /* readonly */
  2775. ListView fileList;
  2776. String fileName;
  2777. /* readonly */
  2778. LineEdit fileNameEdit;
  2779. /* readonly */
  2780. String filter;
  2781. /* readonly */
  2782. uint filterIndex;
  2783. /* readonly */
  2784. DropDownList filterList;
  2785. /* readonly */
  2786. Button okButton;
  2787. String path;
  2788. /* readonly */
  2789. LineEdit pathEdit;
  2790. /* readonly */
  2791. int refs;
  2792. String title;
  2793. /* readonly */
  2794. Text titleText;
  2795. /* readonly */
  2796. ShortStringHash type;
  2797. /* readonly */
  2798. String typeName;
  2799. /* readonly */
  2800. int weakRefs;
  2801. /* readonly */
  2802. Window window;
  2803. };
  2804. class FileSystem
  2805. {
  2806. // Methods:
  2807. bool Copy(const String&, const String&);
  2808. bool CreateDir(const String&);
  2809. bool Delete(const String&);
  2810. bool DirExists(const String&) const;
  2811. bool FileExists(const String&) const;
  2812. uint GetLastModifiedTime(const String&) const;
  2813. bool Rename(const String&, const String&);
  2814. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  2815. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2816. int SystemCommand(const String&);
  2817. bool SystemOpen(const String&, const String&);
  2818. int SystemRun(const String&, Array<String>);
  2819. // Properties:
  2820. /* readonly */
  2821. ShortStringHash baseType;
  2822. /* readonly */
  2823. String category;
  2824. String currentDir;
  2825. /* readonly */
  2826. String programDir;
  2827. /* readonly */
  2828. int refs;
  2829. /* readonly */
  2830. ShortStringHash type;
  2831. /* readonly */
  2832. String typeName;
  2833. /* readonly */
  2834. String userDocumentsDir;
  2835. /* readonly */
  2836. int weakRefs;
  2837. };
  2838. class FocusParameters
  2839. {
  2840. // Properties:
  2841. bool autoSize;
  2842. bool focus;
  2843. float minView;
  2844. bool nonUniform;
  2845. float quantize;
  2846. };
  2847. class Font
  2848. {
  2849. // Methods:
  2850. bool Load(File);
  2851. bool Save(File) const;
  2852. bool SaveXML(File, int, bool = false);
  2853. bool SaveXML(const String&, int, bool = false);
  2854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2855. // Properties:
  2856. /* readonly */
  2857. ShortStringHash baseType;
  2858. /* readonly */
  2859. String category;
  2860. /* readonly */
  2861. uint memoryUse;
  2862. String name;
  2863. /* readonly */
  2864. int refs;
  2865. /* readonly */
  2866. ShortStringHash type;
  2867. /* readonly */
  2868. String typeName;
  2869. /* readonly */
  2870. uint useTimer;
  2871. /* readonly */
  2872. int weakRefs;
  2873. };
  2874. class Frustum
  2875. {
  2876. // Methods:
  2877. void Define(const BoundingBox&, const Matrix3x4&);
  2878. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  2879. void Define(float, float, float, float, float, const Matrix3x4&);
  2880. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  2881. float Distance(const Vector3&) const;
  2882. Intersection IsInside(const BoundingBox&);
  2883. Intersection IsInside(const Sphere&);
  2884. Intersection IsInside(const Vector3&);
  2885. void Transform(const Matrix3&);
  2886. void Transform(const Matrix3x4&);
  2887. Frustum Transformed(const Matrix3&) const;
  2888. Frustum Transformed(const Matrix3x4&) const;
  2889. // Properties:
  2890. /* readonly */
  2891. Array<Vector3> vertices;
  2892. };
  2893. class Graphics
  2894. {
  2895. // Methods:
  2896. void BeginDumpShaders(const String&);
  2897. void Close();
  2898. void EndDumpShaders();
  2899. void Maximize();
  2900. void Minimize();
  2901. void PrecacheShaders(File);
  2902. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2903. bool SetMode(int, int);
  2904. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  2905. void SetWindowPosition(int, int);
  2906. bool TakeScreenShot(Image);
  2907. bool ToggleFullscreen();
  2908. // Properties:
  2909. /* readonly */
  2910. ShortStringHash baseType;
  2911. /* readonly */
  2912. bool borderless;
  2913. /* readonly */
  2914. String category;
  2915. /* readonly */
  2916. bool deferredSupport;
  2917. /* readonly */
  2918. IntVector2 desktopResolution;
  2919. /* readonly */
  2920. bool deviceLost;
  2921. bool flushGPU;
  2922. bool forceSM2;
  2923. /* readonly */
  2924. bool fullscreen;
  2925. /* readonly */
  2926. bool hardwareShadowSupport;
  2927. /* readonly */
  2928. int height;
  2929. /* readonly */
  2930. bool initialized;
  2931. /* readonly */
  2932. bool instancingSupport;
  2933. /* readonly */
  2934. bool lightPrepassSupport;
  2935. /* readonly */
  2936. int multiSample;
  2937. /* readonly */
  2938. Array<int> multiSampleLevels;
  2939. /* readonly */
  2940. uint numBatches;
  2941. /* readonly */
  2942. uint numPrimitives;
  2943. /* readonly */
  2944. int refs;
  2945. /* readonly */
  2946. bool resizable;
  2947. /* readonly */
  2948. Array<IntVector2> resolutions;
  2949. bool sRGB;
  2950. /* readonly */
  2951. bool sRGBSupport;
  2952. /* readonly */
  2953. bool sRGBWriteSupport;
  2954. /* readonly */
  2955. bool sm3Support;
  2956. /* readonly */
  2957. bool tripleBuffer;
  2958. /* readonly */
  2959. ShortStringHash type;
  2960. /* readonly */
  2961. String typeName;
  2962. /* readonly */
  2963. bool vsync;
  2964. /* readonly */
  2965. int weakRefs;
  2966. /* readonly */
  2967. int width;
  2968. /* writeonly */
  2969. Image windowIcon;
  2970. IntVector2 windowPosition;
  2971. String windowTitle;
  2972. };
  2973. class HttpRequest
  2974. {
  2975. // Methods:
  2976. Array<uint8> Read(uint);
  2977. bool ReadBool();
  2978. BoundingBox ReadBoundingBox();
  2979. int8 ReadByte();
  2980. Color ReadColor();
  2981. String ReadFileID();
  2982. float ReadFloat();
  2983. int ReadInt();
  2984. IntRect ReadIntRect();
  2985. IntVector2 ReadIntVector2();
  2986. String ReadLine();
  2987. uint ReadNetID();
  2988. Quaternion ReadPackedQuaternion();
  2989. Vector3 ReadPackedVector3(float);
  2990. Quaternion ReadQuaternion();
  2991. int16 ReadShort();
  2992. ShortStringHash ReadShortStringHash();
  2993. String ReadString();
  2994. StringHash ReadStringHash();
  2995. uint8 ReadUByte();
  2996. uint ReadUInt();
  2997. uint16 ReadUShort();
  2998. uint ReadVLE();
  2999. Variant ReadVariant();
  3000. VariantMap ReadVariantMap();
  3001. Vector2 ReadVector2();
  3002. Vector3 ReadVector3();
  3003. Vector4 ReadVector4();
  3004. uint Seek(uint);
  3005. // Properties:
  3006. /* readonly */
  3007. uint availableSize;
  3008. /* readonly */
  3009. uint checksum;
  3010. /* readonly */
  3011. bool eof;
  3012. /* readonly */
  3013. String error;
  3014. /* readonly */
  3015. String name;
  3016. /* readonly */
  3017. bool open;
  3018. /* readonly */
  3019. uint position;
  3020. /* readonly */
  3021. int refs;
  3022. /* readonly */
  3023. uint size;
  3024. /* readonly */
  3025. HttpRequestState state;
  3026. /* readonly */
  3027. String url;
  3028. /* readonly */
  3029. String verb;
  3030. /* readonly */
  3031. int weakRefs;
  3032. };
  3033. class Image
  3034. {
  3035. // Methods:
  3036. void Clear(const Color&);
  3037. void FlipVertical();
  3038. Color GetPixel(int, int) const;
  3039. Color GetPixel(int, int, int) const;
  3040. Color GetPixelBilinear(float, float) const;
  3041. Color GetPixelTrilinear(float, float, float) const;
  3042. bool Load(File);
  3043. bool LoadColorLUT(File);
  3044. void Resize(int, int);
  3045. bool Save(File) const;
  3046. void SaveBMP(const String&) const;
  3047. void SaveJPG(const String&, int) const;
  3048. void SavePNG(const String&) const;
  3049. void SaveTGA(const String&) const;
  3050. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3051. void SetPixel(int, int, const Color&);
  3052. void SetPixel(int, int, int, const Color&);
  3053. bool SetSize(int, int, int, uint);
  3054. bool SetSize(int, int, uint);
  3055. // Properties:
  3056. /* readonly */
  3057. ShortStringHash baseType;
  3058. /* readonly */
  3059. String category;
  3060. /* readonly */
  3061. uint components;
  3062. /* readonly */
  3063. bool compressed;
  3064. /* readonly */
  3065. int depth;
  3066. /* readonly */
  3067. int height;
  3068. /* readonly */
  3069. uint memoryUse;
  3070. String name;
  3071. /* readonly */
  3072. int refs;
  3073. /* readonly */
  3074. ShortStringHash type;
  3075. /* readonly */
  3076. String typeName;
  3077. /* readonly */
  3078. uint useTimer;
  3079. /* readonly */
  3080. int weakRefs;
  3081. /* readonly */
  3082. int width;
  3083. };
  3084. class Input
  3085. {
  3086. // Methods:
  3087. void CloseJoystick(uint);
  3088. bool DetectJoysticks();
  3089. int GetKeyFromName(const String&) const;
  3090. int GetKeyFromScancode(int) const;
  3091. String GetKeyName(int) const;
  3092. int GetScancodeFromKey(int) const;
  3093. int GetScancodeFromName(const String&) const;
  3094. String GetScancodeName(int) const;
  3095. bool OpenJoystick(uint);
  3096. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3097. // Properties:
  3098. /* readonly */
  3099. ShortStringHash baseType;
  3100. /* readonly */
  3101. String category;
  3102. /* readonly */
  3103. bool focus;
  3104. /* readonly */
  3105. Array<String> joystickNames;
  3106. /* readonly */
  3107. Array<JoystickState> joysticks;
  3108. /* readonly */
  3109. Array<bool> keyDown;
  3110. /* readonly */
  3111. Array<bool> keyPress;
  3112. /* readonly */
  3113. bool minimized;
  3114. /* readonly */
  3115. Array<bool> mouseButtonDown;
  3116. /* readonly */
  3117. Array<bool> mouseButtonPress;
  3118. /* readonly */
  3119. IntVector2 mouseMove;
  3120. /* readonly */
  3121. int mouseMoveWheel;
  3122. /* readonly */
  3123. int mouseMoveX;
  3124. /* readonly */
  3125. int mouseMoveY;
  3126. /* readonly */
  3127. IntVector2 mousePosition;
  3128. bool mouseVisible;
  3129. /* readonly */
  3130. uint numJoysticks;
  3131. /* readonly */
  3132. uint numTouches;
  3133. /* readonly */
  3134. Array<bool> qualifierDown;
  3135. /* readonly */
  3136. Array<bool> qualifierPress;
  3137. /* readonly */
  3138. int qualifiers;
  3139. /* readonly */
  3140. int refs;
  3141. /* readonly */
  3142. Array<bool> scancodeDown;
  3143. /* readonly */
  3144. Array<bool> scancodePress;
  3145. /* readonly */
  3146. bool screenKeyboardSupport;
  3147. bool screenKeyboardVisible;
  3148. bool toggleFullscreen;
  3149. /* readonly */
  3150. Array<TouchState> touches;
  3151. /* readonly */
  3152. ShortStringHash type;
  3153. /* readonly */
  3154. String typeName;
  3155. /* readonly */
  3156. int weakRefs;
  3157. };
  3158. class IntRect
  3159. {
  3160. // Methods:
  3161. Intersection IsInside(const IntVector2&) const;
  3162. // Properties:
  3163. int bottom;
  3164. /* readonly */
  3165. Array<int> data;
  3166. /* readonly */
  3167. int height;
  3168. int left;
  3169. int right;
  3170. /* readonly */
  3171. IntVector2 size;
  3172. int top;
  3173. /* readonly */
  3174. int width;
  3175. };
  3176. class IntVector2
  3177. {
  3178. // Methods:
  3179. String ToString() const;
  3180. // Properties:
  3181. /* readonly */
  3182. Array<int> data;
  3183. int x;
  3184. int y;
  3185. };
  3186. class JoystickState
  3187. {
  3188. // Properties:
  3189. /* readonly */
  3190. Array<float> axisPosition;
  3191. /* readonly */
  3192. Array<bool> buttonDown;
  3193. /* readonly */
  3194. Array<bool> buttonPress;
  3195. /* readonly */
  3196. Array<int> hatPosition;
  3197. String name;
  3198. /* readonly */
  3199. uint numAxes;
  3200. /* readonly */
  3201. uint numButtons;
  3202. /* readonly */
  3203. uint numHats;
  3204. };
  3205. class Light
  3206. {
  3207. // Methods:
  3208. void ApplyAttributes();
  3209. void DrawDebugGeometry(DebugRenderer, bool);
  3210. Variant GetAttribute(const String&) const;
  3211. Variant GetAttributeDefault(const String&) const;
  3212. bool IsInView(Camera) const;
  3213. bool Load(File, bool = false);
  3214. bool LoadXML(const XMLElement&, bool = false);
  3215. void MarkNetworkUpdate() const;
  3216. void Remove();
  3217. void RemoveInstanceDefault();
  3218. void ResetToDefault();
  3219. bool Save(File) const;
  3220. bool SaveXML(XMLElement&) const;
  3221. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3222. bool SetAttribute(const String&, const Variant&);
  3223. // Properties:
  3224. float aspectRatio;
  3225. /* readonly */
  3226. Array<Variant> attributeDefaults;
  3227. /* readonly */
  3228. Array<AttributeInfo> attributeInfos;
  3229. Array<Variant> attributes;
  3230. /* readonly */
  3231. ShortStringHash baseType;
  3232. /* readonly */
  3233. BoundingBox boundingBox;
  3234. float brightness;
  3235. bool castShadows;
  3236. /* readonly */
  3237. String category;
  3238. Color color;
  3239. float drawDistance;
  3240. /* readonly */
  3241. Color effectiveColor;
  3242. /* readonly */
  3243. float effectiveSpecularIntensity;
  3244. bool enabled;
  3245. /* readonly */
  3246. bool enabledEffective;
  3247. float fadeDistance;
  3248. float fov;
  3249. /* readonly */
  3250. Frustum frustum;
  3251. /* readonly */
  3252. uint id;
  3253. /* readonly */
  3254. bool inView;
  3255. uint lightMask;
  3256. LightType lightType;
  3257. float lodBias;
  3258. uint maxLights;
  3259. /* readonly */
  3260. bool negative;
  3261. /* readonly */
  3262. Node node;
  3263. /* readonly */
  3264. uint numAttributes;
  3265. bool occludee;
  3266. bool occluder;
  3267. bool perVertex;
  3268. Texture rampTexture;
  3269. float range;
  3270. /* readonly */
  3271. int refs;
  3272. BiasParameters shadowBias;
  3273. CascadeParameters shadowCascade;
  3274. float shadowDistance;
  3275. float shadowFadeDistance;
  3276. FocusParameters shadowFocus;
  3277. float shadowIntensity;
  3278. uint shadowMask;
  3279. float shadowNearFarRatio;
  3280. float shadowResolution;
  3281. Texture shapeTexture;
  3282. float specularIntensity;
  3283. bool temporary;
  3284. /* readonly */
  3285. ShortStringHash type;
  3286. /* readonly */
  3287. String typeName;
  3288. uint viewMask;
  3289. /* readonly */
  3290. int weakRefs;
  3291. /* readonly */
  3292. BoundingBox worldBoundingBox;
  3293. uint zoneMask;
  3294. };
  3295. class LineEdit
  3296. {
  3297. // Methods:
  3298. void AddChild(UIElement);
  3299. void ApplyAttributes();
  3300. void BringToFront();
  3301. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3302. void DisableLayoutUpdate();
  3303. IntVector2 ElementToScreen(const IntVector2&);
  3304. void EnableLayoutUpdate();
  3305. uint FindChild(UIElement) const;
  3306. Variant GetAttribute(const String&) const;
  3307. Variant GetAttributeDefault(const String&) const;
  3308. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3309. UIElement GetChild(const String&, bool = false) const;
  3310. Array<UIElement> GetChildren(bool = false) const;
  3311. UIElement GetElementEventSender() const;
  3312. uint GetNumChildren(bool) const;
  3313. void InsertChild(uint, UIElement);
  3314. bool IsInside(IntVector2, bool);
  3315. bool IsInsideCombined(IntVector2, bool);
  3316. bool Load(File, bool = false);
  3317. bool LoadChildXML(XMLFile, XMLFile = null);
  3318. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3319. bool LoadXML(File);
  3320. bool LoadXML(XMLFile, XMLFile);
  3321. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3322. bool LoadXML(const XMLElement&, bool = false);
  3323. void Remove();
  3324. void RemoveAllChildren();
  3325. void RemoveChild(UIElement, uint = 0);
  3326. void RemoveChild(uint);
  3327. void RemoveInstanceDefault();
  3328. void ResetToDefault();
  3329. bool Save(File) const;
  3330. bool SaveXML(File);
  3331. bool SaveXML(XMLElement&) const;
  3332. IntVector2 ScreenToElement(const IntVector2&);
  3333. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3334. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3335. bool SetAttribute(const String&, const Variant&);
  3336. void SetFixedHeight(int);
  3337. void SetFixedSize(int, int);
  3338. void SetFixedWidth(int);
  3339. void SetFullImageRect();
  3340. void SetHoverOffset(int, int);
  3341. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3342. void SetMaxSize(int, int);
  3343. void SetMinSize(int, int);
  3344. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3345. void SetPosition(int, int);
  3346. void SetSize(int, int);
  3347. bool SetStyle(const String&, XMLFile = null);
  3348. bool SetStyle(const XMLElement&);
  3349. bool SetStyleAuto(XMLFile = null);
  3350. void UpdateLayout();
  3351. const Variant& GetVar(const ShortStringHash&);
  3352. // Properties:
  3353. /* readonly */
  3354. Array<Variant> attributeDefaults;
  3355. /* readonly */
  3356. Array<AttributeInfo> attributeInfos;
  3357. Array<Variant> attributes;
  3358. /* readonly */
  3359. ShortStringHash baseType;
  3360. BlendMode blendMode;
  3361. IntRect border;
  3362. bool bringToBack;
  3363. bool bringToFront;
  3364. /* readonly */
  3365. String category;
  3366. /* readonly */
  3367. IntVector2 childOffset;
  3368. /* readonly */
  3369. Array<UIElement> children;
  3370. IntRect clipBorder;
  3371. bool clipChildren;
  3372. /* writeonly */
  3373. Color color;
  3374. /* readonly */
  3375. bool colorGradient;
  3376. Array<Color> colors;
  3377. /* readonly */
  3378. IntRect combinedScreenRect;
  3379. /* readonly */
  3380. BorderImage cursor;
  3381. float cursorBlinkRate;
  3382. bool cursorMovable;
  3383. uint cursorPosition;
  3384. XMLFile defaultStyle;
  3385. /* readonly */
  3386. float derivedOpacity;
  3387. uint dragDropMode;
  3388. uint echoCharacter;
  3389. bool editable;
  3390. bool elementEventSender;
  3391. bool enabled;
  3392. /* readonly */
  3393. bool fixedHeight;
  3394. /* readonly */
  3395. bool fixedSize;
  3396. /* readonly */
  3397. bool fixedWidth;
  3398. bool focus;
  3399. FocusMode focusMode;
  3400. int height;
  3401. HorizontalAlignment horizontalAlignment;
  3402. IntVector2 hoverOffset;
  3403. /* readonly */
  3404. bool hovering;
  3405. IntRect imageRect;
  3406. int indent;
  3407. int indentSpacing;
  3408. /* readonly */
  3409. int indentWidth;
  3410. bool internal;
  3411. IntRect layoutBorder;
  3412. LayoutMode layoutMode;
  3413. int layoutSpacing;
  3414. int maxHeight;
  3415. uint maxLength;
  3416. IntVector2 maxSize;
  3417. int maxWidth;
  3418. int minHeight;
  3419. IntVector2 minSize;
  3420. int minWidth;
  3421. String name;
  3422. /* readonly */
  3423. uint numAllChildren;
  3424. /* readonly */
  3425. uint numAttributes;
  3426. /* readonly */
  3427. uint numChildren;
  3428. float opacity;
  3429. UIElement parent;
  3430. IntVector2 position;
  3431. int priority;
  3432. /* readonly */
  3433. int refs;
  3434. /* readonly */
  3435. UIElement root;
  3436. /* readonly */
  3437. IntVector2 screenPosition;
  3438. bool selected;
  3439. IntVector2 size;
  3440. bool sortChildren;
  3441. String style;
  3442. bool temporary;
  3443. String text;
  3444. bool textCopyable;
  3445. /* readonly */
  3446. Text textElement;
  3447. bool textSelectable;
  3448. Texture texture;
  3449. bool tiled;
  3450. TraversalMode traversalMode;
  3451. /* readonly */
  3452. ShortStringHash type;
  3453. /* readonly */
  3454. String typeName;
  3455. bool useDerivedOpacity;
  3456. /* readonly */
  3457. VariantMap vars;
  3458. VerticalAlignment verticalAlignment;
  3459. bool visible;
  3460. /* readonly */
  3461. int weakRefs;
  3462. int width;
  3463. };
  3464. class ListView
  3465. {
  3466. // Methods:
  3467. void AddChild(UIElement);
  3468. void AddItem(UIElement);
  3469. void AddSelection(uint);
  3470. void ApplyAttributes();
  3471. void BringToFront();
  3472. void ChangeSelection(int, bool);
  3473. void ClearSelection();
  3474. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3475. void DisableLayoutUpdate();
  3476. IntVector2 ElementToScreen(const IntVector2&);
  3477. void EnableLayoutUpdate();
  3478. void Expand(uint, bool, bool = false);
  3479. uint FindChild(UIElement) const;
  3480. uint FindItem(UIElement);
  3481. Variant GetAttribute(const String&) const;
  3482. Variant GetAttributeDefault(const String&) const;
  3483. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3484. UIElement GetChild(const String&, bool = false) const;
  3485. Array<UIElement> GetChildren(bool = false) const;
  3486. UIElement GetElementEventSender() const;
  3487. Array<UIElement> GetItems() const;
  3488. uint GetNumChildren(bool) const;
  3489. void InsertChild(uint, UIElement);
  3490. void InsertItem(uint, UIElement, UIElement = null);
  3491. bool IsExpanded(uint) const;
  3492. bool IsInside(IntVector2, bool);
  3493. bool IsInsideCombined(IntVector2, bool);
  3494. bool IsSelected(uint) const;
  3495. bool Load(File, bool = false);
  3496. bool LoadChildXML(XMLFile, XMLFile = null);
  3497. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3498. bool LoadXML(File);
  3499. bool LoadXML(XMLFile, XMLFile);
  3500. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3501. bool LoadXML(const XMLElement&, bool = false);
  3502. void Remove();
  3503. void RemoveAllChildren();
  3504. void RemoveAllItems();
  3505. void RemoveChild(UIElement, uint = 0);
  3506. void RemoveChild(uint);
  3507. void RemoveInstanceDefault();
  3508. void RemoveItem(UIElement, uint = 0);
  3509. void RemoveItem(uint);
  3510. void RemoveSelection(uint);
  3511. void ResetToDefault();
  3512. bool Save(File) const;
  3513. bool SaveXML(File);
  3514. bool SaveXML(XMLElement&) const;
  3515. IntVector2 ScreenToElement(const IntVector2&);
  3516. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3517. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3518. bool SetAttribute(const String&, const Variant&);
  3519. void SetFixedHeight(int);
  3520. void SetFixedSize(int, int);
  3521. void SetFixedWidth(int);
  3522. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3523. void SetMaxSize(int, int);
  3524. void SetMinSize(int, int);
  3525. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3526. void SetPosition(int, int);
  3527. void SetScrollBarsVisible(bool, bool);
  3528. void SetSelections(Array<uint>);
  3529. void SetSize(int, int);
  3530. bool SetStyle(const String&, XMLFile = null);
  3531. bool SetStyle(const XMLElement&);
  3532. bool SetStyleAuto(XMLFile = null);
  3533. void SetViewPosition(int, int);
  3534. void ToggleExpand(uint, bool = false);
  3535. void ToggleSelection(uint);
  3536. void UpdateLayout();
  3537. const Variant& GetVar(const ShortStringHash&);
  3538. // Properties:
  3539. /* readonly */
  3540. Array<Variant> attributeDefaults;
  3541. /* readonly */
  3542. Array<AttributeInfo> attributeInfos;
  3543. Array<Variant> attributes;
  3544. int baseIndent;
  3545. /* readonly */
  3546. ShortStringHash baseType;
  3547. bool bringToBack;
  3548. bool bringToFront;
  3549. /* readonly */
  3550. String category;
  3551. /* readonly */
  3552. IntVector2 childOffset;
  3553. /* readonly */
  3554. Array<UIElement> children;
  3555. bool clearSelectionOnDefocus;
  3556. IntRect clipBorder;
  3557. bool clipChildren;
  3558. /* writeonly */
  3559. Color color;
  3560. /* readonly */
  3561. bool colorGradient;
  3562. Array<Color> colors;
  3563. /* readonly */
  3564. IntRect combinedScreenRect;
  3565. /* readonly */
  3566. UIElement contentElement;
  3567. XMLFile defaultStyle;
  3568. /* readonly */
  3569. float derivedOpacity;
  3570. uint dragDropMode;
  3571. bool editable;
  3572. bool elementEventSender;
  3573. bool enabled;
  3574. /* readonly */
  3575. bool fixedHeight;
  3576. /* readonly */
  3577. bool fixedSize;
  3578. /* readonly */
  3579. bool fixedWidth;
  3580. bool focus;
  3581. FocusMode focusMode;
  3582. int height;
  3583. bool hierarchyMode;
  3584. HighlightMode highlightMode;
  3585. HorizontalAlignment horizontalAlignment;
  3586. /* readonly */
  3587. ScrollBar horizontalScrollBar;
  3588. /* readonly */
  3589. bool hovering;
  3590. int indent;
  3591. int indentSpacing;
  3592. /* readonly */
  3593. int indentWidth;
  3594. bool internal;
  3595. /* readonly */
  3596. Array<UIElement> items;
  3597. IntRect layoutBorder;
  3598. LayoutMode layoutMode;
  3599. int layoutSpacing;
  3600. int maxHeight;
  3601. IntVector2 maxSize;
  3602. int maxWidth;
  3603. int minHeight;
  3604. IntVector2 minSize;
  3605. int minWidth;
  3606. bool multiselect;
  3607. String name;
  3608. /* readonly */
  3609. uint numAllChildren;
  3610. /* readonly */
  3611. uint numAttributes;
  3612. /* readonly */
  3613. uint numChildren;
  3614. /* readonly */
  3615. uint numItems;
  3616. float opacity;
  3617. float pageStep;
  3618. UIElement parent;
  3619. IntVector2 position;
  3620. int priority;
  3621. /* readonly */
  3622. int refs;
  3623. /* readonly */
  3624. UIElement root;
  3625. /* readonly */
  3626. IntVector2 screenPosition;
  3627. bool scrollBarsAutoVisible;
  3628. /* readonly */
  3629. BorderImage scrollPanel;
  3630. float scrollStep;
  3631. bool selected;
  3632. /* readonly */
  3633. UIElement selectedItem;
  3634. /* readonly */
  3635. Array<UIElement> selectedItems;
  3636. uint selection;
  3637. /* readonly */
  3638. Array<uint> selections;
  3639. IntVector2 size;
  3640. bool sortChildren;
  3641. String style;
  3642. bool temporary;
  3643. TraversalMode traversalMode;
  3644. /* readonly */
  3645. ShortStringHash type;
  3646. /* readonly */
  3647. String typeName;
  3648. bool useDerivedOpacity;
  3649. /* readonly */
  3650. VariantMap vars;
  3651. VerticalAlignment verticalAlignment;
  3652. /* readonly */
  3653. ScrollBar verticalScrollBar;
  3654. IntVector2 viewPosition;
  3655. bool visible;
  3656. /* readonly */
  3657. int weakRefs;
  3658. int width;
  3659. };
  3660. class Log
  3661. {
  3662. // Methods:
  3663. void Close();
  3664. void Debug(const String&);
  3665. void Error(const String&);
  3666. void Info(const String&);
  3667. void Open(const String&);
  3668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3669. void Warning(const String&);
  3670. void Write(const String&, bool = false);
  3671. // Properties:
  3672. /* readonly */
  3673. ShortStringHash baseType;
  3674. /* readonly */
  3675. String category;
  3676. /* readonly */
  3677. String lastMessage;
  3678. int level;
  3679. bool quiet;
  3680. /* readonly */
  3681. int refs;
  3682. bool timeStamp;
  3683. /* readonly */
  3684. ShortStringHash type;
  3685. /* readonly */
  3686. String typeName;
  3687. /* readonly */
  3688. int weakRefs;
  3689. };
  3690. class Material
  3691. {
  3692. // Methods:
  3693. Material Clone(const String& = String ( )) const;
  3694. bool Load(File);
  3695. bool Load(const XMLElement&);
  3696. void RemoveShaderParameter(const String&);
  3697. bool Save(File) const;
  3698. bool Save(XMLElement&) const;
  3699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3700. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  3701. void SetUVTransform(const Vector2&, float, const Vector2&);
  3702. void SetUVTransform(const Vector2&, float, float);
  3703. void SortTechniques();
  3704. // Properties:
  3705. /* readonly */
  3706. ShortStringHash baseType;
  3707. /* readonly */
  3708. String category;
  3709. CullMode cullMode;
  3710. BiasParameters depthBias;
  3711. /* readonly */
  3712. uint memoryUse;
  3713. String name;
  3714. uint numTechniques;
  3715. /* readonly */
  3716. bool occlusion;
  3717. /* readonly */
  3718. int refs;
  3719. /* readonly */
  3720. Array<String> shaderParameterNames;
  3721. Array<Variant> shaderParameters;
  3722. CullMode shadowCullMode;
  3723. /* readonly */
  3724. Array<TechniqueEntry> techniqueEntries;
  3725. /* readonly */
  3726. Array<Technique> techniques;
  3727. Array<Texture> textures;
  3728. /* readonly */
  3729. ShortStringHash type;
  3730. /* readonly */
  3731. String typeName;
  3732. /* readonly */
  3733. uint useTimer;
  3734. /* readonly */
  3735. int weakRefs;
  3736. };
  3737. class Matrix3
  3738. {
  3739. // Methods:
  3740. bool Equals(const Matrix3&) const;
  3741. Matrix3 Inverse() const;
  3742. Vector3 Scale() const;
  3743. Matrix3 Scaled(const Vector3&) const;
  3744. void SetScale(const Vector3&);
  3745. void SetScale(float);
  3746. Matrix3 Transpose() const;
  3747. // Properties:
  3748. float m00;
  3749. float m01;
  3750. float m02;
  3751. float m10;
  3752. float m11;
  3753. float m12;
  3754. float m20;
  3755. float m21;
  3756. float m22;
  3757. };
  3758. class Matrix3x4
  3759. {
  3760. // Methods:
  3761. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  3762. bool Equals(const Matrix3x4&) const;
  3763. Matrix3x4 Inverse() const;
  3764. Quaternion Rotation() const;
  3765. Matrix3 RotationMatrix() const;
  3766. Vector3 Scale() const;
  3767. void SetRotation(const Matrix3&);
  3768. void SetScale(const Vector3&);
  3769. void SetScale(float);
  3770. void SetTranslation(const Vector3&);
  3771. Matrix3 ToMatrix3() const;
  3772. Matrix4 ToMatrix4() const;
  3773. Vector3 Translation() const;
  3774. // Properties:
  3775. float m00;
  3776. float m01;
  3777. float m02;
  3778. float m03;
  3779. float m10;
  3780. float m11;
  3781. float m12;
  3782. float m13;
  3783. float m20;
  3784. float m21;
  3785. float m22;
  3786. float m23;
  3787. };
  3788. class Matrix4
  3789. {
  3790. // Methods:
  3791. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  3792. bool Equals(const Matrix4&) const;
  3793. Matrix4 Inverse() const;
  3794. Quaternion Rotation() const;
  3795. Matrix3 RotationMatrix() const;
  3796. Vector3 Scale() const;
  3797. void SetRotation(const Matrix3&);
  3798. void SetScale(const Vector3&);
  3799. void SetScale(float);
  3800. void SetTranslation(const Vector3&);
  3801. Matrix3 ToMatrix3() const;
  3802. Vector3 Translation() const;
  3803. Matrix4 Transpose() const;
  3804. // Properties:
  3805. float m00;
  3806. float m01;
  3807. float m02;
  3808. float m03;
  3809. float m10;
  3810. float m11;
  3811. float m12;
  3812. float m13;
  3813. float m20;
  3814. float m21;
  3815. float m22;
  3816. float m23;
  3817. float m30;
  3818. float m31;
  3819. float m32;
  3820. float m33;
  3821. };
  3822. class Menu
  3823. {
  3824. // Methods:
  3825. void AddChild(UIElement);
  3826. void ApplyAttributes();
  3827. void BringToFront();
  3828. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3829. void DisableLayoutUpdate();
  3830. IntVector2 ElementToScreen(const IntVector2&);
  3831. void EnableLayoutUpdate();
  3832. uint FindChild(UIElement) const;
  3833. Variant GetAttribute(const String&) const;
  3834. Variant GetAttributeDefault(const String&) const;
  3835. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3836. UIElement GetChild(const String&, bool = false) const;
  3837. Array<UIElement> GetChildren(bool = false) const;
  3838. UIElement GetElementEventSender() const;
  3839. uint GetNumChildren(bool) const;
  3840. void InsertChild(uint, UIElement);
  3841. bool IsInside(IntVector2, bool);
  3842. bool IsInsideCombined(IntVector2, bool);
  3843. bool Load(File, bool = false);
  3844. bool LoadChildXML(XMLFile, XMLFile = null);
  3845. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3846. bool LoadXML(File);
  3847. bool LoadXML(XMLFile, XMLFile);
  3848. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3849. bool LoadXML(const XMLElement&, bool = false);
  3850. void Remove();
  3851. void RemoveAllChildren();
  3852. void RemoveChild(UIElement, uint = 0);
  3853. void RemoveChild(uint);
  3854. void RemoveInstanceDefault();
  3855. void ResetToDefault();
  3856. bool Save(File) const;
  3857. bool SaveXML(File);
  3858. bool SaveXML(XMLElement&) const;
  3859. IntVector2 ScreenToElement(const IntVector2&);
  3860. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3861. void SetAccelerator(int, int);
  3862. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3863. bool SetAttribute(const String&, const Variant&);
  3864. void SetFixedHeight(int);
  3865. void SetFixedSize(int, int);
  3866. void SetFixedWidth(int);
  3867. void SetFullImageRect();
  3868. void SetHoverOffset(int, int);
  3869. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3870. void SetMaxSize(int, int);
  3871. void SetMinSize(int, int);
  3872. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3873. void SetPopupOffset(int, int);
  3874. void SetPosition(int, int);
  3875. void SetPressedChildOffset(int, int);
  3876. void SetPressedOffset(int, int);
  3877. void SetRepeat(float, float);
  3878. void SetSize(int, int);
  3879. bool SetStyle(const String&, XMLFile = null);
  3880. bool SetStyle(const XMLElement&);
  3881. bool SetStyleAuto(XMLFile = null);
  3882. void UpdateLayout();
  3883. const Variant& GetVar(const ShortStringHash&);
  3884. // Properties:
  3885. /* readonly */
  3886. int acceleratorKey;
  3887. /* readonly */
  3888. int acceleratorQualifiers;
  3889. /* readonly */
  3890. Array<Variant> attributeDefaults;
  3891. /* readonly */
  3892. Array<AttributeInfo> attributeInfos;
  3893. Array<Variant> attributes;
  3894. /* readonly */
  3895. ShortStringHash baseType;
  3896. BlendMode blendMode;
  3897. IntRect border;
  3898. bool bringToBack;
  3899. bool bringToFront;
  3900. /* readonly */
  3901. String category;
  3902. /* readonly */
  3903. IntVector2 childOffset;
  3904. /* readonly */
  3905. Array<UIElement> children;
  3906. IntRect clipBorder;
  3907. bool clipChildren;
  3908. /* writeonly */
  3909. Color color;
  3910. /* readonly */
  3911. bool colorGradient;
  3912. Array<Color> colors;
  3913. /* readonly */
  3914. IntRect combinedScreenRect;
  3915. XMLFile defaultStyle;
  3916. /* readonly */
  3917. float derivedOpacity;
  3918. uint dragDropMode;
  3919. bool editable;
  3920. bool elementEventSender;
  3921. bool enabled;
  3922. /* readonly */
  3923. bool fixedHeight;
  3924. /* readonly */
  3925. bool fixedSize;
  3926. /* readonly */
  3927. bool fixedWidth;
  3928. bool focus;
  3929. FocusMode focusMode;
  3930. int height;
  3931. HorizontalAlignment horizontalAlignment;
  3932. IntVector2 hoverOffset;
  3933. /* readonly */
  3934. bool hovering;
  3935. IntRect imageRect;
  3936. int indent;
  3937. int indentSpacing;
  3938. /* readonly */
  3939. int indentWidth;
  3940. bool internal;
  3941. IntRect layoutBorder;
  3942. LayoutMode layoutMode;
  3943. int layoutSpacing;
  3944. int maxHeight;
  3945. IntVector2 maxSize;
  3946. int maxWidth;
  3947. int minHeight;
  3948. IntVector2 minSize;
  3949. int minWidth;
  3950. String name;
  3951. /* readonly */
  3952. uint numAllChildren;
  3953. /* readonly */
  3954. uint numAttributes;
  3955. /* readonly */
  3956. uint numChildren;
  3957. float opacity;
  3958. UIElement parent;
  3959. UIElement popup;
  3960. IntVector2 popupOffset;
  3961. IntVector2 position;
  3962. /* readonly */
  3963. bool pressed;
  3964. IntVector2 pressedChildOffset;
  3965. IntVector2 pressedOffset;
  3966. int priority;
  3967. /* readonly */
  3968. int refs;
  3969. float repeatDelay;
  3970. float repeatRate;
  3971. /* readonly */
  3972. UIElement root;
  3973. /* readonly */
  3974. IntVector2 screenPosition;
  3975. bool selected;
  3976. bool showPopup;
  3977. IntVector2 size;
  3978. bool sortChildren;
  3979. String style;
  3980. bool temporary;
  3981. Texture texture;
  3982. bool tiled;
  3983. TraversalMode traversalMode;
  3984. /* readonly */
  3985. ShortStringHash type;
  3986. /* readonly */
  3987. String typeName;
  3988. bool useDerivedOpacity;
  3989. /* readonly */
  3990. VariantMap vars;
  3991. VerticalAlignment verticalAlignment;
  3992. bool visible;
  3993. /* readonly */
  3994. int weakRefs;
  3995. int width;
  3996. };
  3997. class MessageBox
  3998. {
  3999. // Methods:
  4000. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4001. // Properties:
  4002. /* readonly */
  4003. ShortStringHash baseType;
  4004. /* readonly */
  4005. String category;
  4006. String message;
  4007. /* readonly */
  4008. int refs;
  4009. String title;
  4010. /* readonly */
  4011. ShortStringHash type;
  4012. /* readonly */
  4013. String typeName;
  4014. /* readonly */
  4015. int weakRefs;
  4016. /* readonly */
  4017. UIElement window;
  4018. };
  4019. class Model
  4020. {
  4021. // Methods:
  4022. bool Load(File);
  4023. bool Save(File) const;
  4024. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4025. // Properties:
  4026. /* readonly */
  4027. ShortStringHash baseType;
  4028. /* readonly */
  4029. BoundingBox boundingBox;
  4030. /* readonly */
  4031. String category;
  4032. /* readonly */
  4033. uint memoryUse;
  4034. String name;
  4035. /* readonly */
  4036. uint numGeometries;
  4037. /* readonly */
  4038. Array<uint> numGeometryLodLevels;
  4039. /* readonly */
  4040. uint numMorphs;
  4041. /* readonly */
  4042. int refs;
  4043. /* readonly */
  4044. Skeleton skeleton;
  4045. /* readonly */
  4046. ShortStringHash type;
  4047. /* readonly */
  4048. String typeName;
  4049. /* readonly */
  4050. uint useTimer;
  4051. /* readonly */
  4052. int weakRefs;
  4053. };
  4054. class Navigable
  4055. {
  4056. // Methods:
  4057. void ApplyAttributes();
  4058. void DrawDebugGeometry(DebugRenderer, bool);
  4059. Variant GetAttribute(const String&) const;
  4060. Variant GetAttributeDefault(const String&) const;
  4061. bool Load(File, bool = false);
  4062. bool LoadXML(const XMLElement&, bool = false);
  4063. void MarkNetworkUpdate() const;
  4064. void Remove();
  4065. void RemoveInstanceDefault();
  4066. void ResetToDefault();
  4067. bool Save(File) const;
  4068. bool SaveXML(XMLElement&) const;
  4069. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4070. bool SetAttribute(const String&, const Variant&);
  4071. // Properties:
  4072. /* readonly */
  4073. Array<Variant> attributeDefaults;
  4074. /* readonly */
  4075. Array<AttributeInfo> attributeInfos;
  4076. Array<Variant> attributes;
  4077. /* readonly */
  4078. ShortStringHash baseType;
  4079. /* readonly */
  4080. String category;
  4081. bool enabled;
  4082. /* readonly */
  4083. bool enabledEffective;
  4084. /* readonly */
  4085. uint id;
  4086. /* readonly */
  4087. Node node;
  4088. /* readonly */
  4089. uint numAttributes;
  4090. bool recursive;
  4091. /* readonly */
  4092. int refs;
  4093. bool temporary;
  4094. /* readonly */
  4095. ShortStringHash type;
  4096. /* readonly */
  4097. String typeName;
  4098. /* readonly */
  4099. int weakRefs;
  4100. };
  4101. class NavigationMesh
  4102. {
  4103. // Methods:
  4104. void ApplyAttributes();
  4105. bool Build();
  4106. bool Build(const BoundingBox&);
  4107. void DrawDebugGeometry(DebugRenderer, bool);
  4108. void DrawDebugGeometry(bool);
  4109. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4110. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4111. Variant GetAttribute(const String&) const;
  4112. Variant GetAttributeDefault(const String&) const;
  4113. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4114. Vector3 GetRandomPoint();
  4115. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4116. bool Load(File, bool = false);
  4117. bool LoadXML(const XMLElement&, bool = false);
  4118. void MarkNetworkUpdate() const;
  4119. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  4120. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4121. void Remove();
  4122. void RemoveInstanceDefault();
  4123. void ResetToDefault();
  4124. bool Save(File) const;
  4125. bool SaveXML(XMLElement&) const;
  4126. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4127. bool SetAttribute(const String&, const Variant&);
  4128. // Properties:
  4129. float agentHeight;
  4130. float agentMaxClimb;
  4131. float agentMaxSlope;
  4132. float agentRadius;
  4133. /* readonly */
  4134. Array<Variant> attributeDefaults;
  4135. /* readonly */
  4136. Array<AttributeInfo> attributeInfos;
  4137. Array<Variant> attributes;
  4138. /* readonly */
  4139. ShortStringHash baseType;
  4140. /* readonly */
  4141. BoundingBox boundingBox;
  4142. /* readonly */
  4143. String category;
  4144. float cellHeight;
  4145. float cellSize;
  4146. float detailSampleDistance;
  4147. float detailSampleMaxError;
  4148. float edgeMaxError;
  4149. float edgeMaxLength;
  4150. bool enabled;
  4151. /* readonly */
  4152. bool enabledEffective;
  4153. /* readonly */
  4154. uint id;
  4155. /* readonly */
  4156. bool initialized;
  4157. /* readonly */
  4158. Node node;
  4159. /* readonly */
  4160. uint numAttributes;
  4161. /* readonly */
  4162. IntVector2 numTiles;
  4163. Vector3 padding;
  4164. /* readonly */
  4165. int refs;
  4166. float regionMergeSize;
  4167. float regionMinSize;
  4168. bool temporary;
  4169. int tileSize;
  4170. /* readonly */
  4171. ShortStringHash type;
  4172. /* readonly */
  4173. String typeName;
  4174. /* readonly */
  4175. int weakRefs;
  4176. /* readonly */
  4177. BoundingBox worldBoundingBox;
  4178. };
  4179. class Network
  4180. {
  4181. // Methods:
  4182. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  4183. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  4184. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  4185. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  4186. bool CheckRemoteEvent(const String&) const;
  4187. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  4188. void Disconnect(int = 0);
  4189. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  4190. void RegisterRemoteEvent(const String&) const;
  4191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4192. bool StartServer(uint16);
  4193. void StopServer();
  4194. void UnregisterAllRemoteEvents();
  4195. void UnregisterRemoteEvent(const String&) const;
  4196. // Properties:
  4197. /* readonly */
  4198. ShortStringHash baseType;
  4199. /* readonly */
  4200. String category;
  4201. /* readonly */
  4202. Array<Connection> clientConnections;
  4203. String packageCacheDir;
  4204. /* readonly */
  4205. int refs;
  4206. /* readonly */
  4207. Connection serverConnection;
  4208. /* readonly */
  4209. bool serverRunning;
  4210. /* readonly */
  4211. ShortStringHash type;
  4212. /* readonly */
  4213. String typeName;
  4214. int updateFps;
  4215. /* readonly */
  4216. int weakRefs;
  4217. };
  4218. class NetworkPriority
  4219. {
  4220. // Methods:
  4221. void ApplyAttributes();
  4222. void DrawDebugGeometry(DebugRenderer, bool);
  4223. Variant GetAttribute(const String&) const;
  4224. Variant GetAttributeDefault(const String&) const;
  4225. bool Load(File, bool = false);
  4226. bool LoadXML(const XMLElement&, bool = false);
  4227. void MarkNetworkUpdate() const;
  4228. void Remove();
  4229. void RemoveInstanceDefault();
  4230. void ResetToDefault();
  4231. bool Save(File) const;
  4232. bool SaveXML(XMLElement&) const;
  4233. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4234. bool SetAttribute(const String&, const Variant&);
  4235. // Properties:
  4236. bool alwaysUpdateOwner;
  4237. /* readonly */
  4238. Array<Variant> attributeDefaults;
  4239. /* readonly */
  4240. Array<AttributeInfo> attributeInfos;
  4241. Array<Variant> attributes;
  4242. float basePriority;
  4243. /* readonly */
  4244. ShortStringHash baseType;
  4245. /* readonly */
  4246. String category;
  4247. float distanceFactor;
  4248. bool enabled;
  4249. /* readonly */
  4250. bool enabledEffective;
  4251. /* readonly */
  4252. uint id;
  4253. float minPriority;
  4254. /* readonly */
  4255. Node node;
  4256. /* readonly */
  4257. uint numAttributes;
  4258. /* readonly */
  4259. int refs;
  4260. bool temporary;
  4261. /* readonly */
  4262. ShortStringHash type;
  4263. /* readonly */
  4264. String typeName;
  4265. /* readonly */
  4266. int weakRefs;
  4267. };
  4268. class Node
  4269. {
  4270. // Methods:
  4271. void AddChild(Node, uint = M_MAX_UNSIGNED);
  4272. void ApplyAttributes();
  4273. Node Clone(CreateMode = REPLICATED);
  4274. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  4275. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4276. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  4277. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  4278. Variant GetAttribute(const String&) const;
  4279. Variant GetAttributeDefault(const String&) const;
  4280. Node GetChild(const String&, bool = false) const;
  4281. Array<Node> GetChildren(bool = false) const;
  4282. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  4283. Array<Node> GetChildrenWithScript(bool = false) const;
  4284. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  4285. Component GetComponent(const String&) const;
  4286. Array<Component> GetComponents() const;
  4287. Array<Component> GetComponents(const String&, bool = false) const;
  4288. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4289. ScriptObject GetScriptObject() const;
  4290. ScriptObject GetScriptObject(const String&) const;
  4291. bool HasComponent(const String&) const;
  4292. bool Load(File, bool = false);
  4293. bool LoadXML(const XMLElement&, bool = false);
  4294. Vector3 LocalToWorld(const Vector3&) const;
  4295. Vector3 LocalToWorld(const Vector4&) const;
  4296. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  4297. void Pitch(float, bool = false);
  4298. void Remove();
  4299. void RemoveAllChildren();
  4300. void RemoveAllComponents();
  4301. void RemoveChild(Node);
  4302. void RemoveChildren(bool, bool, bool);
  4303. void RemoveComponent(Component);
  4304. void RemoveComponent(const String&);
  4305. void RemoveComponents(bool, bool);
  4306. void RemoveInstanceDefault();
  4307. void ResetToDefault();
  4308. void Roll(float, bool = false);
  4309. void Rotate(const Quaternion&, bool = false);
  4310. bool Save(File) const;
  4311. bool SaveXML(File);
  4312. bool SaveXML(XMLElement&) const;
  4313. void Scale(const Vector3&);
  4314. void Scale(float);
  4315. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4316. bool SetAttribute(const String&, const Variant&);
  4317. void SetEnabled(bool, bool);
  4318. void SetScale(float);
  4319. void SetTransform(const Vector3&, const Quaternion&);
  4320. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  4321. void SetTransform(const Vector3&, const Quaternion&, float);
  4322. void SetWorldTransform(const Vector3&, const Quaternion&);
  4323. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  4324. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  4325. void Translate(const Vector3&);
  4326. void TranslateRelative(const Vector3&);
  4327. Vector3 WorldToLocal(const Vector3&) const;
  4328. Vector3 WorldToLocal(const Vector4&) const;
  4329. void Yaw(float, bool = false);
  4330. // Properties:
  4331. /* readonly */
  4332. Array<Variant> attributeDefaults;
  4333. /* readonly */
  4334. Array<AttributeInfo> attributeInfos;
  4335. Array<Variant> attributes;
  4336. /* readonly */
  4337. ShortStringHash baseType;
  4338. /* readonly */
  4339. String category;
  4340. /* readonly */
  4341. Array<Node> children;
  4342. /* readonly */
  4343. Array<Component> components;
  4344. Vector3 direction;
  4345. bool enabled;
  4346. /* readonly */
  4347. uint id;
  4348. String name;
  4349. /* readonly */
  4350. uint numAllChildren;
  4351. /* readonly */
  4352. uint numAttributes;
  4353. /* readonly */
  4354. uint numChildren;
  4355. /* readonly */
  4356. uint numComponents;
  4357. Connection owner;
  4358. Node parent;
  4359. Vector3 position;
  4360. /* readonly */
  4361. int refs;
  4362. /* readonly */
  4363. Vector3 right;
  4364. Quaternion rotation;
  4365. Vector3 scale;
  4366. /* readonly */
  4367. Scene scene;
  4368. /* readonly */
  4369. ScriptObject scriptObject;
  4370. bool temporary;
  4371. /* readonly */
  4372. Matrix3x4 transform;
  4373. /* readonly */
  4374. ShortStringHash type;
  4375. /* readonly */
  4376. String typeName;
  4377. /* readonly */
  4378. Vector3 up;
  4379. /* readonly */
  4380. VariantMap vars;
  4381. /* readonly */
  4382. int weakRefs;
  4383. Vector3 worldDirection;
  4384. Vector3 worldPosition;
  4385. /* readonly */
  4386. Vector3 worldRight;
  4387. Quaternion worldRotation;
  4388. Vector3 worldScale;
  4389. /* readonly */
  4390. Matrix3x4 worldTransform;
  4391. /* readonly */
  4392. Vector3 worldUp;
  4393. };
  4394. class Object
  4395. {
  4396. // Methods:
  4397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4398. // Properties:
  4399. /* readonly */
  4400. ShortStringHash baseType;
  4401. /* readonly */
  4402. String category;
  4403. /* readonly */
  4404. int refs;
  4405. /* readonly */
  4406. ShortStringHash type;
  4407. /* readonly */
  4408. String typeName;
  4409. /* readonly */
  4410. int weakRefs;
  4411. };
  4412. class Octree
  4413. {
  4414. // Methods:
  4415. void AddManualDrawable(Drawable);
  4416. void ApplyAttributes();
  4417. void DrawDebugGeometry(DebugRenderer, bool);
  4418. void DrawDebugGeometry(bool) const;
  4419. Variant GetAttribute(const String&) const;
  4420. Variant GetAttributeDefault(const String&) const;
  4421. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  4422. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  4423. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  4424. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  4425. bool Load(File, bool = false);
  4426. bool LoadXML(const XMLElement&, bool = false);
  4427. void MarkNetworkUpdate() const;
  4428. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  4429. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  4430. void Remove();
  4431. void RemoveInstanceDefault();
  4432. void RemoveManualDrawable(Drawable);
  4433. void ResetToDefault();
  4434. bool Save(File) const;
  4435. bool SaveXML(XMLElement&) const;
  4436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4437. bool SetAttribute(const String&, const Variant&);
  4438. void SetSize(const BoundingBox&, uint);
  4439. // Properties:
  4440. /* readonly */
  4441. Array<Variant> attributeDefaults;
  4442. /* readonly */
  4443. Array<AttributeInfo> attributeInfos;
  4444. Array<Variant> attributes;
  4445. /* readonly */
  4446. ShortStringHash baseType;
  4447. /* readonly */
  4448. String category;
  4449. bool enabled;
  4450. /* readonly */
  4451. bool enabledEffective;
  4452. /* readonly */
  4453. uint id;
  4454. /* readonly */
  4455. Node node;
  4456. /* readonly */
  4457. uint numAttributes;
  4458. /* readonly */
  4459. uint numLevels;
  4460. /* readonly */
  4461. int refs;
  4462. bool temporary;
  4463. /* readonly */
  4464. ShortStringHash type;
  4465. /* readonly */
  4466. String typeName;
  4467. /* readonly */
  4468. int weakRefs;
  4469. /* readonly */
  4470. BoundingBox worldBoundingBox;
  4471. };
  4472. class OffMeshConnection
  4473. {
  4474. // Methods:
  4475. void ApplyAttributes();
  4476. void DrawDebugGeometry(DebugRenderer, bool);
  4477. Variant GetAttribute(const String&) const;
  4478. Variant GetAttributeDefault(const String&) const;
  4479. bool Load(File, bool = false);
  4480. bool LoadXML(const XMLElement&, bool = false);
  4481. void MarkNetworkUpdate() const;
  4482. void Remove();
  4483. void RemoveInstanceDefault();
  4484. void ResetToDefault();
  4485. bool Save(File) const;
  4486. bool SaveXML(XMLElement&) const;
  4487. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4488. bool SetAttribute(const String&, const Variant&);
  4489. // Properties:
  4490. /* readonly */
  4491. Array<Variant> attributeDefaults;
  4492. /* readonly */
  4493. Array<AttributeInfo> attributeInfos;
  4494. Array<Variant> attributes;
  4495. /* readonly */
  4496. ShortStringHash baseType;
  4497. bool bidirectional;
  4498. /* readonly */
  4499. String category;
  4500. bool enabled;
  4501. /* readonly */
  4502. bool enabledEffective;
  4503. Node endPoint;
  4504. /* readonly */
  4505. uint id;
  4506. /* readonly */
  4507. Node node;
  4508. /* readonly */
  4509. uint numAttributes;
  4510. float radius;
  4511. /* readonly */
  4512. int refs;
  4513. bool temporary;
  4514. /* readonly */
  4515. ShortStringHash type;
  4516. /* readonly */
  4517. String typeName;
  4518. /* readonly */
  4519. int weakRefs;
  4520. };
  4521. class PackageFile
  4522. {
  4523. // Methods:
  4524. bool Exists(const String&) const;
  4525. bool Open(const String&, uint = 0) const;
  4526. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4527. bool compressed() const;
  4528. // Properties:
  4529. /* readonly */
  4530. ShortStringHash baseType;
  4531. /* readonly */
  4532. String category;
  4533. /* readonly */
  4534. uint checksum;
  4535. /* readonly */
  4536. String name;
  4537. /* readonly */
  4538. uint numFiles;
  4539. /* readonly */
  4540. int refs;
  4541. /* readonly */
  4542. uint totalSize;
  4543. /* readonly */
  4544. ShortStringHash type;
  4545. /* readonly */
  4546. String typeName;
  4547. /* readonly */
  4548. int weakRefs;
  4549. };
  4550. class ParticleEmitter
  4551. {
  4552. // Methods:
  4553. void ApplyAttributes();
  4554. void DrawDebugGeometry(DebugRenderer, bool);
  4555. Variant GetAttribute(const String&) const;
  4556. Variant GetAttributeDefault(const String&) const;
  4557. bool IsInView(Camera) const;
  4558. bool Load(File, bool = false);
  4559. bool Load(XMLFile);
  4560. bool LoadXML(const XMLElement&, bool = false);
  4561. void MarkNetworkUpdate() const;
  4562. void Remove();
  4563. void RemoveInstanceDefault();
  4564. void ResetToDefault();
  4565. bool Save(File) const;
  4566. bool Save(XMLFile);
  4567. bool SaveXML(XMLElement&) const;
  4568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4569. bool SetAttribute(const String&, const Variant&);
  4570. void SetColor(const Color&);
  4571. void SetEmitting(bool, bool);
  4572. // Properties:
  4573. float activeTime;
  4574. float animationLodBias;
  4575. /* readonly */
  4576. Array<Variant> attributeDefaults;
  4577. /* readonly */
  4578. Array<AttributeInfo> attributeInfos;
  4579. Array<Variant> attributes;
  4580. /* readonly */
  4581. ShortStringHash baseType;
  4582. /* readonly */
  4583. BoundingBox boundingBox;
  4584. bool castShadows;
  4585. /* readonly */
  4586. String category;
  4587. /* readonly */
  4588. Array<ColorFrame> colors;
  4589. Vector3 constantForce;
  4590. float dampingForce;
  4591. float drawDistance;
  4592. /* writeonly */
  4593. float emissionRate;
  4594. Vector3 emitterSize;
  4595. EmitterType emitterType;
  4596. bool emitting;
  4597. bool enabled;
  4598. /* readonly */
  4599. bool enabledEffective;
  4600. /* readonly */
  4601. uint id;
  4602. /* readonly */
  4603. bool inView;
  4604. float inactiveTime;
  4605. uint lightMask;
  4606. float lodBias;
  4607. Material material;
  4608. Vector3 maxDirection;
  4609. float maxEmissionRate;
  4610. uint maxLights;
  4611. Vector3 maxParticleSize;
  4612. float maxRotation;
  4613. float maxRotationSpeed;
  4614. float maxTimeToLive;
  4615. float maxVelocity;
  4616. Vector3 minDirection;
  4617. float minEmissionRate;
  4618. Vector2 minParticleSize;
  4619. float minRotation;
  4620. float minRotationSpeed;
  4621. float minTimeToLive;
  4622. float minVelocity;
  4623. /* readonly */
  4624. Node node;
  4625. /* readonly */
  4626. uint numAttributes;
  4627. uint numColors;
  4628. uint numParticles;
  4629. uint numTextureFrames;
  4630. bool occludee;
  4631. bool occluder;
  4632. /* writeonly */
  4633. Vector2 particleSize;
  4634. /* readonly */
  4635. int refs;
  4636. bool relative;
  4637. /* writeonly */
  4638. float rotation;
  4639. /* writeonly */
  4640. float rotationSpeed;
  4641. bool scaled;
  4642. float shadowDistance;
  4643. uint shadowMask;
  4644. float sizeAdd;
  4645. float sizeMul;
  4646. bool sorted;
  4647. bool temporary;
  4648. /* readonly */
  4649. Array<TextureFrame> textureFrames;
  4650. /* writeonly */
  4651. float timeToLive;
  4652. /* readonly */
  4653. ShortStringHash type;
  4654. /* readonly */
  4655. String typeName;
  4656. bool updateInvisible;
  4657. /* writeonly */
  4658. float velocity;
  4659. uint viewMask;
  4660. /* readonly */
  4661. int weakRefs;
  4662. /* readonly */
  4663. BoundingBox worldBoundingBox;
  4664. /* readonly */
  4665. Zone zone;
  4666. uint zoneMask;
  4667. };
  4668. class ParticleEmitter2D
  4669. {
  4670. // Methods:
  4671. void ApplyAttributes();
  4672. void DrawDebugGeometry(DebugRenderer, bool);
  4673. Variant GetAttribute(const String&) const;
  4674. Variant GetAttributeDefault(const String&) const;
  4675. bool IsInView(Camera) const;
  4676. bool Load(File, bool = false);
  4677. bool LoadXML(const XMLElement&, bool = false);
  4678. void MarkNetworkUpdate() const;
  4679. void Remove();
  4680. void RemoveInstanceDefault();
  4681. void ResetToDefault();
  4682. bool Save(File) const;
  4683. bool SaveXML(XMLElement&) const;
  4684. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4685. bool SetAttribute(const String&, const Variant&);
  4686. // Properties:
  4687. /* readonly */
  4688. Array<Variant> attributeDefaults;
  4689. /* readonly */
  4690. Array<AttributeInfo> attributeInfos;
  4691. Array<Variant> attributes;
  4692. /* readonly */
  4693. ShortStringHash baseType;
  4694. BlendMode blendMode;
  4695. /* readonly */
  4696. BoundingBox boundingBox;
  4697. bool castShadows;
  4698. /* readonly */
  4699. String category;
  4700. float drawDistance;
  4701. bool enabled;
  4702. /* readonly */
  4703. bool enabledEffective;
  4704. /* readonly */
  4705. uint id;
  4706. /* readonly */
  4707. bool inView;
  4708. uint lightMask;
  4709. float lodBias;
  4710. Material material;
  4711. uint maxLights;
  4712. ParticleModel2D model;
  4713. /* readonly */
  4714. Node node;
  4715. /* readonly */
  4716. uint numAttributes;
  4717. bool occludee;
  4718. bool occluder;
  4719. /* readonly */
  4720. int refs;
  4721. float shadowDistance;
  4722. uint shadowMask;
  4723. Sprite2D sprite;
  4724. bool temporary;
  4725. /* readonly */
  4726. ShortStringHash type;
  4727. /* readonly */
  4728. String typeName;
  4729. uint viewMask;
  4730. /* readonly */
  4731. int weakRefs;
  4732. /* readonly */
  4733. BoundingBox worldBoundingBox;
  4734. float zValue;
  4735. uint zoneMask;
  4736. };
  4737. class ParticleModel2D
  4738. {
  4739. // Methods:
  4740. bool Load(File);
  4741. bool Save(File) const;
  4742. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4743. // Properties:
  4744. /* readonly */
  4745. ShortStringHash baseType;
  4746. /* readonly */
  4747. String category;
  4748. /* readonly */
  4749. uint memoryUse;
  4750. String name;
  4751. /* readonly */
  4752. int refs;
  4753. /* readonly */
  4754. ShortStringHash type;
  4755. /* readonly */
  4756. String typeName;
  4757. /* readonly */
  4758. uint useTimer;
  4759. /* readonly */
  4760. int weakRefs;
  4761. };
  4762. class Pass
  4763. {
  4764. // Properties:
  4765. bool alphaMask;
  4766. BlendMode blendMode;
  4767. CompareMode depthTestMode;
  4768. bool depthWrite;
  4769. PassLightingMode lightingMode;
  4770. String pixelShader;
  4771. String pixelShaderDefines;
  4772. /* readonly */
  4773. int refs;
  4774. String vertexShader;
  4775. String vertexShaderDefines;
  4776. /* readonly */
  4777. int weakRefs;
  4778. };
  4779. class PhysicsRaycastResult
  4780. {
  4781. // Properties:
  4782. /* readonly */
  4783. RigidBody body;
  4784. float distance;
  4785. Vector3 normal;
  4786. Vector3 position;
  4787. };
  4788. class PhysicsRaycastResult2D
  4789. {
  4790. // Properties:
  4791. /* readonly */
  4792. RigidBody2D body;
  4793. float distance;
  4794. Vector2 normal;
  4795. Vector2 position;
  4796. };
  4797. class PhysicsWorld
  4798. {
  4799. // Methods:
  4800. void ApplyAttributes();
  4801. void DrawDebugGeometry(DebugRenderer, bool);
  4802. void DrawDebugGeometry(bool);
  4803. Variant GetAttribute(const String&) const;
  4804. Variant GetAttributeDefault(const String&) const;
  4805. Array<RigidBody> GetRigidBodies(RigidBody);
  4806. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  4807. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  4808. bool Load(File, bool = false);
  4809. bool LoadXML(const XMLElement&, bool = false);
  4810. void MarkNetworkUpdate() const;
  4811. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  4812. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  4813. void Remove();
  4814. void RemoveCachedGeometry(Model);
  4815. void RemoveInstanceDefault();
  4816. void ResetToDefault();
  4817. bool Save(File) const;
  4818. bool SaveXML(XMLElement&) const;
  4819. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4820. bool SetAttribute(const String&, const Variant&);
  4821. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  4822. void Update(float);
  4823. void UpdateCollisions();
  4824. // Properties:
  4825. /* readonly */
  4826. Array<Variant> attributeDefaults;
  4827. /* readonly */
  4828. Array<AttributeInfo> attributeInfos;
  4829. Array<Variant> attributes;
  4830. /* readonly */
  4831. ShortStringHash baseType;
  4832. /* readonly */
  4833. String category;
  4834. bool enabled;
  4835. /* readonly */
  4836. bool enabledEffective;
  4837. int fps;
  4838. Vector3 gravity;
  4839. /* readonly */
  4840. uint id;
  4841. bool internalEdge;
  4842. bool interpolation;
  4843. /* readonly */
  4844. Node node;
  4845. /* readonly */
  4846. uint numAttributes;
  4847. int numIterations;
  4848. /* readonly */
  4849. int refs;
  4850. bool splitImpulse;
  4851. bool temporary;
  4852. /* readonly */
  4853. ShortStringHash type;
  4854. /* readonly */
  4855. String typeName;
  4856. /* readonly */
  4857. int weakRefs;
  4858. };
  4859. class PhysicsWorld2D
  4860. {
  4861. // Methods:
  4862. void ApplyAttributes();
  4863. void DrawDebugGeometry() const;
  4864. void DrawDebugGeometry(DebugRenderer, bool);
  4865. Variant GetAttribute(const String&) const;
  4866. Variant GetAttributeDefault(const String&) const;
  4867. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  4868. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  4869. bool Load(File, bool = false);
  4870. bool LoadXML(const XMLElement&, bool = false);
  4871. void MarkNetworkUpdate() const;
  4872. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  4873. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  4874. void Remove();
  4875. void RemoveInstanceDefault();
  4876. void ResetToDefault();
  4877. bool Save(File) const;
  4878. bool SaveXML(XMLElement&) const;
  4879. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4880. bool SetAttribute(const String&, const Variant&);
  4881. // Properties:
  4882. bool allowSleeping;
  4883. /* readonly */
  4884. Array<Variant> attributeDefaults;
  4885. /* readonly */
  4886. Array<AttributeInfo> attributeInfos;
  4887. Array<Variant> attributes;
  4888. bool autoClearForces;
  4889. /* readonly */
  4890. ShortStringHash baseType;
  4891. /* readonly */
  4892. String category;
  4893. bool continuousPhysics;
  4894. bool drawAabb;
  4895. bool drawCenterOfMass;
  4896. bool drawJoint;
  4897. bool drawPair;
  4898. bool drawShape;
  4899. bool enabled;
  4900. /* readonly */
  4901. bool enabledEffective;
  4902. Vector2 gravity;
  4903. /* readonly */
  4904. uint id;
  4905. /* readonly */
  4906. Node node;
  4907. /* readonly */
  4908. uint numAttributes;
  4909. uint positionIterations;
  4910. /* readonly */
  4911. int refs;
  4912. bool subStepping;
  4913. bool temporary;
  4914. /* readonly */
  4915. ShortStringHash type;
  4916. /* readonly */
  4917. String typeName;
  4918. uint velocityIterations;
  4919. bool warmStarting;
  4920. /* readonly */
  4921. int weakRefs;
  4922. };
  4923. class Plane
  4924. {
  4925. // Methods:
  4926. void Define(const Vector3&, const Vector3&);
  4927. void Define(const Vector3&, const Vector3&, const Vector3&);
  4928. void Define(const Vector4&);
  4929. float Distance(const Vector3&) const;
  4930. Vector3 Reflect(const Vector3&) const;
  4931. Vector4 ToVector4() const;
  4932. void Transform(const Matrix3&);
  4933. void Transform(const Matrix3x4&);
  4934. void Transform(const Matrix4&);
  4935. Plane Transformed(const Matrix3&) const;
  4936. Plane Transformed(const Matrix3x4&) const;
  4937. Plane Transformed(const Matrix4&) const;
  4938. // Properties:
  4939. Vector3 absNormal;
  4940. float d;
  4941. Vector3 normal;
  4942. /* readonly */
  4943. Matrix3x4 reflectionMatrix;
  4944. };
  4945. class Polyhedron
  4946. {
  4947. // Methods:
  4948. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  4949. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  4950. void AddFace(const Array<Vector3>);
  4951. void Clear();
  4952. void Clip(const BoundingBox&);
  4953. void Clip(const Frustum&);
  4954. void Define(const BoundingBox&);
  4955. void Define(const Frustum&);
  4956. void Transform(const Matrix3&);
  4957. void Transform(const Matrix3x4&);
  4958. Polyhedron Transformed(const Matrix3&) const;
  4959. Polyhedron Transformed(const Matrix3x4&) const;
  4960. // Properties:
  4961. /* readonly */
  4962. Array<Array<Vector3>> face;
  4963. /* readonly */
  4964. uint numFaces;
  4965. };
  4966. class Quaternion
  4967. {
  4968. // Methods:
  4969. float DotProduct(const Quaternion&) const;
  4970. bool Equals(const Quaternion&) const;
  4971. void FromAngleAxis(float, const Vector3&);
  4972. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  4973. void FromEulerAngles(float, float, float);
  4974. void FromLookRotation(const Vector3&, const Vector3&);
  4975. void FromRotationTo(const Vector3&, const Vector3&);
  4976. Quaternion Inverse() const;
  4977. bool IsNaN() const;
  4978. Quaternion Nlerp(Quaternion, float, bool) const;
  4979. void Normalize();
  4980. Quaternion Normalized() const;
  4981. Quaternion Slerp(Quaternion, float) const;
  4982. String ToString() const;
  4983. // Properties:
  4984. /* readonly */
  4985. Vector3 eulerAngles;
  4986. /* readonly */
  4987. float pitch;
  4988. /* readonly */
  4989. float roll;
  4990. float w;
  4991. float x;
  4992. float y;
  4993. /* readonly */
  4994. float yaw;
  4995. float z;
  4996. };
  4997. class Ray
  4998. {
  4999. // Methods:
  5000. Vector3 ClosestPoint(const Ray&) const;
  5001. void Define(const Vector3&, const Vector3&);
  5002. float Distance(const Vector3&) const;
  5003. float HitDistance(const BoundingBox&) const;
  5004. float HitDistance(const Frustum&, bool = true) const;
  5005. float HitDistance(const Sphere&) const;
  5006. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  5007. Vector3 Project(const Vector3&) const;
  5008. Ray Transformed(const Matrix3x4&) const;
  5009. // Properties:
  5010. Vector3 direction;
  5011. Vector3 origin;
  5012. };
  5013. class RayQueryResult
  5014. {
  5015. // Properties:
  5016. float distance;
  5017. /* readonly */
  5018. Drawable drawable;
  5019. /* readonly */
  5020. Node node;
  5021. Vector3 normal;
  5022. Vector3 position;
  5023. uint subObject;
  5024. };
  5025. class Rect
  5026. {
  5027. // Methods:
  5028. void Clear();
  5029. void Clip(const Rect&);
  5030. void Define(const Vector2&);
  5031. void Define(const Vector2&, const Vector2&);
  5032. bool Equals(const Rect&) const;
  5033. Intersection IsInside(const Vector2&) const;
  5034. void Merge(const Rect&);
  5035. void Merge(const Vector2&);
  5036. Vector4 ToVector4() const;
  5037. // Properties:
  5038. float bottom;
  5039. /* readonly */
  5040. Vector2 center;
  5041. bool defined;
  5042. /* readonly */
  5043. Vector2 halfSize;
  5044. float left;
  5045. Vector2 max;
  5046. Vector2 min;
  5047. float right;
  5048. /* readonly */
  5049. Vector2 size;
  5050. float top;
  5051. };
  5052. class RefCounted
  5053. {
  5054. // Properties:
  5055. /* readonly */
  5056. int refs;
  5057. /* readonly */
  5058. int weakRefs;
  5059. };
  5060. class RenderPath
  5061. {
  5062. // Methods:
  5063. void AddCommand(const RenderPathCommand&);
  5064. void AddRenderTarget(const RenderTargetInfo&);
  5065. bool Append(XMLFile);
  5066. RenderPath Clone();
  5067. void InsertCommand(uint, const RenderPathCommand&);
  5068. bool Load(XMLFile);
  5069. void RemoveCommand(uint);
  5070. void RemoveCommands(const String&);
  5071. void RemoveRenderTarget(const String&);
  5072. void RemoveRenderTarget(uint);
  5073. void RemoveRenderTargts(const String&);
  5074. void SetEnabled(const String&, bool);
  5075. void ToggleEnabled(const String&);
  5076. // Properties:
  5077. Array<RenderPathCommand> commands;
  5078. /* readonly */
  5079. uint numCommands;
  5080. /* readonly */
  5081. uint numRenderTargets;
  5082. /* readonly */
  5083. int refs;
  5084. Array<RenderTargetInfo> renderTargets;
  5085. Array<Variant> shaderParameters;
  5086. /* readonly */
  5087. int weakRefs;
  5088. };
  5089. class RenderPathCommand
  5090. {
  5091. // Methods:
  5092. void RemoveShaderParameter(const String&);
  5093. // Properties:
  5094. Color clearColor;
  5095. float clearDepth;
  5096. uint clearFlags;
  5097. uint clearStencil;
  5098. bool enabled;
  5099. bool markToStencil;
  5100. String metadata;
  5101. uint numOutputs;
  5102. Array<String> outputNames;
  5103. String pass;
  5104. String pixelShaderDefines;
  5105. String pixelShaderName;
  5106. Array<Variant> shaderParameters;
  5107. RenderCommandSortMode sortMode;
  5108. String tag;
  5109. Array<String> textureNames;
  5110. RenderCommandType type;
  5111. bool useFogColor;
  5112. bool useLitBase;
  5113. bool vertexLights;
  5114. String vertexShaderDefines;
  5115. String vertexShaderName;
  5116. };
  5117. class RenderSurface
  5118. {
  5119. // Methods:
  5120. void QueueUpdate();
  5121. // Properties:
  5122. /* readonly */
  5123. int height;
  5124. RenderSurface linkedDepthStencil;
  5125. RenderSurface linkedRenderTarget;
  5126. uint numViewports;
  5127. /* readonly */
  5128. Texture parentTexture;
  5129. RenderSurfaceUpdateMode updateMode;
  5130. /* readonly */
  5131. TextureUsage usage;
  5132. Array<Viewport> viewports;
  5133. /* readonly */
  5134. int width;
  5135. };
  5136. class RenderTargetInfo
  5137. {
  5138. // Properties:
  5139. bool enabled;
  5140. bool filtered;
  5141. uint format;
  5142. String name;
  5143. bool persistent;
  5144. bool sRGB;
  5145. IntVector2 size;
  5146. RenderTargetSizeMode sizeMode;
  5147. String tag;
  5148. };
  5149. class Renderer
  5150. {
  5151. // Methods:
  5152. void DrawDebugGeometry(bool) const;
  5153. void ReloadShaders() const;
  5154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5155. void SetDefaultRenderPath(XMLFile);
  5156. // Properties:
  5157. /* readonly */
  5158. ShortStringHash baseType;
  5159. /* readonly */
  5160. String category;
  5161. /* readonly */
  5162. Material defaultLightRamp;
  5163. /* readonly */
  5164. Material defaultLightSpot;
  5165. /* readonly */
  5166. Material defaultMaterial;
  5167. RenderPath defaultRenderPath;
  5168. /* readonly */
  5169. Zone defaultZone;
  5170. bool drawShadows;
  5171. bool dynamicInstancing;
  5172. bool hdrRendering;
  5173. int materialQuality;
  5174. int maxInstanceTriangles;
  5175. int maxOccluderTriangles;
  5176. int maxShadowCascades;
  5177. int maxShadowMaps;
  5178. int maxSortedInstances;
  5179. int minInstances;
  5180. /* readonly */
  5181. uint numBatches;
  5182. /* readonly */
  5183. Array<uint> numGeometries;
  5184. /* readonly */
  5185. Array<uint> numLights;
  5186. /* readonly */
  5187. Array<uint> numOccluders;
  5188. /* readonly */
  5189. uint numPrimitives;
  5190. /* readonly */
  5191. Array<uint> numShadowMaps;
  5192. uint numViewports;
  5193. /* readonly */
  5194. uint numViews;
  5195. float occluderSizeThreshold;
  5196. int occlusionBufferSize;
  5197. /* readonly */
  5198. int refs;
  5199. bool reuseShadowMaps;
  5200. int shadowMapSize;
  5201. int shadowQuality;
  5202. bool specularLighting;
  5203. int textureAnisotropy;
  5204. TextureFilterMode textureFilterMode;
  5205. int textureQuality;
  5206. /* readonly */
  5207. ShortStringHash type;
  5208. /* readonly */
  5209. String typeName;
  5210. Array<Viewport> viewports;
  5211. /* readonly */
  5212. int weakRefs;
  5213. };
  5214. class Resource
  5215. {
  5216. // Methods:
  5217. bool Load(File);
  5218. bool Save(File) const;
  5219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5220. // Properties:
  5221. /* readonly */
  5222. ShortStringHash baseType;
  5223. /* readonly */
  5224. String category;
  5225. /* readonly */
  5226. uint memoryUse;
  5227. String name;
  5228. /* readonly */
  5229. int refs;
  5230. /* readonly */
  5231. ShortStringHash type;
  5232. /* readonly */
  5233. String typeName;
  5234. /* readonly */
  5235. uint useTimer;
  5236. /* readonly */
  5237. int weakRefs;
  5238. };
  5239. class ResourceCache
  5240. {
  5241. // Methods:
  5242. bool AddManualResource(Resource);
  5243. void AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  5244. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  5245. bool Exists(const String&) const;
  5246. File GetFile(const String&);
  5247. String GetPreferredResourceDir(const String&) const;
  5248. Resource GetResource(ShortStringHash, const String&, bool = true);
  5249. Resource GetResource(const String&, const String&, bool = true);
  5250. String GetResourceFileName(const String&) const;
  5251. void ReleaseAllResources(bool = false);
  5252. void ReleaseResource(const String&, const String&, bool = false);
  5253. void ReleaseResources(ShortStringHash, bool = false);
  5254. void ReleaseResources(const String&, bool = false);
  5255. void ReleaseResources(const String&, const String&, bool = false);
  5256. bool ReloadResource(Resource);
  5257. void RemovePackageFile(PackageFile, bool = true, bool = false);
  5258. void RemovePackageFile(const String&, bool = true, bool = false);
  5259. void RemoveResourceDir(const String&);
  5260. String SanitateResourceDirName(const String&) const;
  5261. String SanitateResourceName(const String&) const;
  5262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5263. // Properties:
  5264. bool autoReloadResources;
  5265. /* readonly */
  5266. ShortStringHash baseType;
  5267. /* readonly */
  5268. String category;
  5269. Array<uint> memoryBudget;
  5270. /* readonly */
  5271. Array<uint> memoryUse;
  5272. /* readonly */
  5273. Array<PackageFile> packageFiles;
  5274. /* readonly */
  5275. int refs;
  5276. /* readonly */
  5277. Array<String> resourceDirs;
  5278. bool returnFailedResources;
  5279. /* readonly */
  5280. bool seachPackagesFirst;
  5281. /* writeonly */
  5282. bool searchPackagesFirst;
  5283. /* readonly */
  5284. uint totalMemoryUse;
  5285. /* readonly */
  5286. ShortStringHash type;
  5287. /* readonly */
  5288. String typeName;
  5289. /* readonly */
  5290. int weakRefs;
  5291. };
  5292. class ResourceRef
  5293. {
  5294. // Properties:
  5295. String name;
  5296. ShortStringHash type;
  5297. };
  5298. class ResourceRefList
  5299. {
  5300. // Methods:
  5301. void Resize(uint);
  5302. // Properties:
  5303. /* readonly */
  5304. bool empty;
  5305. /* readonly */
  5306. uint length;
  5307. Array<String> names;
  5308. ShortStringHash type;
  5309. };
  5310. class RigidBody
  5311. {
  5312. // Methods:
  5313. void Activate();
  5314. void ApplyAttributes();
  5315. void ApplyForce(const Vector3&);
  5316. void ApplyForce(const Vector3&, const Vector3&);
  5317. void ApplyImpulse(const Vector3&);
  5318. void ApplyImpulse(const Vector3&, const Vector3&);
  5319. void ApplyTorque(const Vector3&);
  5320. void ApplyTorqueImpulse(const Vector3&);
  5321. void DrawDebugGeometry(DebugRenderer, bool);
  5322. Variant GetAttribute(const String&) const;
  5323. Variant GetAttributeDefault(const String&) const;
  5324. Vector3 GetVelocityAtPoint(const Vector3&) const;
  5325. bool Load(File, bool = false);
  5326. bool LoadXML(const XMLElement&, bool = false);
  5327. void MarkNetworkUpdate() const;
  5328. void ReAddBodyToWorld();
  5329. void Remove();
  5330. void RemoveInstanceDefault();
  5331. void ResetForces();
  5332. void ResetToDefault();
  5333. bool Save(File) const;
  5334. bool SaveXML(XMLElement&) const;
  5335. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5336. bool SetAttribute(const String&, const Variant&);
  5337. void SetCollisionLayerAndMask(uint, uint);
  5338. void SetTransform(const Vector3&, const Quaternion&);
  5339. // Properties:
  5340. /* readonly */
  5341. bool active;
  5342. float angularDamping;
  5343. Vector3 angularFactor;
  5344. float angularRestThreshold;
  5345. Vector3 angularVelocity;
  5346. Vector3 anisotropicFriction;
  5347. /* readonly */
  5348. Array<Variant> attributeDefaults;
  5349. /* readonly */
  5350. Array<AttributeInfo> attributeInfos;
  5351. Array<Variant> attributes;
  5352. /* readonly */
  5353. ShortStringHash baseType;
  5354. /* readonly */
  5355. String category;
  5356. float ccdMotionThreshold;
  5357. float ccdRadius;
  5358. /* readonly */
  5359. Vector3 centerOfMass;
  5360. /* readonly */
  5361. Array<RigidBody> collidingBodies;
  5362. CollisionEventMode collisionEventMode;
  5363. uint collisionLayer;
  5364. uint collisionMask;
  5365. float contactProcessingThreshold;
  5366. bool enabled;
  5367. /* readonly */
  5368. bool enabledEffective;
  5369. float friction;
  5370. Vector3 gravityOverride;
  5371. /* readonly */
  5372. uint id;
  5373. bool kinematic;
  5374. float linearDamping;
  5375. Vector3 linearFactor;
  5376. float linearRestThreshold;
  5377. Vector3 linearVelocity;
  5378. float mass;
  5379. /* readonly */
  5380. Node node;
  5381. /* readonly */
  5382. uint numAttributes;
  5383. bool phantom;
  5384. Vector3 position;
  5385. /* readonly */
  5386. int refs;
  5387. float restitution;
  5388. float rollingFriction;
  5389. Quaternion rotation;
  5390. bool temporary;
  5391. /* readonly */
  5392. ShortStringHash type;
  5393. /* readonly */
  5394. String typeName;
  5395. bool useGravity;
  5396. /* readonly */
  5397. int weakRefs;
  5398. };
  5399. class RigidBody2D
  5400. {
  5401. // Methods:
  5402. void ApplyAngularImpulse(float, bool);
  5403. void ApplyAttributes();
  5404. void ApplyForce(const Vector2&, const Vector2&, bool);
  5405. void ApplyForceToCenter(const Vector2&, bool);
  5406. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  5407. void ApplyTorque(float, bool);
  5408. void DrawDebugGeometry(DebugRenderer, bool);
  5409. Variant GetAttribute(const String&) const;
  5410. Variant GetAttributeDefault(const String&) const;
  5411. bool Load(File, bool = false);
  5412. bool LoadXML(const XMLElement&, bool = false);
  5413. void MarkNetworkUpdate() const;
  5414. void Remove();
  5415. void RemoveInstanceDefault();
  5416. void ResetToDefault();
  5417. bool Save(File) const;
  5418. bool SaveXML(XMLElement&) const;
  5419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5420. bool SetAttribute(const String&, const Variant&);
  5421. // Properties:
  5422. bool allowSleep;
  5423. float angularDamping;
  5424. /* readonly */
  5425. Array<Variant> attributeDefaults;
  5426. /* readonly */
  5427. Array<AttributeInfo> attributeInfos;
  5428. Array<Variant> attributes;
  5429. bool awake;
  5430. /* readonly */
  5431. ShortStringHash baseType;
  5432. BodyType2D bodyType;
  5433. bool bullet;
  5434. /* readonly */
  5435. String category;
  5436. bool enabled;
  5437. /* readonly */
  5438. bool enabledEffective;
  5439. bool fixedRotation;
  5440. float gravityScale;
  5441. /* readonly */
  5442. uint id;
  5443. float inertia;
  5444. float linearDamping;
  5445. Vector2 linearVelocity;
  5446. float mass;
  5447. Vector2 massCenter;
  5448. /* readonly */
  5449. Node node;
  5450. /* readonly */
  5451. uint numAttributes;
  5452. /* readonly */
  5453. int refs;
  5454. bool temporary;
  5455. /* readonly */
  5456. ShortStringHash type;
  5457. /* readonly */
  5458. String typeName;
  5459. bool useFixtureMass;
  5460. /* readonly */
  5461. int weakRefs;
  5462. };
  5463. class Scene
  5464. {
  5465. // Methods:
  5466. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5467. void AddRequiredPackageFile(PackageFile);
  5468. void ApplyAttributes();
  5469. void Clear(bool = true, bool = true);
  5470. void ClearRequiredPackageFiles();
  5471. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5472. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5473. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5474. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5475. Variant GetAttribute(const String&) const;
  5476. Variant GetAttributeDefault(const String&) const;
  5477. Node GetChild(const String&, bool = false) const;
  5478. Array<Node> GetChildren(bool = false) const;
  5479. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5480. Array<Node> GetChildrenWithScript(bool = false) const;
  5481. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5482. Component GetComponent(const String&) const;
  5483. Component GetComponent(uint);
  5484. Array<Component> GetComponents() const;
  5485. Array<Component> GetComponents(const String&, bool = false) const;
  5486. Node GetNode(uint);
  5487. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5488. ScriptObject GetScriptObject() const;
  5489. ScriptObject GetScriptObject(const String&) const;
  5490. bool HasComponent(const String&) const;
  5491. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  5492. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  5493. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  5494. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  5495. bool Load(File, bool = false);
  5496. bool LoadAsync(File);
  5497. bool LoadAsyncXML(File);
  5498. bool LoadXML(File);
  5499. bool LoadXML(const XMLElement&, bool = false);
  5500. Vector3 LocalToWorld(const Vector3&) const;
  5501. Vector3 LocalToWorld(const Vector4&) const;
  5502. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  5503. void Pitch(float, bool = false);
  5504. void RegisterVar(const String&);
  5505. void Remove();
  5506. void RemoveAllChildren();
  5507. void RemoveAllComponents();
  5508. void RemoveChild(Node);
  5509. void RemoveChildren(bool, bool, bool);
  5510. void RemoveComponent(Component);
  5511. void RemoveComponent(const String&);
  5512. void RemoveComponents(bool, bool);
  5513. void RemoveInstanceDefault();
  5514. void ResetToDefault();
  5515. void Roll(float, bool = false);
  5516. void Rotate(const Quaternion&, bool = false);
  5517. bool Save(File) const;
  5518. bool SaveXML(File);
  5519. bool SaveXML(XMLElement&) const;
  5520. void Scale(const Vector3&);
  5521. void Scale(float);
  5522. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5523. bool SetAttribute(const String&, const Variant&);
  5524. void SetScale(float);
  5525. void SetTransform(const Vector3&, const Quaternion&);
  5526. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5527. void SetTransform(const Vector3&, const Quaternion&, float);
  5528. void SetWorldTransform(const Vector3&, const Quaternion&);
  5529. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5530. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5531. void StopAsyncLoading();
  5532. const String& GetVarName(ShortStringHash) const;
  5533. void Translate(const Vector3&);
  5534. void TranslateRelative(const Vector3&);
  5535. void UnregisterAllVars(const String&);
  5536. void UnregisterVar(const String&);
  5537. void Update(float);
  5538. Vector3 WorldToLocal(const Vector3&) const;
  5539. Vector3 WorldToLocal(const Vector4&) const;
  5540. void Yaw(float, bool = false);
  5541. // Properties:
  5542. /* readonly */
  5543. bool asyncLoading;
  5544. /* readonly */
  5545. float asyncProgress;
  5546. /* readonly */
  5547. Array<Variant> attributeDefaults;
  5548. /* readonly */
  5549. Array<AttributeInfo> attributeInfos;
  5550. Array<Variant> attributes;
  5551. /* readonly */
  5552. ShortStringHash baseType;
  5553. /* readonly */
  5554. String category;
  5555. /* readonly */
  5556. uint checksum;
  5557. /* readonly */
  5558. Array<Node> children;
  5559. /* readonly */
  5560. Array<Component> components;
  5561. /* readonly */
  5562. DebugRenderer debugRenderer;
  5563. Vector3 direction;
  5564. float elapsedTime;
  5565. /* readonly */
  5566. String fileName;
  5567. /* readonly */
  5568. uint id;
  5569. String name;
  5570. /* readonly */
  5571. uint numAllChildren;
  5572. /* readonly */
  5573. uint numAttributes;
  5574. /* readonly */
  5575. uint numChildren;
  5576. /* readonly */
  5577. uint numComponents;
  5578. /* readonly */
  5579. Octree octree;
  5580. Node parent;
  5581. /* readonly */
  5582. PhysicsWorld physicsWorld;
  5583. /* readonly */
  5584. PhysicsWorld2D physicsWorld2D;
  5585. Vector3 position;
  5586. /* readonly */
  5587. int refs;
  5588. /* readonly */
  5589. Array<PackageFile> requiredPackageFiles;
  5590. /* readonly */
  5591. Vector3 right;
  5592. Quaternion rotation;
  5593. Vector3 scale;
  5594. /* readonly */
  5595. ScriptObject scriptObject;
  5596. float smoothingConstant;
  5597. float snapThreshold;
  5598. bool temporary;
  5599. float timeScale;
  5600. /* readonly */
  5601. Matrix3x4 transform;
  5602. /* readonly */
  5603. ShortStringHash type;
  5604. /* readonly */
  5605. String typeName;
  5606. /* readonly */
  5607. Vector3 up;
  5608. bool updateEnabled;
  5609. /* readonly */
  5610. VariantMap vars;
  5611. /* readonly */
  5612. int weakRefs;
  5613. Vector3 worldDirection;
  5614. Vector3 worldPosition;
  5615. /* readonly */
  5616. Vector3 worldRight;
  5617. Quaternion worldRotation;
  5618. Vector3 worldScale;
  5619. /* readonly */
  5620. Matrix3x4 worldTransform;
  5621. /* readonly */
  5622. Vector3 worldUp;
  5623. };
  5624. class Script
  5625. {
  5626. // Methods:
  5627. void DumpAPI(DumpMode = DOXYGEN);
  5628. bool Execute(const String&);
  5629. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5630. // Properties:
  5631. /* readonly */
  5632. ShortStringHash baseType;
  5633. /* readonly */
  5634. String category;
  5635. Scene defaultScene;
  5636. ScriptFile defaultScriptFile;
  5637. bool executeConsoleCommands;
  5638. /* readonly */
  5639. int refs;
  5640. /* readonly */
  5641. ShortStringHash type;
  5642. /* readonly */
  5643. String typeName;
  5644. /* readonly */
  5645. int weakRefs;
  5646. };
  5647. class ScriptFile
  5648. {
  5649. // Methods:
  5650. void ClearDelayedExecute(const String& = String ( ));
  5651. void DelayedExecute(float, bool, const String&);
  5652. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  5653. bool Execute(const String&, const Array<Variant>);
  5654. bool Load(File);
  5655. bool Save(File) const;
  5656. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5657. // Properties:
  5658. /* readonly */
  5659. ShortStringHash baseType;
  5660. /* readonly */
  5661. String category;
  5662. /* readonly */
  5663. bool compiled;
  5664. /* readonly */
  5665. uint memoryUse;
  5666. String name;
  5667. /* readonly */
  5668. int refs;
  5669. /* readonly */
  5670. ShortStringHash type;
  5671. /* readonly */
  5672. String typeName;
  5673. /* readonly */
  5674. uint useTimer;
  5675. /* readonly */
  5676. int weakRefs;
  5677. };
  5678. class ScriptInstance
  5679. {
  5680. // Methods:
  5681. void ApplyAttributes();
  5682. void ClearDelayedExecute(const String& = String ( ));
  5683. bool CreateObject(ScriptFile, const String&);
  5684. void DelayedExecute(float, bool, const String&);
  5685. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  5686. void DrawDebugGeometry(DebugRenderer, bool);
  5687. bool Execute(const String&);
  5688. bool Execute(const String&, const Array<Variant>);
  5689. Variant GetAttribute(const String&) const;
  5690. Variant GetAttributeDefault(const String&) const;
  5691. bool Load(File, bool = false);
  5692. bool LoadXML(const XMLElement&, bool = false);
  5693. void MarkNetworkUpdate() const;
  5694. void Remove();
  5695. void RemoveInstanceDefault();
  5696. void ResetToDefault();
  5697. bool Save(File) const;
  5698. bool SaveXML(XMLElement&) const;
  5699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5700. bool SetAttribute(const String&, const Variant&);
  5701. // Properties:
  5702. /* readonly */
  5703. Array<Variant> attributeDefaults;
  5704. /* readonly */
  5705. Array<AttributeInfo> attributeInfos;
  5706. Array<Variant> attributes;
  5707. /* readonly */
  5708. ShortStringHash baseType;
  5709. /* readonly */
  5710. String category;
  5711. String className;
  5712. bool enabled;
  5713. /* readonly */
  5714. bool enabledEffective;
  5715. /* readonly */
  5716. uint id;
  5717. /* readonly */
  5718. Node node;
  5719. /* readonly */
  5720. uint numAttributes;
  5721. /* readonly */
  5722. ScriptObject object;
  5723. /* readonly */
  5724. int refs;
  5725. ScriptFile scriptFile;
  5726. bool temporary;
  5727. /* readonly */
  5728. ShortStringHash type;
  5729. /* readonly */
  5730. String typeName;
  5731. /* readonly */
  5732. int weakRefs;
  5733. };
  5734. class ScriptObject
  5735. {
  5736. };
  5737. class ScrollBar
  5738. {
  5739. // Methods:
  5740. void AddChild(UIElement);
  5741. void ApplyAttributes();
  5742. void BringToFront();
  5743. void ChangeValue(float);
  5744. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5745. void DisableLayoutUpdate();
  5746. IntVector2 ElementToScreen(const IntVector2&);
  5747. void EnableLayoutUpdate();
  5748. uint FindChild(UIElement) const;
  5749. Variant GetAttribute(const String&) const;
  5750. Variant GetAttributeDefault(const String&) const;
  5751. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5752. UIElement GetChild(const String&, bool = false) const;
  5753. Array<UIElement> GetChildren(bool = false) const;
  5754. UIElement GetElementEventSender() const;
  5755. uint GetNumChildren(bool) const;
  5756. void InsertChild(uint, UIElement);
  5757. bool IsInside(IntVector2, bool);
  5758. bool IsInsideCombined(IntVector2, bool);
  5759. bool Load(File, bool = false);
  5760. bool LoadChildXML(XMLFile, XMLFile = null);
  5761. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5762. bool LoadXML(File);
  5763. bool LoadXML(XMLFile, XMLFile);
  5764. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5765. bool LoadXML(const XMLElement&, bool = false);
  5766. void Remove();
  5767. void RemoveAllChildren();
  5768. void RemoveChild(UIElement, uint = 0);
  5769. void RemoveChild(uint);
  5770. void RemoveInstanceDefault();
  5771. void ResetToDefault();
  5772. bool Save(File) const;
  5773. bool SaveXML(File);
  5774. bool SaveXML(XMLElement&) const;
  5775. IntVector2 ScreenToElement(const IntVector2&);
  5776. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5777. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5778. bool SetAttribute(const String&, const Variant&);
  5779. void SetFixedHeight(int);
  5780. void SetFixedSize(int, int);
  5781. void SetFixedWidth(int);
  5782. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5783. void SetMaxSize(int, int);
  5784. void SetMinSize(int, int);
  5785. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5786. void SetPosition(int, int);
  5787. void SetSize(int, int);
  5788. bool SetStyle(const String&, XMLFile = null);
  5789. bool SetStyle(const XMLElement&);
  5790. bool SetStyleAuto(XMLFile = null);
  5791. void StepBack();
  5792. void StepForward();
  5793. void UpdateLayout();
  5794. const Variant& GetVar(const ShortStringHash&);
  5795. // Properties:
  5796. /* readonly */
  5797. Array<Variant> attributeDefaults;
  5798. /* readonly */
  5799. Array<AttributeInfo> attributeInfos;
  5800. Array<Variant> attributes;
  5801. /* readonly */
  5802. Button backButton;
  5803. /* readonly */
  5804. ShortStringHash baseType;
  5805. bool bringToBack;
  5806. bool bringToFront;
  5807. /* readonly */
  5808. String category;
  5809. /* readonly */
  5810. IntVector2 childOffset;
  5811. /* readonly */
  5812. Array<UIElement> children;
  5813. IntRect clipBorder;
  5814. bool clipChildren;
  5815. /* writeonly */
  5816. Color color;
  5817. /* readonly */
  5818. bool colorGradient;
  5819. Array<Color> colors;
  5820. /* readonly */
  5821. IntRect combinedScreenRect;
  5822. XMLFile defaultStyle;
  5823. /* readonly */
  5824. float derivedOpacity;
  5825. uint dragDropMode;
  5826. bool editable;
  5827. /* readonly */
  5828. float effectiveScrollStep;
  5829. bool elementEventSender;
  5830. bool enabled;
  5831. /* readonly */
  5832. bool fixedHeight;
  5833. /* readonly */
  5834. bool fixedSize;
  5835. /* readonly */
  5836. bool fixedWidth;
  5837. bool focus;
  5838. FocusMode focusMode;
  5839. /* readonly */
  5840. Button forwardButton;
  5841. int height;
  5842. HorizontalAlignment horizontalAlignment;
  5843. /* readonly */
  5844. bool hovering;
  5845. int indent;
  5846. int indentSpacing;
  5847. /* readonly */
  5848. int indentWidth;
  5849. bool internal;
  5850. IntRect layoutBorder;
  5851. LayoutMode layoutMode;
  5852. int layoutSpacing;
  5853. int maxHeight;
  5854. IntVector2 maxSize;
  5855. int maxWidth;
  5856. int minHeight;
  5857. IntVector2 minSize;
  5858. int minWidth;
  5859. String name;
  5860. /* readonly */
  5861. uint numAllChildren;
  5862. /* readonly */
  5863. uint numAttributes;
  5864. /* readonly */
  5865. uint numChildren;
  5866. float opacity;
  5867. Orientation orientation;
  5868. UIElement parent;
  5869. IntVector2 position;
  5870. int priority;
  5871. float range;
  5872. /* readonly */
  5873. int refs;
  5874. /* readonly */
  5875. UIElement root;
  5876. /* readonly */
  5877. IntVector2 screenPosition;
  5878. float scrollStep;
  5879. bool selected;
  5880. IntVector2 size;
  5881. /* readonly */
  5882. Slider slider;
  5883. bool sortChildren;
  5884. float stepFactor;
  5885. String style;
  5886. bool temporary;
  5887. TraversalMode traversalMode;
  5888. /* readonly */
  5889. ShortStringHash type;
  5890. /* readonly */
  5891. String typeName;
  5892. bool useDerivedOpacity;
  5893. float value;
  5894. /* readonly */
  5895. VariantMap vars;
  5896. VerticalAlignment verticalAlignment;
  5897. bool visible;
  5898. /* readonly */
  5899. int weakRefs;
  5900. int width;
  5901. };
  5902. class ScrollView
  5903. {
  5904. // Methods:
  5905. void AddChild(UIElement);
  5906. void ApplyAttributes();
  5907. void BringToFront();
  5908. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5909. void DisableLayoutUpdate();
  5910. IntVector2 ElementToScreen(const IntVector2&);
  5911. void EnableLayoutUpdate();
  5912. uint FindChild(UIElement) const;
  5913. Variant GetAttribute(const String&) const;
  5914. Variant GetAttributeDefault(const String&) const;
  5915. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5916. UIElement GetChild(const String&, bool = false) const;
  5917. Array<UIElement> GetChildren(bool = false) const;
  5918. UIElement GetElementEventSender() const;
  5919. uint GetNumChildren(bool) const;
  5920. void InsertChild(uint, UIElement);
  5921. bool IsInside(IntVector2, bool);
  5922. bool IsInsideCombined(IntVector2, bool);
  5923. bool Load(File, bool = false);
  5924. bool LoadChildXML(XMLFile, XMLFile = null);
  5925. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5926. bool LoadXML(File);
  5927. bool LoadXML(XMLFile, XMLFile);
  5928. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5929. bool LoadXML(const XMLElement&, bool = false);
  5930. void Remove();
  5931. void RemoveAllChildren();
  5932. void RemoveChild(UIElement, uint = 0);
  5933. void RemoveChild(uint);
  5934. void RemoveInstanceDefault();
  5935. void ResetToDefault();
  5936. bool Save(File) const;
  5937. bool SaveXML(File);
  5938. bool SaveXML(XMLElement&) const;
  5939. IntVector2 ScreenToElement(const IntVector2&);
  5940. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5941. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5942. bool SetAttribute(const String&, const Variant&);
  5943. void SetFixedHeight(int);
  5944. void SetFixedSize(int, int);
  5945. void SetFixedWidth(int);
  5946. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5947. void SetMaxSize(int, int);
  5948. void SetMinSize(int, int);
  5949. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5950. void SetPosition(int, int);
  5951. void SetScrollBarsVisible(bool, bool);
  5952. void SetSize(int, int);
  5953. bool SetStyle(const String&, XMLFile = null);
  5954. bool SetStyle(const XMLElement&);
  5955. bool SetStyleAuto(XMLFile = null);
  5956. void SetViewPosition(int, int);
  5957. void UpdateLayout();
  5958. const Variant& GetVar(const ShortStringHash&);
  5959. // Properties:
  5960. /* readonly */
  5961. Array<Variant> attributeDefaults;
  5962. /* readonly */
  5963. Array<AttributeInfo> attributeInfos;
  5964. Array<Variant> attributes;
  5965. /* readonly */
  5966. ShortStringHash baseType;
  5967. bool bringToBack;
  5968. bool bringToFront;
  5969. /* readonly */
  5970. String category;
  5971. /* readonly */
  5972. IntVector2 childOffset;
  5973. /* readonly */
  5974. Array<UIElement> children;
  5975. IntRect clipBorder;
  5976. bool clipChildren;
  5977. /* writeonly */
  5978. Color color;
  5979. /* readonly */
  5980. bool colorGradient;
  5981. Array<Color> colors;
  5982. /* readonly */
  5983. IntRect combinedScreenRect;
  5984. UIElement contentElement;
  5985. XMLFile defaultStyle;
  5986. /* readonly */
  5987. float derivedOpacity;
  5988. uint dragDropMode;
  5989. bool editable;
  5990. bool elementEventSender;
  5991. bool enabled;
  5992. /* readonly */
  5993. bool fixedHeight;
  5994. /* readonly */
  5995. bool fixedSize;
  5996. /* readonly */
  5997. bool fixedWidth;
  5998. bool focus;
  5999. FocusMode focusMode;
  6000. int height;
  6001. HorizontalAlignment horizontalAlignment;
  6002. /* readonly */
  6003. ScrollBar horizontalScrollBar;
  6004. /* readonly */
  6005. bool hovering;
  6006. int indent;
  6007. int indentSpacing;
  6008. /* readonly */
  6009. int indentWidth;
  6010. bool internal;
  6011. IntRect layoutBorder;
  6012. LayoutMode layoutMode;
  6013. int layoutSpacing;
  6014. int maxHeight;
  6015. IntVector2 maxSize;
  6016. int maxWidth;
  6017. int minHeight;
  6018. IntVector2 minSize;
  6019. int minWidth;
  6020. String name;
  6021. /* readonly */
  6022. uint numAllChildren;
  6023. /* readonly */
  6024. uint numAttributes;
  6025. /* readonly */
  6026. uint numChildren;
  6027. float opacity;
  6028. float pageStep;
  6029. UIElement parent;
  6030. IntVector2 position;
  6031. int priority;
  6032. /* readonly */
  6033. int refs;
  6034. /* readonly */
  6035. UIElement root;
  6036. /* readonly */
  6037. IntVector2 screenPosition;
  6038. bool scrollBarsAutoVisible;
  6039. /* readonly */
  6040. BorderImage scrollPanel;
  6041. float scrollStep;
  6042. bool selected;
  6043. IntVector2 size;
  6044. bool sortChildren;
  6045. String style;
  6046. bool temporary;
  6047. TraversalMode traversalMode;
  6048. /* readonly */
  6049. ShortStringHash type;
  6050. /* readonly */
  6051. String typeName;
  6052. bool useDerivedOpacity;
  6053. /* readonly */
  6054. VariantMap vars;
  6055. VerticalAlignment verticalAlignment;
  6056. /* readonly */
  6057. ScrollBar verticalScrollBar;
  6058. IntVector2 viewPosition;
  6059. bool visible;
  6060. /* readonly */
  6061. int weakRefs;
  6062. int width;
  6063. };
  6064. class Serializable
  6065. {
  6066. // Methods:
  6067. void ApplyAttributes();
  6068. Variant GetAttribute(const String&) const;
  6069. Variant GetAttributeDefault(const String&) const;
  6070. bool Load(File, bool = false);
  6071. bool LoadXML(const XMLElement&, bool = false);
  6072. void RemoveInstanceDefault();
  6073. void ResetToDefault();
  6074. bool Save(File) const;
  6075. bool SaveXML(XMLElement&) const;
  6076. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6077. bool SetAttribute(const String&, const Variant&);
  6078. // Properties:
  6079. /* readonly */
  6080. Array<Variant> attributeDefaults;
  6081. /* readonly */
  6082. Array<AttributeInfo> attributeInfos;
  6083. Array<Variant> attributes;
  6084. /* readonly */
  6085. ShortStringHash baseType;
  6086. /* readonly */
  6087. String category;
  6088. /* readonly */
  6089. uint numAttributes;
  6090. /* readonly */
  6091. int refs;
  6092. bool temporary;
  6093. /* readonly */
  6094. ShortStringHash type;
  6095. /* readonly */
  6096. String typeName;
  6097. /* readonly */
  6098. int weakRefs;
  6099. };
  6100. class Serializer
  6101. {
  6102. // Methods:
  6103. uint Write(Array<uint8>);
  6104. bool WriteBool(bool);
  6105. bool WriteBoundingBox(const BoundingBox&);
  6106. bool WriteByte(int8);
  6107. bool WriteColor(const Color&);
  6108. bool WriteFileID(const String&);
  6109. bool WriteFloat(float);
  6110. bool WriteInt(int);
  6111. bool WriteIntRect(const IntRect&);
  6112. bool WriteIntVector2(const IntVector2&);
  6113. bool WriteLine(const String&);
  6114. bool WriteNetID(uint);
  6115. bool WritePackedQuaternion(const Quaternion&);
  6116. bool WritePackedVector3(const Vector3&, float);
  6117. bool WriteQuaternion(const Quaternion&);
  6118. bool WriteShort(int16);
  6119. bool WriteShortStringHash(const ShortStringHash&);
  6120. bool WriteString(const String&);
  6121. bool WriteStringHash(const StringHash&);
  6122. bool WriteUByte(uint8);
  6123. bool WriteUInt(uint);
  6124. bool WriteUShort(uint16);
  6125. bool WriteVLE(uint);
  6126. bool WriteVariant(const Variant&);
  6127. bool WriteVariantMap(const VariantMap&);
  6128. bool WriteVector2(const Vector2&);
  6129. bool WriteVector3(const Vector3&);
  6130. bool WriteVector4(const Vector4&);
  6131. };
  6132. class ShortStringHash
  6133. {
  6134. // Methods:
  6135. String ToString() const;
  6136. // Properties:
  6137. /* readonly */
  6138. uint16 value;
  6139. };
  6140. class Skeleton
  6141. {
  6142. // Methods:
  6143. Bone GetBone(const String&) const;
  6144. void Reset();
  6145. // Properties:
  6146. /* readonly */
  6147. Array<Bone> bones;
  6148. /* readonly */
  6149. uint numBones;
  6150. /* readonly */
  6151. Bone rootBone;
  6152. };
  6153. class Skybox
  6154. {
  6155. // Methods:
  6156. void ApplyAttributes();
  6157. void ApplyMaterialList(const String& = String ( ));
  6158. void DrawDebugGeometry(DebugRenderer, bool);
  6159. Variant GetAttribute(const String&) const;
  6160. Variant GetAttributeDefault(const String&) const;
  6161. bool IsInView(Camera) const;
  6162. bool Load(File, bool = false);
  6163. bool LoadXML(const XMLElement&, bool = false);
  6164. void MarkNetworkUpdate() const;
  6165. void Remove();
  6166. void RemoveInstanceDefault();
  6167. void ResetToDefault();
  6168. bool Save(File) const;
  6169. bool SaveXML(XMLElement&) const;
  6170. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6171. bool SetAttribute(const String&, const Variant&);
  6172. // Properties:
  6173. /* readonly */
  6174. Array<Variant> attributeDefaults;
  6175. /* readonly */
  6176. Array<AttributeInfo> attributeInfos;
  6177. Array<Variant> attributes;
  6178. /* readonly */
  6179. ShortStringHash baseType;
  6180. /* readonly */
  6181. BoundingBox boundingBox;
  6182. bool castShadows;
  6183. /* readonly */
  6184. String category;
  6185. float drawDistance;
  6186. bool enabled;
  6187. /* readonly */
  6188. bool enabledEffective;
  6189. /* readonly */
  6190. uint id;
  6191. /* readonly */
  6192. bool inView;
  6193. uint lightMask;
  6194. float lodBias;
  6195. /* writeonly */
  6196. Material material;
  6197. Array<Material> materials;
  6198. uint maxLights;
  6199. Model model;
  6200. /* readonly */
  6201. Node node;
  6202. /* readonly */
  6203. uint numAttributes;
  6204. /* readonly */
  6205. uint numGeometries;
  6206. bool occludee;
  6207. bool occluder;
  6208. /* readonly */
  6209. int refs;
  6210. float shadowDistance;
  6211. uint shadowMask;
  6212. bool temporary;
  6213. /* readonly */
  6214. ShortStringHash type;
  6215. /* readonly */
  6216. String typeName;
  6217. uint viewMask;
  6218. /* readonly */
  6219. int weakRefs;
  6220. /* readonly */
  6221. BoundingBox worldBoundingBox;
  6222. /* readonly */
  6223. Zone zone;
  6224. uint zoneMask;
  6225. };
  6226. class Slider
  6227. {
  6228. // Methods:
  6229. void AddChild(UIElement);
  6230. void ApplyAttributes();
  6231. void BringToFront();
  6232. void ChangeValue(float);
  6233. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6234. void DisableLayoutUpdate();
  6235. IntVector2 ElementToScreen(const IntVector2&);
  6236. void EnableLayoutUpdate();
  6237. uint FindChild(UIElement) const;
  6238. Variant GetAttribute(const String&) const;
  6239. Variant GetAttributeDefault(const String&) const;
  6240. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6241. UIElement GetChild(const String&, bool = false) const;
  6242. Array<UIElement> GetChildren(bool = false) const;
  6243. UIElement GetElementEventSender() const;
  6244. uint GetNumChildren(bool) const;
  6245. void InsertChild(uint, UIElement);
  6246. bool IsInside(IntVector2, bool);
  6247. bool IsInsideCombined(IntVector2, bool);
  6248. bool Load(File, bool = false);
  6249. bool LoadChildXML(XMLFile, XMLFile = null);
  6250. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6251. bool LoadXML(File);
  6252. bool LoadXML(XMLFile, XMLFile);
  6253. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6254. bool LoadXML(const XMLElement&, bool = false);
  6255. void Remove();
  6256. void RemoveAllChildren();
  6257. void RemoveChild(UIElement, uint = 0);
  6258. void RemoveChild(uint);
  6259. void RemoveInstanceDefault();
  6260. void ResetToDefault();
  6261. bool Save(File) const;
  6262. bool SaveXML(File);
  6263. bool SaveXML(XMLElement&) const;
  6264. IntVector2 ScreenToElement(const IntVector2&);
  6265. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6266. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6267. bool SetAttribute(const String&, const Variant&);
  6268. void SetFixedHeight(int);
  6269. void SetFixedSize(int, int);
  6270. void SetFixedWidth(int);
  6271. void SetFullImageRect();
  6272. void SetHoverOffset(int, int);
  6273. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6274. void SetMaxSize(int, int);
  6275. void SetMinSize(int, int);
  6276. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6277. void SetPosition(int, int);
  6278. void SetSize(int, int);
  6279. bool SetStyle(const String&, XMLFile = null);
  6280. bool SetStyle(const XMLElement&);
  6281. bool SetStyleAuto(XMLFile = null);
  6282. void UpdateLayout();
  6283. const Variant& GetVar(const ShortStringHash&);
  6284. // Properties:
  6285. /* readonly */
  6286. Array<Variant> attributeDefaults;
  6287. /* readonly */
  6288. Array<AttributeInfo> attributeInfos;
  6289. Array<Variant> attributes;
  6290. /* readonly */
  6291. ShortStringHash baseType;
  6292. BlendMode blendMode;
  6293. IntRect border;
  6294. bool bringToBack;
  6295. bool bringToFront;
  6296. /* readonly */
  6297. String category;
  6298. /* readonly */
  6299. IntVector2 childOffset;
  6300. /* readonly */
  6301. Array<UIElement> children;
  6302. IntRect clipBorder;
  6303. bool clipChildren;
  6304. /* writeonly */
  6305. Color color;
  6306. /* readonly */
  6307. bool colorGradient;
  6308. Array<Color> colors;
  6309. /* readonly */
  6310. IntRect combinedScreenRect;
  6311. XMLFile defaultStyle;
  6312. /* readonly */
  6313. float derivedOpacity;
  6314. uint dragDropMode;
  6315. bool editable;
  6316. bool elementEventSender;
  6317. bool enabled;
  6318. /* readonly */
  6319. bool fixedHeight;
  6320. /* readonly */
  6321. bool fixedSize;
  6322. /* readonly */
  6323. bool fixedWidth;
  6324. bool focus;
  6325. FocusMode focusMode;
  6326. int height;
  6327. HorizontalAlignment horizontalAlignment;
  6328. IntVector2 hoverOffset;
  6329. /* readonly */
  6330. bool hovering;
  6331. IntRect imageRect;
  6332. int indent;
  6333. int indentSpacing;
  6334. /* readonly */
  6335. int indentWidth;
  6336. bool internal;
  6337. /* readonly */
  6338. BorderImage knob;
  6339. IntRect layoutBorder;
  6340. LayoutMode layoutMode;
  6341. int layoutSpacing;
  6342. int maxHeight;
  6343. IntVector2 maxSize;
  6344. int maxWidth;
  6345. int minHeight;
  6346. IntVector2 minSize;
  6347. int minWidth;
  6348. String name;
  6349. /* readonly */
  6350. uint numAllChildren;
  6351. /* readonly */
  6352. uint numAttributes;
  6353. /* readonly */
  6354. uint numChildren;
  6355. float opacity;
  6356. Orientation orientation;
  6357. UIElement parent;
  6358. IntVector2 position;
  6359. int priority;
  6360. float range;
  6361. /* readonly */
  6362. int refs;
  6363. float repeatRate;
  6364. /* readonly */
  6365. UIElement root;
  6366. /* readonly */
  6367. IntVector2 screenPosition;
  6368. bool selected;
  6369. IntVector2 size;
  6370. bool sortChildren;
  6371. String style;
  6372. bool temporary;
  6373. Texture texture;
  6374. bool tiled;
  6375. TraversalMode traversalMode;
  6376. /* readonly */
  6377. ShortStringHash type;
  6378. /* readonly */
  6379. String typeName;
  6380. bool useDerivedOpacity;
  6381. float value;
  6382. /* readonly */
  6383. VariantMap vars;
  6384. VerticalAlignment verticalAlignment;
  6385. bool visible;
  6386. /* readonly */
  6387. int weakRefs;
  6388. int width;
  6389. };
  6390. class SmoothedTransform
  6391. {
  6392. // Methods:
  6393. void ApplyAttributes();
  6394. void DrawDebugGeometry(DebugRenderer, bool);
  6395. Variant GetAttribute(const String&) const;
  6396. Variant GetAttributeDefault(const String&) const;
  6397. bool Load(File, bool = false);
  6398. bool LoadXML(const XMLElement&, bool = false);
  6399. void MarkNetworkUpdate() const;
  6400. void Remove();
  6401. void RemoveInstanceDefault();
  6402. void ResetToDefault();
  6403. bool Save(File) const;
  6404. bool SaveXML(XMLElement&) const;
  6405. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6406. bool SetAttribute(const String&, const Variant&);
  6407. void Update(float, float);
  6408. // Properties:
  6409. /* readonly */
  6410. Array<Variant> attributeDefaults;
  6411. /* readonly */
  6412. Array<AttributeInfo> attributeInfos;
  6413. Array<Variant> attributes;
  6414. /* readonly */
  6415. ShortStringHash baseType;
  6416. /* readonly */
  6417. String category;
  6418. bool enabled;
  6419. /* readonly */
  6420. bool enabledEffective;
  6421. /* readonly */
  6422. uint id;
  6423. /* readonly */
  6424. bool inProgress;
  6425. /* readonly */
  6426. Node node;
  6427. /* readonly */
  6428. uint numAttributes;
  6429. /* readonly */
  6430. int refs;
  6431. Vector3 targetPosition;
  6432. Quaternion targetRotation;
  6433. Vector3 targetWorldPosition;
  6434. Quaternion targetWorldRotation;
  6435. bool temporary;
  6436. /* readonly */
  6437. ShortStringHash type;
  6438. /* readonly */
  6439. String typeName;
  6440. /* readonly */
  6441. int weakRefs;
  6442. };
  6443. class Sound
  6444. {
  6445. // Methods:
  6446. bool Load(File);
  6447. bool Save(File) const;
  6448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6449. // Properties:
  6450. /* readonly */
  6451. ShortStringHash baseType;
  6452. /* readonly */
  6453. String category;
  6454. /* readonly */
  6455. bool compressed;
  6456. /* readonly */
  6457. float frequency;
  6458. /* readonly */
  6459. float length;
  6460. bool looped;
  6461. /* readonly */
  6462. uint memoryUse;
  6463. String name;
  6464. /* readonly */
  6465. int refs;
  6466. /* readonly */
  6467. uint sampleSize;
  6468. /* readonly */
  6469. bool sixteenBit;
  6470. /* readonly */
  6471. bool stereo;
  6472. /* readonly */
  6473. ShortStringHash type;
  6474. /* readonly */
  6475. String typeName;
  6476. /* readonly */
  6477. uint useTimer;
  6478. /* readonly */
  6479. int weakRefs;
  6480. };
  6481. class SoundListener
  6482. {
  6483. // Methods:
  6484. void ApplyAttributes();
  6485. void DrawDebugGeometry(DebugRenderer, bool);
  6486. Variant GetAttribute(const String&) const;
  6487. Variant GetAttributeDefault(const String&) const;
  6488. bool Load(File, bool = false);
  6489. bool LoadXML(const XMLElement&, bool = false);
  6490. void MarkNetworkUpdate() const;
  6491. void Remove();
  6492. void RemoveInstanceDefault();
  6493. void ResetToDefault();
  6494. bool Save(File) const;
  6495. bool SaveXML(XMLElement&) const;
  6496. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6497. bool SetAttribute(const String&, const Variant&);
  6498. // Properties:
  6499. /* readonly */
  6500. Array<Variant> attributeDefaults;
  6501. /* readonly */
  6502. Array<AttributeInfo> attributeInfos;
  6503. Array<Variant> attributes;
  6504. /* readonly */
  6505. ShortStringHash baseType;
  6506. /* readonly */
  6507. String category;
  6508. bool enabled;
  6509. /* readonly */
  6510. bool enabledEffective;
  6511. /* readonly */
  6512. uint id;
  6513. /* readonly */
  6514. Node node;
  6515. /* readonly */
  6516. uint numAttributes;
  6517. /* readonly */
  6518. int refs;
  6519. bool temporary;
  6520. /* readonly */
  6521. ShortStringHash type;
  6522. /* readonly */
  6523. String typeName;
  6524. /* readonly */
  6525. int weakRefs;
  6526. };
  6527. class SoundSource
  6528. {
  6529. // Methods:
  6530. void ApplyAttributes();
  6531. void DrawDebugGeometry(DebugRenderer, bool);
  6532. Variant GetAttribute(const String&) const;
  6533. Variant GetAttributeDefault(const String&) const;
  6534. bool Load(File, bool = false);
  6535. bool LoadXML(const XMLElement&, bool = false);
  6536. void MarkNetworkUpdate() const;
  6537. void Play(Sound);
  6538. void Play(Sound, float);
  6539. void Play(Sound, float, float);
  6540. void Play(Sound, float, float, float);
  6541. void Remove();
  6542. void RemoveInstanceDefault();
  6543. void ResetToDefault();
  6544. bool Save(File) const;
  6545. bool SaveXML(XMLElement&) const;
  6546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6547. bool SetAttribute(const String&, const Variant&);
  6548. void Stop();
  6549. // Properties:
  6550. /* readonly */
  6551. float attenuation;
  6552. /* readonly */
  6553. Array<Variant> attributeDefaults;
  6554. /* readonly */
  6555. Array<AttributeInfo> attributeInfos;
  6556. Array<Variant> attributes;
  6557. bool autoRemove;
  6558. /* readonly */
  6559. ShortStringHash baseType;
  6560. /* readonly */
  6561. String category;
  6562. bool enabled;
  6563. /* readonly */
  6564. bool enabledEffective;
  6565. float frequency;
  6566. float gain;
  6567. /* readonly */
  6568. uint id;
  6569. /* readonly */
  6570. Node node;
  6571. /* readonly */
  6572. uint numAttributes;
  6573. float panning;
  6574. /* readonly */
  6575. bool playing;
  6576. /* readonly */
  6577. int refs;
  6578. /* readonly */
  6579. Sound sound;
  6580. SoundType soundType;
  6581. bool temporary;
  6582. /* readonly */
  6583. float timePosition;
  6584. /* readonly */
  6585. ShortStringHash type;
  6586. /* readonly */
  6587. String typeName;
  6588. /* readonly */
  6589. int weakRefs;
  6590. };
  6591. class SoundSource3D
  6592. {
  6593. // Methods:
  6594. void ApplyAttributes();
  6595. void DrawDebugGeometry(DebugRenderer, bool);
  6596. Variant GetAttribute(const String&) const;
  6597. Variant GetAttributeDefault(const String&) const;
  6598. bool Load(File, bool = false);
  6599. bool LoadXML(const XMLElement&, bool = false);
  6600. void MarkNetworkUpdate() const;
  6601. void Play(Sound);
  6602. void Play(Sound, float);
  6603. void Play(Sound, float, float);
  6604. void Play(Sound, float, float, float);
  6605. void Remove();
  6606. void RemoveInstanceDefault();
  6607. void ResetToDefault();
  6608. bool Save(File) const;
  6609. bool SaveXML(XMLElement&) const;
  6610. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6611. void SetAngleAttenuation(float, float);
  6612. bool SetAttribute(const String&, const Variant&);
  6613. void SetDistanceAttenuation(float, float, float);
  6614. void Stop();
  6615. // Properties:
  6616. /* readonly */
  6617. float attenuation;
  6618. /* readonly */
  6619. Array<Variant> attributeDefaults;
  6620. /* readonly */
  6621. Array<AttributeInfo> attributeInfos;
  6622. Array<Variant> attributes;
  6623. bool autoRemove;
  6624. /* readonly */
  6625. ShortStringHash baseType;
  6626. /* readonly */
  6627. String category;
  6628. bool enabled;
  6629. /* readonly */
  6630. bool enabledEffective;
  6631. float farDistance;
  6632. float frequency;
  6633. float gain;
  6634. /* readonly */
  6635. uint id;
  6636. float innerAngle;
  6637. float nearDistance;
  6638. /* readonly */
  6639. Node node;
  6640. /* readonly */
  6641. uint numAttributes;
  6642. float outerAngle;
  6643. float panning;
  6644. /* readonly */
  6645. bool playing;
  6646. /* readonly */
  6647. int refs;
  6648. float rolloffFactor;
  6649. /* readonly */
  6650. Sound sound;
  6651. SoundType soundType;
  6652. bool temporary;
  6653. /* readonly */
  6654. float timePosition;
  6655. /* readonly */
  6656. ShortStringHash type;
  6657. /* readonly */
  6658. String typeName;
  6659. /* readonly */
  6660. int weakRefs;
  6661. };
  6662. class Sphere
  6663. {
  6664. // Methods:
  6665. void Clear();
  6666. void Define(const BoundingBox&);
  6667. void Define(const Frustum&);
  6668. void Define(const Polyhedron&);
  6669. void Define(const Sphere&);
  6670. void Define(const Vector3&, float);
  6671. float Distance(const Vector3&) const;
  6672. Intersection IsInside(const BoundingBox&) const;
  6673. Intersection IsInside(const Sphere&) const;
  6674. Intersection IsInside(const Vector3&) const;
  6675. void Merge(const BoundingBox&);
  6676. void Merge(const Frustum&);
  6677. void Merge(const Sphere&);
  6678. void Merge(const Vector3&);
  6679. // Properties:
  6680. Vector3 center;
  6681. bool defined;
  6682. float radius;
  6683. };
  6684. class Spline
  6685. {
  6686. // Methods:
  6687. void AddKnot(const Variant&);
  6688. void AddKnot(const Variant&, uint);
  6689. void Clear();
  6690. Variant GetPoint(float);
  6691. void RemoveKnot();
  6692. void RemoveKnot(uint);
  6693. // Properties:
  6694. InterpolationMode interpolationMode;
  6695. Array<Variant> knot;
  6696. Array<Variant> knots;
  6697. };
  6698. class SplinePath
  6699. {
  6700. // Methods:
  6701. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  6702. void ApplyAttributes();
  6703. void ClearControlPoints();
  6704. void DrawDebugGeometry(DebugRenderer, bool);
  6705. Variant GetAttribute(const String&) const;
  6706. Variant GetAttributeDefault(const String&) const;
  6707. Vector3 GetPoint(float) const;
  6708. bool Load(File, bool = false);
  6709. bool LoadXML(const XMLElement&, bool = false);
  6710. void MarkNetworkUpdate() const;
  6711. void Move(float);
  6712. void Remove();
  6713. void RemoveControlPoint(Node);
  6714. void RemoveInstanceDefault();
  6715. void Reset();
  6716. void ResetToDefault();
  6717. bool Save(File) const;
  6718. bool SaveXML(XMLElement&) const;
  6719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6720. bool SetAttribute(const String&, const Variant&);
  6721. // Properties:
  6722. /* readonly */
  6723. Array<Variant> attributeDefaults;
  6724. /* readonly */
  6725. Array<AttributeInfo> attributeInfos;
  6726. Array<Variant> attributes;
  6727. /* readonly */
  6728. ShortStringHash baseType;
  6729. /* readonly */
  6730. String category;
  6731. Node controlledNode;
  6732. bool enabled;
  6733. /* readonly */
  6734. bool enabledEffective;
  6735. /* readonly */
  6736. uint id;
  6737. InterpolationMode interpolationMode;
  6738. /* readonly */
  6739. bool isFinished;
  6740. /* readonly */
  6741. Node node;
  6742. /* readonly */
  6743. uint numAttributes;
  6744. Vector3 position;
  6745. /* readonly */
  6746. int refs;
  6747. float speed;
  6748. bool temporary;
  6749. /* readonly */
  6750. ShortStringHash type;
  6751. /* readonly */
  6752. String typeName;
  6753. /* readonly */
  6754. int weakRefs;
  6755. };
  6756. class Sprite
  6757. {
  6758. // Methods:
  6759. void AddChild(UIElement);
  6760. void ApplyAttributes();
  6761. void BringToFront();
  6762. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6763. uint FindChild(UIElement) const;
  6764. Variant GetAttribute(const String&) const;
  6765. Variant GetAttributeDefault(const String&) const;
  6766. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6767. UIElement GetChild(const String&, bool = false) const;
  6768. Array<UIElement> GetChildren(bool = false) const;
  6769. UIElement GetElementEventSender() const;
  6770. uint GetNumChildren(bool) const;
  6771. void InsertChild(uint, UIElement);
  6772. bool Load(File, bool = false);
  6773. bool LoadChildXML(XMLFile, XMLFile = null);
  6774. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6775. bool LoadXML(File);
  6776. bool LoadXML(XMLFile, XMLFile);
  6777. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6778. bool LoadXML(const XMLElement&, bool = false);
  6779. void Remove();
  6780. void RemoveAllChildren();
  6781. void RemoveChild(UIElement, uint = 0);
  6782. void RemoveChild(uint);
  6783. void RemoveInstanceDefault();
  6784. void ResetToDefault();
  6785. bool Save(File) const;
  6786. bool SaveXML(File);
  6787. bool SaveXML(XMLElement&) const;
  6788. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6789. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6790. bool SetAttribute(const String&, const Variant&);
  6791. void SetFixedHeight(int);
  6792. void SetFixedSize(int, int);
  6793. void SetFixedWidth(int);
  6794. void SetFullImageRect();
  6795. void SetHotSpot(int, int);
  6796. void SetMaxSize(int, int);
  6797. void SetMinSize(int, int);
  6798. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6799. void SetPosition(float, float);
  6800. void SetScale(float);
  6801. void SetScale(float, float);
  6802. void SetSize(int, int);
  6803. bool SetStyle(const String&, XMLFile = null);
  6804. bool SetStyle(const XMLElement&);
  6805. bool SetStyleAuto(XMLFile = null);
  6806. const Variant& GetVar(const ShortStringHash&);
  6807. // Properties:
  6808. /* readonly */
  6809. Array<Variant> attributeDefaults;
  6810. /* readonly */
  6811. Array<AttributeInfo> attributeInfos;
  6812. Array<Variant> attributes;
  6813. /* readonly */
  6814. ShortStringHash baseType;
  6815. BlendMode blendMode;
  6816. bool bringToBack;
  6817. bool bringToFront;
  6818. /* readonly */
  6819. String category;
  6820. /* readonly */
  6821. Array<UIElement> children;
  6822. /* writeonly */
  6823. Color color;
  6824. /* readonly */
  6825. bool colorGradient;
  6826. Array<Color> colors;
  6827. XMLFile defaultStyle;
  6828. /* readonly */
  6829. float derivedOpacity;
  6830. bool elementEventSender;
  6831. int height;
  6832. HorizontalAlignment horizontalAlignment;
  6833. IntVector2 hotSpot;
  6834. IntRect imageRect;
  6835. String name;
  6836. /* readonly */
  6837. uint numAllChildren;
  6838. /* readonly */
  6839. uint numAttributes;
  6840. /* readonly */
  6841. uint numChildren;
  6842. float opacity;
  6843. UIElement parent;
  6844. Vector2 position;
  6845. int priority;
  6846. /* readonly */
  6847. int refs;
  6848. /* readonly */
  6849. UIElement root;
  6850. float rotation;
  6851. Vector2 scale;
  6852. IntVector2 size;
  6853. bool sortChildren;
  6854. String style;
  6855. bool temporary;
  6856. Texture texture;
  6857. /* readonly */
  6858. ShortStringHash type;
  6859. /* readonly */
  6860. String typeName;
  6861. bool useDerivedOpacity;
  6862. /* readonly */
  6863. VariantMap vars;
  6864. VerticalAlignment verticalAlignment;
  6865. bool visible;
  6866. /* readonly */
  6867. int weakRefs;
  6868. int width;
  6869. };
  6870. class Sprite2D
  6871. {
  6872. // Methods:
  6873. bool Load(File);
  6874. bool Save(File) const;
  6875. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6876. // Properties:
  6877. /* readonly */
  6878. ShortStringHash baseType;
  6879. /* readonly */
  6880. String category;
  6881. Vector2 hotSpot;
  6882. /* readonly */
  6883. uint memoryUse;
  6884. String name;
  6885. IntRect rectangle;
  6886. /* readonly */
  6887. int refs;
  6888. Texture2D texture;
  6889. /* readonly */
  6890. ShortStringHash type;
  6891. /* readonly */
  6892. String typeName;
  6893. /* readonly */
  6894. uint useTimer;
  6895. /* readonly */
  6896. int weakRefs;
  6897. };
  6898. class SpriteSheet2D
  6899. {
  6900. // Methods:
  6901. void DefineSprite(const String&, const IntRect&, const Vector2&);
  6902. Sprite2D GetSprite(const String&);
  6903. bool Load(File);
  6904. bool Save(File) const;
  6905. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6906. void UpdateSprite(const String&, const IntRect&, const Vector2&);
  6907. // Properties:
  6908. /* readonly */
  6909. ShortStringHash baseType;
  6910. /* readonly */
  6911. String category;
  6912. /* readonly */
  6913. uint memoryUse;
  6914. String name;
  6915. /* readonly */
  6916. int refs;
  6917. /* readonly */
  6918. Texture2D texture;
  6919. /* readonly */
  6920. ShortStringHash type;
  6921. /* readonly */
  6922. String typeName;
  6923. /* readonly */
  6924. uint useTimer;
  6925. /* readonly */
  6926. int weakRefs;
  6927. };
  6928. class StaticModel
  6929. {
  6930. // Methods:
  6931. void ApplyAttributes();
  6932. void ApplyMaterialList(const String& = String ( ));
  6933. void DrawDebugGeometry(DebugRenderer, bool);
  6934. Variant GetAttribute(const String&) const;
  6935. Variant GetAttributeDefault(const String&) const;
  6936. bool IsInView(Camera) const;
  6937. bool IsInside(const Vector3&) const;
  6938. bool IsInsideLocal(const Vector3&) const;
  6939. bool Load(File, bool = false);
  6940. bool LoadXML(const XMLElement&, bool = false);
  6941. void MarkNetworkUpdate() const;
  6942. void Remove();
  6943. void RemoveInstanceDefault();
  6944. void ResetToDefault();
  6945. bool Save(File) const;
  6946. bool SaveXML(XMLElement&) const;
  6947. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6948. bool SetAttribute(const String&, const Variant&);
  6949. // Properties:
  6950. /* readonly */
  6951. Array<Variant> attributeDefaults;
  6952. /* readonly */
  6953. Array<AttributeInfo> attributeInfos;
  6954. Array<Variant> attributes;
  6955. /* readonly */
  6956. ShortStringHash baseType;
  6957. /* readonly */
  6958. BoundingBox boundingBox;
  6959. bool castShadows;
  6960. /* readonly */
  6961. String category;
  6962. float drawDistance;
  6963. bool enabled;
  6964. /* readonly */
  6965. bool enabledEffective;
  6966. /* readonly */
  6967. uint id;
  6968. /* readonly */
  6969. bool inView;
  6970. uint lightMask;
  6971. float lodBias;
  6972. /* writeonly */
  6973. Material material;
  6974. Array<Material> materials;
  6975. uint maxLights;
  6976. Model model;
  6977. /* readonly */
  6978. Node node;
  6979. /* readonly */
  6980. uint numAttributes;
  6981. /* readonly */
  6982. uint numGeometries;
  6983. bool occludee;
  6984. bool occluder;
  6985. uint occlusionLodLevel;
  6986. /* readonly */
  6987. int refs;
  6988. float shadowDistance;
  6989. uint shadowMask;
  6990. bool temporary;
  6991. /* readonly */
  6992. ShortStringHash type;
  6993. /* readonly */
  6994. String typeName;
  6995. uint viewMask;
  6996. /* readonly */
  6997. int weakRefs;
  6998. /* readonly */
  6999. BoundingBox worldBoundingBox;
  7000. uint zoneMask;
  7001. };
  7002. class StaticModelGroup
  7003. {
  7004. // Methods:
  7005. void AddInstanceNode(Node);
  7006. void ApplyAttributes();
  7007. void ApplyMaterialList(const String& = String ( ));
  7008. void DrawDebugGeometry(DebugRenderer, bool);
  7009. Variant GetAttribute(const String&) const;
  7010. Variant GetAttributeDefault(const String&) const;
  7011. bool IsInView(Camera) const;
  7012. bool Load(File, bool = false);
  7013. bool LoadXML(const XMLElement&, bool = false);
  7014. void MarkNetworkUpdate() const;
  7015. void Remove();
  7016. void RemoveAllInstanceNodes();
  7017. void RemoveInstanceDefault();
  7018. void RemoveInstanceNode(Node);
  7019. void ResetToDefault();
  7020. bool Save(File) const;
  7021. bool SaveXML(XMLElement&) const;
  7022. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7023. bool SetAttribute(const String&, const Variant&);
  7024. // Properties:
  7025. /* readonly */
  7026. Array<Variant> attributeDefaults;
  7027. /* readonly */
  7028. Array<AttributeInfo> attributeInfos;
  7029. Array<Variant> attributes;
  7030. /* readonly */
  7031. ShortStringHash baseType;
  7032. /* readonly */
  7033. BoundingBox boundingBox;
  7034. bool castShadows;
  7035. /* readonly */
  7036. String category;
  7037. float drawDistance;
  7038. bool enabled;
  7039. /* readonly */
  7040. bool enabledEffective;
  7041. /* readonly */
  7042. uint id;
  7043. /* readonly */
  7044. bool inView;
  7045. /* readonly */
  7046. Array<Node> instanceNodes;
  7047. uint lightMask;
  7048. float lodBias;
  7049. /* writeonly */
  7050. Material material;
  7051. Array<Material> materials;
  7052. uint maxLights;
  7053. Model model;
  7054. /* readonly */
  7055. Node node;
  7056. /* readonly */
  7057. uint numAttributes;
  7058. /* readonly */
  7059. uint numGeometries;
  7060. /* readonly */
  7061. uint numInstanceNodes;
  7062. bool occludee;
  7063. bool occluder;
  7064. uint occlusionLodLevel;
  7065. /* readonly */
  7066. int refs;
  7067. float shadowDistance;
  7068. uint shadowMask;
  7069. bool temporary;
  7070. /* readonly */
  7071. ShortStringHash type;
  7072. /* readonly */
  7073. String typeName;
  7074. uint viewMask;
  7075. /* readonly */
  7076. int weakRefs;
  7077. /* readonly */
  7078. BoundingBox worldBoundingBox;
  7079. /* readonly */
  7080. Zone zone;
  7081. uint zoneMask;
  7082. };
  7083. class StaticSprite2D
  7084. {
  7085. // Methods:
  7086. void ApplyAttributes();
  7087. void DrawDebugGeometry(DebugRenderer, bool);
  7088. Variant GetAttribute(const String&) const;
  7089. Variant GetAttributeDefault(const String&) const;
  7090. bool IsInView(Camera) const;
  7091. bool Load(File, bool = false);
  7092. bool LoadXML(const XMLElement&, bool = false);
  7093. void MarkNetworkUpdate() const;
  7094. void Remove();
  7095. void RemoveInstanceDefault();
  7096. void ResetToDefault();
  7097. bool Save(File) const;
  7098. bool SaveXML(XMLElement&) const;
  7099. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7100. bool SetAttribute(const String&, const Variant&);
  7101. void SetFlip(bool, bool);
  7102. // Properties:
  7103. /* readonly */
  7104. Array<Variant> attributeDefaults;
  7105. /* readonly */
  7106. Array<AttributeInfo> attributeInfos;
  7107. Array<Variant> attributes;
  7108. /* readonly */
  7109. ShortStringHash baseType;
  7110. BlendMode blendMode;
  7111. /* readonly */
  7112. BoundingBox boundingBox;
  7113. bool castShadows;
  7114. /* readonly */
  7115. String category;
  7116. Color color;
  7117. float drawDistance;
  7118. bool enabled;
  7119. /* readonly */
  7120. bool enabledEffective;
  7121. bool flipX;
  7122. bool flipY;
  7123. /* readonly */
  7124. uint id;
  7125. /* readonly */
  7126. bool inView;
  7127. uint lightMask;
  7128. float lodBias;
  7129. Material material;
  7130. uint maxLights;
  7131. /* readonly */
  7132. Node node;
  7133. /* readonly */
  7134. uint numAttributes;
  7135. bool occludee;
  7136. bool occluder;
  7137. /* readonly */
  7138. int refs;
  7139. float shadowDistance;
  7140. uint shadowMask;
  7141. Sprite2D sprite;
  7142. bool temporary;
  7143. /* readonly */
  7144. ShortStringHash type;
  7145. /* readonly */
  7146. String typeName;
  7147. uint viewMask;
  7148. /* readonly */
  7149. int weakRefs;
  7150. /* readonly */
  7151. BoundingBox worldBoundingBox;
  7152. float zValue;
  7153. uint zoneMask;
  7154. };
  7155. class String
  7156. {
  7157. // Methods:
  7158. void AppendUTF8(uint);
  7159. uint AtUTF8(uint) const;
  7160. uint ByteOffsetUTF8(uint) const;
  7161. void Clear();
  7162. int Compare(const String&, bool = true) const;
  7163. bool Contains(const String&, bool = true) const;
  7164. bool Contains(uint8, bool = true) const;
  7165. bool EndsWith(const String&, bool = true) const;
  7166. uint Find(const String&, uint = 0, bool = true) const;
  7167. uint Find(uint8, uint = 0, bool = true) const;
  7168. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  7169. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  7170. void Join(Array<String>&, const String&);
  7171. uint NextUTF8Char(uint&) const;
  7172. void Replace(const String&, const String&, bool = true);
  7173. void Replace(uint8, uint8, bool = true);
  7174. void ReplaceUTF8(uint, uint);
  7175. String Replaced(const String&, const String&, bool = true) const;
  7176. String Replaced(uint8, uint8, bool = true) const;
  7177. void Resize(uint);
  7178. void SetUTF8FromLatin1(const String&);
  7179. Array<String> Split(uint8) const;
  7180. bool StartsWith(const String&, bool = true) const;
  7181. String Substring(uint) const;
  7182. String Substring(uint, uint) const;
  7183. String SubstringUTF8(uint) const;
  7184. String SubstringUTF8(uint, uint) const;
  7185. bool ToBool() const;
  7186. Color ToColor() const;
  7187. float ToFloat() const;
  7188. int ToInt() const;
  7189. IntRect ToIntRect() const;
  7190. IntVector2 ToIntVector2() const;
  7191. String ToLower() const;
  7192. Quaternion ToQuaternion() const;
  7193. uint ToUInt() const;
  7194. String ToUpper() const;
  7195. Vector2 ToVector2() const;
  7196. Vector3 ToVector3() const;
  7197. Vector4 ToVector4(bool = false) const;
  7198. Variant ToVectorVariant() const;
  7199. String Trimmed() const;
  7200. // Properties:
  7201. /* readonly */
  7202. bool empty;
  7203. /* readonly */
  7204. uint length;
  7205. /* readonly */
  7206. uint utf8Length;
  7207. };
  7208. class StringHash
  7209. {
  7210. // Methods:
  7211. String ToString() const;
  7212. // Properties:
  7213. /* readonly */
  7214. uint value;
  7215. };
  7216. class Technique
  7217. {
  7218. // Methods:
  7219. Pass CreatePass(StringHash);
  7220. bool HasPass(StringHash) const;
  7221. bool Load(File);
  7222. void RemovePass(StringHash);
  7223. bool Save(File) const;
  7224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7225. // Properties:
  7226. /* readonly */
  7227. ShortStringHash baseType;
  7228. /* readonly */
  7229. String category;
  7230. /* readonly */
  7231. uint memoryUse;
  7232. String name;
  7233. /* readonly */
  7234. Array<Pass> passes;
  7235. /* readonly */
  7236. int refs;
  7237. bool sm3;
  7238. /* readonly */
  7239. ShortStringHash type;
  7240. /* readonly */
  7241. String typeName;
  7242. /* readonly */
  7243. uint useTimer;
  7244. /* readonly */
  7245. int weakRefs;
  7246. };
  7247. class TechniqueEntry
  7248. {
  7249. // Properties:
  7250. float lodDistance;
  7251. int qualityLevel;
  7252. Technique technique;
  7253. };
  7254. class Terrain
  7255. {
  7256. // Methods:
  7257. void ApplyAttributes();
  7258. void DrawDebugGeometry(DebugRenderer, bool);
  7259. Variant GetAttribute(const String&) const;
  7260. Variant GetAttributeDefault(const String&) const;
  7261. float GetHeight(const Vector3&) const;
  7262. Vector3 GetNormal(const Vector3&) const;
  7263. TerrainPatch GetPatch(int, int) const;
  7264. bool Load(File, bool = false);
  7265. bool LoadXML(const XMLElement&, bool = false);
  7266. void MarkNetworkUpdate() const;
  7267. void Remove();
  7268. void RemoveInstanceDefault();
  7269. void ResetToDefault();
  7270. bool Save(File) const;
  7271. bool SaveXML(XMLElement&) const;
  7272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7273. bool SetAttribute(const String&, const Variant&);
  7274. // Properties:
  7275. /* readonly */
  7276. Array<Variant> attributeDefaults;
  7277. /* readonly */
  7278. Array<AttributeInfo> attributeInfos;
  7279. Array<Variant> attributes;
  7280. /* readonly */
  7281. ShortStringHash baseType;
  7282. bool castShadows;
  7283. /* readonly */
  7284. String category;
  7285. float drawDistance;
  7286. bool enabled;
  7287. /* readonly */
  7288. bool enabledEffective;
  7289. Image heightMap;
  7290. /* readonly */
  7291. uint id;
  7292. uint lightMask;
  7293. float lodBias;
  7294. Material material;
  7295. uint maxLights;
  7296. /* readonly */
  7297. Node node;
  7298. /* readonly */
  7299. uint numAttributes;
  7300. /* readonly */
  7301. IntVector2 numPatches;
  7302. /* readonly */
  7303. IntVector2 numVertices;
  7304. bool occludee;
  7305. bool occluder;
  7306. int patchSize;
  7307. /* readonly */
  7308. Array<TerrainPatch> patches;
  7309. /* readonly */
  7310. int refs;
  7311. float shadowDistance;
  7312. uint shadowMask;
  7313. bool smoothing;
  7314. Vector3 spacing;
  7315. bool temporary;
  7316. /* readonly */
  7317. ShortStringHash type;
  7318. /* readonly */
  7319. String typeName;
  7320. uint viewMask;
  7321. /* readonly */
  7322. int weakRefs;
  7323. uint zoneMask;
  7324. };
  7325. class TerrainPatch
  7326. {
  7327. // Methods:
  7328. void ApplyAttributes();
  7329. void DrawDebugGeometry(DebugRenderer, bool);
  7330. Variant GetAttribute(const String&) const;
  7331. Variant GetAttributeDefault(const String&) const;
  7332. bool IsInView(Camera) const;
  7333. bool Load(File, bool = false);
  7334. bool LoadXML(const XMLElement&, bool = false);
  7335. void MarkNetworkUpdate() const;
  7336. void Remove();
  7337. void RemoveInstanceDefault();
  7338. void ResetToDefault();
  7339. bool Save(File) const;
  7340. bool SaveXML(XMLElement&) const;
  7341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7342. bool SetAttribute(const String&, const Variant&);
  7343. // Properties:
  7344. /* readonly */
  7345. Array<Variant> attributeDefaults;
  7346. /* readonly */
  7347. Array<AttributeInfo> attributeInfos;
  7348. Array<Variant> attributes;
  7349. /* readonly */
  7350. ShortStringHash baseType;
  7351. /* readonly */
  7352. BoundingBox boundingBox;
  7353. bool castShadows;
  7354. /* readonly */
  7355. String category;
  7356. float drawDistance;
  7357. bool enabled;
  7358. /* readonly */
  7359. bool enabledEffective;
  7360. /* readonly */
  7361. uint id;
  7362. /* readonly */
  7363. bool inView;
  7364. uint lightMask;
  7365. float lodBias;
  7366. uint maxLights;
  7367. /* readonly */
  7368. Node node;
  7369. /* readonly */
  7370. uint numAttributes;
  7371. bool occludee;
  7372. bool occluder;
  7373. /* readonly */
  7374. int refs;
  7375. float shadowDistance;
  7376. uint shadowMask;
  7377. bool temporary;
  7378. /* readonly */
  7379. ShortStringHash type;
  7380. /* readonly */
  7381. String typeName;
  7382. uint viewMask;
  7383. /* readonly */
  7384. int weakRefs;
  7385. /* readonly */
  7386. BoundingBox worldBoundingBox;
  7387. uint zoneMask;
  7388. };
  7389. class Text
  7390. {
  7391. // Methods:
  7392. void AddChild(UIElement);
  7393. void ApplyAttributes();
  7394. void BringToFront();
  7395. void ClearSelection();
  7396. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7397. void DisableLayoutUpdate();
  7398. IntVector2 ElementToScreen(const IntVector2&);
  7399. void EnableLayoutUpdate();
  7400. uint FindChild(UIElement) const;
  7401. Variant GetAttribute(const String&) const;
  7402. Variant GetAttributeDefault(const String&) const;
  7403. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7404. UIElement GetChild(const String&, bool = false) const;
  7405. Array<UIElement> GetChildren(bool = false) const;
  7406. UIElement GetElementEventSender() const;
  7407. uint GetNumChildren(bool) const;
  7408. void InsertChild(uint, UIElement);
  7409. bool IsInside(IntVector2, bool);
  7410. bool IsInsideCombined(IntVector2, bool);
  7411. bool Load(File, bool = false);
  7412. bool LoadChildXML(XMLFile, XMLFile = null);
  7413. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7414. bool LoadXML(File);
  7415. bool LoadXML(XMLFile, XMLFile);
  7416. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7417. bool LoadXML(const XMLElement&, bool = false);
  7418. void Remove();
  7419. void RemoveAllChildren();
  7420. void RemoveChild(UIElement, uint = 0);
  7421. void RemoveChild(uint);
  7422. void RemoveInstanceDefault();
  7423. void ResetToDefault();
  7424. bool Save(File) const;
  7425. bool SaveXML(File);
  7426. bool SaveXML(XMLElement&) const;
  7427. IntVector2 ScreenToElement(const IntVector2&);
  7428. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7429. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7430. bool SetAttribute(const String&, const Variant&);
  7431. void SetFixedHeight(int);
  7432. void SetFixedSize(int, int);
  7433. void SetFixedWidth(int);
  7434. bool SetFont(Font, int);
  7435. bool SetFont(const String&, int);
  7436. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7437. void SetMaxSize(int, int);
  7438. void SetMinSize(int, int);
  7439. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7440. void SetPosition(int, int);
  7441. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  7442. void SetSize(int, int);
  7443. bool SetStyle(const String&, XMLFile = null);
  7444. bool SetStyle(const XMLElement&);
  7445. bool SetStyleAuto(XMLFile = null);
  7446. void UpdateLayout();
  7447. const Variant& GetVar(const ShortStringHash&);
  7448. // Properties:
  7449. /* readonly */
  7450. Array<Variant> attributeDefaults;
  7451. /* readonly */
  7452. Array<AttributeInfo> attributeInfos;
  7453. Array<Variant> attributes;
  7454. /* readonly */
  7455. ShortStringHash baseType;
  7456. bool bringToBack;
  7457. bool bringToFront;
  7458. /* readonly */
  7459. String category;
  7460. /* readonly */
  7461. Array<IntVector2> charPositions;
  7462. /* readonly */
  7463. Array<IntVector2> charSizes;
  7464. /* readonly */
  7465. IntVector2 childOffset;
  7466. /* readonly */
  7467. Array<UIElement> children;
  7468. IntRect clipBorder;
  7469. bool clipChildren;
  7470. /* writeonly */
  7471. Color color;
  7472. /* readonly */
  7473. bool colorGradient;
  7474. Array<Color> colors;
  7475. /* readonly */
  7476. IntRect combinedScreenRect;
  7477. XMLFile defaultStyle;
  7478. /* readonly */
  7479. float derivedOpacity;
  7480. uint dragDropMode;
  7481. bool editable;
  7482. Color effectColor;
  7483. bool elementEventSender;
  7484. bool enabled;
  7485. /* readonly */
  7486. bool fixedHeight;
  7487. /* readonly */
  7488. bool fixedSize;
  7489. /* readonly */
  7490. bool fixedWidth;
  7491. bool focus;
  7492. FocusMode focusMode;
  7493. /* readonly */
  7494. Font font;
  7495. /* readonly */
  7496. int fontSize;
  7497. int height;
  7498. HorizontalAlignment horizontalAlignment;
  7499. Color hoverColor;
  7500. /* readonly */
  7501. bool hovering;
  7502. int indent;
  7503. int indentSpacing;
  7504. /* readonly */
  7505. int indentWidth;
  7506. bool internal;
  7507. IntRect layoutBorder;
  7508. LayoutMode layoutMode;
  7509. int layoutSpacing;
  7510. int maxHeight;
  7511. IntVector2 maxSize;
  7512. int maxWidth;
  7513. int minHeight;
  7514. IntVector2 minSize;
  7515. int minWidth;
  7516. String name;
  7517. /* readonly */
  7518. uint numAllChildren;
  7519. /* readonly */
  7520. uint numAttributes;
  7521. /* readonly */
  7522. uint numChars;
  7523. /* readonly */
  7524. uint numChildren;
  7525. /* readonly */
  7526. uint numRows;
  7527. float opacity;
  7528. UIElement parent;
  7529. IntVector2 position;
  7530. int priority;
  7531. /* readonly */
  7532. int refs;
  7533. /* readonly */
  7534. UIElement root;
  7535. /* readonly */
  7536. int rowHeight;
  7537. float rowSpacing;
  7538. /* readonly */
  7539. Array<int> rowWidths;
  7540. /* readonly */
  7541. IntVector2 screenPosition;
  7542. bool selected;
  7543. Color selectionColor;
  7544. /* readonly */
  7545. uint selectionLength;
  7546. /* readonly */
  7547. uint selectionStart;
  7548. IntVector2 size;
  7549. bool sortChildren;
  7550. String style;
  7551. bool temporary;
  7552. String text;
  7553. HorizontalAlignment textAlignment;
  7554. TextEffect textEffect;
  7555. TraversalMode traversalMode;
  7556. /* readonly */
  7557. ShortStringHash type;
  7558. /* readonly */
  7559. String typeName;
  7560. bool useDerivedOpacity;
  7561. /* readonly */
  7562. VariantMap vars;
  7563. VerticalAlignment verticalAlignment;
  7564. bool visible;
  7565. /* readonly */
  7566. int weakRefs;
  7567. int width;
  7568. bool wordwrap;
  7569. };
  7570. class Text3D
  7571. {
  7572. // Methods:
  7573. void ApplyAttributes();
  7574. void DrawDebugGeometry(DebugRenderer, bool);
  7575. Variant GetAttribute(const String&) const;
  7576. Variant GetAttributeDefault(const String&) const;
  7577. bool IsInView(Camera) const;
  7578. bool Load(File, bool = false);
  7579. bool LoadXML(const XMLElement&, bool = false);
  7580. void MarkNetworkUpdate() const;
  7581. void Remove();
  7582. void RemoveInstanceDefault();
  7583. void ResetToDefault();
  7584. bool Save(File) const;
  7585. bool SaveXML(XMLElement&) const;
  7586. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7587. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7588. bool SetAttribute(const String&, const Variant&);
  7589. bool SetFont(Font, int);
  7590. bool SetFont(const String&, int);
  7591. // Properties:
  7592. /* readonly */
  7593. Array<Variant> attributeDefaults;
  7594. /* readonly */
  7595. Array<AttributeInfo> attributeInfos;
  7596. Array<Variant> attributes;
  7597. /* readonly */
  7598. ShortStringHash baseType;
  7599. /* readonly */
  7600. BoundingBox boundingBox;
  7601. bool castShadows;
  7602. /* readonly */
  7603. String category;
  7604. /* readonly */
  7605. Array<IntVector2> charPositions;
  7606. /* readonly */
  7607. Array<IntVector2> charSizes;
  7608. /* writeonly */
  7609. Color color;
  7610. Array<Color> colors;
  7611. float drawDistance;
  7612. Color effectColor;
  7613. float effectDepthBias;
  7614. bool enabled;
  7615. /* readonly */
  7616. bool enabledEffective;
  7617. bool faceCamera;
  7618. /* readonly */
  7619. Font font;
  7620. /* readonly */
  7621. int fontSize;
  7622. HorizontalAlignment horizontalAlignment;
  7623. /* readonly */
  7624. uint id;
  7625. /* readonly */
  7626. bool inView;
  7627. uint lightMask;
  7628. float lodBias;
  7629. Material material;
  7630. uint maxLights;
  7631. /* readonly */
  7632. Node node;
  7633. /* readonly */
  7634. uint numAttributes;
  7635. /* readonly */
  7636. uint numChars;
  7637. /* readonly */
  7638. uint numRows;
  7639. bool occludee;
  7640. bool occluder;
  7641. float opacity;
  7642. /* readonly */
  7643. int refs;
  7644. /* readonly */
  7645. int rowHeight;
  7646. float rowSpacing;
  7647. /* readonly */
  7648. Array<int> rowWidths;
  7649. float shadowDistance;
  7650. uint shadowMask;
  7651. bool temporary;
  7652. String text;
  7653. HorizontalAlignment textAlignment;
  7654. TextEffect textEffect;
  7655. /* readonly */
  7656. ShortStringHash type;
  7657. /* readonly */
  7658. String typeName;
  7659. VerticalAlignment verticalAlignment;
  7660. uint viewMask;
  7661. /* readonly */
  7662. int weakRefs;
  7663. int width;
  7664. bool wordwrap;
  7665. /* readonly */
  7666. BoundingBox worldBoundingBox;
  7667. uint zoneMask;
  7668. };
  7669. class Texture
  7670. {
  7671. // Methods:
  7672. void ClearDataLost();
  7673. bool Load(File);
  7674. bool Save(File) const;
  7675. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7676. void SetNumLevels(uint);
  7677. // Properties:
  7678. Array<TextureAddressMode> addressMode;
  7679. Texture backupTexture;
  7680. /* readonly */
  7681. ShortStringHash baseType;
  7682. Color borderColor;
  7683. /* readonly */
  7684. String category;
  7685. /* readonly */
  7686. bool compressed;
  7687. /* readonly */
  7688. bool dataLost;
  7689. TextureFilterMode filterMode;
  7690. /* readonly */
  7691. uint format;
  7692. /* readonly */
  7693. int height;
  7694. /* readonly */
  7695. Array<int> levelHeight;
  7696. /* readonly */
  7697. Array<int> levelWidth;
  7698. /* readonly */
  7699. uint levels;
  7700. /* readonly */
  7701. uint memoryUse;
  7702. Array<int> mipsToSkip;
  7703. String name;
  7704. /* readonly */
  7705. int refs;
  7706. bool sRGB;
  7707. /* readonly */
  7708. ShortStringHash type;
  7709. /* readonly */
  7710. String typeName;
  7711. /* readonly */
  7712. TextureUsage usage;
  7713. /* readonly */
  7714. uint useTimer;
  7715. /* readonly */
  7716. int weakRefs;
  7717. /* readonly */
  7718. int width;
  7719. };
  7720. class Texture2D
  7721. {
  7722. // Methods:
  7723. void ClearDataLost();
  7724. bool Load(File);
  7725. bool Load(Image, bool = false);
  7726. bool Save(File) const;
  7727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7728. void SetNumLevels(uint);
  7729. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  7730. // Properties:
  7731. Array<TextureAddressMode> addressMode;
  7732. Texture backupTexture;
  7733. /* readonly */
  7734. ShortStringHash baseType;
  7735. Color borderColor;
  7736. /* readonly */
  7737. String category;
  7738. /* readonly */
  7739. bool compressed;
  7740. /* readonly */
  7741. bool dataLost;
  7742. TextureFilterMode filterMode;
  7743. /* readonly */
  7744. uint format;
  7745. /* readonly */
  7746. int height;
  7747. /* readonly */
  7748. Array<int> levelHeight;
  7749. /* readonly */
  7750. Array<int> levelWidth;
  7751. /* readonly */
  7752. uint levels;
  7753. /* readonly */
  7754. uint memoryUse;
  7755. Array<int> mipsToSkip;
  7756. String name;
  7757. /* readonly */
  7758. int refs;
  7759. /* readonly */
  7760. RenderSurface renderSurface;
  7761. bool sRGB;
  7762. /* readonly */
  7763. ShortStringHash type;
  7764. /* readonly */
  7765. String typeName;
  7766. /* readonly */
  7767. TextureUsage usage;
  7768. /* readonly */
  7769. uint useTimer;
  7770. /* readonly */
  7771. int weakRefs;
  7772. /* readonly */
  7773. int width;
  7774. };
  7775. class Texture3D
  7776. {
  7777. // Methods:
  7778. void ClearDataLost();
  7779. bool Load(File);
  7780. bool Load(Image, bool = false);
  7781. bool Save(File) const;
  7782. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7783. void SetNumLevels(uint);
  7784. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  7785. // Properties:
  7786. Array<TextureAddressMode> addressMode;
  7787. Texture backupTexture;
  7788. /* readonly */
  7789. ShortStringHash baseType;
  7790. Color borderColor;
  7791. /* readonly */
  7792. String category;
  7793. /* readonly */
  7794. bool compressed;
  7795. /* readonly */
  7796. bool dataLost;
  7797. TextureFilterMode filterMode;
  7798. /* readonly */
  7799. uint format;
  7800. /* readonly */
  7801. int height;
  7802. /* readonly */
  7803. Array<int> levelHeight;
  7804. /* readonly */
  7805. Array<int> levelWidth;
  7806. /* readonly */
  7807. uint levels;
  7808. /* readonly */
  7809. uint memoryUse;
  7810. Array<int> mipsToSkip;
  7811. String name;
  7812. /* readonly */
  7813. int refs;
  7814. /* readonly */
  7815. RenderSurface renderSurface;
  7816. bool sRGB;
  7817. /* readonly */
  7818. ShortStringHash type;
  7819. /* readonly */
  7820. String typeName;
  7821. /* readonly */
  7822. TextureUsage usage;
  7823. /* readonly */
  7824. uint useTimer;
  7825. /* readonly */
  7826. int weakRefs;
  7827. /* readonly */
  7828. int width;
  7829. };
  7830. class TextureCube
  7831. {
  7832. // Methods:
  7833. void ClearDataLost();
  7834. bool Load(CubeMapFace, Image, bool = false);
  7835. bool Load(File);
  7836. bool Save(File) const;
  7837. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7838. void SetNumLevels(uint);
  7839. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  7840. // Properties:
  7841. Array<TextureAddressMode> addressMode;
  7842. Texture backupTexture;
  7843. /* readonly */
  7844. ShortStringHash baseType;
  7845. Color borderColor;
  7846. /* readonly */
  7847. String category;
  7848. /* readonly */
  7849. bool compressed;
  7850. /* readonly */
  7851. bool dataLost;
  7852. TextureFilterMode filterMode;
  7853. /* readonly */
  7854. uint format;
  7855. /* readonly */
  7856. int height;
  7857. /* readonly */
  7858. Array<int> levelHeight;
  7859. /* readonly */
  7860. Array<int> levelWidth;
  7861. /* readonly */
  7862. uint levels;
  7863. /* readonly */
  7864. uint memoryUse;
  7865. Array<int> mipsToSkip;
  7866. String name;
  7867. /* readonly */
  7868. int refs;
  7869. /* readonly */
  7870. Array<RenderSurface> renderSurfaces;
  7871. bool sRGB;
  7872. /* readonly */
  7873. ShortStringHash type;
  7874. /* readonly */
  7875. String typeName;
  7876. /* readonly */
  7877. TextureUsage usage;
  7878. /* readonly */
  7879. uint useTimer;
  7880. /* readonly */
  7881. int weakRefs;
  7882. /* readonly */
  7883. int width;
  7884. };
  7885. class TextureFrame
  7886. {
  7887. // Properties:
  7888. float time;
  7889. Rect uv;
  7890. };
  7891. class Time
  7892. {
  7893. // Methods:
  7894. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7895. // Properties:
  7896. /* readonly */
  7897. ShortStringHash baseType;
  7898. /* readonly */
  7899. String category;
  7900. /* readonly */
  7901. float elapsedTime;
  7902. /* readonly */
  7903. uint frameNumber;
  7904. /* readonly */
  7905. int refs;
  7906. /* readonly */
  7907. uint systemTime;
  7908. /* readonly */
  7909. String timeStamp;
  7910. /* readonly */
  7911. float timeStep;
  7912. /* readonly */
  7913. ShortStringHash type;
  7914. /* readonly */
  7915. String typeName;
  7916. /* readonly */
  7917. int weakRefs;
  7918. };
  7919. class Timer
  7920. {
  7921. // Methods:
  7922. uint GetMSec(bool);
  7923. void Reset();
  7924. };
  7925. class ToolTip
  7926. {
  7927. // Methods:
  7928. void AddChild(UIElement);
  7929. void ApplyAttributes();
  7930. void BringToFront();
  7931. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7932. void DisableLayoutUpdate();
  7933. IntVector2 ElementToScreen(const IntVector2&);
  7934. void EnableLayoutUpdate();
  7935. uint FindChild(UIElement) const;
  7936. Variant GetAttribute(const String&) const;
  7937. Variant GetAttributeDefault(const String&) const;
  7938. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7939. UIElement GetChild(const String&, bool = false) const;
  7940. Array<UIElement> GetChildren(bool = false) const;
  7941. UIElement GetElementEventSender() const;
  7942. uint GetNumChildren(bool) const;
  7943. void InsertChild(uint, UIElement);
  7944. bool IsInside(IntVector2, bool);
  7945. bool IsInsideCombined(IntVector2, bool);
  7946. bool Load(File, bool = false);
  7947. bool LoadChildXML(XMLFile, XMLFile = null);
  7948. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7949. bool LoadXML(File);
  7950. bool LoadXML(XMLFile, XMLFile);
  7951. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7952. bool LoadXML(const XMLElement&, bool = false);
  7953. void Remove();
  7954. void RemoveAllChildren();
  7955. void RemoveChild(UIElement, uint = 0);
  7956. void RemoveChild(uint);
  7957. void RemoveInstanceDefault();
  7958. void ResetToDefault();
  7959. bool Save(File) const;
  7960. bool SaveXML(File);
  7961. bool SaveXML(XMLElement&) const;
  7962. IntVector2 ScreenToElement(const IntVector2&);
  7963. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7964. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7965. bool SetAttribute(const String&, const Variant&);
  7966. void SetFixedHeight(int);
  7967. void SetFixedSize(int, int);
  7968. void SetFixedWidth(int);
  7969. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7970. void SetMaxSize(int, int);
  7971. void SetMinSize(int, int);
  7972. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7973. void SetPosition(int, int);
  7974. void SetSize(int, int);
  7975. bool SetStyle(const String&, XMLFile = null);
  7976. bool SetStyle(const XMLElement&);
  7977. bool SetStyleAuto(XMLFile = null);
  7978. void UpdateLayout();
  7979. const Variant& GetVar(const ShortStringHash&);
  7980. // Properties:
  7981. /* readonly */
  7982. Array<Variant> attributeDefaults;
  7983. /* readonly */
  7984. Array<AttributeInfo> attributeInfos;
  7985. Array<Variant> attributes;
  7986. /* readonly */
  7987. ShortStringHash baseType;
  7988. bool bringToBack;
  7989. bool bringToFront;
  7990. /* readonly */
  7991. String category;
  7992. /* readonly */
  7993. IntVector2 childOffset;
  7994. /* readonly */
  7995. Array<UIElement> children;
  7996. IntRect clipBorder;
  7997. bool clipChildren;
  7998. /* writeonly */
  7999. Color color;
  8000. /* readonly */
  8001. bool colorGradient;
  8002. Array<Color> colors;
  8003. /* readonly */
  8004. IntRect combinedScreenRect;
  8005. XMLFile defaultStyle;
  8006. float delay;
  8007. /* readonly */
  8008. float derivedOpacity;
  8009. uint dragDropMode;
  8010. bool editable;
  8011. bool elementEventSender;
  8012. bool enabled;
  8013. /* readonly */
  8014. bool fixedHeight;
  8015. /* readonly */
  8016. bool fixedSize;
  8017. /* readonly */
  8018. bool fixedWidth;
  8019. bool focus;
  8020. FocusMode focusMode;
  8021. int height;
  8022. HorizontalAlignment horizontalAlignment;
  8023. /* readonly */
  8024. bool hovering;
  8025. int indent;
  8026. int indentSpacing;
  8027. /* readonly */
  8028. int indentWidth;
  8029. bool internal;
  8030. IntRect layoutBorder;
  8031. LayoutMode layoutMode;
  8032. int layoutSpacing;
  8033. int maxHeight;
  8034. IntVector2 maxSize;
  8035. int maxWidth;
  8036. int minHeight;
  8037. IntVector2 minSize;
  8038. int minWidth;
  8039. String name;
  8040. /* readonly */
  8041. uint numAllChildren;
  8042. /* readonly */
  8043. uint numAttributes;
  8044. /* readonly */
  8045. uint numChildren;
  8046. float opacity;
  8047. UIElement parent;
  8048. IntVector2 position;
  8049. int priority;
  8050. /* readonly */
  8051. int refs;
  8052. /* readonly */
  8053. UIElement root;
  8054. /* readonly */
  8055. IntVector2 screenPosition;
  8056. bool selected;
  8057. IntVector2 size;
  8058. bool sortChildren;
  8059. String style;
  8060. bool temporary;
  8061. TraversalMode traversalMode;
  8062. /* readonly */
  8063. ShortStringHash type;
  8064. /* readonly */
  8065. String typeName;
  8066. bool useDerivedOpacity;
  8067. /* readonly */
  8068. VariantMap vars;
  8069. VerticalAlignment verticalAlignment;
  8070. bool visible;
  8071. /* readonly */
  8072. int weakRefs;
  8073. int width;
  8074. };
  8075. class TouchState
  8076. {
  8077. // Properties:
  8078. IntVector2 delta;
  8079. IntVector2 lastPosition;
  8080. IntVector2 position;
  8081. float pressure;
  8082. int touchID;
  8083. };
  8084. class UI
  8085. {
  8086. // Methods:
  8087. void Clear();
  8088. void DebugDraw(UIElement);
  8089. UIElement GetElementAt(const IntVector2&, bool = true);
  8090. UIElement GetElementAt(int, int, bool = true);
  8091. bool HasModalElement() const;
  8092. UIElement LoadLayout(File);
  8093. UIElement LoadLayout(File, XMLFile);
  8094. UIElement LoadLayout(XMLFile);
  8095. UIElement LoadLayout(XMLFile, XMLFile);
  8096. bool SaveLayout(File, UIElement);
  8097. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8098. void SetFocusElement(UIElement, bool = false);
  8099. // Properties:
  8100. /* readonly */
  8101. ShortStringHash baseType;
  8102. /* readonly */
  8103. String category;
  8104. String clipBoardText;
  8105. Cursor cursor;
  8106. /* readonly */
  8107. IntVector2 cursorPosition;
  8108. float defaultToolTipDelay;
  8109. float doubleClickInterval;
  8110. int dragBeginDistance;
  8111. float dragBeginInterval;
  8112. /* readonly */
  8113. UIElement dragElement;
  8114. UIElement focusElement;
  8115. bool forceAutoHint;
  8116. /* readonly */
  8117. UIElement frontElement;
  8118. int maxFontTextureSize;
  8119. /* readonly */
  8120. UIElement modalRoot;
  8121. bool nonFocusedMouseWheel;
  8122. /* readonly */
  8123. int refs;
  8124. /* readonly */
  8125. UIElement root;
  8126. /* readonly */
  8127. ShortStringHash type;
  8128. /* readonly */
  8129. String typeName;
  8130. bool useMutableGlyphs;
  8131. bool useScreenKeyboard;
  8132. bool useSystemClipBoard;
  8133. /* readonly */
  8134. int weakRefs;
  8135. };
  8136. class UIElement
  8137. {
  8138. // Methods:
  8139. void AddChild(UIElement);
  8140. void ApplyAttributes();
  8141. void BringToFront();
  8142. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8143. void DisableLayoutUpdate();
  8144. IntVector2 ElementToScreen(const IntVector2&);
  8145. void EnableLayoutUpdate();
  8146. uint FindChild(UIElement) const;
  8147. Variant GetAttribute(const String&) const;
  8148. Variant GetAttributeDefault(const String&) const;
  8149. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8150. UIElement GetChild(const String&, bool = false) const;
  8151. Array<UIElement> GetChildren(bool = false) const;
  8152. UIElement GetElementEventSender() const;
  8153. uint GetNumChildren(bool) const;
  8154. void InsertChild(uint, UIElement);
  8155. bool IsInside(IntVector2, bool);
  8156. bool IsInsideCombined(IntVector2, bool);
  8157. bool Load(File, bool = false);
  8158. bool LoadChildXML(XMLFile, XMLFile = null);
  8159. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8160. bool LoadXML(File);
  8161. bool LoadXML(XMLFile, XMLFile);
  8162. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8163. bool LoadXML(const XMLElement&, bool = false);
  8164. void Remove();
  8165. void RemoveAllChildren();
  8166. void RemoveChild(UIElement, uint = 0);
  8167. void RemoveChild(uint);
  8168. void RemoveInstanceDefault();
  8169. void ResetToDefault();
  8170. bool Save(File) const;
  8171. bool SaveXML(File);
  8172. bool SaveXML(XMLElement&) const;
  8173. IntVector2 ScreenToElement(const IntVector2&);
  8174. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8175. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8176. bool SetAttribute(const String&, const Variant&);
  8177. void SetFixedHeight(int);
  8178. void SetFixedSize(int, int);
  8179. void SetFixedWidth(int);
  8180. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8181. void SetMaxSize(int, int);
  8182. void SetMinSize(int, int);
  8183. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8184. void SetPosition(int, int);
  8185. void SetSize(int, int);
  8186. bool SetStyle(const String&, XMLFile = null);
  8187. bool SetStyle(const XMLElement&);
  8188. bool SetStyleAuto(XMLFile = null);
  8189. void UpdateLayout();
  8190. const Variant& GetVar(const ShortStringHash&);
  8191. // Properties:
  8192. /* readonly */
  8193. Array<Variant> attributeDefaults;
  8194. /* readonly */
  8195. Array<AttributeInfo> attributeInfos;
  8196. Array<Variant> attributes;
  8197. /* readonly */
  8198. ShortStringHash baseType;
  8199. bool bringToBack;
  8200. bool bringToFront;
  8201. /* readonly */
  8202. String category;
  8203. /* readonly */
  8204. IntVector2 childOffset;
  8205. /* readonly */
  8206. Array<UIElement> children;
  8207. IntRect clipBorder;
  8208. bool clipChildren;
  8209. /* writeonly */
  8210. Color color;
  8211. /* readonly */
  8212. bool colorGradient;
  8213. Array<Color> colors;
  8214. /* readonly */
  8215. IntRect combinedScreenRect;
  8216. XMLFile defaultStyle;
  8217. /* readonly */
  8218. float derivedOpacity;
  8219. uint dragDropMode;
  8220. bool editable;
  8221. bool elementEventSender;
  8222. bool enabled;
  8223. /* readonly */
  8224. bool fixedHeight;
  8225. /* readonly */
  8226. bool fixedSize;
  8227. /* readonly */
  8228. bool fixedWidth;
  8229. bool focus;
  8230. FocusMode focusMode;
  8231. int height;
  8232. HorizontalAlignment horizontalAlignment;
  8233. /* readonly */
  8234. bool hovering;
  8235. int indent;
  8236. int indentSpacing;
  8237. /* readonly */
  8238. int indentWidth;
  8239. bool internal;
  8240. IntRect layoutBorder;
  8241. LayoutMode layoutMode;
  8242. int layoutSpacing;
  8243. int maxHeight;
  8244. IntVector2 maxSize;
  8245. int maxWidth;
  8246. int minHeight;
  8247. IntVector2 minSize;
  8248. int minWidth;
  8249. String name;
  8250. /* readonly */
  8251. uint numAllChildren;
  8252. /* readonly */
  8253. uint numAttributes;
  8254. /* readonly */
  8255. uint numChildren;
  8256. float opacity;
  8257. UIElement parent;
  8258. IntVector2 position;
  8259. int priority;
  8260. /* readonly */
  8261. int refs;
  8262. /* readonly */
  8263. UIElement root;
  8264. /* readonly */
  8265. IntVector2 screenPosition;
  8266. bool selected;
  8267. IntVector2 size;
  8268. bool sortChildren;
  8269. String style;
  8270. bool temporary;
  8271. TraversalMode traversalMode;
  8272. /* readonly */
  8273. ShortStringHash type;
  8274. /* readonly */
  8275. String typeName;
  8276. bool useDerivedOpacity;
  8277. /* readonly */
  8278. VariantMap vars;
  8279. VerticalAlignment verticalAlignment;
  8280. bool visible;
  8281. /* readonly */
  8282. int weakRefs;
  8283. int width;
  8284. };
  8285. class Variant
  8286. {
  8287. // Methods:
  8288. void Clear();
  8289. const Color& GetColor() const;
  8290. void FromString(VariantType, const String&);
  8291. void FromString(const String&, const String&);
  8292. bool GetBool() const;
  8293. VectorBuffer GetBuffer() const;
  8294. float GetFloat() const;
  8295. int GetInt() const;
  8296. RefCounted GetPtr() const;
  8297. ShortStringHash GetShortStringHash() const;
  8298. StringHash GetStringHash() const;
  8299. uint GetUInt() const;
  8300. Array<Variant> GetVariantVector() const;
  8301. const IntRect& GetIntRect() const;
  8302. const IntVector2& GetIntVector2() const;
  8303. const Quaternion& GetQuaternion() const;
  8304. const ResourceRef& GetResourceRef() const;
  8305. const ResourceRefList& GetResourceRefList() const;
  8306. const String& GetString() const;
  8307. String ToString() const;
  8308. const VariantMap& GetVariantMap() const;
  8309. const Vector2& GetVector2() const;
  8310. const Vector3& GetVector3() const;
  8311. const Vector4& GetVector4() const;
  8312. /* deprecated */
  8313. Camera GetCamera() const;
  8314. /* deprecated */
  8315. CollisionShape GetCollisionShape() const;
  8316. /* deprecated */
  8317. Component GetComponent() const;
  8318. /* deprecated */
  8319. Connection GetConnection() const;
  8320. /* deprecated */
  8321. Node GetNode() const;
  8322. /* deprecated */
  8323. PhysicsWorld GetPhysicsWorld() const;
  8324. /* deprecated */
  8325. RenderSurface GetRenderSurface() const;
  8326. /* deprecated */
  8327. RigidBody GetRigidBody() const;
  8328. /* deprecated */
  8329. Scene GetScene() const;
  8330. /* deprecated */
  8331. Serializable GetSerializable() const;
  8332. /* deprecated */
  8333. Texture GetTexture() const;
  8334. /* deprecated */
  8335. UIElement GetUIElement() const;
  8336. // Properties:
  8337. /* readonly */
  8338. bool empty;
  8339. /* readonly */
  8340. VariantType type;
  8341. /* readonly */
  8342. String typeName;
  8343. /* readonly */
  8344. bool zero;
  8345. };
  8346. class VariantMap
  8347. {
  8348. // Methods:
  8349. void Clear();
  8350. bool Contains(ShortStringHash) const;
  8351. bool Contains(const String&) const;
  8352. bool Erase(ShortStringHash);
  8353. bool Erase(const String&);
  8354. // Properties:
  8355. /* readonly */
  8356. Array<ShortStringHash> keys;
  8357. /* readonly */
  8358. uint length;
  8359. };
  8360. class Vector2
  8361. {
  8362. // Methods:
  8363. float AbsDotProduct(const Vector2&) const;
  8364. float DotProduct(const Vector2&) const;
  8365. bool Equals(const Vector2&) const;
  8366. bool IsNaN() const;
  8367. Vector2 Lerp(const Vector2&, float) const;
  8368. void Normalize();
  8369. Vector2 Normalized() const;
  8370. String ToString() const;
  8371. // Properties:
  8372. /* readonly */
  8373. Array<float> data;
  8374. /* readonly */
  8375. float length;
  8376. /* readonly */
  8377. float lengthSquared;
  8378. float x;
  8379. float y;
  8380. };
  8381. class Vector3
  8382. {
  8383. // Methods:
  8384. float AbsDotProduct(const Vector3&) const;
  8385. float Angle(const Vector3&) const;
  8386. Vector3 CrossProduct(const Vector3&) const;
  8387. float DotProduct(const Vector3&) const;
  8388. bool Equals(const Vector3&) const;
  8389. bool IsNaN() const;
  8390. Vector3 Lerp(const Vector3&, float) const;
  8391. void Normalize();
  8392. Vector3 Normalized() const;
  8393. String ToString() const;
  8394. // Properties:
  8395. /* readonly */
  8396. Array<float> data;
  8397. /* readonly */
  8398. float length;
  8399. /* readonly */
  8400. float lengthSquared;
  8401. float x;
  8402. float y;
  8403. float z;
  8404. };
  8405. class Vector4
  8406. {
  8407. // Methods:
  8408. float AbsDotProduct(const Vector4&) const;
  8409. float DotProduct(const Vector4&) const;
  8410. bool Equals(const Vector4&) const;
  8411. bool IsNaN() const;
  8412. Vector4 Lerp(const Vector4&, float) const;
  8413. String ToString() const;
  8414. // Properties:
  8415. /* readonly */
  8416. Array<float> data;
  8417. float w;
  8418. float x;
  8419. float y;
  8420. float z;
  8421. };
  8422. class VectorBuffer
  8423. {
  8424. // Methods:
  8425. void Clear();
  8426. Array<uint8> Read(uint);
  8427. bool ReadBool();
  8428. BoundingBox ReadBoundingBox();
  8429. int8 ReadByte();
  8430. Color ReadColor();
  8431. String ReadFileID();
  8432. float ReadFloat();
  8433. int ReadInt();
  8434. IntRect ReadIntRect();
  8435. IntVector2 ReadIntVector2();
  8436. String ReadLine();
  8437. uint ReadNetID();
  8438. Quaternion ReadPackedQuaternion();
  8439. Vector3 ReadPackedVector3(float);
  8440. Quaternion ReadQuaternion();
  8441. int16 ReadShort();
  8442. ShortStringHash ReadShortStringHash();
  8443. String ReadString();
  8444. StringHash ReadStringHash();
  8445. uint8 ReadUByte();
  8446. uint ReadUInt();
  8447. uint16 ReadUShort();
  8448. uint ReadVLE();
  8449. Variant ReadVariant();
  8450. VariantMap ReadVariantMap();
  8451. Vector2 ReadVector2();
  8452. Vector3 ReadVector3();
  8453. Vector4 ReadVector4();
  8454. void Resize(uint);
  8455. uint Seek(uint);
  8456. void SetData(Deserializer, uint);
  8457. uint Write(Array<uint8>);
  8458. bool WriteBool(bool);
  8459. bool WriteBoundingBox(const BoundingBox&);
  8460. bool WriteByte(int8);
  8461. bool WriteColor(const Color&);
  8462. bool WriteFileID(const String&);
  8463. bool WriteFloat(float);
  8464. bool WriteInt(int);
  8465. bool WriteIntRect(const IntRect&);
  8466. bool WriteIntVector2(const IntVector2&);
  8467. bool WriteLine(const String&);
  8468. bool WriteNetID(uint);
  8469. bool WritePackedQuaternion(const Quaternion&);
  8470. bool WritePackedVector3(const Vector3&, float);
  8471. bool WriteQuaternion(const Quaternion&);
  8472. bool WriteShort(int16);
  8473. bool WriteShortStringHash(const ShortStringHash&);
  8474. bool WriteString(const String&);
  8475. bool WriteStringHash(const StringHash&);
  8476. bool WriteUByte(uint8);
  8477. bool WriteUInt(uint);
  8478. bool WriteUShort(uint16);
  8479. bool WriteVLE(uint);
  8480. bool WriteVariant(const Variant&);
  8481. bool WriteVariantMap(const VariantMap&);
  8482. bool WriteVector2(const Vector2&);
  8483. bool WriteVector3(const Vector3&);
  8484. bool WriteVector4(const Vector4&);
  8485. // Properties:
  8486. /* readonly */
  8487. uint checksum;
  8488. /* readonly */
  8489. bool eof;
  8490. /* readonly */
  8491. String name;
  8492. /* readonly */
  8493. uint position;
  8494. /* readonly */
  8495. uint size;
  8496. };
  8497. class View3D
  8498. {
  8499. // Methods:
  8500. void AddChild(UIElement);
  8501. void ApplyAttributes();
  8502. void BringToFront();
  8503. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8504. void DisableLayoutUpdate();
  8505. IntVector2 ElementToScreen(const IntVector2&);
  8506. void EnableLayoutUpdate();
  8507. uint FindChild(UIElement) const;
  8508. Variant GetAttribute(const String&) const;
  8509. Variant GetAttributeDefault(const String&) const;
  8510. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8511. UIElement GetChild(const String&, bool = false) const;
  8512. Array<UIElement> GetChildren(bool = false) const;
  8513. UIElement GetElementEventSender() const;
  8514. uint GetNumChildren(bool) const;
  8515. void InsertChild(uint, UIElement);
  8516. bool IsInside(IntVector2, bool);
  8517. bool IsInsideCombined(IntVector2, bool);
  8518. bool Load(File, bool = false);
  8519. bool LoadChildXML(XMLFile, XMLFile = null);
  8520. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8521. bool LoadXML(File);
  8522. bool LoadXML(XMLFile, XMLFile);
  8523. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8524. bool LoadXML(const XMLElement&, bool = false);
  8525. void QueueUpdate();
  8526. void Remove();
  8527. void RemoveAllChildren();
  8528. void RemoveChild(UIElement, uint = 0);
  8529. void RemoveChild(uint);
  8530. void RemoveInstanceDefault();
  8531. void ResetToDefault();
  8532. bool Save(File) const;
  8533. bool SaveXML(File);
  8534. bool SaveXML(XMLElement&) const;
  8535. IntVector2 ScreenToElement(const IntVector2&);
  8536. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8537. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8538. bool SetAttribute(const String&, const Variant&);
  8539. void SetFixedHeight(int);
  8540. void SetFixedSize(int, int);
  8541. void SetFixedWidth(int);
  8542. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8543. void SetMaxSize(int, int);
  8544. void SetMinSize(int, int);
  8545. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8546. void SetPosition(int, int);
  8547. void SetSize(int, int);
  8548. bool SetStyle(const String&, XMLFile = null);
  8549. bool SetStyle(const XMLElement&);
  8550. bool SetStyleAuto(XMLFile = null);
  8551. void SetView(Scene, Camera);
  8552. void UpdateLayout();
  8553. const Variant& GetVar(const ShortStringHash&);
  8554. // Properties:
  8555. /* readonly */
  8556. Array<Variant> attributeDefaults;
  8557. /* readonly */
  8558. Array<AttributeInfo> attributeInfos;
  8559. Array<Variant> attributes;
  8560. bool autoUpdate;
  8561. /* readonly */
  8562. ShortStringHash baseType;
  8563. bool bringToBack;
  8564. bool bringToFront;
  8565. /* readonly */
  8566. Node cameraNode;
  8567. /* readonly */
  8568. String category;
  8569. /* readonly */
  8570. IntVector2 childOffset;
  8571. /* readonly */
  8572. Array<UIElement> children;
  8573. IntRect clipBorder;
  8574. bool clipChildren;
  8575. /* writeonly */
  8576. Color color;
  8577. /* readonly */
  8578. bool colorGradient;
  8579. Array<Color> colors;
  8580. /* readonly */
  8581. IntRect combinedScreenRect;
  8582. XMLFile defaultStyle;
  8583. /* readonly */
  8584. Texture2D depthTexture;
  8585. /* readonly */
  8586. float derivedOpacity;
  8587. uint dragDropMode;
  8588. bool editable;
  8589. bool elementEventSender;
  8590. bool enabled;
  8591. /* readonly */
  8592. bool fixedHeight;
  8593. bool fixedHeightResizing;
  8594. /* readonly */
  8595. bool fixedSize;
  8596. /* readonly */
  8597. bool fixedWidth;
  8598. bool fixedWidthResizing;
  8599. bool focus;
  8600. FocusMode focusMode;
  8601. uint format;
  8602. int height;
  8603. HorizontalAlignment horizontalAlignment;
  8604. /* readonly */
  8605. bool hovering;
  8606. int indent;
  8607. int indentSpacing;
  8608. /* readonly */
  8609. int indentWidth;
  8610. bool internal;
  8611. IntRect layoutBorder;
  8612. LayoutMode layoutMode;
  8613. int layoutSpacing;
  8614. int maxHeight;
  8615. IntVector2 maxSize;
  8616. int maxWidth;
  8617. int minHeight;
  8618. IntVector2 minSize;
  8619. int minWidth;
  8620. bool modal;
  8621. Color modalFrameColor;
  8622. IntVector2 modalFrameSize;
  8623. Color modalShadeColor;
  8624. bool movable;
  8625. String name;
  8626. /* readonly */
  8627. uint numAllChildren;
  8628. /* readonly */
  8629. uint numAttributes;
  8630. /* readonly */
  8631. uint numChildren;
  8632. float opacity;
  8633. UIElement parent;
  8634. IntVector2 position;
  8635. int priority;
  8636. /* readonly */
  8637. int refs;
  8638. /* readonly */
  8639. Texture2D renderTexture;
  8640. bool resizable;
  8641. IntRect resizeBorder;
  8642. /* readonly */
  8643. UIElement root;
  8644. /* readonly */
  8645. Scene scene;
  8646. /* readonly */
  8647. IntVector2 screenPosition;
  8648. bool selected;
  8649. IntVector2 size;
  8650. bool sortChildren;
  8651. String style;
  8652. bool temporary;
  8653. TraversalMode traversalMode;
  8654. /* readonly */
  8655. ShortStringHash type;
  8656. /* readonly */
  8657. String typeName;
  8658. bool useDerivedOpacity;
  8659. /* readonly */
  8660. VariantMap vars;
  8661. VerticalAlignment verticalAlignment;
  8662. /* readonly */
  8663. Viewport viewport;
  8664. bool visible;
  8665. /* readonly */
  8666. int weakRefs;
  8667. int width;
  8668. };
  8669. class Viewport
  8670. {
  8671. // Methods:
  8672. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8673. void SetRenderPath(XMLFile);
  8674. // Properties:
  8675. /* readonly */
  8676. ShortStringHash baseType;
  8677. Camera camera;
  8678. /* readonly */
  8679. String category;
  8680. IntRect rect;
  8681. /* readonly */
  8682. int refs;
  8683. RenderPath renderPath;
  8684. Scene scene;
  8685. /* readonly */
  8686. ShortStringHash type;
  8687. /* readonly */
  8688. String typeName;
  8689. /* readonly */
  8690. int weakRefs;
  8691. };
  8692. class WeakHandle
  8693. {
  8694. // Methods:
  8695. RefCounted Get() const;
  8696. // Properties:
  8697. /* readonly */
  8698. bool expired;
  8699. /* readonly */
  8700. int refs;
  8701. /* readonly */
  8702. int weakRefs;
  8703. };
  8704. class Window
  8705. {
  8706. // Methods:
  8707. void AddChild(UIElement);
  8708. void ApplyAttributes();
  8709. void BringToFront();
  8710. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8711. void DisableLayoutUpdate();
  8712. IntVector2 ElementToScreen(const IntVector2&);
  8713. void EnableLayoutUpdate();
  8714. uint FindChild(UIElement) const;
  8715. Variant GetAttribute(const String&) const;
  8716. Variant GetAttributeDefault(const String&) const;
  8717. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8718. UIElement GetChild(const String&, bool = false) const;
  8719. Array<UIElement> GetChildren(bool = false) const;
  8720. UIElement GetElementEventSender() const;
  8721. uint GetNumChildren(bool) const;
  8722. void InsertChild(uint, UIElement);
  8723. bool IsInside(IntVector2, bool);
  8724. bool IsInsideCombined(IntVector2, bool);
  8725. bool Load(File, bool = false);
  8726. bool LoadChildXML(XMLFile, XMLFile = null);
  8727. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8728. bool LoadXML(File);
  8729. bool LoadXML(XMLFile, XMLFile);
  8730. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8731. bool LoadXML(const XMLElement&, bool = false);
  8732. void Remove();
  8733. void RemoveAllChildren();
  8734. void RemoveChild(UIElement, uint = 0);
  8735. void RemoveChild(uint);
  8736. void RemoveInstanceDefault();
  8737. void ResetToDefault();
  8738. bool Save(File) const;
  8739. bool SaveXML(File);
  8740. bool SaveXML(XMLElement&) const;
  8741. IntVector2 ScreenToElement(const IntVector2&);
  8742. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8743. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8744. bool SetAttribute(const String&, const Variant&);
  8745. void SetFixedHeight(int);
  8746. void SetFixedSize(int, int);
  8747. void SetFixedWidth(int);
  8748. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8749. void SetMaxSize(int, int);
  8750. void SetMinSize(int, int);
  8751. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8752. void SetPosition(int, int);
  8753. void SetSize(int, int);
  8754. bool SetStyle(const String&, XMLFile = null);
  8755. bool SetStyle(const XMLElement&);
  8756. bool SetStyleAuto(XMLFile = null);
  8757. void UpdateLayout();
  8758. const Variant& GetVar(const ShortStringHash&);
  8759. // Properties:
  8760. /* readonly */
  8761. Array<Variant> attributeDefaults;
  8762. /* readonly */
  8763. Array<AttributeInfo> attributeInfos;
  8764. Array<Variant> attributes;
  8765. /* readonly */
  8766. ShortStringHash baseType;
  8767. bool bringToBack;
  8768. bool bringToFront;
  8769. /* readonly */
  8770. String category;
  8771. /* readonly */
  8772. IntVector2 childOffset;
  8773. /* readonly */
  8774. Array<UIElement> children;
  8775. IntRect clipBorder;
  8776. bool clipChildren;
  8777. /* writeonly */
  8778. Color color;
  8779. /* readonly */
  8780. bool colorGradient;
  8781. Array<Color> colors;
  8782. /* readonly */
  8783. IntRect combinedScreenRect;
  8784. XMLFile defaultStyle;
  8785. /* readonly */
  8786. float derivedOpacity;
  8787. uint dragDropMode;
  8788. bool editable;
  8789. bool elementEventSender;
  8790. bool enabled;
  8791. /* readonly */
  8792. bool fixedHeight;
  8793. bool fixedHeightResizing;
  8794. /* readonly */
  8795. bool fixedSize;
  8796. /* readonly */
  8797. bool fixedWidth;
  8798. bool fixedWidthResizing;
  8799. bool focus;
  8800. FocusMode focusMode;
  8801. int height;
  8802. HorizontalAlignment horizontalAlignment;
  8803. /* readonly */
  8804. bool hovering;
  8805. int indent;
  8806. int indentSpacing;
  8807. /* readonly */
  8808. int indentWidth;
  8809. bool internal;
  8810. IntRect layoutBorder;
  8811. LayoutMode layoutMode;
  8812. int layoutSpacing;
  8813. int maxHeight;
  8814. IntVector2 maxSize;
  8815. int maxWidth;
  8816. int minHeight;
  8817. IntVector2 minSize;
  8818. int minWidth;
  8819. bool modal;
  8820. Color modalFrameColor;
  8821. IntVector2 modalFrameSize;
  8822. Color modalShadeColor;
  8823. bool movable;
  8824. String name;
  8825. /* readonly */
  8826. uint numAllChildren;
  8827. /* readonly */
  8828. uint numAttributes;
  8829. /* readonly */
  8830. uint numChildren;
  8831. float opacity;
  8832. UIElement parent;
  8833. IntVector2 position;
  8834. int priority;
  8835. /* readonly */
  8836. int refs;
  8837. bool resizable;
  8838. IntRect resizeBorder;
  8839. /* readonly */
  8840. UIElement root;
  8841. /* readonly */
  8842. IntVector2 screenPosition;
  8843. bool selected;
  8844. IntVector2 size;
  8845. bool sortChildren;
  8846. String style;
  8847. bool temporary;
  8848. TraversalMode traversalMode;
  8849. /* readonly */
  8850. ShortStringHash type;
  8851. /* readonly */
  8852. String typeName;
  8853. bool useDerivedOpacity;
  8854. /* readonly */
  8855. VariantMap vars;
  8856. VerticalAlignment verticalAlignment;
  8857. bool visible;
  8858. /* readonly */
  8859. int weakRefs;
  8860. int width;
  8861. };
  8862. class XMLElement
  8863. {
  8864. // Methods:
  8865. XMLElement CreateChild(const String&);
  8866. String GetAttribute(const String& = String ( )) const;
  8867. String GetAttributeLower(const String&) const;
  8868. Array<String> GetAttributeNames() const;
  8869. String GetAttributeUpper(const String&) const;
  8870. bool GetBool(const String&) const;
  8871. BoundingBox GetBoundingBox() const;
  8872. XMLElement GetChild(const String& = String ( )) const;
  8873. Color GetColor(const String&) const;
  8874. float GetFloat(const String&) const;
  8875. int GetInt(const String&) const;
  8876. XMLElement GetNext(const String& = String ( )) const;
  8877. Quaternion GetQuaternion(const String&) const;
  8878. ResourceRef GetResourceRef() const;
  8879. ResourceRefList GetResourceRefList() const;
  8880. uint GetUInt(const String&) const;
  8881. String GetValue() const;
  8882. Variant GetVariant() const;
  8883. VariantMap GetVariantMap() const;
  8884. Array<Variant> GetVariantVector() const;
  8885. Vector2 GetVector2(const String&) const;
  8886. Vector3 GetVector3(const String&) const;
  8887. Vector4 GetVector4(const String&) const;
  8888. Variant GetVectorVariant(const String&) const;
  8889. bool HasAttribute(const String&) const;
  8890. bool HasChild(const String&) const;
  8891. bool RemoveAttribute(const String& = String ( ));
  8892. bool RemoveChild(const String&);
  8893. bool RemoveChild(const XMLElement&);
  8894. bool RemoveChildren(const String& = String ( ));
  8895. XPathResultSet Select(const String&);
  8896. XPathResultSet SelectPrepared(const XPathQuery&);
  8897. XMLElement SelectSingle(const String&);
  8898. XMLElement SelectSinglePrepared(const XPathQuery&);
  8899. bool SetAttribute(const String&);
  8900. bool SetAttribute(const String&, const String&);
  8901. bool SetBool(const String&, bool);
  8902. bool SetBoundingBox(const BoundingBox&);
  8903. bool SetColor(const String&, const Color&);
  8904. bool SetFloat(const String&, float);
  8905. bool SetInt(const String&, int);
  8906. bool SetQuaternion(const String&, const Quaternion&);
  8907. bool SetResourceRef(const String&, const ResourceRef&);
  8908. bool SetResourceRefList(const String&, const ResourceRefList&);
  8909. bool SetUInt(const String&, uint);
  8910. bool SetValue(const String&);
  8911. bool SetVariant(const Variant&);
  8912. bool SetVariantMap(const VariantMap&);
  8913. bool SetVariantVector(Array<Variant>);
  8914. bool SetVector2(const String&, const Vector2&);
  8915. bool SetVector3(const String&, const Vector3&);
  8916. bool SetVector4(const String&, const Vector4&);
  8917. bool SetVectorVariant(const String&, const Variant&);
  8918. // Properties:
  8919. /* readonly */
  8920. XMLFile file;
  8921. /* readonly */
  8922. bool isNull;
  8923. /* readonly */
  8924. String name;
  8925. /* readonly */
  8926. XMLElement nextResult;
  8927. /* readonly */
  8928. bool notNull;
  8929. /* readonly */
  8930. uint numAttributes;
  8931. /* readonly */
  8932. XMLElement parent;
  8933. String value;
  8934. };
  8935. class XMLFile
  8936. {
  8937. // Methods:
  8938. XMLElement CreateRoot(const String&);
  8939. XMLElement GetRoot(const String& = String ( ));
  8940. bool Load(File);
  8941. void Patch(XMLElement);
  8942. void Patch(XMLFile);
  8943. bool Save(File) const;
  8944. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8945. // Properties:
  8946. /* readonly */
  8947. ShortStringHash baseType;
  8948. /* readonly */
  8949. String category;
  8950. /* readonly */
  8951. uint memoryUse;
  8952. String name;
  8953. /* readonly */
  8954. int refs;
  8955. /* readonly */
  8956. XMLElement root;
  8957. /* readonly */
  8958. ShortStringHash type;
  8959. /* readonly */
  8960. String typeName;
  8961. /* readonly */
  8962. uint useTimer;
  8963. /* readonly */
  8964. int weakRefs;
  8965. };
  8966. class XPathQuery
  8967. {
  8968. // Methods:
  8969. void Bind();
  8970. void Clear();
  8971. XPathResultSet Evaluate(XMLElement);
  8972. bool EvaluateToBool(XMLElement);
  8973. float EvaluateToFloat(XMLElement);
  8974. String EvaluateToString(XMLElement);
  8975. bool SetQuery(const String&, const String& = String ( ), bool = true);
  8976. bool SetVariable(const String&, bool);
  8977. bool SetVariable(const String&, const String&);
  8978. bool SetVariable(const String&, const XPathResultSet&);
  8979. bool SetVariable(const String&, float);
  8980. // Properties:
  8981. String query;
  8982. };
  8983. class XPathResultSet
  8984. {
  8985. // Properties:
  8986. /* readonly */
  8987. bool empty;
  8988. /* readonly */
  8989. XMLElement firstResult;
  8990. /* readonly */
  8991. uint size;
  8992. };
  8993. class Zone
  8994. {
  8995. // Methods:
  8996. void ApplyAttributes();
  8997. void DrawDebugGeometry(DebugRenderer, bool);
  8998. Variant GetAttribute(const String&) const;
  8999. Variant GetAttributeDefault(const String&) const;
  9000. bool IsInView(Camera) const;
  9001. bool Load(File, bool = false);
  9002. bool LoadXML(const XMLElement&, bool = false);
  9003. void MarkNetworkUpdate() const;
  9004. void Remove();
  9005. void RemoveInstanceDefault();
  9006. void ResetToDefault();
  9007. bool Save(File) const;
  9008. bool SaveXML(XMLElement&) const;
  9009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9010. bool SetAttribute(const String&, const Variant&);
  9011. // Properties:
  9012. Color ambientColor;
  9013. /* readonly */
  9014. Color ambientEndColor;
  9015. bool ambientGradient;
  9016. /* readonly */
  9017. Color ambientStartColor;
  9018. /* readonly */
  9019. Array<Variant> attributeDefaults;
  9020. /* readonly */
  9021. Array<AttributeInfo> attributeInfos;
  9022. Array<Variant> attributes;
  9023. /* readonly */
  9024. ShortStringHash baseType;
  9025. BoundingBox boundingBox;
  9026. bool castShadows;
  9027. /* readonly */
  9028. String category;
  9029. float drawDistance;
  9030. bool enabled;
  9031. /* readonly */
  9032. bool enabledEffective;
  9033. Color fogColor;
  9034. float fogEnd;
  9035. float fogHeight;
  9036. float fogHeightScale;
  9037. float fogStart;
  9038. bool heightFog;
  9039. /* readonly */
  9040. uint id;
  9041. /* readonly */
  9042. bool inView;
  9043. /* readonly */
  9044. Matrix3x4 inverseWorldTransform;
  9045. uint lightMask;
  9046. float lodBias;
  9047. uint maxLights;
  9048. /* readonly */
  9049. Node node;
  9050. /* readonly */
  9051. uint numAttributes;
  9052. bool occludee;
  9053. bool occluder;
  9054. bool override;
  9055. int priority;
  9056. /* readonly */
  9057. int refs;
  9058. float shadowDistance;
  9059. uint shadowMask;
  9060. bool temporary;
  9061. /* readonly */
  9062. ShortStringHash type;
  9063. /* readonly */
  9064. String typeName;
  9065. uint viewMask;
  9066. /* readonly */
  9067. int weakRefs;
  9068. /* readonly */
  9069. BoundingBox worldBoundingBox;
  9070. uint zoneMask;
  9071. };
  9072. // Enumerations
  9073. enum BlendMode
  9074. {
  9075. BLEND_REPLACE,
  9076. BLEND_ADD,
  9077. BLEND_MULTIPLY,
  9078. BLEND_ALPHA,
  9079. BLEND_ADDALPHA,
  9080. BLEND_PREMULALPHA,
  9081. BLEND_INVDESTALPHA,
  9082. BLEND_SUBTRACT,
  9083. BLEND_SUBTRACTALPHA,
  9084. };
  9085. enum BodyType2D
  9086. {
  9087. BT_STATIC,
  9088. BT_DYNAMIC,
  9089. BT_KINEMATIC,
  9090. };
  9091. enum CollisionEventMode
  9092. {
  9093. COLLISION_NEVER,
  9094. COLLISION_ACTIVE,
  9095. COLLISION_ALWAYS,
  9096. };
  9097. enum CompareMode
  9098. {
  9099. CMP_ALWAYS,
  9100. CMP_EQUAL,
  9101. CMP_NOTEQUAL,
  9102. CMP_LESS,
  9103. CMP_LESSEQUAL,
  9104. CMP_GREATER,
  9105. CMP_GREATEREQUAL,
  9106. };
  9107. enum ConstraintType
  9108. {
  9109. CONSTRAINT_POINT,
  9110. CONSTRAINT_HINGE,
  9111. CONSTRAINT_SLIDER,
  9112. CONSTRAINT_CONETWIST,
  9113. };
  9114. enum Corner
  9115. {
  9116. C_TOPLEFT,
  9117. C_TOPRIGHT,
  9118. C_BOTTOMLEFT,
  9119. C_BOTTOMRIGHT,
  9120. };
  9121. enum CreateMode
  9122. {
  9123. REPLICATED,
  9124. LOCAL,
  9125. };
  9126. enum CubeMapFace
  9127. {
  9128. FACE_POSITIVE_X,
  9129. FACE_NEGATIVE_X,
  9130. FACE_POSITIVE_Y,
  9131. FACE_NEGATIVE_Y,
  9132. FACE_POSITIVE_Z,
  9133. FACE_NEGATIVE_Z,
  9134. };
  9135. enum CullMode
  9136. {
  9137. CULL_NONE,
  9138. CULL_CCW,
  9139. CULL_CW,
  9140. };
  9141. enum CursorShape
  9142. {
  9143. CS_NORMAL,
  9144. CS_RESIZEVERTICAL,
  9145. CS_RESIZEDIAGONAL_TOPRIGHT,
  9146. CS_RESIZEHORIZONTAL,
  9147. CS_RESIZEDIAGONAL_TOPLEFT,
  9148. CS_ACCEPTDROP,
  9149. CS_REJECTDROP,
  9150. CS_BUSY,
  9151. };
  9152. enum CycleMode
  9153. {
  9154. CM_LOOP,
  9155. CM_CLAMP,
  9156. CM_PINGPONG,
  9157. };
  9158. enum DumpMode
  9159. {
  9160. DOXYGEN,
  9161. C_HEADER,
  9162. };
  9163. enum EmitterType
  9164. {
  9165. EMITTER_SPHERE,
  9166. EMITTER_BOX,
  9167. };
  9168. enum EmitterType2D
  9169. {
  9170. EMITTER_TYPE_GRAVITY,
  9171. EMITTER_TYPE_RADIAL,
  9172. };
  9173. enum FileMode
  9174. {
  9175. FILE_READ,
  9176. FILE_WRITE,
  9177. FILE_READWRITE,
  9178. };
  9179. enum FillMode
  9180. {
  9181. FILL_SOLID,
  9182. FILL_WIREFRAME,
  9183. FILL_POINT,
  9184. };
  9185. enum FocusMode
  9186. {
  9187. FM_NOTFOCUSABLE,
  9188. FM_RESETFOCUS,
  9189. FM_FOCUSABLE,
  9190. FM_FOCUSABLE_DEFOCUSABLE,
  9191. };
  9192. enum HighlightMode
  9193. {
  9194. HM_NEVER,
  9195. HM_FOCUS,
  9196. HM_ALWAYS,
  9197. };
  9198. enum HorizontalAlignment
  9199. {
  9200. HA_LEFT,
  9201. HA_CENTER,
  9202. HA_RIGHT,
  9203. };
  9204. enum HttpRequestState
  9205. {
  9206. HTTP_INITIALIZING,
  9207. HTTP_ERROR,
  9208. HTTP_OPEN,
  9209. HTTP_CLOSED,
  9210. };
  9211. enum InterpolationMode
  9212. {
  9213. BEZIER_CURVE,
  9214. };
  9215. enum Intersection
  9216. {
  9217. OUTSIDE,
  9218. INTERSECTS,
  9219. INSIDE,
  9220. };
  9221. enum LayoutMode
  9222. {
  9223. LM_FREE,
  9224. LM_HORIZONTAL,
  9225. LM_VERTICAL,
  9226. };
  9227. enum LightType
  9228. {
  9229. LIGHT_DIRECTIONAL,
  9230. LIGHT_SPOT,
  9231. LIGHT_POINT,
  9232. };
  9233. enum Orientation
  9234. {
  9235. O_HORIZONTAL,
  9236. O_VERTICAL,
  9237. };
  9238. enum PassLightingMode
  9239. {
  9240. LIGHTING_UNLIT,
  9241. LIGHTING_PERVERTEX,
  9242. LIGHTING_PERPIXEL,
  9243. };
  9244. enum PrimitiveType
  9245. {
  9246. TRIANGLE_LIST,
  9247. LINE_LIST,
  9248. };
  9249. enum RayQueryLevel
  9250. {
  9251. RAY_AABB,
  9252. RAY_OBB,
  9253. RAY_TRIANGLE,
  9254. };
  9255. enum RenderCommandSortMode
  9256. {
  9257. SORT_FRONTTOBACK,
  9258. SORT_BACKTOFRONT,
  9259. };
  9260. enum RenderCommandType
  9261. {
  9262. CMD_NONE,
  9263. CMD_CLEAR,
  9264. CMD_SCENEPASS,
  9265. CMD_QUAD,
  9266. CMD_FORWARDLIGHTS,
  9267. CMD_LIGHTVOLUMES,
  9268. };
  9269. enum RenderSurfaceUpdateMode
  9270. {
  9271. SURFACE_MANUALUPDATE,
  9272. SURFACE_UPDATEVISIBLE,
  9273. SURFACE_UPDATEALWAYS,
  9274. };
  9275. enum RenderTargetSizeMode
  9276. {
  9277. SIZE_ABSOLUTE,
  9278. SIZE_RENDERTARGETDIVISOR,
  9279. SIZE_VIEWPORTDIVISOR,
  9280. };
  9281. enum ShapeType
  9282. {
  9283. SHAPE_BOX,
  9284. SHAPE_SPHERE,
  9285. SHAPE_STATICPLANE,
  9286. SHAPE_CYLINDER,
  9287. SHAPE_CAPSULE,
  9288. SHAPE_CONE,
  9289. SHAPE_TRIANGLEMESH,
  9290. SHAPE_CONVEXHULL,
  9291. SHAPE_TERRAIN,
  9292. };
  9293. enum SoundType
  9294. {
  9295. SOUND_EFFECT,
  9296. SOUND_AMBIENT,
  9297. SOUND_VOICE,
  9298. SOUND_MUSIC,
  9299. SOUND_MASTER,
  9300. };
  9301. enum TextEffect
  9302. {
  9303. TE_NONE,
  9304. TE_SHADOW,
  9305. TE_STROKE,
  9306. };
  9307. enum TextureAddressMode
  9308. {
  9309. ADDRESS_WRAP,
  9310. ADDRESS_MIRROR,
  9311. ADDRESS_CLAMP,
  9312. ADDRESS_BORDER,
  9313. };
  9314. enum TextureCoordinate
  9315. {
  9316. COORD_U,
  9317. COORD_V,
  9318. COORD_W,
  9319. };
  9320. enum TextureFilterMode
  9321. {
  9322. FILTER_NEAREST,
  9323. FILTER_BILINEAR,
  9324. FILTER_TRILINEAR,
  9325. FILTER_ANISOTROPIC,
  9326. FILTER_DEFAULT,
  9327. };
  9328. enum TextureUnit
  9329. {
  9330. TU_DIFFUSE,
  9331. TU_NORMAL,
  9332. TU_SPECULAR,
  9333. TU_EMISSIVE,
  9334. TU_ENVIRONMENT,
  9335. TU_LIGHTRAMP,
  9336. TU_LIGHTSHAPE,
  9337. TU_SHADOWMAP,
  9338. TU_FACESELECT,
  9339. TU_INDIRECTION,
  9340. TU_ALBEDOBUFFER,
  9341. TU_NORMALBUFFER,
  9342. TU_DEPTHBUFFER,
  9343. TU_LIGHTBUFFER,
  9344. TU_VOLUMEMAP,
  9345. MAX_MATERIAL_TEXTURE_UNITS,
  9346. MAX_TEXTURE_UNITS,
  9347. };
  9348. enum TextureUsage
  9349. {
  9350. TEXTURE_STATIC,
  9351. TEXTURE_DYNAMIC,
  9352. TEXTURE_RENDERTARGET,
  9353. TEXTURE_DEPTHSTENCIL,
  9354. };
  9355. enum TraversalMode
  9356. {
  9357. TM_BREADTH_FIRST,
  9358. TM_DEPTH_FIRST,
  9359. };
  9360. enum VariantType
  9361. {
  9362. VAR_NONE,
  9363. VAR_INT,
  9364. VAR_BOOL,
  9365. VAR_FLOAT,
  9366. VAR_VECTOR2,
  9367. VAR_VECTOR3,
  9368. VAR_VECTOR4,
  9369. VAR_QUATERNION,
  9370. VAR_COLOR,
  9371. VAR_STRING,
  9372. VAR_BUFFER,
  9373. VAR_VOIDPTR,
  9374. VAR_RESOURCEREF,
  9375. VAR_RESOURCEREFLIST,
  9376. VAR_VARIANTVECTOR,
  9377. VAR_VARIANTMAP,
  9378. VAR_INTRECT,
  9379. VAR_INTVECTOR2,
  9380. VAR_PTR,
  9381. };
  9382. enum VerticalAlignment
  9383. {
  9384. VA_TOP,
  9385. VA_CENTER,
  9386. VA_BOTTOM,
  9387. };
  9388. // Global functions
  9389. float Abs(float);
  9390. float Acos(float);
  9391. String AddTrailingSlash(const String&);
  9392. float Asin(float);
  9393. float Atan(float);
  9394. float Atan2(float, float);
  9395. float Ceil(float);
  9396. float Clamp(float, float, float);
  9397. int Clamp(int, int, int);
  9398. void ClearDelayedExecute(const String& = String ( ));
  9399. float Cos(float);
  9400. void DelayedExecute(float, bool, const String&);
  9401. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  9402. bool Equals(float, float);
  9403. void ErrorDialog(const String&, const String&);
  9404. float Floor(float);
  9405. uint GetAlphaFormat();
  9406. Array<String> GetArguments();
  9407. String GetConsoleInput();
  9408. uint GetDepthStencilFormat();
  9409. Object GetEventSender();
  9410. String GetExtension(const String&, bool = true);
  9411. String GetFileName(const String&);
  9412. String GetFileNameAndExtension(const String&, bool = false);
  9413. uint GetFloat16Format();
  9414. uint GetFloat32Format();
  9415. uint GetFormat(const String&);
  9416. String GetInternalPath(const String&);
  9417. uint GetLuminanceAlphaFormat();
  9418. uint GetLuminanceFormat();
  9419. uint GetNumLogicalCPUs();
  9420. uint GetNumPhysicalCPUs();
  9421. Array<String> GetObjectCategories();
  9422. Array<String> GetObjectsByCategory(const String&);
  9423. String GetParentPath(const String&);
  9424. String GetPath(const String&);
  9425. String GetPlatform();
  9426. uint GetRG16Format();
  9427. uint GetRGBA16Format();
  9428. uint GetRGBAFloat16Format();
  9429. uint GetRGBAFloat32Format();
  9430. uint GetRGBAFormat();
  9431. uint GetRGBFormat();
  9432. uint GetRGFloat16Format();
  9433. uint GetRGFloat32Format();
  9434. uint GetRandomSeed();
  9435. String GetTextureUnitName(TextureUnit);
  9436. bool IsAbsolutePath(const String&);
  9437. bool IsAlpha(uint);
  9438. bool IsDigit(uint);
  9439. bool IsNaN(float);
  9440. bool IsPowerOfTwo(uint);
  9441. String Join(Array<String>&, const String&);
  9442. float Lerp(float, float, float);
  9443. void MarkNetworkUpdate();
  9444. float Max(float, float);
  9445. int Max(int, int);
  9446. float Min(float, float);
  9447. int Min(int, int);
  9448. float Mod(float, float);
  9449. uint NextPowerOfTwo(uint);
  9450. void OpenConsoleWindow();
  9451. float Pow(float, float);
  9452. void Print(bool, bool = false);
  9453. void Print(const String&, bool = false);
  9454. void Print(const Variant&, bool = false);
  9455. void Print(float, bool = false);
  9456. void Print(int, bool = false);
  9457. void Print(uint, bool = false);
  9458. void PrintCallStack(bool = false);
  9459. float Random();
  9460. float Random(float);
  9461. float Random(float, float);
  9462. int RandomInt();
  9463. int RandomInt(int);
  9464. int RandomInt(int, int);
  9465. float RandomNormal(float, float);
  9466. void Remove();
  9467. String RemoveTrailingSlash(const String&);
  9468. String ReplaceExtension(const String&, const String&);
  9469. uint SDBMHash(uint, uint8);
  9470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9471. void SetRandomSeed(uint);
  9472. float Sign(float);
  9473. float Sin(float);
  9474. float SmoothStep(float, float, float);
  9475. float Sqrt(float);
  9476. const String& GetTypeName(ShortStringHash);
  9477. void SubscribeToEvent(Object, const String&, const String&);
  9478. void SubscribeToEvent(const String&, const String&);
  9479. float Tan(float);
  9480. uint ToLower(uint);
  9481. String ToStringHex(int);
  9482. uint ToUpper(uint);
  9483. void UnsubscribeFromAllEvents();
  9484. void UnsubscribeFromAllEventsExcept(Array<String>);
  9485. void UnsubscribeFromEvent(Object, const String&);
  9486. void UnsubscribeFromEvent(const String&);
  9487. void UnsubscribeFromEvents(Object);
  9488. // Global properties
  9489. Audio audio;
  9490. ResourceCache cache;
  9491. Console console;
  9492. DebugHud debugHud;
  9493. DebugRenderer debugRenderer;
  9494. Engine engine;
  9495. FileSystem fileSystem;
  9496. Graphics graphics;
  9497. Input input;
  9498. Log log;
  9499. Network network;
  9500. Node node;
  9501. Octree octree;
  9502. PhysicsWorld physicsWorld;
  9503. PhysicsWorld2D physicsWorld2D;
  9504. Renderer renderer;
  9505. ResourceCache resourceCache;
  9506. Scene scene;
  9507. Script script;
  9508. ScriptFile scriptFile;
  9509. ScriptInstance self;
  9510. Time time;
  9511. UI ui;
  9512. // Global constants
  9513. uint AM_COMPONENTID;
  9514. uint AM_DEFAULT;
  9515. uint AM_FILE;
  9516. uint AM_LATESTDATA;
  9517. uint AM_NET;
  9518. uint AM_NODEID;
  9519. uint AM_NODEIDVECTOR;
  9520. uint AM_NOEDIT;
  9521. int CONTROLLER_AXIS_LEFTX;
  9522. int CONTROLLER_AXIS_LEFTY;
  9523. int CONTROLLER_AXIS_RIGHTX;
  9524. int CONTROLLER_AXIS_RIGHTY;
  9525. int CONTROLLER_AXIS_TRIGGERLEFT;
  9526. int CONTROLLER_AXIS_TRIGGERRIGHT;
  9527. int CONTROLLER_BUTTON_A;
  9528. int CONTROLLER_BUTTON_B;
  9529. int CONTROLLER_BUTTON_BACK;
  9530. int CONTROLLER_BUTTON_DPAD_DOWN;
  9531. int CONTROLLER_BUTTON_DPAD_LEFT;
  9532. int CONTROLLER_BUTTON_DPAD_RIGHT;
  9533. int CONTROLLER_BUTTON_DPAD_UP;
  9534. int CONTROLLER_BUTTON_GUIDE;
  9535. int CONTROLLER_BUTTON_LEFTSHOULDER;
  9536. int CONTROLLER_BUTTON_LEFTSTICK;
  9537. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  9538. int CONTROLLER_BUTTON_RIGHTSTICK;
  9539. int CONTROLLER_BUTTON_START;
  9540. int CONTROLLER_BUTTON_X;
  9541. int CONTROLLER_BUTTON_Y;
  9542. uint DD_DISABLED;
  9543. uint DD_SOURCE;
  9544. uint DD_SOURCE_AND_TARGET;
  9545. uint DD_TARGET;
  9546. uint DEBUGHUD_SHOW_ALL;
  9547. uint DEBUGHUD_SHOW_MODE;
  9548. uint DEBUGHUD_SHOW_NONE;
  9549. uint DEBUGHUD_SHOW_PROFILER;
  9550. uint DEBUGHUD_SHOW_STATS;
  9551. uint DEFAULT_LIGHTMASK;
  9552. uint DEFAULT_VIEWMASK;
  9553. uint DRAWABLE_ANY;
  9554. uint DRAWABLE_GEOMETRY;
  9555. uint DRAWABLE_LIGHT;
  9556. uint DRAWABLE_ZONE;
  9557. uint FIRST_LOCAL_ID;
  9558. uint FIRST_REPLICATED_ID;
  9559. int HAT_CENTER;
  9560. int HAT_DOWN;
  9561. int HAT_LEFT;
  9562. int HAT_RIGHT;
  9563. int HAT_UP;
  9564. int KEY_0;
  9565. int KEY_1;
  9566. int KEY_2;
  9567. int KEY_3;
  9568. int KEY_4;
  9569. int KEY_5;
  9570. int KEY_6;
  9571. int KEY_7;
  9572. int KEY_8;
  9573. int KEY_9;
  9574. int KEY_A;
  9575. int KEY_ALT;
  9576. int KEY_APPLICATION;
  9577. int KEY_B;
  9578. int KEY_BACKSPACE;
  9579. int KEY_C;
  9580. int KEY_CAPSLOCK;
  9581. int KEY_CTRL;
  9582. int KEY_D;
  9583. int KEY_DELETE;
  9584. int KEY_DOWN;
  9585. int KEY_E;
  9586. int KEY_END;
  9587. int KEY_ESC;
  9588. int KEY_F;
  9589. int KEY_F1;
  9590. int KEY_F10;
  9591. int KEY_F11;
  9592. int KEY_F12;
  9593. int KEY_F13;
  9594. int KEY_F14;
  9595. int KEY_F15;
  9596. int KEY_F16;
  9597. int KEY_F17;
  9598. int KEY_F18;
  9599. int KEY_F19;
  9600. int KEY_F2;
  9601. int KEY_F20;
  9602. int KEY_F21;
  9603. int KEY_F22;
  9604. int KEY_F23;
  9605. int KEY_F24;
  9606. int KEY_F3;
  9607. int KEY_F4;
  9608. int KEY_F5;
  9609. int KEY_F6;
  9610. int KEY_F7;
  9611. int KEY_F8;
  9612. int KEY_F9;
  9613. int KEY_G;
  9614. int KEY_GUI;
  9615. int KEY_H;
  9616. int KEY_HOME;
  9617. int KEY_I;
  9618. int KEY_INSERT;
  9619. int KEY_J;
  9620. int KEY_K;
  9621. int KEY_KP_0;
  9622. int KEY_KP_1;
  9623. int KEY_KP_2;
  9624. int KEY_KP_3;
  9625. int KEY_KP_4;
  9626. int KEY_KP_5;
  9627. int KEY_KP_6;
  9628. int KEY_KP_7;
  9629. int KEY_KP_8;
  9630. int KEY_KP_9;
  9631. int KEY_KP_DIVIDE;
  9632. int KEY_KP_ENTER;
  9633. int KEY_KP_MINUS;
  9634. int KEY_KP_MULTIPLY;
  9635. int KEY_KP_PERIOD;
  9636. int KEY_KP_PLUS;
  9637. int KEY_L;
  9638. int KEY_LALT;
  9639. int KEY_LCTRL;
  9640. int KEY_LEFT;
  9641. int KEY_LGUI;
  9642. int KEY_LSHIFT;
  9643. int KEY_M;
  9644. int KEY_N;
  9645. int KEY_NUMLOCKCLEAR;
  9646. int KEY_O;
  9647. int KEY_P;
  9648. int KEY_PAGEDOWN;
  9649. int KEY_PAGEUP;
  9650. int KEY_PAUSE;
  9651. int KEY_PRINTSCREEN;
  9652. int KEY_Q;
  9653. int KEY_R;
  9654. int KEY_RALT;
  9655. int KEY_RCTRL;
  9656. int KEY_RETURN;
  9657. int KEY_RETURN2;
  9658. int KEY_RGUI;
  9659. int KEY_RIGHT;
  9660. int KEY_RSHIFT;
  9661. int KEY_S;
  9662. int KEY_SCROLLLOCK;
  9663. int KEY_SELECT;
  9664. int KEY_SHIFT;
  9665. int KEY_SPACE;
  9666. int KEY_T;
  9667. int KEY_TAB;
  9668. int KEY_U;
  9669. int KEY_UP;
  9670. int KEY_V;
  9671. int KEY_W;
  9672. int KEY_X;
  9673. int KEY_Y;
  9674. int KEY_Z;
  9675. uint LAST_LOCAL_ID;
  9676. uint LAST_REPLICATED_ID;
  9677. int LOG_DEBUG;
  9678. int LOG_ERROR;
  9679. int LOG_INFO;
  9680. int LOG_NONE;
  9681. int LOG_WARNING;
  9682. int MOUSEB_LEFT;
  9683. int MOUSEB_MIDDLE;
  9684. int MOUSEB_RIGHT;
  9685. float M_DEGTORAD;
  9686. float M_DEGTORAD_2;
  9687. float M_EPSILON;
  9688. float M_HALF_PI;
  9689. float M_INFINITY;
  9690. float M_LARGE_EPSILON;
  9691. float M_LARGE_VALUE;
  9692. int M_MAX_INT;
  9693. uint M_MAX_UNSIGNED;
  9694. int M_MIN_INT;
  9695. uint M_MIN_UNSIGNED;
  9696. float M_PI;
  9697. float M_RADTODEG;
  9698. float PIXEL_SIZE;
  9699. int QUALITY_HIGH;
  9700. int QUALITY_LOW;
  9701. int QUALITY_MAX;
  9702. int QUALITY_MEDIUM;
  9703. int QUAL_ALT;
  9704. int QUAL_ANY;
  9705. int QUAL_CTRL;
  9706. int QUAL_SHIFT;
  9707. int SCANCODE_0;
  9708. int SCANCODE_1;
  9709. int SCANCODE_2;
  9710. int SCANCODE_3;
  9711. int SCANCODE_4;
  9712. int SCANCODE_5;
  9713. int SCANCODE_6;
  9714. int SCANCODE_7;
  9715. int SCANCODE_8;
  9716. int SCANCODE_9;
  9717. int SCANCODE_A;
  9718. int SCANCODE_AC_BACK;
  9719. int SCANCODE_AC_BOOKMARKS;
  9720. int SCANCODE_AC_FORWARD;
  9721. int SCANCODE_AC_HOME;
  9722. int SCANCODE_AC_REFRESH;
  9723. int SCANCODE_AC_SEARCH;
  9724. int SCANCODE_AC_STOP;
  9725. int SCANCODE_AGAIN;
  9726. int SCANCODE_ALT;
  9727. int SCANCODE_ALTERASE;
  9728. int SCANCODE_APOSTROPHE;
  9729. int SCANCODE_APP1;
  9730. int SCANCODE_APP2;
  9731. int SCANCODE_APPLICATION;
  9732. int SCANCODE_AUDIOMUTE;
  9733. int SCANCODE_AUDIONEXT;
  9734. int SCANCODE_AUDIOPLAY;
  9735. int SCANCODE_AUDIOPREV;
  9736. int SCANCODE_AUDIOSTOP;
  9737. int SCANCODE_B;
  9738. int SCANCODE_BACKSLASH;
  9739. int SCANCODE_BACKSPACE;
  9740. int SCANCODE_BRIGHTNESSDOWN;
  9741. int SCANCODE_BRIGHTNESSUP;
  9742. int SCANCODE_C;
  9743. int SCANCODE_CALCULATOR;
  9744. int SCANCODE_CANCEL;
  9745. int SCANCODE_CAPSLOCK;
  9746. int SCANCODE_CLEAR;
  9747. int SCANCODE_CLEARAGAIN;
  9748. int SCANCODE_COMMA;
  9749. int SCANCODE_COMPUTER;
  9750. int SCANCODE_COPY;
  9751. int SCANCODE_CRSEL;
  9752. int SCANCODE_CTRL;
  9753. int SCANCODE_CURRENCYSUBUNIT;
  9754. int SCANCODE_CURRENCYUNIT;
  9755. int SCANCODE_CUT;
  9756. int SCANCODE_D;
  9757. int SCANCODE_DECIMALSEPARATOR;
  9758. int SCANCODE_DELETE;
  9759. int SCANCODE_DISPLAYSWITCH;
  9760. int SCANCODE_DOWN;
  9761. int SCANCODE_E;
  9762. int SCANCODE_EJECT;
  9763. int SCANCODE_END;
  9764. int SCANCODE_EQUALS;
  9765. int SCANCODE_ESCAPE;
  9766. int SCANCODE_EXECUTE;
  9767. int SCANCODE_EXSEL;
  9768. int SCANCODE_F;
  9769. int SCANCODE_F1;
  9770. int SCANCODE_F10;
  9771. int SCANCODE_F11;
  9772. int SCANCODE_F12;
  9773. int SCANCODE_F13;
  9774. int SCANCODE_F14;
  9775. int SCANCODE_F15;
  9776. int SCANCODE_F16;
  9777. int SCANCODE_F17;
  9778. int SCANCODE_F18;
  9779. int SCANCODE_F19;
  9780. int SCANCODE_F2;
  9781. int SCANCODE_F20;
  9782. int SCANCODE_F21;
  9783. int SCANCODE_F22;
  9784. int SCANCODE_F23;
  9785. int SCANCODE_F24;
  9786. int SCANCODE_F3;
  9787. int SCANCODE_F4;
  9788. int SCANCODE_F5;
  9789. int SCANCODE_F6;
  9790. int SCANCODE_F7;
  9791. int SCANCODE_F8;
  9792. int SCANCODE_F9;
  9793. int SCANCODE_FIND;
  9794. int SCANCODE_G;
  9795. int SCANCODE_GRAVE;
  9796. int SCANCODE_GUI;
  9797. int SCANCODE_H;
  9798. int SCANCODE_HELP;
  9799. int SCANCODE_HOME;
  9800. int SCANCODE_I;
  9801. int SCANCODE_INSERT;
  9802. int SCANCODE_INTERNATIONAL1;
  9803. int SCANCODE_INTERNATIONAL2;
  9804. int SCANCODE_INTERNATIONAL3;
  9805. int SCANCODE_INTERNATIONAL4;
  9806. int SCANCODE_INTERNATIONAL5;
  9807. int SCANCODE_INTERNATIONAL6;
  9808. int SCANCODE_INTERNATIONAL7;
  9809. int SCANCODE_INTERNATIONAL8;
  9810. int SCANCODE_INTERNATIONAL9;
  9811. int SCANCODE_J;
  9812. int SCANCODE_K;
  9813. int SCANCODE_KBDILLUMDOWN;
  9814. int SCANCODE_KBDILLUMTOGGLE;
  9815. int SCANCODE_KBDILLUMUP;
  9816. int SCANCODE_KP_0;
  9817. int SCANCODE_KP_00;
  9818. int SCANCODE_KP_000;
  9819. int SCANCODE_KP_1;
  9820. int SCANCODE_KP_2;
  9821. int SCANCODE_KP_3;
  9822. int SCANCODE_KP_4;
  9823. int SCANCODE_KP_5;
  9824. int SCANCODE_KP_6;
  9825. int SCANCODE_KP_7;
  9826. int SCANCODE_KP_8;
  9827. int SCANCODE_KP_9;
  9828. int SCANCODE_KP_A;
  9829. int SCANCODE_KP_AMPERSAND;
  9830. int SCANCODE_KP_AT;
  9831. int SCANCODE_KP_B;
  9832. int SCANCODE_KP_BACKSPACE;
  9833. int SCANCODE_KP_BINARY;
  9834. int SCANCODE_KP_C;
  9835. int SCANCODE_KP_CLEAR;
  9836. int SCANCODE_KP_CLEARENTRY;
  9837. int SCANCODE_KP_COLON;
  9838. int SCANCODE_KP_COMMA;
  9839. int SCANCODE_KP_D;
  9840. int SCANCODE_KP_DBLAMPERSAND;
  9841. int SCANCODE_KP_DBLVERTICALBAR;
  9842. int SCANCODE_KP_DECIMAL;
  9843. int SCANCODE_KP_DIVIDE;
  9844. int SCANCODE_KP_E;
  9845. int SCANCODE_KP_ENTER;
  9846. int SCANCODE_KP_EQUALS;
  9847. int SCANCODE_KP_EQUALSAS400;
  9848. int SCANCODE_KP_EXCLAM;
  9849. int SCANCODE_KP_F;
  9850. int SCANCODE_KP_GREATER;
  9851. int SCANCODE_KP_HASH;
  9852. int SCANCODE_KP_HEXADECIMAL;
  9853. int SCANCODE_KP_LEFTBRACE;
  9854. int SCANCODE_KP_LEFTPAREN;
  9855. int SCANCODE_KP_LESS;
  9856. int SCANCODE_KP_MEMADD;
  9857. int SCANCODE_KP_MEMCLEAR;
  9858. int SCANCODE_KP_MEMDIVIDE;
  9859. int SCANCODE_KP_MEMMULTIPLY;
  9860. int SCANCODE_KP_MEMRECALL;
  9861. int SCANCODE_KP_MEMSTORE;
  9862. int SCANCODE_KP_MEMSUBTRACT;
  9863. int SCANCODE_KP_MINUS;
  9864. int SCANCODE_KP_MULTIPLY;
  9865. int SCANCODE_KP_OCTAL;
  9866. int SCANCODE_KP_PERCENT;
  9867. int SCANCODE_KP_PERIOD;
  9868. int SCANCODE_KP_PLUS;
  9869. int SCANCODE_KP_PLUSMINUS;
  9870. int SCANCODE_KP_POWER;
  9871. int SCANCODE_KP_RIGHTBRACE;
  9872. int SCANCODE_KP_RIGHTPAREN;
  9873. int SCANCODE_KP_SPACE;
  9874. int SCANCODE_KP_TAB;
  9875. int SCANCODE_KP_VERTICALBAR;
  9876. int SCANCODE_KP_XOR;
  9877. int SCANCODE_L;
  9878. int SCANCODE_LALT;
  9879. int SCANCODE_LANG1;
  9880. int SCANCODE_LANG2;
  9881. int SCANCODE_LANG3;
  9882. int SCANCODE_LANG4;
  9883. int SCANCODE_LANG5;
  9884. int SCANCODE_LANG6;
  9885. int SCANCODE_LANG7;
  9886. int SCANCODE_LANG8;
  9887. int SCANCODE_LANG9;
  9888. int SCANCODE_LCTRL;
  9889. int SCANCODE_LEFT;
  9890. int SCANCODE_LEFTBRACKET;
  9891. int SCANCODE_LGUI;
  9892. int SCANCODE_LSHIFT;
  9893. int SCANCODE_M;
  9894. int SCANCODE_MAIL;
  9895. int SCANCODE_MEDIASELECT;
  9896. int SCANCODE_MENU;
  9897. int SCANCODE_MINUS;
  9898. int SCANCODE_MODE;
  9899. int SCANCODE_MUTE;
  9900. int SCANCODE_N;
  9901. int SCANCODE_NONUSBACKSLASH;
  9902. int SCANCODE_NONUSHASH;
  9903. int SCANCODE_NUMLOCKCLEAR;
  9904. int SCANCODE_O;
  9905. int SCANCODE_OPER;
  9906. int SCANCODE_OUT;
  9907. int SCANCODE_P;
  9908. int SCANCODE_PAGEDOWN;
  9909. int SCANCODE_PAGEUP;
  9910. int SCANCODE_PASTE;
  9911. int SCANCODE_PAUSE;
  9912. int SCANCODE_PERIOD;
  9913. int SCANCODE_POWER;
  9914. int SCANCODE_PRINTSCREEN;
  9915. int SCANCODE_PRIOR;
  9916. int SCANCODE_Q;
  9917. int SCANCODE_R;
  9918. int SCANCODE_RALT;
  9919. int SCANCODE_RCTRL;
  9920. int SCANCODE_RETURN;
  9921. int SCANCODE_RETURN2;
  9922. int SCANCODE_RGUI;
  9923. int SCANCODE_RIGHT;
  9924. int SCANCODE_RIGHTBRACKET;
  9925. int SCANCODE_RSHIFT;
  9926. int SCANCODE_S;
  9927. int SCANCODE_SCROLLLOCK;
  9928. int SCANCODE_SELECT;
  9929. int SCANCODE_SEMICOLON;
  9930. int SCANCODE_SEPARATOR;
  9931. int SCANCODE_SHIFT;
  9932. int SCANCODE_SLASH;
  9933. int SCANCODE_SLEEP;
  9934. int SCANCODE_SPACE;
  9935. int SCANCODE_STOP;
  9936. int SCANCODE_SYSREQ;
  9937. int SCANCODE_T;
  9938. int SCANCODE_TAB;
  9939. int SCANCODE_THOUSANDSSEPARATOR;
  9940. int SCANCODE_U;
  9941. int SCANCODE_UNDO;
  9942. int SCANCODE_UNKNOWN;
  9943. int SCANCODE_UP;
  9944. int SCANCODE_V;
  9945. int SCANCODE_VOLUMEDOWN;
  9946. int SCANCODE_VOLUMEUP;
  9947. int SCANCODE_W;
  9948. int SCANCODE_WWW;
  9949. int SCANCODE_X;
  9950. int SCANCODE_Y;
  9951. int SCANCODE_Z;
  9952. uint SCAN_DIRS;
  9953. uint SCAN_FILES;
  9954. uint SCAN_HIDDEN;
  9955. int SHADOWQUALITY_HIGH_16BIT;
  9956. int SHADOWQUALITY_HIGH_24BIT;
  9957. int SHADOWQUALITY_LOW_16BIT;
  9958. int SHADOWQUALITY_LOW_24BIT;
  9959. uint VO_DISABLE_OCCLUSION;
  9960. uint VO_DISABLE_SHADOWS;
  9961. uint VO_LOW_MATERIAL_QUALITY;
  9962. uint VO_NONE;