AngelScriptAPI.h 277 KB

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