AngelScriptAPI.h 273 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835
  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. uint AddScreenJoystick(bool = false, XMLFile = null, XMLFile = null);
  4129. void CloseJoystick(uint);
  4130. bool DetectJoysticks();
  4131. int GetKeyFromName(const String&) const;
  4132. int GetKeyFromScancode(int) const;
  4133. String GetKeyName(int) const;
  4134. int GetScancodeFromKey(int) const;
  4135. int GetScancodeFromName(const String&) const;
  4136. String GetScancodeName(int) const;
  4137. bool OpenJoystick(uint);
  4138. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4139. // Properties:
  4140. /* readonly */
  4141. ShortStringHash baseType;
  4142. /* readonly */
  4143. String category;
  4144. /* readonly */
  4145. bool focus;
  4146. /* readonly */
  4147. Array<String> joystickNames;
  4148. /* readonly */
  4149. Array<JoystickState> joysticks;
  4150. /* readonly */
  4151. Array<bool> keyDown;
  4152. /* readonly */
  4153. Array<bool> keyPress;
  4154. /* readonly */
  4155. bool minimized;
  4156. /* readonly */
  4157. Array<bool> mouseButtonDown;
  4158. /* readonly */
  4159. Array<bool> mouseButtonPress;
  4160. /* readonly */
  4161. IntVector2 mouseMove;
  4162. /* readonly */
  4163. int mouseMoveWheel;
  4164. /* readonly */
  4165. int mouseMoveX;
  4166. /* readonly */
  4167. int mouseMoveY;
  4168. /* readonly */
  4169. IntVector2 mousePosition;
  4170. bool mouseVisible;
  4171. /* readonly */
  4172. uint numJoysticks;
  4173. /* readonly */
  4174. uint numTouches;
  4175. /* readonly */
  4176. Array<bool> qualifierDown;
  4177. /* readonly */
  4178. Array<bool> qualifierPress;
  4179. /* readonly */
  4180. int qualifiers;
  4181. /* readonly */
  4182. int refs;
  4183. /* readonly */
  4184. Array<bool> scancodeDown;
  4185. /* readonly */
  4186. Array<bool> scancodePress;
  4187. /* readonly */
  4188. bool screenKeyboardSupport;
  4189. bool screenKeyboardVisible;
  4190. bool toggleFullscreen;
  4191. /* readonly */
  4192. Array<TouchState> touches;
  4193. /* readonly */
  4194. ShortStringHash type;
  4195. /* readonly */
  4196. String typeName;
  4197. /* readonly */
  4198. int weakRefs;
  4199. };
  4200. class IntRect
  4201. {
  4202. // Methods:
  4203. Intersection IsInside(const IntVector2&) const;
  4204. // Properties:
  4205. int bottom;
  4206. /* readonly */
  4207. Array<int> data;
  4208. /* readonly */
  4209. int height;
  4210. int left;
  4211. int right;
  4212. /* readonly */
  4213. IntVector2 size;
  4214. int top;
  4215. /* readonly */
  4216. int width;
  4217. };
  4218. class IntVector2
  4219. {
  4220. // Methods:
  4221. String ToString() const;
  4222. // Properties:
  4223. /* readonly */
  4224. Array<int> data;
  4225. int x;
  4226. int y;
  4227. };
  4228. class JoystickState
  4229. {
  4230. // Properties:
  4231. /* readonly */
  4232. Array<float> axisPosition;
  4233. /* readonly */
  4234. Array<bool> buttonDown;
  4235. /* readonly */
  4236. Array<bool> buttonPress;
  4237. /* readonly */
  4238. Array<int> hatPosition;
  4239. String name;
  4240. /* readonly */
  4241. uint numAxes;
  4242. /* readonly */
  4243. uint numButtons;
  4244. /* readonly */
  4245. uint numHats;
  4246. };
  4247. class Light
  4248. {
  4249. // Methods:
  4250. void ApplyAttributes();
  4251. void DrawDebugGeometry(DebugRenderer, bool);
  4252. Variant GetAttribute(const String&) const;
  4253. AttributeAnimation GetAttributeAnimation(const String&) const;
  4254. float GetAttributeAnimationSpeed(const String&) const;
  4255. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4256. Variant GetAttributeDefault(const String&) const;
  4257. bool IsInView(Camera) const;
  4258. bool Load(File, bool = false);
  4259. bool LoadXML(const XMLElement&, bool = false);
  4260. void MarkNetworkUpdate() const;
  4261. void Remove();
  4262. void RemoveInstanceDefault();
  4263. void ResetToDefault();
  4264. bool Save(File) const;
  4265. bool SaveXML(XMLElement&) const;
  4266. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4267. bool SetAttribute(const String&, const Variant&);
  4268. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4269. void SetAttributeAnimationSpeed(const String&, float);
  4270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4271. // Properties:
  4272. bool animationEnabled;
  4273. float aspectRatio;
  4274. /* readonly */
  4275. Array<Variant> attributeDefaults;
  4276. /* readonly */
  4277. Array<AttributeInfo> attributeInfos;
  4278. Array<Variant> attributes;
  4279. /* readonly */
  4280. ShortStringHash baseType;
  4281. /* readonly */
  4282. BoundingBox boundingBox;
  4283. float brightness;
  4284. bool castShadows;
  4285. /* readonly */
  4286. String category;
  4287. Color color;
  4288. float drawDistance;
  4289. /* readonly */
  4290. Color effectiveColor;
  4291. /* readonly */
  4292. float effectiveSpecularIntensity;
  4293. bool enabled;
  4294. /* readonly */
  4295. bool enabledEffective;
  4296. float fadeDistance;
  4297. float fov;
  4298. /* readonly */
  4299. Frustum frustum;
  4300. /* readonly */
  4301. uint id;
  4302. /* readonly */
  4303. bool inView;
  4304. uint lightMask;
  4305. LightType lightType;
  4306. float lodBias;
  4307. uint maxLights;
  4308. /* readonly */
  4309. bool negative;
  4310. /* readonly */
  4311. Node node;
  4312. /* readonly */
  4313. uint numAttributes;
  4314. /* readonly */
  4315. int numShadowSplits;
  4316. ObjectAnimation objectAnimation;
  4317. bool occludee;
  4318. bool occluder;
  4319. bool perVertex;
  4320. Texture rampTexture;
  4321. float range;
  4322. /* readonly */
  4323. int refs;
  4324. BiasParameters shadowBias;
  4325. CascadeParameters shadowCascade;
  4326. float shadowDistance;
  4327. float shadowFadeDistance;
  4328. FocusParameters shadowFocus;
  4329. float shadowIntensity;
  4330. uint shadowMask;
  4331. float shadowNearFarRatio;
  4332. float shadowResolution;
  4333. Texture shapeTexture;
  4334. float specularIntensity;
  4335. bool temporary;
  4336. /* readonly */
  4337. ShortStringHash type;
  4338. /* readonly */
  4339. String typeName;
  4340. uint viewMask;
  4341. /* readonly */
  4342. int weakRefs;
  4343. /* readonly */
  4344. BoundingBox worldBoundingBox;
  4345. uint zoneMask;
  4346. };
  4347. class LineEdit
  4348. {
  4349. // Methods:
  4350. void AddChild(UIElement);
  4351. void ApplyAttributes();
  4352. void BringToFront();
  4353. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4354. void DisableLayoutUpdate();
  4355. IntVector2 ElementToScreen(const IntVector2&);
  4356. void EnableLayoutUpdate();
  4357. uint FindChild(UIElement) const;
  4358. Variant GetAttribute(const String&) const;
  4359. AttributeAnimation GetAttributeAnimation(const String&) const;
  4360. float GetAttributeAnimationSpeed(const String&) const;
  4361. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4362. Variant GetAttributeDefault(const String&) const;
  4363. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4364. UIElement GetChild(const String&, bool = false) const;
  4365. Array<UIElement> GetChildren(bool = false) const;
  4366. UIElement GetElementEventSender() const;
  4367. uint GetNumChildren(bool) const;
  4368. void InsertChild(uint, UIElement);
  4369. bool IsInside(IntVector2, bool);
  4370. bool IsInsideCombined(IntVector2, bool);
  4371. bool Load(File, bool = false);
  4372. bool LoadChildXML(XMLFile, XMLFile = null);
  4373. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4374. bool LoadXML(File);
  4375. bool LoadXML(XMLFile, XMLFile);
  4376. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4377. bool LoadXML(const XMLElement&, bool = false);
  4378. void Remove();
  4379. void RemoveAllChildren();
  4380. void RemoveChild(UIElement, uint = 0);
  4381. void RemoveChild(uint);
  4382. void RemoveInstanceDefault();
  4383. void ResetToDefault();
  4384. bool Save(File) const;
  4385. bool SaveXML(File);
  4386. bool SaveXML(XMLElement&) const;
  4387. IntVector2 ScreenToElement(const IntVector2&);
  4388. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4389. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4390. bool SetAttribute(const String&, const Variant&);
  4391. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4392. void SetAttributeAnimationSpeed(const String&, float);
  4393. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4394. void SetFixedHeight(int);
  4395. void SetFixedSize(int, int);
  4396. void SetFixedWidth(int);
  4397. void SetFullImageRect();
  4398. void SetHoverOffset(int, int);
  4399. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4400. void SetMaxSize(int, int);
  4401. void SetMinSize(int, int);
  4402. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4403. void SetPosition(int, int);
  4404. void SetSize(int, int);
  4405. bool SetStyle(const String&, XMLFile = null);
  4406. bool SetStyle(const XMLElement&);
  4407. bool SetStyleAuto(XMLFile = null);
  4408. void UpdateLayout();
  4409. const Variant& GetVar(const ShortStringHash&);
  4410. // Properties:
  4411. bool animationEnabled;
  4412. /* readonly */
  4413. Array<Variant> attributeDefaults;
  4414. /* readonly */
  4415. Array<AttributeInfo> attributeInfos;
  4416. Array<Variant> attributes;
  4417. /* readonly */
  4418. ShortStringHash baseType;
  4419. BlendMode blendMode;
  4420. IntRect border;
  4421. bool bringToBack;
  4422. bool bringToFront;
  4423. /* readonly */
  4424. String category;
  4425. /* readonly */
  4426. IntVector2 childOffset;
  4427. /* readonly */
  4428. Array<UIElement> children;
  4429. IntRect clipBorder;
  4430. bool clipChildren;
  4431. /* writeonly */
  4432. Color color;
  4433. /* readonly */
  4434. bool colorGradient;
  4435. Array<Color> colors;
  4436. /* readonly */
  4437. IntRect combinedScreenRect;
  4438. /* readonly */
  4439. BorderImage cursor;
  4440. float cursorBlinkRate;
  4441. bool cursorMovable;
  4442. uint cursorPosition;
  4443. XMLFile defaultStyle;
  4444. /* readonly */
  4445. float derivedOpacity;
  4446. uint dragDropMode;
  4447. uint echoCharacter;
  4448. bool editable;
  4449. bool elementEventSender;
  4450. bool enabled;
  4451. /* readonly */
  4452. bool fixedHeight;
  4453. /* readonly */
  4454. bool fixedSize;
  4455. /* readonly */
  4456. bool fixedWidth;
  4457. bool focus;
  4458. FocusMode focusMode;
  4459. int height;
  4460. HorizontalAlignment horizontalAlignment;
  4461. IntVector2 hoverOffset;
  4462. /* readonly */
  4463. bool hovering;
  4464. IntRect imageBorder;
  4465. IntRect imageRect;
  4466. int indent;
  4467. int indentSpacing;
  4468. /* readonly */
  4469. int indentWidth;
  4470. bool internal;
  4471. IntRect layoutBorder;
  4472. LayoutMode layoutMode;
  4473. int layoutSpacing;
  4474. int maxHeight;
  4475. uint maxLength;
  4476. IntVector2 maxSize;
  4477. int maxWidth;
  4478. int minHeight;
  4479. IntVector2 minSize;
  4480. int minWidth;
  4481. String name;
  4482. /* readonly */
  4483. uint numAllChildren;
  4484. /* readonly */
  4485. uint numAttributes;
  4486. /* readonly */
  4487. uint numChildren;
  4488. ObjectAnimation objectAnimation;
  4489. float opacity;
  4490. UIElement parent;
  4491. IntVector2 position;
  4492. int priority;
  4493. /* readonly */
  4494. int refs;
  4495. /* readonly */
  4496. UIElement root;
  4497. /* readonly */
  4498. IntVector2 screenPosition;
  4499. bool selected;
  4500. IntVector2 size;
  4501. bool sortChildren;
  4502. String style;
  4503. bool temporary;
  4504. String text;
  4505. bool textCopyable;
  4506. /* readonly */
  4507. Text textElement;
  4508. bool textSelectable;
  4509. Texture texture;
  4510. bool tiled;
  4511. TraversalMode traversalMode;
  4512. /* readonly */
  4513. ShortStringHash type;
  4514. /* readonly */
  4515. String typeName;
  4516. bool useDerivedOpacity;
  4517. /* readonly */
  4518. VariantMap vars;
  4519. VerticalAlignment verticalAlignment;
  4520. bool visible;
  4521. /* readonly */
  4522. int weakRefs;
  4523. int width;
  4524. };
  4525. class ListView
  4526. {
  4527. // Methods:
  4528. void AddChild(UIElement);
  4529. void AddItem(UIElement);
  4530. void AddSelection(uint);
  4531. void ApplyAttributes();
  4532. void BringToFront();
  4533. void ChangeSelection(int, bool);
  4534. void ClearSelection();
  4535. void CopySelectedItemsToClipboard();
  4536. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4537. void DisableLayoutUpdate();
  4538. IntVector2 ElementToScreen(const IntVector2&);
  4539. void EnableLayoutUpdate();
  4540. void Expand(uint, bool, bool = false);
  4541. uint FindChild(UIElement) const;
  4542. uint FindItem(UIElement);
  4543. Variant GetAttribute(const String&) const;
  4544. AttributeAnimation GetAttributeAnimation(const String&) const;
  4545. float GetAttributeAnimationSpeed(const String&) const;
  4546. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4547. Variant GetAttributeDefault(const String&) const;
  4548. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4549. UIElement GetChild(const String&, bool = false) const;
  4550. Array<UIElement> GetChildren(bool = false) const;
  4551. UIElement GetElementEventSender() const;
  4552. Array<UIElement> GetItems() const;
  4553. uint GetNumChildren(bool) const;
  4554. void InsertChild(uint, UIElement);
  4555. void InsertItem(uint, UIElement, UIElement = null);
  4556. bool IsExpanded(uint) const;
  4557. bool IsInside(IntVector2, bool);
  4558. bool IsInsideCombined(IntVector2, bool);
  4559. bool IsSelected(uint) const;
  4560. bool Load(File, bool = false);
  4561. bool LoadChildXML(XMLFile, XMLFile = null);
  4562. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4563. bool LoadXML(File);
  4564. bool LoadXML(XMLFile, XMLFile);
  4565. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4566. bool LoadXML(const XMLElement&, bool = false);
  4567. void Remove();
  4568. void RemoveAllChildren();
  4569. void RemoveAllItems();
  4570. void RemoveChild(UIElement, uint = 0);
  4571. void RemoveChild(uint);
  4572. void RemoveInstanceDefault();
  4573. void RemoveItem(UIElement, uint = 0);
  4574. void RemoveItem(uint);
  4575. void RemoveSelection(uint);
  4576. void ResetToDefault();
  4577. bool Save(File) const;
  4578. bool SaveXML(File);
  4579. bool SaveXML(XMLElement&) const;
  4580. IntVector2 ScreenToElement(const IntVector2&);
  4581. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4582. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4583. bool SetAttribute(const String&, const Variant&);
  4584. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4585. void SetAttributeAnimationSpeed(const String&, float);
  4586. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4587. void SetFixedHeight(int);
  4588. void SetFixedSize(int, int);
  4589. void SetFixedWidth(int);
  4590. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4591. void SetMaxSize(int, int);
  4592. void SetMinSize(int, int);
  4593. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4594. void SetPosition(int, int);
  4595. void SetScrollBarsVisible(bool, bool);
  4596. void SetSelections(Array<uint>);
  4597. void SetSize(int, int);
  4598. bool SetStyle(const String&, XMLFile = null);
  4599. bool SetStyle(const XMLElement&);
  4600. bool SetStyleAuto(XMLFile = null);
  4601. void SetViewPosition(int, int);
  4602. void ToggleExpand(uint, bool = false);
  4603. void ToggleSelection(uint);
  4604. void UpdateLayout();
  4605. const Variant& GetVar(const ShortStringHash&);
  4606. // Properties:
  4607. bool animationEnabled;
  4608. /* readonly */
  4609. Array<Variant> attributeDefaults;
  4610. /* readonly */
  4611. Array<AttributeInfo> attributeInfos;
  4612. Array<Variant> attributes;
  4613. int baseIndent;
  4614. /* readonly */
  4615. ShortStringHash baseType;
  4616. bool bringToBack;
  4617. bool bringToFront;
  4618. /* readonly */
  4619. String category;
  4620. /* readonly */
  4621. IntVector2 childOffset;
  4622. /* readonly */
  4623. Array<UIElement> children;
  4624. bool clearSelectionOnDefocus;
  4625. IntRect clipBorder;
  4626. bool clipChildren;
  4627. /* writeonly */
  4628. Color color;
  4629. /* readonly */
  4630. bool colorGradient;
  4631. Array<Color> colors;
  4632. /* readonly */
  4633. IntRect combinedScreenRect;
  4634. /* readonly */
  4635. UIElement contentElement;
  4636. XMLFile defaultStyle;
  4637. /* readonly */
  4638. float derivedOpacity;
  4639. uint dragDropMode;
  4640. bool editable;
  4641. bool elementEventSender;
  4642. bool enabled;
  4643. /* readonly */
  4644. bool fixedHeight;
  4645. /* readonly */
  4646. bool fixedSize;
  4647. /* readonly */
  4648. bool fixedWidth;
  4649. bool focus;
  4650. FocusMode focusMode;
  4651. int height;
  4652. bool hierarchyMode;
  4653. HighlightMode highlightMode;
  4654. HorizontalAlignment horizontalAlignment;
  4655. /* readonly */
  4656. ScrollBar horizontalScrollBar;
  4657. /* readonly */
  4658. bool hovering;
  4659. int indent;
  4660. int indentSpacing;
  4661. /* readonly */
  4662. int indentWidth;
  4663. bool internal;
  4664. /* readonly */
  4665. Array<UIElement> items;
  4666. IntRect layoutBorder;
  4667. LayoutMode layoutMode;
  4668. int layoutSpacing;
  4669. int maxHeight;
  4670. IntVector2 maxSize;
  4671. int maxWidth;
  4672. int minHeight;
  4673. IntVector2 minSize;
  4674. int minWidth;
  4675. bool multiselect;
  4676. String name;
  4677. /* readonly */
  4678. uint numAllChildren;
  4679. /* readonly */
  4680. uint numAttributes;
  4681. /* readonly */
  4682. uint numChildren;
  4683. /* readonly */
  4684. uint numItems;
  4685. ObjectAnimation objectAnimation;
  4686. float opacity;
  4687. float pageStep;
  4688. UIElement parent;
  4689. IntVector2 position;
  4690. int priority;
  4691. /* readonly */
  4692. int refs;
  4693. /* readonly */
  4694. UIElement root;
  4695. /* readonly */
  4696. IntVector2 screenPosition;
  4697. bool scrollBarsAutoVisible;
  4698. /* readonly */
  4699. BorderImage scrollPanel;
  4700. float scrollStep;
  4701. bool selected;
  4702. /* readonly */
  4703. UIElement selectedItem;
  4704. /* readonly */
  4705. Array<UIElement> selectedItems;
  4706. uint selection;
  4707. /* readonly */
  4708. Array<uint> selections;
  4709. IntVector2 size;
  4710. bool sortChildren;
  4711. String style;
  4712. bool temporary;
  4713. TraversalMode traversalMode;
  4714. /* readonly */
  4715. ShortStringHash type;
  4716. /* readonly */
  4717. String typeName;
  4718. bool useDerivedOpacity;
  4719. /* readonly */
  4720. VariantMap vars;
  4721. VerticalAlignment verticalAlignment;
  4722. /* readonly */
  4723. ScrollBar verticalScrollBar;
  4724. IntVector2 viewPosition;
  4725. bool visible;
  4726. /* readonly */
  4727. int weakRefs;
  4728. int width;
  4729. };
  4730. class Log
  4731. {
  4732. // Methods:
  4733. void Close();
  4734. void Debug(const String&);
  4735. void Error(const String&);
  4736. void Info(const String&);
  4737. void Open(const String&);
  4738. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4739. void Warning(const String&);
  4740. void Write(const String&, bool = false);
  4741. // Properties:
  4742. /* readonly */
  4743. ShortStringHash baseType;
  4744. /* readonly */
  4745. String category;
  4746. /* readonly */
  4747. String lastMessage;
  4748. int level;
  4749. bool quiet;
  4750. /* readonly */
  4751. int refs;
  4752. bool timeStamp;
  4753. /* readonly */
  4754. ShortStringHash type;
  4755. /* readonly */
  4756. String typeName;
  4757. /* readonly */
  4758. int weakRefs;
  4759. };
  4760. class Material
  4761. {
  4762. // Methods:
  4763. Material Clone(const String& = String ( )) const;
  4764. bool Load(File);
  4765. bool Load(const XMLElement&);
  4766. void RemoveShaderParameter(const String&);
  4767. bool Save(File) const;
  4768. bool Save(XMLElement&) const;
  4769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4770. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  4771. void SetUVTransform(const Vector2&, float, const Vector2&);
  4772. void SetUVTransform(const Vector2&, float, float);
  4773. void SortTechniques();
  4774. // Properties:
  4775. /* readonly */
  4776. ShortStringHash baseType;
  4777. /* readonly */
  4778. String category;
  4779. CullMode cullMode;
  4780. BiasParameters depthBias;
  4781. /* readonly */
  4782. uint memoryUse;
  4783. String name;
  4784. uint numTechniques;
  4785. /* readonly */
  4786. bool occlusion;
  4787. /* readonly */
  4788. int refs;
  4789. /* readonly */
  4790. Array<String> shaderParameterNames;
  4791. Array<Variant> shaderParameters;
  4792. CullMode shadowCullMode;
  4793. /* readonly */
  4794. Array<TechniqueEntry> techniqueEntries;
  4795. /* readonly */
  4796. Array<Technique> techniques;
  4797. Array<Texture> textures;
  4798. /* readonly */
  4799. ShortStringHash type;
  4800. /* readonly */
  4801. String typeName;
  4802. /* readonly */
  4803. uint useTimer;
  4804. /* readonly */
  4805. int weakRefs;
  4806. };
  4807. class Matrix3
  4808. {
  4809. // Methods:
  4810. bool Equals(const Matrix3&) const;
  4811. Matrix3 Inverse() const;
  4812. Vector3 Scale() const;
  4813. Matrix3 Scaled(const Vector3&) const;
  4814. void SetScale(const Vector3&);
  4815. void SetScale(float);
  4816. String ToString() const;
  4817. Matrix3 Transpose() const;
  4818. // Properties:
  4819. float m00;
  4820. float m01;
  4821. float m02;
  4822. float m10;
  4823. float m11;
  4824. float m12;
  4825. float m20;
  4826. float m21;
  4827. float m22;
  4828. };
  4829. class Matrix3x4
  4830. {
  4831. // Methods:
  4832. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  4833. bool Equals(const Matrix3x4&) const;
  4834. Matrix3x4 Inverse() const;
  4835. Quaternion Rotation() const;
  4836. Matrix3 RotationMatrix() const;
  4837. Vector3 Scale() const;
  4838. void SetRotation(const Matrix3&);
  4839. void SetScale(const Vector3&);
  4840. void SetScale(float);
  4841. void SetTranslation(const Vector3&);
  4842. Matrix3 ToMatrix3() const;
  4843. Matrix4 ToMatrix4() const;
  4844. String ToString() const;
  4845. Vector3 Translation() const;
  4846. // Properties:
  4847. float m00;
  4848. float m01;
  4849. float m02;
  4850. float m03;
  4851. float m10;
  4852. float m11;
  4853. float m12;
  4854. float m13;
  4855. float m20;
  4856. float m21;
  4857. float m22;
  4858. float m23;
  4859. };
  4860. class Matrix4
  4861. {
  4862. // Methods:
  4863. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  4864. bool Equals(const Matrix4&) const;
  4865. Matrix4 Inverse() const;
  4866. Quaternion Rotation() const;
  4867. Matrix3 RotationMatrix() const;
  4868. Vector3 Scale() const;
  4869. void SetRotation(const Matrix3&);
  4870. void SetScale(const Vector3&);
  4871. void SetScale(float);
  4872. void SetTranslation(const Vector3&);
  4873. Matrix3 ToMatrix3() const;
  4874. String ToString() const;
  4875. Vector3 Translation() const;
  4876. Matrix4 Transpose() const;
  4877. // Properties:
  4878. float m00;
  4879. float m01;
  4880. float m02;
  4881. float m03;
  4882. float m10;
  4883. float m11;
  4884. float m12;
  4885. float m13;
  4886. float m20;
  4887. float m21;
  4888. float m22;
  4889. float m23;
  4890. float m30;
  4891. float m31;
  4892. float m32;
  4893. float m33;
  4894. };
  4895. class Menu
  4896. {
  4897. // Methods:
  4898. void AddChild(UIElement);
  4899. void ApplyAttributes();
  4900. void BringToFront();
  4901. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4902. void DisableLayoutUpdate();
  4903. IntVector2 ElementToScreen(const IntVector2&);
  4904. void EnableLayoutUpdate();
  4905. uint FindChild(UIElement) const;
  4906. Variant GetAttribute(const String&) const;
  4907. AttributeAnimation GetAttributeAnimation(const String&) const;
  4908. float GetAttributeAnimationSpeed(const String&) const;
  4909. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4910. Variant GetAttributeDefault(const String&) const;
  4911. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4912. UIElement GetChild(const String&, bool = false) const;
  4913. Array<UIElement> GetChildren(bool = false) const;
  4914. UIElement GetElementEventSender() const;
  4915. uint GetNumChildren(bool) const;
  4916. void InsertChild(uint, UIElement);
  4917. bool IsInside(IntVector2, bool);
  4918. bool IsInsideCombined(IntVector2, bool);
  4919. bool Load(File, bool = false);
  4920. bool LoadChildXML(XMLFile, XMLFile = null);
  4921. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4922. bool LoadXML(File);
  4923. bool LoadXML(XMLFile, XMLFile);
  4924. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4925. bool LoadXML(const XMLElement&, bool = false);
  4926. void Remove();
  4927. void RemoveAllChildren();
  4928. void RemoveChild(UIElement, uint = 0);
  4929. void RemoveChild(uint);
  4930. void RemoveInstanceDefault();
  4931. void ResetToDefault();
  4932. bool Save(File) const;
  4933. bool SaveXML(File);
  4934. bool SaveXML(XMLElement&) const;
  4935. IntVector2 ScreenToElement(const IntVector2&);
  4936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4937. void SetAccelerator(int, int);
  4938. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4939. bool SetAttribute(const String&, const Variant&);
  4940. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4941. void SetAttributeAnimationSpeed(const String&, float);
  4942. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4943. void SetFixedHeight(int);
  4944. void SetFixedSize(int, int);
  4945. void SetFixedWidth(int);
  4946. void SetFullImageRect();
  4947. void SetHoverOffset(int, int);
  4948. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4949. void SetMaxSize(int, int);
  4950. void SetMinSize(int, int);
  4951. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4952. void SetPopupOffset(int, int);
  4953. void SetPosition(int, int);
  4954. void SetPressedChildOffset(int, int);
  4955. void SetPressedOffset(int, int);
  4956. void SetRepeat(float, float);
  4957. void SetSize(int, int);
  4958. bool SetStyle(const String&, XMLFile = null);
  4959. bool SetStyle(const XMLElement&);
  4960. bool SetStyleAuto(XMLFile = null);
  4961. void UpdateLayout();
  4962. const Variant& GetVar(const ShortStringHash&);
  4963. // Properties:
  4964. /* readonly */
  4965. int acceleratorKey;
  4966. /* readonly */
  4967. int acceleratorQualifiers;
  4968. bool animationEnabled;
  4969. /* readonly */
  4970. Array<Variant> attributeDefaults;
  4971. /* readonly */
  4972. Array<AttributeInfo> attributeInfos;
  4973. Array<Variant> attributes;
  4974. /* readonly */
  4975. ShortStringHash baseType;
  4976. BlendMode blendMode;
  4977. IntRect border;
  4978. bool bringToBack;
  4979. bool bringToFront;
  4980. /* readonly */
  4981. String category;
  4982. /* readonly */
  4983. IntVector2 childOffset;
  4984. /* readonly */
  4985. Array<UIElement> children;
  4986. IntRect clipBorder;
  4987. bool clipChildren;
  4988. /* writeonly */
  4989. Color color;
  4990. /* readonly */
  4991. bool colorGradient;
  4992. Array<Color> colors;
  4993. /* readonly */
  4994. IntRect combinedScreenRect;
  4995. XMLFile defaultStyle;
  4996. /* readonly */
  4997. float derivedOpacity;
  4998. uint dragDropMode;
  4999. bool editable;
  5000. bool elementEventSender;
  5001. bool enabled;
  5002. /* readonly */
  5003. bool fixedHeight;
  5004. /* readonly */
  5005. bool fixedSize;
  5006. /* readonly */
  5007. bool fixedWidth;
  5008. bool focus;
  5009. FocusMode focusMode;
  5010. int height;
  5011. HorizontalAlignment horizontalAlignment;
  5012. IntVector2 hoverOffset;
  5013. /* readonly */
  5014. bool hovering;
  5015. IntRect imageBorder;
  5016. IntRect imageRect;
  5017. int indent;
  5018. int indentSpacing;
  5019. /* readonly */
  5020. int indentWidth;
  5021. bool internal;
  5022. IntRect layoutBorder;
  5023. LayoutMode layoutMode;
  5024. int layoutSpacing;
  5025. int maxHeight;
  5026. IntVector2 maxSize;
  5027. int maxWidth;
  5028. int minHeight;
  5029. IntVector2 minSize;
  5030. int minWidth;
  5031. String name;
  5032. /* readonly */
  5033. uint numAllChildren;
  5034. /* readonly */
  5035. uint numAttributes;
  5036. /* readonly */
  5037. uint numChildren;
  5038. ObjectAnimation objectAnimation;
  5039. float opacity;
  5040. UIElement parent;
  5041. UIElement popup;
  5042. IntVector2 popupOffset;
  5043. IntVector2 position;
  5044. /* readonly */
  5045. bool pressed;
  5046. IntVector2 pressedChildOffset;
  5047. IntVector2 pressedOffset;
  5048. int priority;
  5049. /* readonly */
  5050. int refs;
  5051. float repeatDelay;
  5052. float repeatRate;
  5053. /* readonly */
  5054. UIElement root;
  5055. /* readonly */
  5056. IntVector2 screenPosition;
  5057. bool selected;
  5058. bool showPopup;
  5059. IntVector2 size;
  5060. bool sortChildren;
  5061. String style;
  5062. bool temporary;
  5063. Texture texture;
  5064. bool tiled;
  5065. TraversalMode traversalMode;
  5066. /* readonly */
  5067. ShortStringHash type;
  5068. /* readonly */
  5069. String typeName;
  5070. bool useDerivedOpacity;
  5071. /* readonly */
  5072. VariantMap vars;
  5073. VerticalAlignment verticalAlignment;
  5074. bool visible;
  5075. /* readonly */
  5076. int weakRefs;
  5077. int width;
  5078. };
  5079. class MessageBox
  5080. {
  5081. // Methods:
  5082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5083. // Properties:
  5084. /* readonly */
  5085. ShortStringHash baseType;
  5086. /* readonly */
  5087. String category;
  5088. String message;
  5089. /* readonly */
  5090. int refs;
  5091. String title;
  5092. /* readonly */
  5093. ShortStringHash type;
  5094. /* readonly */
  5095. String typeName;
  5096. /* readonly */
  5097. int weakRefs;
  5098. /* readonly */
  5099. UIElement window;
  5100. };
  5101. class Model
  5102. {
  5103. // Methods:
  5104. bool Load(File);
  5105. bool Save(File) const;
  5106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5107. // Properties:
  5108. /* readonly */
  5109. ShortStringHash baseType;
  5110. /* readonly */
  5111. BoundingBox boundingBox;
  5112. /* readonly */
  5113. String category;
  5114. /* readonly */
  5115. uint memoryUse;
  5116. String name;
  5117. /* readonly */
  5118. uint numGeometries;
  5119. /* readonly */
  5120. Array<uint> numGeometryLodLevels;
  5121. /* readonly */
  5122. uint numMorphs;
  5123. /* readonly */
  5124. int refs;
  5125. /* readonly */
  5126. Skeleton skeleton;
  5127. /* readonly */
  5128. ShortStringHash type;
  5129. /* readonly */
  5130. String typeName;
  5131. /* readonly */
  5132. uint useTimer;
  5133. /* readonly */
  5134. int weakRefs;
  5135. };
  5136. class Navigable
  5137. {
  5138. // Methods:
  5139. void ApplyAttributes();
  5140. void DrawDebugGeometry(DebugRenderer, bool);
  5141. Variant GetAttribute(const String&) const;
  5142. AttributeAnimation GetAttributeAnimation(const String&) const;
  5143. float GetAttributeAnimationSpeed(const String&) const;
  5144. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5145. Variant GetAttributeDefault(const String&) const;
  5146. bool Load(File, bool = false);
  5147. bool LoadXML(const XMLElement&, bool = false);
  5148. void MarkNetworkUpdate() const;
  5149. void Remove();
  5150. void RemoveInstanceDefault();
  5151. void ResetToDefault();
  5152. bool Save(File) const;
  5153. bool SaveXML(XMLElement&) const;
  5154. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5155. bool SetAttribute(const String&, const Variant&);
  5156. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5157. void SetAttributeAnimationSpeed(const String&, float);
  5158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5159. // Properties:
  5160. bool animationEnabled;
  5161. /* readonly */
  5162. Array<Variant> attributeDefaults;
  5163. /* readonly */
  5164. Array<AttributeInfo> attributeInfos;
  5165. Array<Variant> attributes;
  5166. /* readonly */
  5167. ShortStringHash baseType;
  5168. /* readonly */
  5169. String category;
  5170. bool enabled;
  5171. /* readonly */
  5172. bool enabledEffective;
  5173. /* readonly */
  5174. uint id;
  5175. /* readonly */
  5176. Node node;
  5177. /* readonly */
  5178. uint numAttributes;
  5179. ObjectAnimation objectAnimation;
  5180. bool recursive;
  5181. /* readonly */
  5182. int refs;
  5183. bool temporary;
  5184. /* readonly */
  5185. ShortStringHash type;
  5186. /* readonly */
  5187. String typeName;
  5188. /* readonly */
  5189. int weakRefs;
  5190. };
  5191. class NavigationMesh
  5192. {
  5193. // Methods:
  5194. void ApplyAttributes();
  5195. bool Build();
  5196. bool Build(const BoundingBox&);
  5197. void DrawDebugGeometry(DebugRenderer, bool);
  5198. void DrawDebugGeometry(bool);
  5199. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5200. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5201. Variant GetAttribute(const String&) const;
  5202. AttributeAnimation GetAttributeAnimation(const String&) const;
  5203. float GetAttributeAnimationSpeed(const String&) const;
  5204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5205. Variant GetAttributeDefault(const String&) const;
  5206. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5207. Vector3 GetRandomPoint();
  5208. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5209. bool Load(File, bool = false);
  5210. bool LoadXML(const XMLElement&, bool = false);
  5211. void MarkNetworkUpdate() const;
  5212. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  5213. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5214. void Remove();
  5215. void RemoveInstanceDefault();
  5216. void ResetToDefault();
  5217. bool Save(File) const;
  5218. bool SaveXML(XMLElement&) const;
  5219. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5220. bool SetAttribute(const String&, const Variant&);
  5221. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5222. void SetAttributeAnimationSpeed(const String&, float);
  5223. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5224. // Properties:
  5225. float agentHeight;
  5226. float agentMaxClimb;
  5227. float agentMaxSlope;
  5228. float agentRadius;
  5229. bool animationEnabled;
  5230. /* readonly */
  5231. Array<Variant> attributeDefaults;
  5232. /* readonly */
  5233. Array<AttributeInfo> attributeInfos;
  5234. Array<Variant> attributes;
  5235. /* readonly */
  5236. ShortStringHash baseType;
  5237. /* readonly */
  5238. BoundingBox boundingBox;
  5239. /* readonly */
  5240. String category;
  5241. float cellHeight;
  5242. float cellSize;
  5243. float detailSampleDistance;
  5244. float detailSampleMaxError;
  5245. float edgeMaxError;
  5246. float edgeMaxLength;
  5247. bool enabled;
  5248. /* readonly */
  5249. bool enabledEffective;
  5250. /* readonly */
  5251. uint id;
  5252. /* readonly */
  5253. bool initialized;
  5254. /* readonly */
  5255. Node node;
  5256. /* readonly */
  5257. uint numAttributes;
  5258. /* readonly */
  5259. IntVector2 numTiles;
  5260. ObjectAnimation objectAnimation;
  5261. Vector3 padding;
  5262. /* readonly */
  5263. int refs;
  5264. float regionMergeSize;
  5265. float regionMinSize;
  5266. bool temporary;
  5267. int tileSize;
  5268. /* readonly */
  5269. ShortStringHash type;
  5270. /* readonly */
  5271. String typeName;
  5272. /* readonly */
  5273. int weakRefs;
  5274. /* readonly */
  5275. BoundingBox worldBoundingBox;
  5276. };
  5277. class Network
  5278. {
  5279. // Methods:
  5280. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5281. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  5282. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  5283. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  5284. bool CheckRemoteEvent(const String&) const;
  5285. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  5286. void Disconnect(int = 0);
  5287. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  5288. void RegisterRemoteEvent(const String&) const;
  5289. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5290. bool StartServer(uint16);
  5291. void StopServer();
  5292. void UnregisterAllRemoteEvents();
  5293. void UnregisterRemoteEvent(const String&) const;
  5294. // Properties:
  5295. /* readonly */
  5296. ShortStringHash baseType;
  5297. /* readonly */
  5298. String category;
  5299. /* readonly */
  5300. Array<Connection> clientConnections;
  5301. String packageCacheDir;
  5302. /* readonly */
  5303. int refs;
  5304. /* readonly */
  5305. Connection serverConnection;
  5306. /* readonly */
  5307. bool serverRunning;
  5308. /* readonly */
  5309. ShortStringHash type;
  5310. /* readonly */
  5311. String typeName;
  5312. int updateFps;
  5313. /* readonly */
  5314. int weakRefs;
  5315. };
  5316. class NetworkPriority
  5317. {
  5318. // Methods:
  5319. void ApplyAttributes();
  5320. void DrawDebugGeometry(DebugRenderer, bool);
  5321. Variant GetAttribute(const String&) const;
  5322. AttributeAnimation GetAttributeAnimation(const String&) const;
  5323. float GetAttributeAnimationSpeed(const String&) const;
  5324. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5325. Variant GetAttributeDefault(const String&) const;
  5326. bool Load(File, bool = false);
  5327. bool LoadXML(const XMLElement&, bool = false);
  5328. void MarkNetworkUpdate() const;
  5329. void Remove();
  5330. void RemoveInstanceDefault();
  5331. void ResetToDefault();
  5332. bool Save(File) const;
  5333. bool SaveXML(XMLElement&) const;
  5334. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5335. bool SetAttribute(const String&, const Variant&);
  5336. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5337. void SetAttributeAnimationSpeed(const String&, float);
  5338. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5339. // Properties:
  5340. bool alwaysUpdateOwner;
  5341. bool animationEnabled;
  5342. /* readonly */
  5343. Array<Variant> attributeDefaults;
  5344. /* readonly */
  5345. Array<AttributeInfo> attributeInfos;
  5346. Array<Variant> attributes;
  5347. float basePriority;
  5348. /* readonly */
  5349. ShortStringHash baseType;
  5350. /* readonly */
  5351. String category;
  5352. float distanceFactor;
  5353. bool enabled;
  5354. /* readonly */
  5355. bool enabledEffective;
  5356. /* readonly */
  5357. uint id;
  5358. float minPriority;
  5359. /* readonly */
  5360. Node node;
  5361. /* readonly */
  5362. uint numAttributes;
  5363. ObjectAnimation objectAnimation;
  5364. /* readonly */
  5365. int refs;
  5366. bool temporary;
  5367. /* readonly */
  5368. ShortStringHash type;
  5369. /* readonly */
  5370. String typeName;
  5371. /* readonly */
  5372. int weakRefs;
  5373. };
  5374. class Node
  5375. {
  5376. // Methods:
  5377. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5378. void ApplyAttributes();
  5379. Node Clone(CreateMode = REPLICATED);
  5380. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5381. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5382. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5383. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5384. Variant GetAttribute(const String&) const;
  5385. AttributeAnimation GetAttributeAnimation(const String&) const;
  5386. float GetAttributeAnimationSpeed(const String&) const;
  5387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5388. Variant GetAttributeDefault(const String&) const;
  5389. Node GetChild(const String&, bool = false) const;
  5390. Array<Node> GetChildren(bool = false) const;
  5391. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5392. Array<Node> GetChildrenWithScript(bool = false) const;
  5393. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5394. Component GetComponent(const String&) const;
  5395. Array<Component> GetComponents() const;
  5396. Array<Component> GetComponents(const String&, bool = false) const;
  5397. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5398. ScriptObject GetScriptObject() const;
  5399. ScriptObject GetScriptObject(const String&) const;
  5400. bool HasComponent(const String&) const;
  5401. bool Load(File, bool = false);
  5402. bool LoadXML(const XMLElement&, bool = false);
  5403. Vector3 LocalToWorld(const Vector3&) const;
  5404. Vector3 LocalToWorld(const Vector4&) const;
  5405. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  5406. void Pitch(float, TransformSpace = TS_LOCAL);
  5407. void Remove();
  5408. void RemoveAllChildren();
  5409. void RemoveAllComponents();
  5410. void RemoveChild(Node);
  5411. void RemoveChildren(bool, bool, bool);
  5412. void RemoveComponent(Component);
  5413. void RemoveComponent(const String&);
  5414. void RemoveComponents(bool, bool);
  5415. void RemoveInstanceDefault();
  5416. void ResetToDefault();
  5417. void Roll(float, TransformSpace = TS_LOCAL);
  5418. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  5419. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  5420. bool Save(File) const;
  5421. bool SaveXML(File);
  5422. bool SaveXML(XMLElement&) const;
  5423. void Scale(const Vector3&);
  5424. void Scale(float);
  5425. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5426. bool SetAttribute(const String&, const Variant&);
  5427. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5428. void SetAttributeAnimationSpeed(const String&, float);
  5429. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5430. void SetEnabled(bool, bool);
  5431. void SetScale(float);
  5432. void SetTransform(const Vector3&, const Quaternion&);
  5433. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5434. void SetTransform(const Vector3&, const Quaternion&, float);
  5435. void SetWorldTransform(const Vector3&, const Quaternion&);
  5436. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5437. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5438. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  5439. Vector3 WorldToLocal(const Vector3&) const;
  5440. Vector3 WorldToLocal(const Vector4&) const;
  5441. void Yaw(float, TransformSpace = TS_LOCAL);
  5442. // Properties:
  5443. bool animationEnabled;
  5444. /* readonly */
  5445. Array<Variant> attributeDefaults;
  5446. /* readonly */
  5447. Array<AttributeInfo> attributeInfos;
  5448. Array<Variant> attributes;
  5449. /* readonly */
  5450. ShortStringHash baseType;
  5451. /* readonly */
  5452. String category;
  5453. /* readonly */
  5454. Array<Node> children;
  5455. /* readonly */
  5456. Array<Component> components;
  5457. Vector3 direction;
  5458. bool enabled;
  5459. /* readonly */
  5460. uint id;
  5461. String name;
  5462. /* readonly */
  5463. uint numAllChildren;
  5464. /* readonly */
  5465. uint numAttributes;
  5466. /* readonly */
  5467. uint numChildren;
  5468. /* readonly */
  5469. uint numComponents;
  5470. ObjectAnimation objectAnimation;
  5471. Connection owner;
  5472. Node parent;
  5473. Vector3 position;
  5474. /* readonly */
  5475. int refs;
  5476. /* readonly */
  5477. Vector3 right;
  5478. Quaternion rotation;
  5479. Vector3 scale;
  5480. /* readonly */
  5481. Scene scene;
  5482. /* readonly */
  5483. ScriptObject scriptObject;
  5484. bool temporary;
  5485. /* readonly */
  5486. Matrix3x4 transform;
  5487. /* readonly */
  5488. ShortStringHash type;
  5489. /* readonly */
  5490. String typeName;
  5491. /* readonly */
  5492. Vector3 up;
  5493. /* readonly */
  5494. VariantMap vars;
  5495. /* readonly */
  5496. int weakRefs;
  5497. Vector3 worldDirection;
  5498. Vector3 worldPosition;
  5499. /* readonly */
  5500. Vector3 worldRight;
  5501. Quaternion worldRotation;
  5502. Vector3 worldScale;
  5503. /* readonly */
  5504. Matrix3x4 worldTransform;
  5505. /* readonly */
  5506. Vector3 worldUp;
  5507. };
  5508. class Object
  5509. {
  5510. // Methods:
  5511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5512. // Properties:
  5513. /* readonly */
  5514. ShortStringHash baseType;
  5515. /* readonly */
  5516. String category;
  5517. /* readonly */
  5518. int refs;
  5519. /* readonly */
  5520. ShortStringHash type;
  5521. /* readonly */
  5522. String typeName;
  5523. /* readonly */
  5524. int weakRefs;
  5525. };
  5526. class ObjectAnimation
  5527. {
  5528. // Methods:
  5529. void AddAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5530. AttributeAnimation GetAttributeAnimation(const String&) const;
  5531. float GetAttributeAnimationSpeed(const String&) const;
  5532. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5533. bool Load(File);
  5534. void RemoveAttributeAnimation(AttributeAnimation);
  5535. void RemoveAttributeAnimation(const String&);
  5536. bool Save(File) const;
  5537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5538. // Properties:
  5539. /* readonly */
  5540. Array<Variant> attributeAnimations;
  5541. /* readonly */
  5542. ShortStringHash baseType;
  5543. /* readonly */
  5544. String category;
  5545. /* readonly */
  5546. uint memoryUse;
  5547. String name;
  5548. /* readonly */
  5549. int refs;
  5550. /* readonly */
  5551. Array<Variant> speeds;
  5552. /* readonly */
  5553. ShortStringHash type;
  5554. /* readonly */
  5555. String typeName;
  5556. /* readonly */
  5557. uint useTimer;
  5558. /* readonly */
  5559. int weakRefs;
  5560. /* readonly */
  5561. Array<Variant> wrapModes;
  5562. };
  5563. class Octree
  5564. {
  5565. // Methods:
  5566. void AddManualDrawable(Drawable);
  5567. void ApplyAttributes();
  5568. void DrawDebugGeometry(DebugRenderer, bool);
  5569. void DrawDebugGeometry(bool) const;
  5570. Variant GetAttribute(const String&) const;
  5571. AttributeAnimation GetAttributeAnimation(const String&) const;
  5572. float GetAttributeAnimationSpeed(const String&) const;
  5573. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5574. Variant GetAttributeDefault(const String&) const;
  5575. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5576. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5577. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5578. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5579. bool Load(File, bool = false);
  5580. bool LoadXML(const XMLElement&, bool = false);
  5581. void MarkNetworkUpdate() const;
  5582. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5583. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5584. void Remove();
  5585. void RemoveInstanceDefault();
  5586. void RemoveManualDrawable(Drawable);
  5587. void ResetToDefault();
  5588. bool Save(File) const;
  5589. bool SaveXML(XMLElement&) const;
  5590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5591. bool SetAttribute(const String&, const Variant&);
  5592. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5593. void SetAttributeAnimationSpeed(const String&, float);
  5594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5595. void SetSize(const BoundingBox&, uint);
  5596. // Properties:
  5597. bool animationEnabled;
  5598. /* readonly */
  5599. Array<Variant> attributeDefaults;
  5600. /* readonly */
  5601. Array<AttributeInfo> attributeInfos;
  5602. Array<Variant> attributes;
  5603. /* readonly */
  5604. ShortStringHash baseType;
  5605. /* readonly */
  5606. String category;
  5607. bool enabled;
  5608. /* readonly */
  5609. bool enabledEffective;
  5610. /* readonly */
  5611. uint id;
  5612. /* readonly */
  5613. Node node;
  5614. /* readonly */
  5615. uint numAttributes;
  5616. /* readonly */
  5617. uint numLevels;
  5618. ObjectAnimation objectAnimation;
  5619. /* readonly */
  5620. int refs;
  5621. bool temporary;
  5622. /* readonly */
  5623. ShortStringHash type;
  5624. /* readonly */
  5625. String typeName;
  5626. /* readonly */
  5627. int weakRefs;
  5628. /* readonly */
  5629. BoundingBox worldBoundingBox;
  5630. };
  5631. class OffMeshConnection
  5632. {
  5633. // Methods:
  5634. void ApplyAttributes();
  5635. void DrawDebugGeometry(DebugRenderer, bool);
  5636. Variant GetAttribute(const String&) const;
  5637. AttributeAnimation GetAttributeAnimation(const String&) const;
  5638. float GetAttributeAnimationSpeed(const String&) const;
  5639. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5640. Variant GetAttributeDefault(const String&) const;
  5641. bool Load(File, bool = false);
  5642. bool LoadXML(const XMLElement&, bool = false);
  5643. void MarkNetworkUpdate() const;
  5644. void Remove();
  5645. void RemoveInstanceDefault();
  5646. void ResetToDefault();
  5647. bool Save(File) const;
  5648. bool SaveXML(XMLElement&) const;
  5649. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5650. bool SetAttribute(const String&, const Variant&);
  5651. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5652. void SetAttributeAnimationSpeed(const String&, float);
  5653. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5654. // Properties:
  5655. bool animationEnabled;
  5656. /* readonly */
  5657. Array<Variant> attributeDefaults;
  5658. /* readonly */
  5659. Array<AttributeInfo> attributeInfos;
  5660. Array<Variant> attributes;
  5661. /* readonly */
  5662. ShortStringHash baseType;
  5663. bool bidirectional;
  5664. /* readonly */
  5665. String category;
  5666. bool enabled;
  5667. /* readonly */
  5668. bool enabledEffective;
  5669. Node endPoint;
  5670. /* readonly */
  5671. uint id;
  5672. /* readonly */
  5673. Node node;
  5674. /* readonly */
  5675. uint numAttributes;
  5676. ObjectAnimation objectAnimation;
  5677. float radius;
  5678. /* readonly */
  5679. int refs;
  5680. bool temporary;
  5681. /* readonly */
  5682. ShortStringHash type;
  5683. /* readonly */
  5684. String typeName;
  5685. /* readonly */
  5686. int weakRefs;
  5687. };
  5688. class PackageFile
  5689. {
  5690. // Methods:
  5691. bool Exists(const String&) const;
  5692. bool Open(const String&, uint = 0) const;
  5693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5694. bool compressed() const;
  5695. // Properties:
  5696. /* readonly */
  5697. ShortStringHash baseType;
  5698. /* readonly */
  5699. String category;
  5700. /* readonly */
  5701. uint checksum;
  5702. /* readonly */
  5703. String name;
  5704. /* readonly */
  5705. uint numFiles;
  5706. /* readonly */
  5707. int refs;
  5708. /* readonly */
  5709. uint totalSize;
  5710. /* readonly */
  5711. ShortStringHash type;
  5712. /* readonly */
  5713. String typeName;
  5714. /* readonly */
  5715. int weakRefs;
  5716. };
  5717. class ParticleEffect2D
  5718. {
  5719. // Methods:
  5720. bool Load(File);
  5721. bool Save(File) const;
  5722. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5723. // Properties:
  5724. /* readonly */
  5725. ShortStringHash baseType;
  5726. /* readonly */
  5727. String category;
  5728. /* readonly */
  5729. uint memoryUse;
  5730. String name;
  5731. /* readonly */
  5732. int refs;
  5733. /* readonly */
  5734. ShortStringHash type;
  5735. /* readonly */
  5736. String typeName;
  5737. /* readonly */
  5738. uint useTimer;
  5739. /* readonly */
  5740. int weakRefs;
  5741. };
  5742. class ParticleEmitter
  5743. {
  5744. // Methods:
  5745. void ApplyAttributes();
  5746. void DrawDebugGeometry(DebugRenderer, bool);
  5747. Variant GetAttribute(const String&) const;
  5748. AttributeAnimation GetAttributeAnimation(const String&) const;
  5749. float GetAttributeAnimationSpeed(const String&) const;
  5750. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5751. Variant GetAttributeDefault(const String&) const;
  5752. bool IsInView(Camera) const;
  5753. bool Load(File, bool = false);
  5754. bool Load(XMLFile);
  5755. bool LoadXML(const XMLElement&, bool = false);
  5756. void MarkNetworkUpdate() const;
  5757. void Remove();
  5758. void RemoveInstanceDefault();
  5759. void ResetToDefault();
  5760. bool Save(File) const;
  5761. bool Save(XMLFile);
  5762. bool SaveXML(XMLElement&) const;
  5763. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5764. bool SetAttribute(const String&, const Variant&);
  5765. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5766. void SetAttributeAnimationSpeed(const String&, float);
  5767. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5768. void SetColor(const Color&);
  5769. void SetEmitting(bool, bool);
  5770. // Properties:
  5771. float activeTime;
  5772. bool animationEnabled;
  5773. float animationLodBias;
  5774. /* readonly */
  5775. Array<Variant> attributeDefaults;
  5776. /* readonly */
  5777. Array<AttributeInfo> attributeInfos;
  5778. Array<Variant> attributes;
  5779. /* readonly */
  5780. ShortStringHash baseType;
  5781. /* readonly */
  5782. BoundingBox boundingBox;
  5783. bool castShadows;
  5784. /* readonly */
  5785. String category;
  5786. /* readonly */
  5787. Array<ColorFrame> colors;
  5788. Vector3 constantForce;
  5789. float dampingForce;
  5790. float drawDistance;
  5791. /* writeonly */
  5792. float emissionRate;
  5793. Vector3 emitterSize;
  5794. EmitterType emitterType;
  5795. bool emitting;
  5796. bool enabled;
  5797. /* readonly */
  5798. bool enabledEffective;
  5799. /* readonly */
  5800. uint id;
  5801. /* readonly */
  5802. bool inView;
  5803. float inactiveTime;
  5804. uint lightMask;
  5805. float lodBias;
  5806. Material material;
  5807. Vector3 maxDirection;
  5808. float maxEmissionRate;
  5809. uint maxLights;
  5810. Vector3 maxParticleSize;
  5811. float maxRotation;
  5812. float maxRotationSpeed;
  5813. float maxTimeToLive;
  5814. float maxVelocity;
  5815. Vector3 minDirection;
  5816. float minEmissionRate;
  5817. Vector2 minParticleSize;
  5818. float minRotation;
  5819. float minRotationSpeed;
  5820. float minTimeToLive;
  5821. float minVelocity;
  5822. /* readonly */
  5823. Node node;
  5824. /* readonly */
  5825. uint numAttributes;
  5826. uint numColors;
  5827. uint numParticles;
  5828. uint numTextureFrames;
  5829. ObjectAnimation objectAnimation;
  5830. bool occludee;
  5831. bool occluder;
  5832. /* writeonly */
  5833. Vector2 particleSize;
  5834. /* readonly */
  5835. int refs;
  5836. bool relative;
  5837. /* writeonly */
  5838. float rotation;
  5839. /* writeonly */
  5840. float rotationSpeed;
  5841. bool scaled;
  5842. float shadowDistance;
  5843. uint shadowMask;
  5844. float sizeAdd;
  5845. float sizeMul;
  5846. bool sorted;
  5847. bool temporary;
  5848. /* readonly */
  5849. Array<TextureFrame> textureFrames;
  5850. /* writeonly */
  5851. float timeToLive;
  5852. /* readonly */
  5853. ShortStringHash type;
  5854. /* readonly */
  5855. String typeName;
  5856. bool updateInvisible;
  5857. /* writeonly */
  5858. float velocity;
  5859. uint viewMask;
  5860. /* readonly */
  5861. int weakRefs;
  5862. /* readonly */
  5863. BoundingBox worldBoundingBox;
  5864. /* readonly */
  5865. Zone zone;
  5866. uint zoneMask;
  5867. };
  5868. class ParticleEmitter2D
  5869. {
  5870. // Methods:
  5871. void ApplyAttributes();
  5872. void DrawDebugGeometry(DebugRenderer, bool);
  5873. Variant GetAttribute(const String&) const;
  5874. AttributeAnimation GetAttributeAnimation(const String&) const;
  5875. float GetAttributeAnimationSpeed(const String&) const;
  5876. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5877. Variant GetAttributeDefault(const String&) const;
  5878. bool IsInView(Camera) const;
  5879. bool Load(File, bool = false);
  5880. bool LoadXML(const XMLElement&, bool = false);
  5881. void MarkNetworkUpdate() const;
  5882. void Remove();
  5883. void RemoveInstanceDefault();
  5884. void ResetToDefault();
  5885. bool Save(File) const;
  5886. bool SaveXML(XMLElement&) const;
  5887. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5888. bool SetAttribute(const String&, const Variant&);
  5889. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5890. void SetAttributeAnimationSpeed(const String&, float);
  5891. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5892. // Properties:
  5893. bool animationEnabled;
  5894. /* readonly */
  5895. Array<Variant> attributeDefaults;
  5896. /* readonly */
  5897. Array<AttributeInfo> attributeInfos;
  5898. Array<Variant> attributes;
  5899. /* readonly */
  5900. ShortStringHash baseType;
  5901. BlendMode blendMode;
  5902. /* readonly */
  5903. BoundingBox boundingBox;
  5904. bool castShadows;
  5905. /* readonly */
  5906. String category;
  5907. float drawDistance;
  5908. ParticleEffect2D effect;
  5909. bool enabled;
  5910. /* readonly */
  5911. bool enabledEffective;
  5912. /* readonly */
  5913. uint id;
  5914. /* readonly */
  5915. bool inView;
  5916. int layer;
  5917. uint lightMask;
  5918. float lodBias;
  5919. Material material;
  5920. uint maxLights;
  5921. /* readonly */
  5922. Node node;
  5923. /* readonly */
  5924. uint numAttributes;
  5925. ObjectAnimation objectAnimation;
  5926. bool occludee;
  5927. bool occluder;
  5928. int orderInLayer;
  5929. /* readonly */
  5930. int refs;
  5931. float shadowDistance;
  5932. uint shadowMask;
  5933. Sprite2D sprite;
  5934. bool temporary;
  5935. /* readonly */
  5936. ShortStringHash type;
  5937. /* readonly */
  5938. String typeName;
  5939. uint viewMask;
  5940. /* readonly */
  5941. int weakRefs;
  5942. /* readonly */
  5943. BoundingBox worldBoundingBox;
  5944. uint zoneMask;
  5945. };
  5946. class Pass
  5947. {
  5948. // Properties:
  5949. bool alphaMask;
  5950. BlendMode blendMode;
  5951. CompareMode depthTestMode;
  5952. bool depthWrite;
  5953. PassLightingMode lightingMode;
  5954. String pixelShader;
  5955. String pixelShaderDefines;
  5956. /* readonly */
  5957. int refs;
  5958. bool sm3;
  5959. String vertexShader;
  5960. String vertexShaderDefines;
  5961. /* readonly */
  5962. int weakRefs;
  5963. };
  5964. class PhysicsRaycastResult
  5965. {
  5966. // Properties:
  5967. /* readonly */
  5968. RigidBody body;
  5969. float distance;
  5970. Vector3 normal;
  5971. Vector3 position;
  5972. };
  5973. class PhysicsRaycastResult2D
  5974. {
  5975. // Properties:
  5976. /* readonly */
  5977. RigidBody2D body;
  5978. float distance;
  5979. Vector2 normal;
  5980. Vector2 position;
  5981. };
  5982. class PhysicsWorld
  5983. {
  5984. // Methods:
  5985. void ApplyAttributes();
  5986. void DrawDebugGeometry(DebugRenderer, bool);
  5987. void DrawDebugGeometry(bool);
  5988. Variant GetAttribute(const String&) const;
  5989. AttributeAnimation GetAttributeAnimation(const String&) const;
  5990. float GetAttributeAnimationSpeed(const String&) const;
  5991. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5992. Variant GetAttributeDefault(const String&) const;
  5993. Array<RigidBody> GetRigidBodies(RigidBody);
  5994. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  5995. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  5996. bool Load(File, bool = false);
  5997. bool LoadXML(const XMLElement&, bool = false);
  5998. void MarkNetworkUpdate() const;
  5999. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  6000. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  6001. void Remove();
  6002. void RemoveCachedGeometry(Model);
  6003. void RemoveInstanceDefault();
  6004. void ResetToDefault();
  6005. bool Save(File) const;
  6006. bool SaveXML(XMLElement&) const;
  6007. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6008. bool SetAttribute(const String&, const Variant&);
  6009. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6010. void SetAttributeAnimationSpeed(const String&, float);
  6011. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6012. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  6013. void Update(float);
  6014. void UpdateCollisions();
  6015. // Properties:
  6016. bool animationEnabled;
  6017. /* readonly */
  6018. Array<Variant> attributeDefaults;
  6019. /* readonly */
  6020. Array<AttributeInfo> attributeInfos;
  6021. Array<Variant> attributes;
  6022. /* readonly */
  6023. ShortStringHash baseType;
  6024. /* readonly */
  6025. String category;
  6026. bool enabled;
  6027. /* readonly */
  6028. bool enabledEffective;
  6029. int fps;
  6030. Vector3 gravity;
  6031. /* readonly */
  6032. uint id;
  6033. bool internalEdge;
  6034. bool interpolation;
  6035. /* readonly */
  6036. Node node;
  6037. /* readonly */
  6038. uint numAttributes;
  6039. int numIterations;
  6040. ObjectAnimation objectAnimation;
  6041. /* readonly */
  6042. int refs;
  6043. bool splitImpulse;
  6044. bool temporary;
  6045. /* readonly */
  6046. ShortStringHash type;
  6047. /* readonly */
  6048. String typeName;
  6049. /* readonly */
  6050. int weakRefs;
  6051. };
  6052. class PhysicsWorld2D
  6053. {
  6054. // Methods:
  6055. void ApplyAttributes();
  6056. void DrawDebugGeometry() const;
  6057. void DrawDebugGeometry(DebugRenderer, bool);
  6058. Variant GetAttribute(const String&) const;
  6059. AttributeAnimation GetAttributeAnimation(const String&) const;
  6060. float GetAttributeAnimationSpeed(const String&) const;
  6061. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6062. Variant GetAttributeDefault(const String&) const;
  6063. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  6064. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  6065. RigidBody2D GetRigidBody(int, int, uint = 0xffff, Camera = 0);
  6066. bool Load(File, bool = false);
  6067. bool LoadXML(const XMLElement&, bool = false);
  6068. void MarkNetworkUpdate() const;
  6069. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  6070. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  6071. void Remove();
  6072. void RemoveInstanceDefault();
  6073. void ResetToDefault();
  6074. bool Save(File) const;
  6075. bool SaveXML(XMLElement&) const;
  6076. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6077. bool SetAttribute(const String&, const Variant&);
  6078. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6079. void SetAttributeAnimationSpeed(const String&, float);
  6080. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6081. // Properties:
  6082. bool allowSleeping;
  6083. bool animationEnabled;
  6084. /* readonly */
  6085. Array<Variant> attributeDefaults;
  6086. /* readonly */
  6087. Array<AttributeInfo> attributeInfos;
  6088. Array<Variant> attributes;
  6089. bool autoClearForces;
  6090. /* readonly */
  6091. ShortStringHash baseType;
  6092. /* readonly */
  6093. String category;
  6094. bool continuousPhysics;
  6095. bool drawAabb;
  6096. bool drawCenterOfMass;
  6097. bool drawJoint;
  6098. bool drawPair;
  6099. bool drawShape;
  6100. bool enabled;
  6101. /* readonly */
  6102. bool enabledEffective;
  6103. Vector2 gravity;
  6104. /* readonly */
  6105. uint id;
  6106. /* readonly */
  6107. Node node;
  6108. /* readonly */
  6109. uint numAttributes;
  6110. ObjectAnimation objectAnimation;
  6111. uint positionIterations;
  6112. /* readonly */
  6113. int refs;
  6114. bool subStepping;
  6115. bool temporary;
  6116. /* readonly */
  6117. ShortStringHash type;
  6118. /* readonly */
  6119. String typeName;
  6120. uint velocityIterations;
  6121. bool warmStarting;
  6122. /* readonly */
  6123. int weakRefs;
  6124. };
  6125. class Plane
  6126. {
  6127. // Methods:
  6128. void Define(const Vector3&, const Vector3&);
  6129. void Define(const Vector3&, const Vector3&, const Vector3&);
  6130. void Define(const Vector4&);
  6131. float Distance(const Vector3&) const;
  6132. Vector3 Reflect(const Vector3&) const;
  6133. Vector4 ToVector4() const;
  6134. void Transform(const Matrix3&);
  6135. void Transform(const Matrix3x4&);
  6136. void Transform(const Matrix4&);
  6137. Plane Transformed(const Matrix3&) const;
  6138. Plane Transformed(const Matrix3x4&) const;
  6139. Plane Transformed(const Matrix4&) const;
  6140. // Properties:
  6141. Vector3 absNormal;
  6142. float d;
  6143. Vector3 normal;
  6144. /* readonly */
  6145. Matrix3x4 reflectionMatrix;
  6146. };
  6147. class Polyhedron
  6148. {
  6149. // Methods:
  6150. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  6151. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  6152. void AddFace(const Array<Vector3>);
  6153. void Clear();
  6154. void Clip(const BoundingBox&);
  6155. void Clip(const Frustum&);
  6156. void Define(const BoundingBox&);
  6157. void Define(const Frustum&);
  6158. void Transform(const Matrix3&);
  6159. void Transform(const Matrix3x4&);
  6160. Polyhedron Transformed(const Matrix3&) const;
  6161. Polyhedron Transformed(const Matrix3x4&) const;
  6162. // Properties:
  6163. /* readonly */
  6164. Array<Array<Vector3>> face;
  6165. /* readonly */
  6166. uint numFaces;
  6167. };
  6168. class Quaternion
  6169. {
  6170. // Methods:
  6171. float DotProduct(const Quaternion&) const;
  6172. bool Equals(const Quaternion&) const;
  6173. void FromAngleAxis(float, const Vector3&);
  6174. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  6175. void FromEulerAngles(float, float, float);
  6176. bool FromLookRotation(const Vector3&, const Vector3&);
  6177. void FromRotationTo(const Vector3&, const Vector3&);
  6178. Quaternion Inverse() const;
  6179. bool IsNaN() const;
  6180. Quaternion Nlerp(Quaternion, float, bool) const;
  6181. void Normalize();
  6182. Quaternion Normalized() const;
  6183. Quaternion Slerp(Quaternion, float) const;
  6184. String ToString() const;
  6185. // Properties:
  6186. /* readonly */
  6187. Vector3 eulerAngles;
  6188. /* readonly */
  6189. float pitch;
  6190. /* readonly */
  6191. float roll;
  6192. float w;
  6193. float x;
  6194. float y;
  6195. /* readonly */
  6196. float yaw;
  6197. float z;
  6198. };
  6199. class Ray
  6200. {
  6201. // Methods:
  6202. Vector3 ClosestPoint(const Ray&) const;
  6203. void Define(const Vector3&, const Vector3&);
  6204. float Distance(const Vector3&) const;
  6205. float HitDistance(const BoundingBox&) const;
  6206. float HitDistance(const Frustum&, bool = true) const;
  6207. float HitDistance(const Sphere&) const;
  6208. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  6209. Vector3 Project(const Vector3&) const;
  6210. Ray Transformed(const Matrix3x4&) const;
  6211. // Properties:
  6212. Vector3 direction;
  6213. Vector3 origin;
  6214. };
  6215. class RayQueryResult
  6216. {
  6217. // Properties:
  6218. float distance;
  6219. /* readonly */
  6220. Drawable drawable;
  6221. /* readonly */
  6222. Node node;
  6223. Vector3 normal;
  6224. Vector3 position;
  6225. uint subObject;
  6226. };
  6227. class Rect
  6228. {
  6229. // Methods:
  6230. void Clear();
  6231. void Clip(const Rect&);
  6232. void Define(const Vector2&);
  6233. void Define(const Vector2&, const Vector2&);
  6234. bool Equals(const Rect&) const;
  6235. Intersection IsInside(const Vector2&) const;
  6236. void Merge(const Rect&);
  6237. void Merge(const Vector2&);
  6238. Vector4 ToVector4() const;
  6239. // Properties:
  6240. float bottom;
  6241. /* readonly */
  6242. Vector2 center;
  6243. bool defined;
  6244. /* readonly */
  6245. Vector2 halfSize;
  6246. float left;
  6247. Vector2 max;
  6248. Vector2 min;
  6249. float right;
  6250. /* readonly */
  6251. Vector2 size;
  6252. float top;
  6253. };
  6254. class RefCounted
  6255. {
  6256. // Properties:
  6257. /* readonly */
  6258. int refs;
  6259. /* readonly */
  6260. int weakRefs;
  6261. };
  6262. class RenderPath
  6263. {
  6264. // Methods:
  6265. void AddCommand(const RenderPathCommand&);
  6266. void AddRenderTarget(const RenderTargetInfo&);
  6267. bool Append(XMLFile);
  6268. RenderPath Clone();
  6269. void InsertCommand(uint, const RenderPathCommand&);
  6270. bool Load(XMLFile);
  6271. void RemoveCommand(uint);
  6272. void RemoveCommands(const String&);
  6273. void RemoveRenderTarget(const String&);
  6274. void RemoveRenderTarget(uint);
  6275. void RemoveRenderTargts(const String&);
  6276. void SetEnabled(const String&, bool);
  6277. void ToggleEnabled(const String&);
  6278. // Properties:
  6279. Array<RenderPathCommand> commands;
  6280. /* readonly */
  6281. uint numCommands;
  6282. /* readonly */
  6283. uint numRenderTargets;
  6284. /* readonly */
  6285. int refs;
  6286. Array<RenderTargetInfo> renderTargets;
  6287. Array<Variant> shaderParameters;
  6288. /* readonly */
  6289. int weakRefs;
  6290. };
  6291. class RenderPathCommand
  6292. {
  6293. // Methods:
  6294. void RemoveShaderParameter(const String&);
  6295. // Properties:
  6296. Color clearColor;
  6297. float clearDepth;
  6298. uint clearFlags;
  6299. uint clearStencil;
  6300. bool enabled;
  6301. bool markToStencil;
  6302. String metadata;
  6303. uint numOutputs;
  6304. Array<String> outputNames;
  6305. String pass;
  6306. String pixelShaderDefines;
  6307. String pixelShaderName;
  6308. Array<Variant> shaderParameters;
  6309. RenderCommandSortMode sortMode;
  6310. String tag;
  6311. Array<String> textureNames;
  6312. RenderCommandType type;
  6313. bool useFogColor;
  6314. bool useLitBase;
  6315. bool vertexLights;
  6316. String vertexShaderDefines;
  6317. String vertexShaderName;
  6318. };
  6319. class RenderSurface
  6320. {
  6321. // Methods:
  6322. void QueueUpdate();
  6323. // Properties:
  6324. /* readonly */
  6325. int height;
  6326. RenderSurface linkedDepthStencil;
  6327. RenderSurface linkedRenderTarget;
  6328. uint numViewports;
  6329. /* readonly */
  6330. Texture parentTexture;
  6331. RenderSurfaceUpdateMode updateMode;
  6332. /* readonly */
  6333. TextureUsage usage;
  6334. Array<Viewport> viewports;
  6335. /* readonly */
  6336. int width;
  6337. };
  6338. class RenderTargetInfo
  6339. {
  6340. // Properties:
  6341. bool enabled;
  6342. bool filtered;
  6343. uint format;
  6344. String name;
  6345. bool persistent;
  6346. bool sRGB;
  6347. IntVector2 size;
  6348. RenderTargetSizeMode sizeMode;
  6349. String tag;
  6350. };
  6351. class Renderer
  6352. {
  6353. // Methods:
  6354. void DrawDebugGeometry(bool) const;
  6355. void ReloadShaders() const;
  6356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6357. void SetDefaultRenderPath(XMLFile);
  6358. // Properties:
  6359. /* readonly */
  6360. ShortStringHash baseType;
  6361. /* readonly */
  6362. String category;
  6363. /* readonly */
  6364. Material defaultLightRamp;
  6365. /* readonly */
  6366. Material defaultLightSpot;
  6367. /* readonly */
  6368. Material defaultMaterial;
  6369. RenderPath defaultRenderPath;
  6370. /* readonly */
  6371. Zone defaultZone;
  6372. bool drawShadows;
  6373. bool dynamicInstancing;
  6374. bool hdrRendering;
  6375. int materialQuality;
  6376. int maxInstanceTriangles;
  6377. int maxOccluderTriangles;
  6378. int maxShadowMaps;
  6379. int maxSortedInstances;
  6380. int minInstances;
  6381. float mobileShadowBiasAdd;
  6382. float mobileShadowBiasMul;
  6383. /* readonly */
  6384. uint numBatches;
  6385. /* readonly */
  6386. Array<uint> numGeometries;
  6387. /* readonly */
  6388. Array<uint> numLights;
  6389. /* readonly */
  6390. Array<uint> numOccluders;
  6391. /* readonly */
  6392. uint numPrimitives;
  6393. /* readonly */
  6394. Array<uint> numShadowMaps;
  6395. uint numViewports;
  6396. /* readonly */
  6397. uint numViews;
  6398. float occluderSizeThreshold;
  6399. int occlusionBufferSize;
  6400. /* readonly */
  6401. int refs;
  6402. bool reuseShadowMaps;
  6403. int shadowMapSize;
  6404. int shadowQuality;
  6405. bool specularLighting;
  6406. int textureAnisotropy;
  6407. TextureFilterMode textureFilterMode;
  6408. int textureQuality;
  6409. /* readonly */
  6410. ShortStringHash type;
  6411. /* readonly */
  6412. String typeName;
  6413. Array<Viewport> viewports;
  6414. /* readonly */
  6415. int weakRefs;
  6416. };
  6417. class Resource
  6418. {
  6419. // Methods:
  6420. bool Load(File);
  6421. bool Save(File) const;
  6422. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6423. // Properties:
  6424. /* readonly */
  6425. ShortStringHash baseType;
  6426. /* readonly */
  6427. String category;
  6428. /* readonly */
  6429. uint memoryUse;
  6430. String name;
  6431. /* readonly */
  6432. int refs;
  6433. /* readonly */
  6434. ShortStringHash type;
  6435. /* readonly */
  6436. String typeName;
  6437. /* readonly */
  6438. uint useTimer;
  6439. /* readonly */
  6440. int weakRefs;
  6441. };
  6442. class ResourceCache
  6443. {
  6444. // Methods:
  6445. bool AddManualResource(Resource);
  6446. void AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  6447. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  6448. bool Exists(const String&) const;
  6449. File GetFile(const String&);
  6450. String GetPreferredResourceDir(const String&) const;
  6451. Resource GetResource(ShortStringHash, const String&, bool = true);
  6452. Resource GetResource(const String&, const String&, bool = true);
  6453. String GetResourceFileName(const String&) const;
  6454. void ReleaseAllResources(bool = false);
  6455. void ReleaseResource(const String&, const String&, bool = false);
  6456. void ReleaseResources(ShortStringHash, bool = false);
  6457. void ReleaseResources(const String&, bool = false);
  6458. void ReleaseResources(const String&, const String&, bool = false);
  6459. bool ReloadResource(Resource);
  6460. void RemovePackageFile(PackageFile, bool = true, bool = false);
  6461. void RemovePackageFile(const String&, bool = true, bool = false);
  6462. void RemoveResourceDir(const String&);
  6463. String SanitateResourceDirName(const String&) const;
  6464. String SanitateResourceName(const String&) const;
  6465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6466. // Properties:
  6467. bool autoReloadResources;
  6468. /* readonly */
  6469. ShortStringHash baseType;
  6470. /* readonly */
  6471. String category;
  6472. Array<uint> memoryBudget;
  6473. /* readonly */
  6474. Array<uint> memoryUse;
  6475. /* readonly */
  6476. Array<PackageFile> packageFiles;
  6477. /* readonly */
  6478. int refs;
  6479. /* readonly */
  6480. Array<String> resourceDirs;
  6481. bool returnFailedResources;
  6482. /* readonly */
  6483. bool seachPackagesFirst;
  6484. /* writeonly */
  6485. bool searchPackagesFirst;
  6486. /* readonly */
  6487. uint totalMemoryUse;
  6488. /* readonly */
  6489. ShortStringHash type;
  6490. /* readonly */
  6491. String typeName;
  6492. /* readonly */
  6493. int weakRefs;
  6494. };
  6495. class ResourceRef
  6496. {
  6497. // Properties:
  6498. String name;
  6499. ShortStringHash type;
  6500. };
  6501. class ResourceRefList
  6502. {
  6503. // Methods:
  6504. void Resize(uint);
  6505. // Properties:
  6506. /* readonly */
  6507. bool empty;
  6508. /* readonly */
  6509. uint length;
  6510. Array<String> names;
  6511. ShortStringHash type;
  6512. };
  6513. class RigidBody
  6514. {
  6515. // Methods:
  6516. void Activate();
  6517. void ApplyAttributes();
  6518. void ApplyForce(const Vector3&);
  6519. void ApplyForce(const Vector3&, const Vector3&);
  6520. void ApplyImpulse(const Vector3&);
  6521. void ApplyImpulse(const Vector3&, const Vector3&);
  6522. void ApplyTorque(const Vector3&);
  6523. void ApplyTorqueImpulse(const Vector3&);
  6524. void DrawDebugGeometry(DebugRenderer, bool);
  6525. Variant GetAttribute(const String&) const;
  6526. AttributeAnimation GetAttributeAnimation(const String&) const;
  6527. float GetAttributeAnimationSpeed(const String&) const;
  6528. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6529. Variant GetAttributeDefault(const String&) const;
  6530. Vector3 GetVelocityAtPoint(const Vector3&) const;
  6531. bool Load(File, bool = false);
  6532. bool LoadXML(const XMLElement&, bool = false);
  6533. void MarkNetworkUpdate() const;
  6534. void ReAddBodyToWorld();
  6535. void Remove();
  6536. void RemoveInstanceDefault();
  6537. void ResetForces();
  6538. void ResetToDefault();
  6539. bool Save(File) const;
  6540. bool SaveXML(XMLElement&) const;
  6541. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6542. bool SetAttribute(const String&, const Variant&);
  6543. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6544. void SetAttributeAnimationSpeed(const String&, float);
  6545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6546. void SetCollisionLayerAndMask(uint, uint);
  6547. void SetTransform(const Vector3&, const Quaternion&);
  6548. // Properties:
  6549. /* readonly */
  6550. bool active;
  6551. float angularDamping;
  6552. Vector3 angularFactor;
  6553. float angularRestThreshold;
  6554. Vector3 angularVelocity;
  6555. bool animationEnabled;
  6556. Vector3 anisotropicFriction;
  6557. /* readonly */
  6558. Array<Variant> attributeDefaults;
  6559. /* readonly */
  6560. Array<AttributeInfo> attributeInfos;
  6561. Array<Variant> attributes;
  6562. /* readonly */
  6563. ShortStringHash baseType;
  6564. /* readonly */
  6565. String category;
  6566. float ccdMotionThreshold;
  6567. float ccdRadius;
  6568. /* readonly */
  6569. Vector3 centerOfMass;
  6570. /* readonly */
  6571. Array<RigidBody> collidingBodies;
  6572. CollisionEventMode collisionEventMode;
  6573. uint collisionLayer;
  6574. uint collisionMask;
  6575. float contactProcessingThreshold;
  6576. bool enabled;
  6577. /* readonly */
  6578. bool enabledEffective;
  6579. float friction;
  6580. Vector3 gravityOverride;
  6581. /* readonly */
  6582. uint id;
  6583. bool kinematic;
  6584. float linearDamping;
  6585. Vector3 linearFactor;
  6586. float linearRestThreshold;
  6587. Vector3 linearVelocity;
  6588. float mass;
  6589. /* readonly */
  6590. Node node;
  6591. /* readonly */
  6592. uint numAttributes;
  6593. ObjectAnimation objectAnimation;
  6594. Vector3 position;
  6595. /* readonly */
  6596. int refs;
  6597. float restitution;
  6598. float rollingFriction;
  6599. Quaternion rotation;
  6600. bool temporary;
  6601. bool trigger;
  6602. /* readonly */
  6603. ShortStringHash type;
  6604. /* readonly */
  6605. String typeName;
  6606. bool useGravity;
  6607. /* readonly */
  6608. int weakRefs;
  6609. };
  6610. class RigidBody2D
  6611. {
  6612. // Methods:
  6613. void ApplyAngularImpulse(float, bool);
  6614. void ApplyAttributes();
  6615. void ApplyForce(const Vector2&, const Vector2&, bool);
  6616. void ApplyForceToCenter(const Vector2&, bool);
  6617. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  6618. void ApplyTorque(float, bool);
  6619. void DrawDebugGeometry(DebugRenderer, bool);
  6620. Variant GetAttribute(const String&) const;
  6621. AttributeAnimation GetAttributeAnimation(const String&) const;
  6622. float GetAttributeAnimationSpeed(const String&) const;
  6623. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6624. Variant GetAttributeDefault(const String&) const;
  6625. bool Load(File, bool = false);
  6626. bool LoadXML(const XMLElement&, bool = false);
  6627. void MarkNetworkUpdate() const;
  6628. void Remove();
  6629. void RemoveInstanceDefault();
  6630. void ResetToDefault();
  6631. bool Save(File) const;
  6632. bool SaveXML(XMLElement&) const;
  6633. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6634. bool SetAttribute(const String&, const Variant&);
  6635. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6636. void SetAttributeAnimationSpeed(const String&, float);
  6637. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6638. // Properties:
  6639. bool allowSleep;
  6640. float angularDamping;
  6641. bool animationEnabled;
  6642. /* readonly */
  6643. Array<Variant> attributeDefaults;
  6644. /* readonly */
  6645. Array<AttributeInfo> attributeInfos;
  6646. Array<Variant> attributes;
  6647. bool awake;
  6648. /* readonly */
  6649. ShortStringHash baseType;
  6650. BodyType2D bodyType;
  6651. bool bullet;
  6652. /* readonly */
  6653. String category;
  6654. bool enabled;
  6655. /* readonly */
  6656. bool enabledEffective;
  6657. bool fixedRotation;
  6658. float gravityScale;
  6659. /* readonly */
  6660. uint id;
  6661. float inertia;
  6662. float linearDamping;
  6663. Vector2 linearVelocity;
  6664. float mass;
  6665. Vector2 massCenter;
  6666. /* readonly */
  6667. Node node;
  6668. /* readonly */
  6669. uint numAttributes;
  6670. ObjectAnimation objectAnimation;
  6671. /* readonly */
  6672. int refs;
  6673. bool temporary;
  6674. /* readonly */
  6675. ShortStringHash type;
  6676. /* readonly */
  6677. String typeName;
  6678. bool useFixtureMass;
  6679. /* readonly */
  6680. int weakRefs;
  6681. };
  6682. class Scene
  6683. {
  6684. // Methods:
  6685. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6686. void AddRequiredPackageFile(PackageFile);
  6687. void ApplyAttributes();
  6688. void Clear(bool = true, bool = true);
  6689. void ClearRequiredPackageFiles();
  6690. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6691. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6692. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6693. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6694. Variant GetAttribute(const String&) const;
  6695. AttributeAnimation GetAttributeAnimation(const String&) const;
  6696. float GetAttributeAnimationSpeed(const String&) const;
  6697. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6698. Variant GetAttributeDefault(const String&) const;
  6699. Node GetChild(const String&, bool = false) const;
  6700. Array<Node> GetChildren(bool = false) const;
  6701. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6702. Array<Node> GetChildrenWithScript(bool = false) const;
  6703. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6704. Component GetComponent(const String&) const;
  6705. Component GetComponent(uint);
  6706. Array<Component> GetComponents() const;
  6707. Array<Component> GetComponents(const String&, bool = false) const;
  6708. Node GetNode(uint);
  6709. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6710. ScriptObject GetScriptObject() const;
  6711. ScriptObject GetScriptObject(const String&) const;
  6712. bool HasComponent(const String&) const;
  6713. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6714. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6715. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6716. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6717. bool Load(File, bool = false);
  6718. bool LoadAsync(File);
  6719. bool LoadAsyncXML(File);
  6720. bool LoadXML(File);
  6721. bool LoadXML(const XMLElement&, bool = false);
  6722. Vector3 LocalToWorld(const Vector3&) const;
  6723. Vector3 LocalToWorld(const Vector4&) const;
  6724. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  6725. void Pitch(float, TransformSpace = TS_LOCAL);
  6726. void RegisterVar(const String&);
  6727. void Remove();
  6728. void RemoveAllChildren();
  6729. void RemoveAllComponents();
  6730. void RemoveChild(Node);
  6731. void RemoveChildren(bool, bool, bool);
  6732. void RemoveComponent(Component);
  6733. void RemoveComponent(const String&);
  6734. void RemoveComponents(bool, bool);
  6735. void RemoveInstanceDefault();
  6736. void ResetToDefault();
  6737. void Roll(float, TransformSpace = TS_LOCAL);
  6738. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  6739. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  6740. bool Save(File) const;
  6741. bool SaveXML(File);
  6742. bool SaveXML(XMLElement&) const;
  6743. void Scale(const Vector3&);
  6744. void Scale(float);
  6745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6746. bool SetAttribute(const String&, const Variant&);
  6747. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6748. void SetAttributeAnimationSpeed(const String&, float);
  6749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6750. void SetScale(float);
  6751. void SetTransform(const Vector3&, const Quaternion&);
  6752. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6753. void SetTransform(const Vector3&, const Quaternion&, float);
  6754. void SetWorldTransform(const Vector3&, const Quaternion&);
  6755. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6756. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6757. void StopAsyncLoading();
  6758. const String& GetVarName(ShortStringHash) const;
  6759. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  6760. void UnregisterAllVars(const String&);
  6761. void UnregisterVar(const String&);
  6762. void Update(float);
  6763. Vector3 WorldToLocal(const Vector3&) const;
  6764. Vector3 WorldToLocal(const Vector4&) const;
  6765. void Yaw(float, TransformSpace = TS_LOCAL);
  6766. // Properties:
  6767. bool animationEnabled;
  6768. /* readonly */
  6769. bool asyncLoading;
  6770. /* readonly */
  6771. float asyncProgress;
  6772. /* readonly */
  6773. Array<Variant> attributeDefaults;
  6774. /* readonly */
  6775. Array<AttributeInfo> attributeInfos;
  6776. Array<Variant> attributes;
  6777. /* readonly */
  6778. ShortStringHash baseType;
  6779. /* readonly */
  6780. String category;
  6781. /* readonly */
  6782. uint checksum;
  6783. /* readonly */
  6784. Array<Node> children;
  6785. /* readonly */
  6786. Array<Component> components;
  6787. /* readonly */
  6788. DebugRenderer debugRenderer;
  6789. Vector3 direction;
  6790. float elapsedTime;
  6791. /* readonly */
  6792. String fileName;
  6793. /* readonly */
  6794. uint id;
  6795. String name;
  6796. /* readonly */
  6797. uint numAllChildren;
  6798. /* readonly */
  6799. uint numAttributes;
  6800. /* readonly */
  6801. uint numChildren;
  6802. /* readonly */
  6803. uint numComponents;
  6804. ObjectAnimation objectAnimation;
  6805. /* readonly */
  6806. Octree octree;
  6807. Node parent;
  6808. /* readonly */
  6809. PhysicsWorld physicsWorld;
  6810. /* readonly */
  6811. PhysicsWorld2D physicsWorld2D;
  6812. Vector3 position;
  6813. /* readonly */
  6814. int refs;
  6815. /* readonly */
  6816. Array<PackageFile> requiredPackageFiles;
  6817. /* readonly */
  6818. Vector3 right;
  6819. Quaternion rotation;
  6820. Vector3 scale;
  6821. /* readonly */
  6822. ScriptObject scriptObject;
  6823. float smoothingConstant;
  6824. float snapThreshold;
  6825. bool temporary;
  6826. float timeScale;
  6827. /* readonly */
  6828. Matrix3x4 transform;
  6829. /* readonly */
  6830. ShortStringHash type;
  6831. /* readonly */
  6832. String typeName;
  6833. /* readonly */
  6834. Vector3 up;
  6835. bool updateEnabled;
  6836. /* readonly */
  6837. VariantMap vars;
  6838. /* readonly */
  6839. int weakRefs;
  6840. Vector3 worldDirection;
  6841. Vector3 worldPosition;
  6842. /* readonly */
  6843. Vector3 worldRight;
  6844. Quaternion worldRotation;
  6845. Vector3 worldScale;
  6846. /* readonly */
  6847. Matrix3x4 worldTransform;
  6848. /* readonly */
  6849. Vector3 worldUp;
  6850. };
  6851. class Script
  6852. {
  6853. // Methods:
  6854. void DumpAPI(DumpMode = DOXYGEN);
  6855. bool Execute(const String&);
  6856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6857. // Properties:
  6858. /* readonly */
  6859. ShortStringHash baseType;
  6860. /* readonly */
  6861. String category;
  6862. Scene defaultScene;
  6863. ScriptFile defaultScriptFile;
  6864. bool executeConsoleCommands;
  6865. /* readonly */
  6866. int refs;
  6867. /* readonly */
  6868. ShortStringHash type;
  6869. /* readonly */
  6870. String typeName;
  6871. /* readonly */
  6872. int weakRefs;
  6873. };
  6874. class ScriptFile
  6875. {
  6876. // Methods:
  6877. void ClearDelayedExecute(const String& = String ( ));
  6878. void DelayedExecute(float, bool, const String&);
  6879. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  6880. bool Execute(const String&, const Array<Variant>);
  6881. bool Load(File);
  6882. bool Save(File) const;
  6883. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6884. // Properties:
  6885. /* readonly */
  6886. ShortStringHash baseType;
  6887. /* readonly */
  6888. String category;
  6889. /* readonly */
  6890. bool compiled;
  6891. /* readonly */
  6892. uint memoryUse;
  6893. String name;
  6894. /* readonly */
  6895. int refs;
  6896. /* readonly */
  6897. ShortStringHash type;
  6898. /* readonly */
  6899. String typeName;
  6900. /* readonly */
  6901. uint useTimer;
  6902. /* readonly */
  6903. int weakRefs;
  6904. };
  6905. class ScriptInstance
  6906. {
  6907. // Methods:
  6908. void ApplyAttributes();
  6909. void ClearDelayedExecute(const String& = String ( ));
  6910. bool CreateObject(ScriptFile, const String&);
  6911. void DelayedExecute(float, bool, const String&);
  6912. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  6913. void DrawDebugGeometry(DebugRenderer, bool);
  6914. bool Execute(const String&);
  6915. bool Execute(const String&, const Array<Variant>);
  6916. Variant GetAttribute(const String&) const;
  6917. AttributeAnimation GetAttributeAnimation(const String&) const;
  6918. float GetAttributeAnimationSpeed(const String&) const;
  6919. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6920. Variant GetAttributeDefault(const String&) const;
  6921. bool Load(File, bool = false);
  6922. bool LoadXML(const XMLElement&, bool = false);
  6923. void MarkNetworkUpdate() const;
  6924. void Remove();
  6925. void RemoveInstanceDefault();
  6926. void ResetToDefault();
  6927. bool Save(File) const;
  6928. bool SaveXML(XMLElement&) const;
  6929. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6930. bool SetAttribute(const String&, const Variant&);
  6931. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6932. void SetAttributeAnimationSpeed(const String&, float);
  6933. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6934. // Properties:
  6935. bool animationEnabled;
  6936. /* readonly */
  6937. Array<Variant> attributeDefaults;
  6938. /* readonly */
  6939. Array<AttributeInfo> attributeInfos;
  6940. Array<Variant> attributes;
  6941. /* readonly */
  6942. ShortStringHash baseType;
  6943. /* readonly */
  6944. String category;
  6945. String className;
  6946. bool enabled;
  6947. /* readonly */
  6948. bool enabledEffective;
  6949. /* readonly */
  6950. uint id;
  6951. /* readonly */
  6952. Node node;
  6953. /* readonly */
  6954. uint numAttributes;
  6955. /* readonly */
  6956. ScriptObject object;
  6957. ObjectAnimation objectAnimation;
  6958. /* readonly */
  6959. int refs;
  6960. ScriptFile scriptFile;
  6961. bool temporary;
  6962. /* readonly */
  6963. ShortStringHash type;
  6964. /* readonly */
  6965. String typeName;
  6966. /* readonly */
  6967. int weakRefs;
  6968. };
  6969. class ScriptObject
  6970. {
  6971. };
  6972. class ScrollBar
  6973. {
  6974. // Methods:
  6975. void AddChild(UIElement);
  6976. void ApplyAttributes();
  6977. void BringToFront();
  6978. void ChangeValue(float);
  6979. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6980. void DisableLayoutUpdate();
  6981. IntVector2 ElementToScreen(const IntVector2&);
  6982. void EnableLayoutUpdate();
  6983. uint FindChild(UIElement) const;
  6984. Variant GetAttribute(const String&) const;
  6985. AttributeAnimation GetAttributeAnimation(const String&) const;
  6986. float GetAttributeAnimationSpeed(const String&) const;
  6987. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6988. Variant GetAttributeDefault(const String&) const;
  6989. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6990. UIElement GetChild(const String&, bool = false) const;
  6991. Array<UIElement> GetChildren(bool = false) const;
  6992. UIElement GetElementEventSender() const;
  6993. uint GetNumChildren(bool) const;
  6994. void InsertChild(uint, UIElement);
  6995. bool IsInside(IntVector2, bool);
  6996. bool IsInsideCombined(IntVector2, bool);
  6997. bool Load(File, bool = false);
  6998. bool LoadChildXML(XMLFile, XMLFile = null);
  6999. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7000. bool LoadXML(File);
  7001. bool LoadXML(XMLFile, XMLFile);
  7002. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7003. bool LoadXML(const XMLElement&, bool = false);
  7004. void Remove();
  7005. void RemoveAllChildren();
  7006. void RemoveChild(UIElement, uint = 0);
  7007. void RemoveChild(uint);
  7008. void RemoveInstanceDefault();
  7009. void ResetToDefault();
  7010. bool Save(File) const;
  7011. bool SaveXML(File);
  7012. bool SaveXML(XMLElement&) const;
  7013. IntVector2 ScreenToElement(const IntVector2&);
  7014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7015. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7016. bool SetAttribute(const String&, const Variant&);
  7017. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7018. void SetAttributeAnimationSpeed(const String&, float);
  7019. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7020. void SetFixedHeight(int);
  7021. void SetFixedSize(int, int);
  7022. void SetFixedWidth(int);
  7023. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7024. void SetMaxSize(int, int);
  7025. void SetMinSize(int, int);
  7026. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7027. void SetPosition(int, int);
  7028. void SetSize(int, int);
  7029. bool SetStyle(const String&, XMLFile = null);
  7030. bool SetStyle(const XMLElement&);
  7031. bool SetStyleAuto(XMLFile = null);
  7032. void StepBack();
  7033. void StepForward();
  7034. void UpdateLayout();
  7035. const Variant& GetVar(const ShortStringHash&);
  7036. // Properties:
  7037. bool animationEnabled;
  7038. /* readonly */
  7039. Array<Variant> attributeDefaults;
  7040. /* readonly */
  7041. Array<AttributeInfo> attributeInfos;
  7042. Array<Variant> attributes;
  7043. /* readonly */
  7044. Button backButton;
  7045. /* readonly */
  7046. ShortStringHash baseType;
  7047. bool bringToBack;
  7048. bool bringToFront;
  7049. /* readonly */
  7050. String category;
  7051. /* readonly */
  7052. IntVector2 childOffset;
  7053. /* readonly */
  7054. Array<UIElement> children;
  7055. IntRect clipBorder;
  7056. bool clipChildren;
  7057. /* writeonly */
  7058. Color color;
  7059. /* readonly */
  7060. bool colorGradient;
  7061. Array<Color> colors;
  7062. /* readonly */
  7063. IntRect combinedScreenRect;
  7064. XMLFile defaultStyle;
  7065. /* readonly */
  7066. float derivedOpacity;
  7067. uint dragDropMode;
  7068. bool editable;
  7069. /* readonly */
  7070. float effectiveScrollStep;
  7071. bool elementEventSender;
  7072. bool enabled;
  7073. /* readonly */
  7074. bool fixedHeight;
  7075. /* readonly */
  7076. bool fixedSize;
  7077. /* readonly */
  7078. bool fixedWidth;
  7079. bool focus;
  7080. FocusMode focusMode;
  7081. /* readonly */
  7082. Button forwardButton;
  7083. int height;
  7084. HorizontalAlignment horizontalAlignment;
  7085. /* readonly */
  7086. bool hovering;
  7087. int indent;
  7088. int indentSpacing;
  7089. /* readonly */
  7090. int indentWidth;
  7091. bool internal;
  7092. IntRect layoutBorder;
  7093. LayoutMode layoutMode;
  7094. int layoutSpacing;
  7095. int maxHeight;
  7096. IntVector2 maxSize;
  7097. int maxWidth;
  7098. int minHeight;
  7099. IntVector2 minSize;
  7100. int minWidth;
  7101. String name;
  7102. /* readonly */
  7103. uint numAllChildren;
  7104. /* readonly */
  7105. uint numAttributes;
  7106. /* readonly */
  7107. uint numChildren;
  7108. ObjectAnimation objectAnimation;
  7109. float opacity;
  7110. Orientation orientation;
  7111. UIElement parent;
  7112. IntVector2 position;
  7113. int priority;
  7114. float range;
  7115. /* readonly */
  7116. int refs;
  7117. /* readonly */
  7118. UIElement root;
  7119. /* readonly */
  7120. IntVector2 screenPosition;
  7121. float scrollStep;
  7122. bool selected;
  7123. IntVector2 size;
  7124. /* readonly */
  7125. Slider slider;
  7126. bool sortChildren;
  7127. float stepFactor;
  7128. String style;
  7129. bool temporary;
  7130. TraversalMode traversalMode;
  7131. /* readonly */
  7132. ShortStringHash type;
  7133. /* readonly */
  7134. String typeName;
  7135. bool useDerivedOpacity;
  7136. float value;
  7137. /* readonly */
  7138. VariantMap vars;
  7139. VerticalAlignment verticalAlignment;
  7140. bool visible;
  7141. /* readonly */
  7142. int weakRefs;
  7143. int width;
  7144. };
  7145. class ScrollView
  7146. {
  7147. // Methods:
  7148. void AddChild(UIElement);
  7149. void ApplyAttributes();
  7150. void BringToFront();
  7151. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7152. void DisableLayoutUpdate();
  7153. IntVector2 ElementToScreen(const IntVector2&);
  7154. void EnableLayoutUpdate();
  7155. uint FindChild(UIElement) const;
  7156. Variant GetAttribute(const String&) const;
  7157. AttributeAnimation GetAttributeAnimation(const String&) const;
  7158. float GetAttributeAnimationSpeed(const String&) const;
  7159. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7160. Variant GetAttributeDefault(const String&) const;
  7161. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7162. UIElement GetChild(const String&, bool = false) const;
  7163. Array<UIElement> GetChildren(bool = false) const;
  7164. UIElement GetElementEventSender() const;
  7165. uint GetNumChildren(bool) const;
  7166. void InsertChild(uint, UIElement);
  7167. bool IsInside(IntVector2, bool);
  7168. bool IsInsideCombined(IntVector2, bool);
  7169. bool Load(File, bool = false);
  7170. bool LoadChildXML(XMLFile, XMLFile = null);
  7171. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7172. bool LoadXML(File);
  7173. bool LoadXML(XMLFile, XMLFile);
  7174. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7175. bool LoadXML(const XMLElement&, bool = false);
  7176. void Remove();
  7177. void RemoveAllChildren();
  7178. void RemoveChild(UIElement, uint = 0);
  7179. void RemoveChild(uint);
  7180. void RemoveInstanceDefault();
  7181. void ResetToDefault();
  7182. bool Save(File) const;
  7183. bool SaveXML(File);
  7184. bool SaveXML(XMLElement&) const;
  7185. IntVector2 ScreenToElement(const IntVector2&);
  7186. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7187. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7188. bool SetAttribute(const String&, const Variant&);
  7189. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7190. void SetAttributeAnimationSpeed(const String&, float);
  7191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7192. void SetFixedHeight(int);
  7193. void SetFixedSize(int, int);
  7194. void SetFixedWidth(int);
  7195. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7196. void SetMaxSize(int, int);
  7197. void SetMinSize(int, int);
  7198. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7199. void SetPosition(int, int);
  7200. void SetScrollBarsVisible(bool, bool);
  7201. void SetSize(int, int);
  7202. bool SetStyle(const String&, XMLFile = null);
  7203. bool SetStyle(const XMLElement&);
  7204. bool SetStyleAuto(XMLFile = null);
  7205. void SetViewPosition(int, int);
  7206. void UpdateLayout();
  7207. const Variant& GetVar(const ShortStringHash&);
  7208. // Properties:
  7209. bool animationEnabled;
  7210. /* readonly */
  7211. Array<Variant> attributeDefaults;
  7212. /* readonly */
  7213. Array<AttributeInfo> attributeInfos;
  7214. Array<Variant> attributes;
  7215. /* readonly */
  7216. ShortStringHash baseType;
  7217. bool bringToBack;
  7218. bool bringToFront;
  7219. /* readonly */
  7220. String category;
  7221. /* readonly */
  7222. IntVector2 childOffset;
  7223. /* readonly */
  7224. Array<UIElement> children;
  7225. IntRect clipBorder;
  7226. bool clipChildren;
  7227. /* writeonly */
  7228. Color color;
  7229. /* readonly */
  7230. bool colorGradient;
  7231. Array<Color> colors;
  7232. /* readonly */
  7233. IntRect combinedScreenRect;
  7234. UIElement contentElement;
  7235. XMLFile defaultStyle;
  7236. /* readonly */
  7237. float derivedOpacity;
  7238. uint dragDropMode;
  7239. bool editable;
  7240. bool elementEventSender;
  7241. bool enabled;
  7242. /* readonly */
  7243. bool fixedHeight;
  7244. /* readonly */
  7245. bool fixedSize;
  7246. /* readonly */
  7247. bool fixedWidth;
  7248. bool focus;
  7249. FocusMode focusMode;
  7250. int height;
  7251. HorizontalAlignment horizontalAlignment;
  7252. /* readonly */
  7253. ScrollBar horizontalScrollBar;
  7254. /* readonly */
  7255. bool hovering;
  7256. int indent;
  7257. int indentSpacing;
  7258. /* readonly */
  7259. int indentWidth;
  7260. bool internal;
  7261. IntRect layoutBorder;
  7262. LayoutMode layoutMode;
  7263. int layoutSpacing;
  7264. int maxHeight;
  7265. IntVector2 maxSize;
  7266. int maxWidth;
  7267. int minHeight;
  7268. IntVector2 minSize;
  7269. int minWidth;
  7270. String name;
  7271. /* readonly */
  7272. uint numAllChildren;
  7273. /* readonly */
  7274. uint numAttributes;
  7275. /* readonly */
  7276. uint numChildren;
  7277. ObjectAnimation objectAnimation;
  7278. float opacity;
  7279. float pageStep;
  7280. UIElement parent;
  7281. IntVector2 position;
  7282. int priority;
  7283. /* readonly */
  7284. int refs;
  7285. /* readonly */
  7286. UIElement root;
  7287. /* readonly */
  7288. IntVector2 screenPosition;
  7289. bool scrollBarsAutoVisible;
  7290. /* readonly */
  7291. BorderImage scrollPanel;
  7292. float scrollStep;
  7293. bool selected;
  7294. IntVector2 size;
  7295. bool sortChildren;
  7296. String style;
  7297. bool temporary;
  7298. TraversalMode traversalMode;
  7299. /* readonly */
  7300. ShortStringHash type;
  7301. /* readonly */
  7302. String typeName;
  7303. bool useDerivedOpacity;
  7304. /* readonly */
  7305. VariantMap vars;
  7306. VerticalAlignment verticalAlignment;
  7307. /* readonly */
  7308. ScrollBar verticalScrollBar;
  7309. IntVector2 viewPosition;
  7310. bool visible;
  7311. /* readonly */
  7312. int weakRefs;
  7313. int width;
  7314. };
  7315. class Serializable
  7316. {
  7317. // Methods:
  7318. void ApplyAttributes();
  7319. Variant GetAttribute(const String&) const;
  7320. Variant GetAttributeDefault(const String&) const;
  7321. bool Load(File, bool = false);
  7322. bool LoadXML(const XMLElement&, bool = false);
  7323. void RemoveInstanceDefault();
  7324. void ResetToDefault();
  7325. bool Save(File) const;
  7326. bool SaveXML(XMLElement&) const;
  7327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7328. bool SetAttribute(const String&, const Variant&);
  7329. // Properties:
  7330. /* readonly */
  7331. Array<Variant> attributeDefaults;
  7332. /* readonly */
  7333. Array<AttributeInfo> attributeInfos;
  7334. Array<Variant> attributes;
  7335. /* readonly */
  7336. ShortStringHash baseType;
  7337. /* readonly */
  7338. String category;
  7339. /* readonly */
  7340. uint numAttributes;
  7341. /* readonly */
  7342. int refs;
  7343. bool temporary;
  7344. /* readonly */
  7345. ShortStringHash type;
  7346. /* readonly */
  7347. String typeName;
  7348. /* readonly */
  7349. int weakRefs;
  7350. };
  7351. class Serializer
  7352. {
  7353. // Methods:
  7354. uint Write(Array<uint8>);
  7355. bool WriteBool(bool);
  7356. bool WriteBoundingBox(const BoundingBox&);
  7357. bool WriteByte(int8);
  7358. bool WriteColor(const Color&);
  7359. bool WriteFileID(const String&);
  7360. bool WriteFloat(float);
  7361. bool WriteInt(int);
  7362. bool WriteIntRect(const IntRect&);
  7363. bool WriteIntVector2(const IntVector2&);
  7364. bool WriteLine(const String&);
  7365. bool WriteMatrix3(const Matrix3&);
  7366. bool WriteMatrix3x4(const Matrix3x4&);
  7367. bool WriteMatrix4(const Matrix4&);
  7368. bool WriteNetID(uint);
  7369. bool WritePackedQuaternion(const Quaternion&);
  7370. bool WritePackedVector3(const Vector3&, float);
  7371. bool WriteQuaternion(const Quaternion&);
  7372. bool WriteShort(int16);
  7373. bool WriteShortStringHash(const ShortStringHash&);
  7374. bool WriteString(const String&);
  7375. bool WriteStringHash(const StringHash&);
  7376. bool WriteUByte(uint8);
  7377. bool WriteUInt(uint);
  7378. bool WriteUShort(uint16);
  7379. bool WriteVLE(uint);
  7380. bool WriteVariant(const Variant&);
  7381. bool WriteVariantMap(const VariantMap&);
  7382. bool WriteVector2(const Vector2&);
  7383. bool WriteVector3(const Vector3&);
  7384. bool WriteVector4(const Vector4&);
  7385. };
  7386. class ShortStringHash
  7387. {
  7388. // Methods:
  7389. String ToString() const;
  7390. // Properties:
  7391. /* readonly */
  7392. uint16 value;
  7393. };
  7394. class Skeleton
  7395. {
  7396. // Methods:
  7397. Bone GetBone(const String&) const;
  7398. void Reset();
  7399. // Properties:
  7400. /* readonly */
  7401. Array<Bone> bones;
  7402. /* readonly */
  7403. uint numBones;
  7404. /* readonly */
  7405. Bone rootBone;
  7406. };
  7407. class Skybox
  7408. {
  7409. // Methods:
  7410. void ApplyAttributes();
  7411. void ApplyMaterialList(const String& = String ( ));
  7412. void DrawDebugGeometry(DebugRenderer, bool);
  7413. Variant GetAttribute(const String&) const;
  7414. AttributeAnimation GetAttributeAnimation(const String&) const;
  7415. float GetAttributeAnimationSpeed(const String&) const;
  7416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7417. Variant GetAttributeDefault(const String&) const;
  7418. bool IsInView(Camera) const;
  7419. bool Load(File, bool = false);
  7420. bool LoadXML(const XMLElement&, bool = false);
  7421. void MarkNetworkUpdate() const;
  7422. void Remove();
  7423. void RemoveInstanceDefault();
  7424. void ResetToDefault();
  7425. bool Save(File) const;
  7426. bool SaveXML(XMLElement&) const;
  7427. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7428. bool SetAttribute(const String&, const Variant&);
  7429. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7430. void SetAttributeAnimationSpeed(const String&, float);
  7431. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7432. // Properties:
  7433. bool animationEnabled;
  7434. /* readonly */
  7435. Array<Variant> attributeDefaults;
  7436. /* readonly */
  7437. Array<AttributeInfo> attributeInfos;
  7438. Array<Variant> attributes;
  7439. /* readonly */
  7440. ShortStringHash baseType;
  7441. /* readonly */
  7442. BoundingBox boundingBox;
  7443. bool castShadows;
  7444. /* readonly */
  7445. String category;
  7446. float drawDistance;
  7447. bool enabled;
  7448. /* readonly */
  7449. bool enabledEffective;
  7450. /* readonly */
  7451. uint id;
  7452. /* readonly */
  7453. bool inView;
  7454. uint lightMask;
  7455. float lodBias;
  7456. /* writeonly */
  7457. Material material;
  7458. Array<Material> materials;
  7459. uint maxLights;
  7460. Model model;
  7461. /* readonly */
  7462. Node node;
  7463. /* readonly */
  7464. uint numAttributes;
  7465. /* readonly */
  7466. uint numGeometries;
  7467. ObjectAnimation objectAnimation;
  7468. bool occludee;
  7469. bool occluder;
  7470. /* readonly */
  7471. int refs;
  7472. float shadowDistance;
  7473. uint shadowMask;
  7474. bool temporary;
  7475. /* readonly */
  7476. ShortStringHash type;
  7477. /* readonly */
  7478. String typeName;
  7479. uint viewMask;
  7480. /* readonly */
  7481. int weakRefs;
  7482. /* readonly */
  7483. BoundingBox worldBoundingBox;
  7484. /* readonly */
  7485. Zone zone;
  7486. uint zoneMask;
  7487. };
  7488. class Slider
  7489. {
  7490. // Methods:
  7491. void AddChild(UIElement);
  7492. void ApplyAttributes();
  7493. void BringToFront();
  7494. void ChangeValue(float);
  7495. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7496. void DisableLayoutUpdate();
  7497. IntVector2 ElementToScreen(const IntVector2&);
  7498. void EnableLayoutUpdate();
  7499. uint FindChild(UIElement) const;
  7500. Variant GetAttribute(const String&) const;
  7501. AttributeAnimation GetAttributeAnimation(const String&) const;
  7502. float GetAttributeAnimationSpeed(const String&) const;
  7503. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7504. Variant GetAttributeDefault(const String&) const;
  7505. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7506. UIElement GetChild(const String&, bool = false) const;
  7507. Array<UIElement> GetChildren(bool = false) const;
  7508. UIElement GetElementEventSender() const;
  7509. uint GetNumChildren(bool) const;
  7510. void InsertChild(uint, UIElement);
  7511. bool IsInside(IntVector2, bool);
  7512. bool IsInsideCombined(IntVector2, bool);
  7513. bool Load(File, bool = false);
  7514. bool LoadChildXML(XMLFile, XMLFile = null);
  7515. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7516. bool LoadXML(File);
  7517. bool LoadXML(XMLFile, XMLFile);
  7518. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7519. bool LoadXML(const XMLElement&, bool = false);
  7520. void Remove();
  7521. void RemoveAllChildren();
  7522. void RemoveChild(UIElement, uint = 0);
  7523. void RemoveChild(uint);
  7524. void RemoveInstanceDefault();
  7525. void ResetToDefault();
  7526. bool Save(File) const;
  7527. bool SaveXML(File);
  7528. bool SaveXML(XMLElement&) const;
  7529. IntVector2 ScreenToElement(const IntVector2&);
  7530. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7531. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7532. bool SetAttribute(const String&, const Variant&);
  7533. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7534. void SetAttributeAnimationSpeed(const String&, float);
  7535. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7536. void SetFixedHeight(int);
  7537. void SetFixedSize(int, int);
  7538. void SetFixedWidth(int);
  7539. void SetFullImageRect();
  7540. void SetHoverOffset(int, int);
  7541. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7542. void SetMaxSize(int, int);
  7543. void SetMinSize(int, int);
  7544. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7545. void SetPosition(int, int);
  7546. void SetSize(int, int);
  7547. bool SetStyle(const String&, XMLFile = null);
  7548. bool SetStyle(const XMLElement&);
  7549. bool SetStyleAuto(XMLFile = null);
  7550. void UpdateLayout();
  7551. const Variant& GetVar(const ShortStringHash&);
  7552. // Properties:
  7553. bool animationEnabled;
  7554. /* readonly */
  7555. Array<Variant> attributeDefaults;
  7556. /* readonly */
  7557. Array<AttributeInfo> attributeInfos;
  7558. Array<Variant> attributes;
  7559. /* readonly */
  7560. ShortStringHash baseType;
  7561. BlendMode blendMode;
  7562. IntRect border;
  7563. bool bringToBack;
  7564. bool bringToFront;
  7565. /* readonly */
  7566. String category;
  7567. /* readonly */
  7568. IntVector2 childOffset;
  7569. /* readonly */
  7570. Array<UIElement> children;
  7571. IntRect clipBorder;
  7572. bool clipChildren;
  7573. /* writeonly */
  7574. Color color;
  7575. /* readonly */
  7576. bool colorGradient;
  7577. Array<Color> colors;
  7578. /* readonly */
  7579. IntRect combinedScreenRect;
  7580. XMLFile defaultStyle;
  7581. /* readonly */
  7582. float derivedOpacity;
  7583. uint dragDropMode;
  7584. bool editable;
  7585. bool elementEventSender;
  7586. bool enabled;
  7587. /* readonly */
  7588. bool fixedHeight;
  7589. /* readonly */
  7590. bool fixedSize;
  7591. /* readonly */
  7592. bool fixedWidth;
  7593. bool focus;
  7594. FocusMode focusMode;
  7595. int height;
  7596. HorizontalAlignment horizontalAlignment;
  7597. IntVector2 hoverOffset;
  7598. /* readonly */
  7599. bool hovering;
  7600. IntRect imageBorder;
  7601. IntRect imageRect;
  7602. int indent;
  7603. int indentSpacing;
  7604. /* readonly */
  7605. int indentWidth;
  7606. bool internal;
  7607. /* readonly */
  7608. BorderImage knob;
  7609. IntRect layoutBorder;
  7610. LayoutMode layoutMode;
  7611. int layoutSpacing;
  7612. int maxHeight;
  7613. IntVector2 maxSize;
  7614. int maxWidth;
  7615. int minHeight;
  7616. IntVector2 minSize;
  7617. int minWidth;
  7618. String name;
  7619. /* readonly */
  7620. uint numAllChildren;
  7621. /* readonly */
  7622. uint numAttributes;
  7623. /* readonly */
  7624. uint numChildren;
  7625. ObjectAnimation objectAnimation;
  7626. float opacity;
  7627. Orientation orientation;
  7628. UIElement parent;
  7629. IntVector2 position;
  7630. int priority;
  7631. float range;
  7632. /* readonly */
  7633. int refs;
  7634. float repeatRate;
  7635. /* readonly */
  7636. UIElement root;
  7637. /* readonly */
  7638. IntVector2 screenPosition;
  7639. bool selected;
  7640. IntVector2 size;
  7641. bool sortChildren;
  7642. String style;
  7643. bool temporary;
  7644. Texture texture;
  7645. bool tiled;
  7646. TraversalMode traversalMode;
  7647. /* readonly */
  7648. ShortStringHash type;
  7649. /* readonly */
  7650. String typeName;
  7651. bool useDerivedOpacity;
  7652. float value;
  7653. /* readonly */
  7654. VariantMap vars;
  7655. VerticalAlignment verticalAlignment;
  7656. bool visible;
  7657. /* readonly */
  7658. int weakRefs;
  7659. int width;
  7660. };
  7661. class SmoothedTransform
  7662. {
  7663. // Methods:
  7664. void ApplyAttributes();
  7665. void DrawDebugGeometry(DebugRenderer, bool);
  7666. Variant GetAttribute(const String&) const;
  7667. AttributeAnimation GetAttributeAnimation(const String&) const;
  7668. float GetAttributeAnimationSpeed(const String&) const;
  7669. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7670. Variant GetAttributeDefault(const String&) const;
  7671. bool Load(File, bool = false);
  7672. bool LoadXML(const XMLElement&, bool = false);
  7673. void MarkNetworkUpdate() const;
  7674. void Remove();
  7675. void RemoveInstanceDefault();
  7676. void ResetToDefault();
  7677. bool Save(File) const;
  7678. bool SaveXML(XMLElement&) const;
  7679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7680. bool SetAttribute(const String&, const Variant&);
  7681. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7682. void SetAttributeAnimationSpeed(const String&, float);
  7683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7684. void Update(float, float);
  7685. // Properties:
  7686. bool animationEnabled;
  7687. /* readonly */
  7688. Array<Variant> attributeDefaults;
  7689. /* readonly */
  7690. Array<AttributeInfo> attributeInfos;
  7691. Array<Variant> attributes;
  7692. /* readonly */
  7693. ShortStringHash baseType;
  7694. /* readonly */
  7695. String category;
  7696. bool enabled;
  7697. /* readonly */
  7698. bool enabledEffective;
  7699. /* readonly */
  7700. uint id;
  7701. /* readonly */
  7702. bool inProgress;
  7703. /* readonly */
  7704. Node node;
  7705. /* readonly */
  7706. uint numAttributes;
  7707. ObjectAnimation objectAnimation;
  7708. /* readonly */
  7709. int refs;
  7710. Vector3 targetPosition;
  7711. Quaternion targetRotation;
  7712. Vector3 targetWorldPosition;
  7713. Quaternion targetWorldRotation;
  7714. bool temporary;
  7715. /* readonly */
  7716. ShortStringHash type;
  7717. /* readonly */
  7718. String typeName;
  7719. /* readonly */
  7720. int weakRefs;
  7721. };
  7722. class Sound
  7723. {
  7724. // Methods:
  7725. bool Load(File);
  7726. bool Save(File) const;
  7727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7728. // Properties:
  7729. /* readonly */
  7730. ShortStringHash baseType;
  7731. /* readonly */
  7732. String category;
  7733. /* readonly */
  7734. bool compressed;
  7735. /* readonly */
  7736. float frequency;
  7737. /* readonly */
  7738. float length;
  7739. bool looped;
  7740. /* readonly */
  7741. uint memoryUse;
  7742. String name;
  7743. /* readonly */
  7744. int refs;
  7745. /* readonly */
  7746. uint sampleSize;
  7747. /* readonly */
  7748. bool sixteenBit;
  7749. /* readonly */
  7750. bool stereo;
  7751. /* readonly */
  7752. ShortStringHash type;
  7753. /* readonly */
  7754. String typeName;
  7755. /* readonly */
  7756. uint useTimer;
  7757. /* readonly */
  7758. int weakRefs;
  7759. };
  7760. class SoundListener
  7761. {
  7762. // Methods:
  7763. void ApplyAttributes();
  7764. void DrawDebugGeometry(DebugRenderer, bool);
  7765. Variant GetAttribute(const String&) const;
  7766. AttributeAnimation GetAttributeAnimation(const String&) const;
  7767. float GetAttributeAnimationSpeed(const String&) const;
  7768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7769. Variant GetAttributeDefault(const String&) const;
  7770. bool Load(File, bool = false);
  7771. bool LoadXML(const XMLElement&, bool = false);
  7772. void MarkNetworkUpdate() const;
  7773. void Remove();
  7774. void RemoveInstanceDefault();
  7775. void ResetToDefault();
  7776. bool Save(File) const;
  7777. bool SaveXML(XMLElement&) const;
  7778. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7779. bool SetAttribute(const String&, const Variant&);
  7780. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7781. void SetAttributeAnimationSpeed(const String&, float);
  7782. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7783. // Properties:
  7784. bool animationEnabled;
  7785. /* readonly */
  7786. Array<Variant> attributeDefaults;
  7787. /* readonly */
  7788. Array<AttributeInfo> attributeInfos;
  7789. Array<Variant> attributes;
  7790. /* readonly */
  7791. ShortStringHash baseType;
  7792. /* readonly */
  7793. String category;
  7794. bool enabled;
  7795. /* readonly */
  7796. bool enabledEffective;
  7797. /* readonly */
  7798. uint id;
  7799. /* readonly */
  7800. Node node;
  7801. /* readonly */
  7802. uint numAttributes;
  7803. ObjectAnimation objectAnimation;
  7804. /* readonly */
  7805. int refs;
  7806. bool temporary;
  7807. /* readonly */
  7808. ShortStringHash type;
  7809. /* readonly */
  7810. String typeName;
  7811. /* readonly */
  7812. int weakRefs;
  7813. };
  7814. class SoundSource
  7815. {
  7816. // Methods:
  7817. void ApplyAttributes();
  7818. void DrawDebugGeometry(DebugRenderer, bool);
  7819. Variant GetAttribute(const String&) const;
  7820. AttributeAnimation GetAttributeAnimation(const String&) const;
  7821. float GetAttributeAnimationSpeed(const String&) const;
  7822. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7823. Variant GetAttributeDefault(const String&) const;
  7824. bool Load(File, bool = false);
  7825. bool LoadXML(const XMLElement&, bool = false);
  7826. void MarkNetworkUpdate() const;
  7827. void Play(Sound);
  7828. void Play(Sound, float);
  7829. void Play(Sound, float, float);
  7830. void Play(Sound, float, float, float);
  7831. void Remove();
  7832. void RemoveInstanceDefault();
  7833. void ResetToDefault();
  7834. bool Save(File) const;
  7835. bool SaveXML(XMLElement&) const;
  7836. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7837. bool SetAttribute(const String&, const Variant&);
  7838. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7839. void SetAttributeAnimationSpeed(const String&, float);
  7840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7841. void Stop();
  7842. // Properties:
  7843. bool animationEnabled;
  7844. /* readonly */
  7845. float attenuation;
  7846. /* readonly */
  7847. Array<Variant> attributeDefaults;
  7848. /* readonly */
  7849. Array<AttributeInfo> attributeInfos;
  7850. Array<Variant> attributes;
  7851. bool autoRemove;
  7852. /* readonly */
  7853. ShortStringHash baseType;
  7854. /* readonly */
  7855. String category;
  7856. bool enabled;
  7857. /* readonly */
  7858. bool enabledEffective;
  7859. float frequency;
  7860. float gain;
  7861. /* readonly */
  7862. uint id;
  7863. /* readonly */
  7864. Node node;
  7865. /* readonly */
  7866. uint numAttributes;
  7867. ObjectAnimation objectAnimation;
  7868. float panning;
  7869. /* readonly */
  7870. bool playing;
  7871. /* readonly */
  7872. int refs;
  7873. /* readonly */
  7874. Sound sound;
  7875. SoundType soundType;
  7876. bool temporary;
  7877. /* readonly */
  7878. float timePosition;
  7879. /* readonly */
  7880. ShortStringHash type;
  7881. /* readonly */
  7882. String typeName;
  7883. /* readonly */
  7884. int weakRefs;
  7885. };
  7886. class SoundSource3D
  7887. {
  7888. // Methods:
  7889. void ApplyAttributes();
  7890. void DrawDebugGeometry(DebugRenderer, bool);
  7891. Variant GetAttribute(const String&) const;
  7892. AttributeAnimation GetAttributeAnimation(const String&) const;
  7893. float GetAttributeAnimationSpeed(const String&) const;
  7894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7895. Variant GetAttributeDefault(const String&) const;
  7896. bool Load(File, bool = false);
  7897. bool LoadXML(const XMLElement&, bool = false);
  7898. void MarkNetworkUpdate() const;
  7899. void Play(Sound);
  7900. void Play(Sound, float);
  7901. void Play(Sound, float, float);
  7902. void Play(Sound, float, float, float);
  7903. void Remove();
  7904. void RemoveInstanceDefault();
  7905. void ResetToDefault();
  7906. bool Save(File) const;
  7907. bool SaveXML(XMLElement&) const;
  7908. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7909. void SetAngleAttenuation(float, float);
  7910. bool SetAttribute(const String&, const Variant&);
  7911. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7912. void SetAttributeAnimationSpeed(const String&, float);
  7913. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7914. void SetDistanceAttenuation(float, float, float);
  7915. void Stop();
  7916. // Properties:
  7917. bool animationEnabled;
  7918. /* readonly */
  7919. float attenuation;
  7920. /* readonly */
  7921. Array<Variant> attributeDefaults;
  7922. /* readonly */
  7923. Array<AttributeInfo> attributeInfos;
  7924. Array<Variant> attributes;
  7925. bool autoRemove;
  7926. /* readonly */
  7927. ShortStringHash baseType;
  7928. /* readonly */
  7929. String category;
  7930. bool enabled;
  7931. /* readonly */
  7932. bool enabledEffective;
  7933. float farDistance;
  7934. float frequency;
  7935. float gain;
  7936. /* readonly */
  7937. uint id;
  7938. float innerAngle;
  7939. float nearDistance;
  7940. /* readonly */
  7941. Node node;
  7942. /* readonly */
  7943. uint numAttributes;
  7944. ObjectAnimation objectAnimation;
  7945. float outerAngle;
  7946. float panning;
  7947. /* readonly */
  7948. bool playing;
  7949. /* readonly */
  7950. int refs;
  7951. float rolloffFactor;
  7952. /* readonly */
  7953. Sound sound;
  7954. SoundType soundType;
  7955. bool temporary;
  7956. /* readonly */
  7957. float timePosition;
  7958. /* readonly */
  7959. ShortStringHash type;
  7960. /* readonly */
  7961. String typeName;
  7962. /* readonly */
  7963. int weakRefs;
  7964. };
  7965. class Sphere
  7966. {
  7967. // Methods:
  7968. void Clear();
  7969. void Define(const BoundingBox&);
  7970. void Define(const Frustum&);
  7971. void Define(const Polyhedron&);
  7972. void Define(const Sphere&);
  7973. void Define(const Vector3&, float);
  7974. float Distance(const Vector3&) const;
  7975. Intersection IsInside(const BoundingBox&) const;
  7976. Intersection IsInside(const Sphere&) const;
  7977. Intersection IsInside(const Vector3&) const;
  7978. void Merge(const BoundingBox&);
  7979. void Merge(const Frustum&);
  7980. void Merge(const Sphere&);
  7981. void Merge(const Vector3&);
  7982. // Properties:
  7983. Vector3 center;
  7984. bool defined;
  7985. float radius;
  7986. };
  7987. class Spline
  7988. {
  7989. // Methods:
  7990. void AddKnot(const Variant&);
  7991. void AddKnot(const Variant&, uint);
  7992. void Clear();
  7993. Variant GetPoint(float);
  7994. void RemoveKnot();
  7995. void RemoveKnot(uint);
  7996. // Properties:
  7997. InterpolationMode interpolationMode;
  7998. Array<Variant> knot;
  7999. Array<Variant> knots;
  8000. };
  8001. class SplinePath
  8002. {
  8003. // Methods:
  8004. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  8005. void ApplyAttributes();
  8006. void ClearControlPoints();
  8007. void DrawDebugGeometry(DebugRenderer, bool);
  8008. Variant GetAttribute(const String&) const;
  8009. AttributeAnimation GetAttributeAnimation(const String&) const;
  8010. float GetAttributeAnimationSpeed(const String&) const;
  8011. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8012. Variant GetAttributeDefault(const String&) const;
  8013. Vector3 GetPoint(float) const;
  8014. bool Load(File, bool = false);
  8015. bool LoadXML(const XMLElement&, bool = false);
  8016. void MarkNetworkUpdate() const;
  8017. void Move(float);
  8018. void Remove();
  8019. void RemoveControlPoint(Node);
  8020. void RemoveInstanceDefault();
  8021. void Reset();
  8022. void ResetToDefault();
  8023. bool Save(File) const;
  8024. bool SaveXML(XMLElement&) const;
  8025. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8026. bool SetAttribute(const String&, const Variant&);
  8027. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8028. void SetAttributeAnimationSpeed(const String&, float);
  8029. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8030. // Properties:
  8031. bool animationEnabled;
  8032. /* readonly */
  8033. Array<Variant> attributeDefaults;
  8034. /* readonly */
  8035. Array<AttributeInfo> attributeInfos;
  8036. Array<Variant> attributes;
  8037. /* readonly */
  8038. ShortStringHash baseType;
  8039. /* readonly */
  8040. String category;
  8041. Node controlledNode;
  8042. bool enabled;
  8043. /* readonly */
  8044. bool enabledEffective;
  8045. /* readonly */
  8046. uint id;
  8047. InterpolationMode interpolationMode;
  8048. /* readonly */
  8049. bool isFinished;
  8050. /* readonly */
  8051. Node node;
  8052. /* readonly */
  8053. uint numAttributes;
  8054. ObjectAnimation objectAnimation;
  8055. Vector3 position;
  8056. /* readonly */
  8057. int refs;
  8058. float speed;
  8059. bool temporary;
  8060. /* readonly */
  8061. ShortStringHash type;
  8062. /* readonly */
  8063. String typeName;
  8064. /* readonly */
  8065. int weakRefs;
  8066. };
  8067. class Sprite
  8068. {
  8069. // Methods:
  8070. void AddChild(UIElement);
  8071. void ApplyAttributes();
  8072. void BringToFront();
  8073. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8074. uint FindChild(UIElement) const;
  8075. Variant GetAttribute(const String&) const;
  8076. AttributeAnimation GetAttributeAnimation(const String&) const;
  8077. float GetAttributeAnimationSpeed(const String&) const;
  8078. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8079. Variant GetAttributeDefault(const String&) const;
  8080. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8081. UIElement GetChild(const String&, bool = false) const;
  8082. Array<UIElement> GetChildren(bool = false) const;
  8083. UIElement GetElementEventSender() const;
  8084. uint GetNumChildren(bool) const;
  8085. void InsertChild(uint, UIElement);
  8086. bool Load(File, bool = false);
  8087. bool LoadChildXML(XMLFile, XMLFile = null);
  8088. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8089. bool LoadXML(File);
  8090. bool LoadXML(XMLFile, XMLFile);
  8091. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8092. bool LoadXML(const XMLElement&, bool = false);
  8093. void Remove();
  8094. void RemoveAllChildren();
  8095. void RemoveChild(UIElement, uint = 0);
  8096. void RemoveChild(uint);
  8097. void RemoveInstanceDefault();
  8098. void ResetToDefault();
  8099. bool Save(File) const;
  8100. bool SaveXML(File);
  8101. bool SaveXML(XMLElement&) const;
  8102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8103. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8104. bool SetAttribute(const String&, const Variant&);
  8105. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8106. void SetAttributeAnimationSpeed(const String&, float);
  8107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8108. void SetFixedHeight(int);
  8109. void SetFixedSize(int, int);
  8110. void SetFixedWidth(int);
  8111. void SetFullImageRect();
  8112. void SetHotSpot(int, int);
  8113. void SetMaxSize(int, int);
  8114. void SetMinSize(int, int);
  8115. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8116. void SetPosition(float, float);
  8117. void SetScale(float);
  8118. void SetScale(float, float);
  8119. void SetSize(int, int);
  8120. bool SetStyle(const String&, XMLFile = null);
  8121. bool SetStyle(const XMLElement&);
  8122. bool SetStyleAuto(XMLFile = null);
  8123. const Variant& GetVar(const ShortStringHash&);
  8124. // Properties:
  8125. bool animationEnabled;
  8126. /* readonly */
  8127. Array<Variant> attributeDefaults;
  8128. /* readonly */
  8129. Array<AttributeInfo> attributeInfos;
  8130. Array<Variant> attributes;
  8131. /* readonly */
  8132. ShortStringHash baseType;
  8133. BlendMode blendMode;
  8134. bool bringToBack;
  8135. bool bringToFront;
  8136. /* readonly */
  8137. String category;
  8138. /* readonly */
  8139. Array<UIElement> children;
  8140. /* writeonly */
  8141. Color color;
  8142. /* readonly */
  8143. bool colorGradient;
  8144. Array<Color> colors;
  8145. XMLFile defaultStyle;
  8146. /* readonly */
  8147. float derivedOpacity;
  8148. bool elementEventSender;
  8149. int height;
  8150. HorizontalAlignment horizontalAlignment;
  8151. IntVector2 hotSpot;
  8152. IntRect imageRect;
  8153. String name;
  8154. /* readonly */
  8155. uint numAllChildren;
  8156. /* readonly */
  8157. uint numAttributes;
  8158. /* readonly */
  8159. uint numChildren;
  8160. ObjectAnimation objectAnimation;
  8161. float opacity;
  8162. UIElement parent;
  8163. Vector2 position;
  8164. int priority;
  8165. /* readonly */
  8166. int refs;
  8167. /* readonly */
  8168. UIElement root;
  8169. float rotation;
  8170. Vector2 scale;
  8171. IntVector2 size;
  8172. bool sortChildren;
  8173. String style;
  8174. bool temporary;
  8175. Texture texture;
  8176. /* readonly */
  8177. ShortStringHash type;
  8178. /* readonly */
  8179. String typeName;
  8180. bool useDerivedOpacity;
  8181. /* readonly */
  8182. VariantMap vars;
  8183. VerticalAlignment verticalAlignment;
  8184. bool visible;
  8185. /* readonly */
  8186. int weakRefs;
  8187. int width;
  8188. };
  8189. class Sprite2D
  8190. {
  8191. // Methods:
  8192. bool Load(File);
  8193. bool Save(File) const;
  8194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8195. // Properties:
  8196. /* readonly */
  8197. ShortStringHash baseType;
  8198. /* readonly */
  8199. String category;
  8200. Vector2 hotSpot;
  8201. /* readonly */
  8202. uint memoryUse;
  8203. String name;
  8204. IntRect rectangle;
  8205. /* readonly */
  8206. int refs;
  8207. Texture2D texture;
  8208. /* readonly */
  8209. ShortStringHash type;
  8210. /* readonly */
  8211. String typeName;
  8212. /* readonly */
  8213. uint useTimer;
  8214. /* readonly */
  8215. int weakRefs;
  8216. };
  8217. class SpriteSheet2D
  8218. {
  8219. // Methods:
  8220. void DefineSprite(const String&, const IntRect&, const Vector2&);
  8221. Sprite2D GetSprite(const String&);
  8222. bool Load(File);
  8223. bool Save(File) const;
  8224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8225. void UpdateSprite(const String&, const IntRect&, const Vector2&);
  8226. // Properties:
  8227. /* readonly */
  8228. ShortStringHash baseType;
  8229. /* readonly */
  8230. String category;
  8231. /* readonly */
  8232. uint memoryUse;
  8233. String name;
  8234. /* readonly */
  8235. int refs;
  8236. /* readonly */
  8237. Texture2D texture;
  8238. /* readonly */
  8239. ShortStringHash type;
  8240. /* readonly */
  8241. String typeName;
  8242. /* readonly */
  8243. uint useTimer;
  8244. /* readonly */
  8245. int weakRefs;
  8246. };
  8247. class StaticModel
  8248. {
  8249. // Methods:
  8250. void ApplyAttributes();
  8251. void ApplyMaterialList(const String& = String ( ));
  8252. void DrawDebugGeometry(DebugRenderer, bool);
  8253. Variant GetAttribute(const String&) const;
  8254. AttributeAnimation GetAttributeAnimation(const String&) const;
  8255. float GetAttributeAnimationSpeed(const String&) const;
  8256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8257. Variant GetAttributeDefault(const String&) const;
  8258. bool IsInView(Camera) const;
  8259. bool IsInside(const Vector3&) const;
  8260. bool IsInsideLocal(const Vector3&) const;
  8261. bool Load(File, bool = false);
  8262. bool LoadXML(const XMLElement&, bool = false);
  8263. void MarkNetworkUpdate() const;
  8264. void Remove();
  8265. void RemoveInstanceDefault();
  8266. void ResetToDefault();
  8267. bool Save(File) const;
  8268. bool SaveXML(XMLElement&) const;
  8269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8270. bool SetAttribute(const String&, const Variant&);
  8271. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8272. void SetAttributeAnimationSpeed(const String&, float);
  8273. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8274. // Properties:
  8275. bool animationEnabled;
  8276. /* readonly */
  8277. Array<Variant> attributeDefaults;
  8278. /* readonly */
  8279. Array<AttributeInfo> attributeInfos;
  8280. Array<Variant> attributes;
  8281. /* readonly */
  8282. ShortStringHash baseType;
  8283. /* readonly */
  8284. BoundingBox boundingBox;
  8285. bool castShadows;
  8286. /* readonly */
  8287. String category;
  8288. float drawDistance;
  8289. bool enabled;
  8290. /* readonly */
  8291. bool enabledEffective;
  8292. /* readonly */
  8293. uint id;
  8294. /* readonly */
  8295. bool inView;
  8296. uint lightMask;
  8297. float lodBias;
  8298. /* writeonly */
  8299. Material material;
  8300. Array<Material> materials;
  8301. uint maxLights;
  8302. Model model;
  8303. /* readonly */
  8304. Node node;
  8305. /* readonly */
  8306. uint numAttributes;
  8307. /* readonly */
  8308. uint numGeometries;
  8309. ObjectAnimation objectAnimation;
  8310. bool occludee;
  8311. bool occluder;
  8312. uint occlusionLodLevel;
  8313. /* readonly */
  8314. int refs;
  8315. float shadowDistance;
  8316. uint shadowMask;
  8317. bool temporary;
  8318. /* readonly */
  8319. ShortStringHash type;
  8320. /* readonly */
  8321. String typeName;
  8322. uint viewMask;
  8323. /* readonly */
  8324. int weakRefs;
  8325. /* readonly */
  8326. BoundingBox worldBoundingBox;
  8327. uint zoneMask;
  8328. };
  8329. class StaticModelGroup
  8330. {
  8331. // Methods:
  8332. void AddInstanceNode(Node);
  8333. void ApplyAttributes();
  8334. void ApplyMaterialList(const String& = String ( ));
  8335. void DrawDebugGeometry(DebugRenderer, bool);
  8336. Variant GetAttribute(const String&) const;
  8337. AttributeAnimation GetAttributeAnimation(const String&) const;
  8338. float GetAttributeAnimationSpeed(const String&) const;
  8339. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8340. Variant GetAttributeDefault(const String&) const;
  8341. bool IsInView(Camera) const;
  8342. bool Load(File, bool = false);
  8343. bool LoadXML(const XMLElement&, bool = false);
  8344. void MarkNetworkUpdate() const;
  8345. void Remove();
  8346. void RemoveAllInstanceNodes();
  8347. void RemoveInstanceDefault();
  8348. void RemoveInstanceNode(Node);
  8349. void ResetToDefault();
  8350. bool Save(File) const;
  8351. bool SaveXML(XMLElement&) const;
  8352. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8353. bool SetAttribute(const String&, const Variant&);
  8354. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8355. void SetAttributeAnimationSpeed(const String&, float);
  8356. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8357. // Properties:
  8358. bool animationEnabled;
  8359. /* readonly */
  8360. Array<Variant> attributeDefaults;
  8361. /* readonly */
  8362. Array<AttributeInfo> attributeInfos;
  8363. Array<Variant> attributes;
  8364. /* readonly */
  8365. ShortStringHash baseType;
  8366. /* readonly */
  8367. BoundingBox boundingBox;
  8368. bool castShadows;
  8369. /* readonly */
  8370. String category;
  8371. float drawDistance;
  8372. bool enabled;
  8373. /* readonly */
  8374. bool enabledEffective;
  8375. /* readonly */
  8376. uint id;
  8377. /* readonly */
  8378. bool inView;
  8379. /* readonly */
  8380. Array<Node> instanceNodes;
  8381. uint lightMask;
  8382. float lodBias;
  8383. /* writeonly */
  8384. Material material;
  8385. Array<Material> materials;
  8386. uint maxLights;
  8387. Model model;
  8388. /* readonly */
  8389. Node node;
  8390. /* readonly */
  8391. uint numAttributes;
  8392. /* readonly */
  8393. uint numGeometries;
  8394. /* readonly */
  8395. uint numInstanceNodes;
  8396. ObjectAnimation objectAnimation;
  8397. bool occludee;
  8398. bool occluder;
  8399. uint occlusionLodLevel;
  8400. /* readonly */
  8401. int refs;
  8402. float shadowDistance;
  8403. uint shadowMask;
  8404. bool temporary;
  8405. /* readonly */
  8406. ShortStringHash type;
  8407. /* readonly */
  8408. String typeName;
  8409. uint viewMask;
  8410. /* readonly */
  8411. int weakRefs;
  8412. /* readonly */
  8413. BoundingBox worldBoundingBox;
  8414. /* readonly */
  8415. Zone zone;
  8416. uint zoneMask;
  8417. };
  8418. class StaticSprite2D
  8419. {
  8420. // Methods:
  8421. void ApplyAttributes();
  8422. void DrawDebugGeometry(DebugRenderer, bool);
  8423. Variant GetAttribute(const String&) const;
  8424. AttributeAnimation GetAttributeAnimation(const String&) const;
  8425. float GetAttributeAnimationSpeed(const String&) const;
  8426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8427. Variant GetAttributeDefault(const String&) const;
  8428. bool IsInView(Camera) const;
  8429. bool Load(File, bool = false);
  8430. bool LoadXML(const XMLElement&, bool = false);
  8431. void MarkNetworkUpdate() const;
  8432. void Remove();
  8433. void RemoveInstanceDefault();
  8434. void ResetToDefault();
  8435. bool Save(File) const;
  8436. bool SaveXML(XMLElement&) const;
  8437. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8438. bool SetAttribute(const String&, const Variant&);
  8439. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8440. void SetAttributeAnimationSpeed(const String&, float);
  8441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8442. void SetFlip(bool, bool);
  8443. // Properties:
  8444. bool animationEnabled;
  8445. /* readonly */
  8446. Array<Variant> attributeDefaults;
  8447. /* readonly */
  8448. Array<AttributeInfo> attributeInfos;
  8449. Array<Variant> attributes;
  8450. /* readonly */
  8451. ShortStringHash baseType;
  8452. BlendMode blendMode;
  8453. /* readonly */
  8454. BoundingBox boundingBox;
  8455. bool castShadows;
  8456. /* readonly */
  8457. String category;
  8458. Color color;
  8459. float drawDistance;
  8460. bool enabled;
  8461. /* readonly */
  8462. bool enabledEffective;
  8463. bool flipX;
  8464. bool flipY;
  8465. /* readonly */
  8466. uint id;
  8467. /* readonly */
  8468. bool inView;
  8469. int layer;
  8470. uint lightMask;
  8471. float lodBias;
  8472. Material material;
  8473. uint maxLights;
  8474. /* readonly */
  8475. Node node;
  8476. /* readonly */
  8477. uint numAttributes;
  8478. ObjectAnimation objectAnimation;
  8479. bool occludee;
  8480. bool occluder;
  8481. int orderInLayer;
  8482. /* readonly */
  8483. int refs;
  8484. float shadowDistance;
  8485. uint shadowMask;
  8486. Sprite2D sprite;
  8487. bool temporary;
  8488. /* readonly */
  8489. ShortStringHash type;
  8490. /* readonly */
  8491. String typeName;
  8492. uint viewMask;
  8493. /* readonly */
  8494. int weakRefs;
  8495. /* readonly */
  8496. BoundingBox worldBoundingBox;
  8497. uint zoneMask;
  8498. };
  8499. class String
  8500. {
  8501. // Methods:
  8502. void AppendUTF8(uint);
  8503. uint AtUTF8(uint) const;
  8504. uint ByteOffsetUTF8(uint) const;
  8505. void Clear();
  8506. int Compare(const String&, bool = true) const;
  8507. bool Contains(const String&, bool = true) const;
  8508. bool Contains(uint8, bool = true) const;
  8509. bool EndsWith(const String&, bool = true) const;
  8510. uint Find(const String&, uint = 0, bool = true) const;
  8511. uint Find(uint8, uint = 0, bool = true) const;
  8512. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  8513. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  8514. void Join(Array<String>&, const String&);
  8515. uint NextUTF8Char(uint&) const;
  8516. void Replace(const String&, const String&, bool = true);
  8517. void Replace(uint8, uint8, bool = true);
  8518. void ReplaceUTF8(uint, uint);
  8519. String Replaced(const String&, const String&, bool = true) const;
  8520. String Replaced(uint8, uint8, bool = true) const;
  8521. void Resize(uint);
  8522. void SetUTF8FromLatin1(const String&);
  8523. Array<String> Split(uint8) const;
  8524. bool StartsWith(const String&, bool = true) const;
  8525. String Substring(uint) const;
  8526. String Substring(uint, uint) const;
  8527. String SubstringUTF8(uint) const;
  8528. String SubstringUTF8(uint, uint) const;
  8529. bool ToBool() const;
  8530. Color ToColor() const;
  8531. float ToFloat() const;
  8532. int ToInt() const;
  8533. IntRect ToIntRect() const;
  8534. IntVector2 ToIntVector2() const;
  8535. String ToLower() const;
  8536. Matrix3 ToMatrix3() const;
  8537. Matrix3x4 ToMatrix3x4() const;
  8538. Matrix4 ToMatrix4() const;
  8539. Quaternion ToQuaternion() const;
  8540. uint ToUInt() const;
  8541. String ToUpper() const;
  8542. Vector2 ToVector2() const;
  8543. Vector3 ToVector3() const;
  8544. Vector4 ToVector4(bool = false) const;
  8545. Variant ToVectorVariant() const;
  8546. String Trimmed() const;
  8547. // Properties:
  8548. /* readonly */
  8549. bool empty;
  8550. /* readonly */
  8551. uint length;
  8552. /* readonly */
  8553. uint utf8Length;
  8554. };
  8555. class StringHash
  8556. {
  8557. // Methods:
  8558. String ToString() const;
  8559. // Properties:
  8560. /* readonly */
  8561. uint value;
  8562. };
  8563. class Technique
  8564. {
  8565. // Methods:
  8566. Pass CreatePass(StringHash);
  8567. bool HasPass(StringHash) const;
  8568. bool Load(File);
  8569. void RemovePass(StringHash);
  8570. bool Save(File) const;
  8571. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8572. // Properties:
  8573. /* readonly */
  8574. ShortStringHash baseType;
  8575. /* readonly */
  8576. String category;
  8577. /* readonly */
  8578. uint memoryUse;
  8579. String name;
  8580. /* readonly */
  8581. Array<Pass> passes;
  8582. /* readonly */
  8583. int refs;
  8584. bool sm3;
  8585. /* readonly */
  8586. ShortStringHash type;
  8587. /* readonly */
  8588. String typeName;
  8589. /* readonly */
  8590. uint useTimer;
  8591. /* readonly */
  8592. int weakRefs;
  8593. };
  8594. class TechniqueEntry
  8595. {
  8596. // Properties:
  8597. float lodDistance;
  8598. int qualityLevel;
  8599. Technique technique;
  8600. };
  8601. class Terrain
  8602. {
  8603. // Methods:
  8604. void ApplyAttributes();
  8605. void DrawDebugGeometry(DebugRenderer, bool);
  8606. Variant GetAttribute(const String&) const;
  8607. AttributeAnimation GetAttributeAnimation(const String&) const;
  8608. float GetAttributeAnimationSpeed(const String&) const;
  8609. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8610. Variant GetAttributeDefault(const String&) const;
  8611. float GetHeight(const Vector3&) const;
  8612. Vector3 GetNormal(const Vector3&) const;
  8613. TerrainPatch GetPatch(int, int) const;
  8614. bool Load(File, bool = false);
  8615. bool LoadXML(const XMLElement&, bool = false);
  8616. void MarkNetworkUpdate() const;
  8617. void Remove();
  8618. void RemoveInstanceDefault();
  8619. void ResetToDefault();
  8620. bool Save(File) const;
  8621. bool SaveXML(XMLElement&) const;
  8622. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8623. bool SetAttribute(const String&, const Variant&);
  8624. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8625. void SetAttributeAnimationSpeed(const String&, float);
  8626. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8627. // Properties:
  8628. bool animationEnabled;
  8629. /* readonly */
  8630. Array<Variant> attributeDefaults;
  8631. /* readonly */
  8632. Array<AttributeInfo> attributeInfos;
  8633. Array<Variant> attributes;
  8634. /* readonly */
  8635. ShortStringHash baseType;
  8636. bool castShadows;
  8637. /* readonly */
  8638. String category;
  8639. float drawDistance;
  8640. bool enabled;
  8641. /* readonly */
  8642. bool enabledEffective;
  8643. Image heightMap;
  8644. /* readonly */
  8645. uint id;
  8646. uint lightMask;
  8647. float lodBias;
  8648. Material material;
  8649. uint maxLights;
  8650. /* readonly */
  8651. Node node;
  8652. /* readonly */
  8653. uint numAttributes;
  8654. /* readonly */
  8655. IntVector2 numPatches;
  8656. /* readonly */
  8657. IntVector2 numVertices;
  8658. ObjectAnimation objectAnimation;
  8659. bool occludee;
  8660. bool occluder;
  8661. int patchSize;
  8662. /* readonly */
  8663. Array<TerrainPatch> patches;
  8664. /* readonly */
  8665. int refs;
  8666. float shadowDistance;
  8667. uint shadowMask;
  8668. bool smoothing;
  8669. Vector3 spacing;
  8670. bool temporary;
  8671. /* readonly */
  8672. ShortStringHash type;
  8673. /* readonly */
  8674. String typeName;
  8675. uint viewMask;
  8676. /* readonly */
  8677. int weakRefs;
  8678. uint zoneMask;
  8679. };
  8680. class TerrainPatch
  8681. {
  8682. // Methods:
  8683. void ApplyAttributes();
  8684. void DrawDebugGeometry(DebugRenderer, bool);
  8685. Variant GetAttribute(const String&) const;
  8686. AttributeAnimation GetAttributeAnimation(const String&) const;
  8687. float GetAttributeAnimationSpeed(const String&) const;
  8688. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8689. Variant GetAttributeDefault(const String&) const;
  8690. bool IsInView(Camera) const;
  8691. bool Load(File, bool = false);
  8692. bool LoadXML(const XMLElement&, bool = false);
  8693. void MarkNetworkUpdate() const;
  8694. void Remove();
  8695. void RemoveInstanceDefault();
  8696. void ResetToDefault();
  8697. bool Save(File) const;
  8698. bool SaveXML(XMLElement&) const;
  8699. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8700. bool SetAttribute(const String&, const Variant&);
  8701. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8702. void SetAttributeAnimationSpeed(const String&, float);
  8703. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8704. // Properties:
  8705. bool animationEnabled;
  8706. /* readonly */
  8707. Array<Variant> attributeDefaults;
  8708. /* readonly */
  8709. Array<AttributeInfo> attributeInfos;
  8710. Array<Variant> attributes;
  8711. /* readonly */
  8712. ShortStringHash baseType;
  8713. /* readonly */
  8714. BoundingBox boundingBox;
  8715. bool castShadows;
  8716. /* readonly */
  8717. String category;
  8718. float drawDistance;
  8719. bool enabled;
  8720. /* readonly */
  8721. bool enabledEffective;
  8722. /* readonly */
  8723. uint id;
  8724. /* readonly */
  8725. bool inView;
  8726. uint lightMask;
  8727. float lodBias;
  8728. uint maxLights;
  8729. /* readonly */
  8730. Node node;
  8731. /* readonly */
  8732. uint numAttributes;
  8733. ObjectAnimation objectAnimation;
  8734. bool occludee;
  8735. bool occluder;
  8736. /* readonly */
  8737. int refs;
  8738. float shadowDistance;
  8739. uint shadowMask;
  8740. bool temporary;
  8741. /* readonly */
  8742. ShortStringHash type;
  8743. /* readonly */
  8744. String typeName;
  8745. uint viewMask;
  8746. /* readonly */
  8747. int weakRefs;
  8748. /* readonly */
  8749. BoundingBox worldBoundingBox;
  8750. uint zoneMask;
  8751. };
  8752. class Text
  8753. {
  8754. // Methods:
  8755. void AddChild(UIElement);
  8756. void ApplyAttributes();
  8757. void BringToFront();
  8758. void ClearSelection();
  8759. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8760. void DisableLayoutUpdate();
  8761. IntVector2 ElementToScreen(const IntVector2&);
  8762. void EnableLayoutUpdate();
  8763. uint FindChild(UIElement) const;
  8764. Variant GetAttribute(const String&) const;
  8765. AttributeAnimation GetAttributeAnimation(const String&) const;
  8766. float GetAttributeAnimationSpeed(const String&) const;
  8767. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8768. Variant GetAttributeDefault(const String&) const;
  8769. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8770. UIElement GetChild(const String&, bool = false) const;
  8771. Array<UIElement> GetChildren(bool = false) const;
  8772. UIElement GetElementEventSender() const;
  8773. uint GetNumChildren(bool) const;
  8774. void InsertChild(uint, UIElement);
  8775. bool IsInside(IntVector2, bool);
  8776. bool IsInsideCombined(IntVector2, bool);
  8777. bool Load(File, bool = false);
  8778. bool LoadChildXML(XMLFile, XMLFile = null);
  8779. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8780. bool LoadXML(File);
  8781. bool LoadXML(XMLFile, XMLFile);
  8782. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8783. bool LoadXML(const XMLElement&, bool = false);
  8784. void Remove();
  8785. void RemoveAllChildren();
  8786. void RemoveChild(UIElement, uint = 0);
  8787. void RemoveChild(uint);
  8788. void RemoveInstanceDefault();
  8789. void ResetToDefault();
  8790. bool Save(File) const;
  8791. bool SaveXML(File);
  8792. bool SaveXML(XMLElement&) const;
  8793. IntVector2 ScreenToElement(const IntVector2&);
  8794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8795. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8796. bool SetAttribute(const String&, const Variant&);
  8797. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8798. void SetAttributeAnimationSpeed(const String&, float);
  8799. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8800. void SetFixedHeight(int);
  8801. void SetFixedSize(int, int);
  8802. void SetFixedWidth(int);
  8803. bool SetFont(Font, int);
  8804. bool SetFont(const String&, int);
  8805. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8806. void SetMaxSize(int, int);
  8807. void SetMinSize(int, int);
  8808. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8809. void SetPosition(int, int);
  8810. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  8811. void SetSize(int, int);
  8812. bool SetStyle(const String&, XMLFile = null);
  8813. bool SetStyle(const XMLElement&);
  8814. bool SetStyleAuto(XMLFile = null);
  8815. void UpdateLayout();
  8816. const Variant& GetVar(const ShortStringHash&);
  8817. // Properties:
  8818. bool animationEnabled;
  8819. /* readonly */
  8820. Array<Variant> attributeDefaults;
  8821. /* readonly */
  8822. Array<AttributeInfo> attributeInfos;
  8823. Array<Variant> attributes;
  8824. /* readonly */
  8825. ShortStringHash baseType;
  8826. bool bringToBack;
  8827. bool bringToFront;
  8828. /* readonly */
  8829. String category;
  8830. /* readonly */
  8831. Array<IntVector2> charPositions;
  8832. /* readonly */
  8833. Array<IntVector2> charSizes;
  8834. /* readonly */
  8835. IntVector2 childOffset;
  8836. /* readonly */
  8837. Array<UIElement> children;
  8838. IntRect clipBorder;
  8839. bool clipChildren;
  8840. /* writeonly */
  8841. Color color;
  8842. /* readonly */
  8843. bool colorGradient;
  8844. Array<Color> colors;
  8845. /* readonly */
  8846. IntRect combinedScreenRect;
  8847. XMLFile defaultStyle;
  8848. /* readonly */
  8849. float derivedOpacity;
  8850. uint dragDropMode;
  8851. bool editable;
  8852. Color effectColor;
  8853. bool elementEventSender;
  8854. bool enabled;
  8855. /* readonly */
  8856. bool fixedHeight;
  8857. /* readonly */
  8858. bool fixedSize;
  8859. /* readonly */
  8860. bool fixedWidth;
  8861. bool focus;
  8862. FocusMode focusMode;
  8863. /* readonly */
  8864. Font font;
  8865. /* readonly */
  8866. int fontSize;
  8867. int height;
  8868. HorizontalAlignment horizontalAlignment;
  8869. Color hoverColor;
  8870. /* readonly */
  8871. bool hovering;
  8872. int indent;
  8873. int indentSpacing;
  8874. /* readonly */
  8875. int indentWidth;
  8876. bool internal;
  8877. IntRect layoutBorder;
  8878. LayoutMode layoutMode;
  8879. int layoutSpacing;
  8880. int maxHeight;
  8881. IntVector2 maxSize;
  8882. int maxWidth;
  8883. int minHeight;
  8884. IntVector2 minSize;
  8885. int minWidth;
  8886. String name;
  8887. /* readonly */
  8888. uint numAllChildren;
  8889. /* readonly */
  8890. uint numAttributes;
  8891. /* readonly */
  8892. uint numChars;
  8893. /* readonly */
  8894. uint numChildren;
  8895. /* readonly */
  8896. uint numRows;
  8897. ObjectAnimation objectAnimation;
  8898. float opacity;
  8899. UIElement parent;
  8900. IntVector2 position;
  8901. int priority;
  8902. /* readonly */
  8903. int refs;
  8904. /* readonly */
  8905. UIElement root;
  8906. /* readonly */
  8907. int rowHeight;
  8908. float rowSpacing;
  8909. /* readonly */
  8910. Array<int> rowWidths;
  8911. /* readonly */
  8912. IntVector2 screenPosition;
  8913. bool selected;
  8914. Color selectionColor;
  8915. /* readonly */
  8916. uint selectionLength;
  8917. /* readonly */
  8918. uint selectionStart;
  8919. IntVector2 size;
  8920. bool sortChildren;
  8921. String style;
  8922. bool temporary;
  8923. String text;
  8924. HorizontalAlignment textAlignment;
  8925. TextEffect textEffect;
  8926. TraversalMode traversalMode;
  8927. /* readonly */
  8928. ShortStringHash type;
  8929. /* readonly */
  8930. String typeName;
  8931. bool useDerivedOpacity;
  8932. /* readonly */
  8933. VariantMap vars;
  8934. VerticalAlignment verticalAlignment;
  8935. bool visible;
  8936. /* readonly */
  8937. int weakRefs;
  8938. int width;
  8939. bool wordwrap;
  8940. };
  8941. class Text3D
  8942. {
  8943. // Methods:
  8944. void ApplyAttributes();
  8945. void DrawDebugGeometry(DebugRenderer, bool);
  8946. Variant GetAttribute(const String&) const;
  8947. AttributeAnimation GetAttributeAnimation(const String&) const;
  8948. float GetAttributeAnimationSpeed(const String&) const;
  8949. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8950. Variant GetAttributeDefault(const String&) const;
  8951. bool IsInView(Camera) const;
  8952. bool Load(File, bool = false);
  8953. bool LoadXML(const XMLElement&, bool = false);
  8954. void MarkNetworkUpdate() const;
  8955. void Remove();
  8956. void RemoveInstanceDefault();
  8957. void ResetToDefault();
  8958. bool Save(File) const;
  8959. bool SaveXML(XMLElement&) const;
  8960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8961. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8962. bool SetAttribute(const String&, const Variant&);
  8963. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8964. void SetAttributeAnimationSpeed(const String&, float);
  8965. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8966. bool SetFont(Font, int);
  8967. bool SetFont(const String&, int);
  8968. // Properties:
  8969. bool animationEnabled;
  8970. /* readonly */
  8971. Array<Variant> attributeDefaults;
  8972. /* readonly */
  8973. Array<AttributeInfo> attributeInfos;
  8974. Array<Variant> attributes;
  8975. /* readonly */
  8976. ShortStringHash baseType;
  8977. /* readonly */
  8978. BoundingBox boundingBox;
  8979. bool castShadows;
  8980. /* readonly */
  8981. String category;
  8982. /* readonly */
  8983. Array<IntVector2> charPositions;
  8984. /* readonly */
  8985. Array<IntVector2> charSizes;
  8986. /* writeonly */
  8987. Color color;
  8988. Array<Color> colors;
  8989. float drawDistance;
  8990. Color effectColor;
  8991. float effectDepthBias;
  8992. bool enabled;
  8993. /* readonly */
  8994. bool enabledEffective;
  8995. bool faceCamera;
  8996. /* readonly */
  8997. Font font;
  8998. /* readonly */
  8999. int fontSize;
  9000. HorizontalAlignment horizontalAlignment;
  9001. /* readonly */
  9002. uint id;
  9003. /* readonly */
  9004. bool inView;
  9005. uint lightMask;
  9006. float lodBias;
  9007. Material material;
  9008. uint maxLights;
  9009. /* readonly */
  9010. Node node;
  9011. /* readonly */
  9012. uint numAttributes;
  9013. /* readonly */
  9014. uint numChars;
  9015. /* readonly */
  9016. uint numRows;
  9017. ObjectAnimation objectAnimation;
  9018. bool occludee;
  9019. bool occluder;
  9020. float opacity;
  9021. /* readonly */
  9022. int refs;
  9023. /* readonly */
  9024. int rowHeight;
  9025. float rowSpacing;
  9026. /* readonly */
  9027. Array<int> rowWidths;
  9028. float shadowDistance;
  9029. uint shadowMask;
  9030. bool temporary;
  9031. String text;
  9032. HorizontalAlignment textAlignment;
  9033. TextEffect textEffect;
  9034. /* readonly */
  9035. ShortStringHash type;
  9036. /* readonly */
  9037. String typeName;
  9038. VerticalAlignment verticalAlignment;
  9039. uint viewMask;
  9040. /* readonly */
  9041. int weakRefs;
  9042. int width;
  9043. bool wordwrap;
  9044. /* readonly */
  9045. BoundingBox worldBoundingBox;
  9046. uint zoneMask;
  9047. };
  9048. class Texture
  9049. {
  9050. // Methods:
  9051. void ClearDataLost();
  9052. bool Load(File);
  9053. bool Save(File) const;
  9054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9055. void SetNumLevels(uint);
  9056. // Properties:
  9057. Array<TextureAddressMode> addressMode;
  9058. Texture backupTexture;
  9059. /* readonly */
  9060. ShortStringHash baseType;
  9061. Color borderColor;
  9062. /* readonly */
  9063. String category;
  9064. /* readonly */
  9065. bool compressed;
  9066. /* readonly */
  9067. bool dataLost;
  9068. TextureFilterMode filterMode;
  9069. /* readonly */
  9070. uint format;
  9071. /* readonly */
  9072. int height;
  9073. /* readonly */
  9074. Array<int> levelHeight;
  9075. /* readonly */
  9076. Array<int> levelWidth;
  9077. /* readonly */
  9078. uint levels;
  9079. /* readonly */
  9080. uint memoryUse;
  9081. Array<int> mipsToSkip;
  9082. String name;
  9083. /* readonly */
  9084. int refs;
  9085. bool sRGB;
  9086. /* readonly */
  9087. ShortStringHash type;
  9088. /* readonly */
  9089. String typeName;
  9090. /* readonly */
  9091. TextureUsage usage;
  9092. /* readonly */
  9093. uint useTimer;
  9094. /* readonly */
  9095. int weakRefs;
  9096. /* readonly */
  9097. int width;
  9098. };
  9099. class Texture2D
  9100. {
  9101. // Methods:
  9102. void ClearDataLost();
  9103. bool Load(File);
  9104. bool Load(Image, bool = false);
  9105. bool Save(File) const;
  9106. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9107. void SetNumLevels(uint);
  9108. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9109. // Properties:
  9110. Array<TextureAddressMode> addressMode;
  9111. Texture backupTexture;
  9112. /* readonly */
  9113. ShortStringHash baseType;
  9114. Color borderColor;
  9115. /* readonly */
  9116. String category;
  9117. /* readonly */
  9118. bool compressed;
  9119. /* readonly */
  9120. bool dataLost;
  9121. TextureFilterMode filterMode;
  9122. /* readonly */
  9123. uint format;
  9124. /* readonly */
  9125. int height;
  9126. /* readonly */
  9127. Array<int> levelHeight;
  9128. /* readonly */
  9129. Array<int> levelWidth;
  9130. /* readonly */
  9131. uint levels;
  9132. /* readonly */
  9133. uint memoryUse;
  9134. Array<int> mipsToSkip;
  9135. String name;
  9136. /* readonly */
  9137. int refs;
  9138. /* readonly */
  9139. RenderSurface renderSurface;
  9140. bool sRGB;
  9141. /* readonly */
  9142. ShortStringHash type;
  9143. /* readonly */
  9144. String typeName;
  9145. /* readonly */
  9146. TextureUsage usage;
  9147. /* readonly */
  9148. uint useTimer;
  9149. /* readonly */
  9150. int weakRefs;
  9151. /* readonly */
  9152. int width;
  9153. };
  9154. class Texture3D
  9155. {
  9156. // Methods:
  9157. void ClearDataLost();
  9158. bool Load(File);
  9159. bool Load(Image, bool = false);
  9160. bool Save(File) const;
  9161. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9162. void SetNumLevels(uint);
  9163. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9164. // Properties:
  9165. Array<TextureAddressMode> addressMode;
  9166. Texture backupTexture;
  9167. /* readonly */
  9168. ShortStringHash baseType;
  9169. Color borderColor;
  9170. /* readonly */
  9171. String category;
  9172. /* readonly */
  9173. bool compressed;
  9174. /* readonly */
  9175. bool dataLost;
  9176. TextureFilterMode filterMode;
  9177. /* readonly */
  9178. uint format;
  9179. /* readonly */
  9180. int height;
  9181. /* readonly */
  9182. Array<int> levelHeight;
  9183. /* readonly */
  9184. Array<int> levelWidth;
  9185. /* readonly */
  9186. uint levels;
  9187. /* readonly */
  9188. uint memoryUse;
  9189. Array<int> mipsToSkip;
  9190. String name;
  9191. /* readonly */
  9192. int refs;
  9193. /* readonly */
  9194. RenderSurface renderSurface;
  9195. bool sRGB;
  9196. /* readonly */
  9197. ShortStringHash type;
  9198. /* readonly */
  9199. String typeName;
  9200. /* readonly */
  9201. TextureUsage usage;
  9202. /* readonly */
  9203. uint useTimer;
  9204. /* readonly */
  9205. int weakRefs;
  9206. /* readonly */
  9207. int width;
  9208. };
  9209. class TextureCube
  9210. {
  9211. // Methods:
  9212. void ClearDataLost();
  9213. bool Load(CubeMapFace, Image, bool = false);
  9214. bool Load(File);
  9215. bool Save(File) const;
  9216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9217. void SetNumLevels(uint);
  9218. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  9219. // Properties:
  9220. Array<TextureAddressMode> addressMode;
  9221. Texture backupTexture;
  9222. /* readonly */
  9223. ShortStringHash baseType;
  9224. Color borderColor;
  9225. /* readonly */
  9226. String category;
  9227. /* readonly */
  9228. bool compressed;
  9229. /* readonly */
  9230. bool dataLost;
  9231. TextureFilterMode filterMode;
  9232. /* readonly */
  9233. uint format;
  9234. /* readonly */
  9235. int height;
  9236. /* readonly */
  9237. Array<int> levelHeight;
  9238. /* readonly */
  9239. Array<int> levelWidth;
  9240. /* readonly */
  9241. uint levels;
  9242. /* readonly */
  9243. uint memoryUse;
  9244. Array<int> mipsToSkip;
  9245. String name;
  9246. /* readonly */
  9247. int refs;
  9248. /* readonly */
  9249. Array<RenderSurface> renderSurfaces;
  9250. bool sRGB;
  9251. /* readonly */
  9252. ShortStringHash type;
  9253. /* readonly */
  9254. String typeName;
  9255. /* readonly */
  9256. TextureUsage usage;
  9257. /* readonly */
  9258. uint useTimer;
  9259. /* readonly */
  9260. int weakRefs;
  9261. /* readonly */
  9262. int width;
  9263. };
  9264. class TextureFrame
  9265. {
  9266. // Properties:
  9267. float time;
  9268. Rect uv;
  9269. };
  9270. class Time
  9271. {
  9272. // Methods:
  9273. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9274. // Properties:
  9275. /* readonly */
  9276. ShortStringHash baseType;
  9277. /* readonly */
  9278. String category;
  9279. /* readonly */
  9280. float elapsedTime;
  9281. /* readonly */
  9282. uint frameNumber;
  9283. /* readonly */
  9284. int refs;
  9285. /* readonly */
  9286. uint systemTime;
  9287. /* readonly */
  9288. String timeStamp;
  9289. /* readonly */
  9290. float timeStep;
  9291. /* readonly */
  9292. ShortStringHash type;
  9293. /* readonly */
  9294. String typeName;
  9295. /* readonly */
  9296. int weakRefs;
  9297. };
  9298. class Timer
  9299. {
  9300. // Methods:
  9301. uint GetMSec(bool);
  9302. void Reset();
  9303. };
  9304. class ToolTip
  9305. {
  9306. // Methods:
  9307. void AddChild(UIElement);
  9308. void ApplyAttributes();
  9309. void BringToFront();
  9310. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9311. void DisableLayoutUpdate();
  9312. IntVector2 ElementToScreen(const IntVector2&);
  9313. void EnableLayoutUpdate();
  9314. uint FindChild(UIElement) const;
  9315. Variant GetAttribute(const String&) const;
  9316. AttributeAnimation GetAttributeAnimation(const String&) const;
  9317. float GetAttributeAnimationSpeed(const String&) const;
  9318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9319. Variant GetAttributeDefault(const String&) const;
  9320. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  9321. UIElement GetChild(const String&, bool = false) const;
  9322. Array<UIElement> GetChildren(bool = false) const;
  9323. UIElement GetElementEventSender() const;
  9324. uint GetNumChildren(bool) const;
  9325. void InsertChild(uint, UIElement);
  9326. bool IsInside(IntVector2, bool);
  9327. bool IsInsideCombined(IntVector2, bool);
  9328. bool Load(File, bool = false);
  9329. bool LoadChildXML(XMLFile, XMLFile = null);
  9330. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9331. bool LoadXML(File);
  9332. bool LoadXML(XMLFile, XMLFile);
  9333. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9334. bool LoadXML(const XMLElement&, bool = false);
  9335. void Remove();
  9336. void RemoveAllChildren();
  9337. void RemoveChild(UIElement, uint = 0);
  9338. void RemoveChild(uint);
  9339. void RemoveInstanceDefault();
  9340. void ResetToDefault();
  9341. bool Save(File) const;
  9342. bool SaveXML(File);
  9343. bool SaveXML(XMLElement&) const;
  9344. IntVector2 ScreenToElement(const IntVector2&);
  9345. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9346. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9347. bool SetAttribute(const String&, const Variant&);
  9348. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9349. void SetAttributeAnimationSpeed(const String&, float);
  9350. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9351. void SetFixedHeight(int);
  9352. void SetFixedSize(int, int);
  9353. void SetFixedWidth(int);
  9354. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9355. void SetMaxSize(int, int);
  9356. void SetMinSize(int, int);
  9357. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9358. void SetPosition(int, int);
  9359. void SetSize(int, int);
  9360. bool SetStyle(const String&, XMLFile = null);
  9361. bool SetStyle(const XMLElement&);
  9362. bool SetStyleAuto(XMLFile = null);
  9363. void UpdateLayout();
  9364. const Variant& GetVar(const ShortStringHash&);
  9365. // Properties:
  9366. bool animationEnabled;
  9367. /* readonly */
  9368. Array<Variant> attributeDefaults;
  9369. /* readonly */
  9370. Array<AttributeInfo> attributeInfos;
  9371. Array<Variant> attributes;
  9372. /* readonly */
  9373. ShortStringHash baseType;
  9374. bool bringToBack;
  9375. bool bringToFront;
  9376. /* readonly */
  9377. String category;
  9378. /* readonly */
  9379. IntVector2 childOffset;
  9380. /* readonly */
  9381. Array<UIElement> children;
  9382. IntRect clipBorder;
  9383. bool clipChildren;
  9384. /* writeonly */
  9385. Color color;
  9386. /* readonly */
  9387. bool colorGradient;
  9388. Array<Color> colors;
  9389. /* readonly */
  9390. IntRect combinedScreenRect;
  9391. XMLFile defaultStyle;
  9392. float delay;
  9393. /* readonly */
  9394. float derivedOpacity;
  9395. uint dragDropMode;
  9396. bool editable;
  9397. bool elementEventSender;
  9398. bool enabled;
  9399. /* readonly */
  9400. bool fixedHeight;
  9401. /* readonly */
  9402. bool fixedSize;
  9403. /* readonly */
  9404. bool fixedWidth;
  9405. bool focus;
  9406. FocusMode focusMode;
  9407. int height;
  9408. HorizontalAlignment horizontalAlignment;
  9409. /* readonly */
  9410. bool hovering;
  9411. int indent;
  9412. int indentSpacing;
  9413. /* readonly */
  9414. int indentWidth;
  9415. bool internal;
  9416. IntRect layoutBorder;
  9417. LayoutMode layoutMode;
  9418. int layoutSpacing;
  9419. int maxHeight;
  9420. IntVector2 maxSize;
  9421. int maxWidth;
  9422. int minHeight;
  9423. IntVector2 minSize;
  9424. int minWidth;
  9425. String name;
  9426. /* readonly */
  9427. uint numAllChildren;
  9428. /* readonly */
  9429. uint numAttributes;
  9430. /* readonly */
  9431. uint numChildren;
  9432. ObjectAnimation objectAnimation;
  9433. float opacity;
  9434. UIElement parent;
  9435. IntVector2 position;
  9436. int priority;
  9437. /* readonly */
  9438. int refs;
  9439. /* readonly */
  9440. UIElement root;
  9441. /* readonly */
  9442. IntVector2 screenPosition;
  9443. bool selected;
  9444. IntVector2 size;
  9445. bool sortChildren;
  9446. String style;
  9447. bool temporary;
  9448. TraversalMode traversalMode;
  9449. /* readonly */
  9450. ShortStringHash type;
  9451. /* readonly */
  9452. String typeName;
  9453. bool useDerivedOpacity;
  9454. /* readonly */
  9455. VariantMap vars;
  9456. VerticalAlignment verticalAlignment;
  9457. bool visible;
  9458. /* readonly */
  9459. int weakRefs;
  9460. int width;
  9461. };
  9462. class TouchState
  9463. {
  9464. // Properties:
  9465. IntVector2 delta;
  9466. IntVector2 lastPosition;
  9467. IntVector2 position;
  9468. float pressure;
  9469. int touchID;
  9470. };
  9471. class UI
  9472. {
  9473. // Methods:
  9474. void Clear();
  9475. void DebugDraw(UIElement);
  9476. UIElement GetElementAt(const IntVector2&, bool = true);
  9477. UIElement GetElementAt(int, int, bool = true);
  9478. bool HasModalElement() const;
  9479. UIElement LoadLayout(File);
  9480. UIElement LoadLayout(File, XMLFile);
  9481. UIElement LoadLayout(XMLFile);
  9482. UIElement LoadLayout(XMLFile, XMLFile);
  9483. bool SaveLayout(File, UIElement);
  9484. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9485. void SetFocusElement(UIElement, bool = false);
  9486. // Properties:
  9487. /* readonly */
  9488. ShortStringHash baseType;
  9489. /* readonly */
  9490. String category;
  9491. String clipBoardText;
  9492. Cursor cursor;
  9493. /* readonly */
  9494. IntVector2 cursorPosition;
  9495. float defaultToolTipDelay;
  9496. float doubleClickInterval;
  9497. int dragBeginDistance;
  9498. float dragBeginInterval;
  9499. /* readonly */
  9500. UIElement dragElement;
  9501. UIElement focusElement;
  9502. bool forceAutoHint;
  9503. /* readonly */
  9504. UIElement frontElement;
  9505. int maxFontTextureSize;
  9506. /* readonly */
  9507. UIElement modalRoot;
  9508. bool nonFocusedMouseWheel;
  9509. /* readonly */
  9510. int refs;
  9511. /* readonly */
  9512. UIElement root;
  9513. /* readonly */
  9514. ShortStringHash type;
  9515. /* readonly */
  9516. String typeName;
  9517. bool useMutableGlyphs;
  9518. bool useScreenKeyboard;
  9519. bool useSystemClipboard;
  9520. /* readonly */
  9521. int weakRefs;
  9522. };
  9523. class UIElement
  9524. {
  9525. // Methods:
  9526. void AddChild(UIElement);
  9527. void ApplyAttributes();
  9528. void BringToFront();
  9529. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9530. void DisableLayoutUpdate();
  9531. IntVector2 ElementToScreen(const IntVector2&);
  9532. void EnableLayoutUpdate();
  9533. uint FindChild(UIElement) const;
  9534. Variant GetAttribute(const String&) const;
  9535. AttributeAnimation GetAttributeAnimation(const String&) const;
  9536. float GetAttributeAnimationSpeed(const String&) const;
  9537. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9538. Variant GetAttributeDefault(const String&) const;
  9539. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  9540. UIElement GetChild(const String&, bool = false) const;
  9541. Array<UIElement> GetChildren(bool = false) const;
  9542. UIElement GetElementEventSender() const;
  9543. uint GetNumChildren(bool) const;
  9544. void InsertChild(uint, UIElement);
  9545. bool IsInside(IntVector2, bool);
  9546. bool IsInsideCombined(IntVector2, bool);
  9547. bool Load(File, bool = false);
  9548. bool LoadChildXML(XMLFile, XMLFile = null);
  9549. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9550. bool LoadXML(File);
  9551. bool LoadXML(XMLFile, XMLFile);
  9552. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9553. bool LoadXML(const XMLElement&, bool = false);
  9554. void Remove();
  9555. void RemoveAllChildren();
  9556. void RemoveChild(UIElement, uint = 0);
  9557. void RemoveChild(uint);
  9558. void RemoveInstanceDefault();
  9559. void ResetToDefault();
  9560. bool Save(File) const;
  9561. bool SaveXML(File);
  9562. bool SaveXML(XMLElement&) const;
  9563. IntVector2 ScreenToElement(const IntVector2&);
  9564. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9565. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9566. bool SetAttribute(const String&, const Variant&);
  9567. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9568. void SetAttributeAnimationSpeed(const String&, float);
  9569. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9570. void SetFixedHeight(int);
  9571. void SetFixedSize(int, int);
  9572. void SetFixedWidth(int);
  9573. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9574. void SetMaxSize(int, int);
  9575. void SetMinSize(int, int);
  9576. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9577. void SetPosition(int, int);
  9578. void SetSize(int, int);
  9579. bool SetStyle(const String&, XMLFile = null);
  9580. bool SetStyle(const XMLElement&);
  9581. bool SetStyleAuto(XMLFile = null);
  9582. void UpdateLayout();
  9583. const Variant& GetVar(const ShortStringHash&);
  9584. // Properties:
  9585. bool animationEnabled;
  9586. /* readonly */
  9587. Array<Variant> attributeDefaults;
  9588. /* readonly */
  9589. Array<AttributeInfo> attributeInfos;
  9590. Array<Variant> attributes;
  9591. /* readonly */
  9592. ShortStringHash baseType;
  9593. bool bringToBack;
  9594. bool bringToFront;
  9595. /* readonly */
  9596. String category;
  9597. /* readonly */
  9598. IntVector2 childOffset;
  9599. /* readonly */
  9600. Array<UIElement> children;
  9601. IntRect clipBorder;
  9602. bool clipChildren;
  9603. /* writeonly */
  9604. Color color;
  9605. /* readonly */
  9606. bool colorGradient;
  9607. Array<Color> colors;
  9608. /* readonly */
  9609. IntRect combinedScreenRect;
  9610. XMLFile defaultStyle;
  9611. /* readonly */
  9612. float derivedOpacity;
  9613. uint dragDropMode;
  9614. bool editable;
  9615. bool elementEventSender;
  9616. bool enabled;
  9617. /* readonly */
  9618. bool fixedHeight;
  9619. /* readonly */
  9620. bool fixedSize;
  9621. /* readonly */
  9622. bool fixedWidth;
  9623. bool focus;
  9624. FocusMode focusMode;
  9625. int height;
  9626. HorizontalAlignment horizontalAlignment;
  9627. /* readonly */
  9628. bool hovering;
  9629. int indent;
  9630. int indentSpacing;
  9631. /* readonly */
  9632. int indentWidth;
  9633. bool internal;
  9634. IntRect layoutBorder;
  9635. LayoutMode layoutMode;
  9636. int layoutSpacing;
  9637. int maxHeight;
  9638. IntVector2 maxSize;
  9639. int maxWidth;
  9640. int minHeight;
  9641. IntVector2 minSize;
  9642. int minWidth;
  9643. String name;
  9644. /* readonly */
  9645. uint numAllChildren;
  9646. /* readonly */
  9647. uint numAttributes;
  9648. /* readonly */
  9649. uint numChildren;
  9650. ObjectAnimation objectAnimation;
  9651. float opacity;
  9652. UIElement parent;
  9653. IntVector2 position;
  9654. int priority;
  9655. /* readonly */
  9656. int refs;
  9657. /* readonly */
  9658. UIElement root;
  9659. /* readonly */
  9660. IntVector2 screenPosition;
  9661. bool selected;
  9662. IntVector2 size;
  9663. bool sortChildren;
  9664. String style;
  9665. bool temporary;
  9666. TraversalMode traversalMode;
  9667. /* readonly */
  9668. ShortStringHash type;
  9669. /* readonly */
  9670. String typeName;
  9671. bool useDerivedOpacity;
  9672. /* readonly */
  9673. VariantMap vars;
  9674. VerticalAlignment verticalAlignment;
  9675. bool visible;
  9676. /* readonly */
  9677. int weakRefs;
  9678. int width;
  9679. };
  9680. class Variant
  9681. {
  9682. // Methods:
  9683. void Clear();
  9684. const Color& GetColor() const;
  9685. void FromString(VariantType, const String&);
  9686. void FromString(const String&, const String&);
  9687. bool GetBool() const;
  9688. VectorBuffer GetBuffer() const;
  9689. float GetFloat() const;
  9690. int GetInt() const;
  9691. RefCounted GetPtr() const;
  9692. ShortStringHash GetShortStringHash() const;
  9693. StringHash GetStringHash() const;
  9694. uint GetUInt() const;
  9695. Array<Variant> GetVariantVector() const;
  9696. const IntRect& GetIntRect() const;
  9697. const IntVector2& GetIntVector2() const;
  9698. const Matrix3& GetMatrix3() const;
  9699. const Matrix3x4& GetMatrix3x4() const;
  9700. const Matrix4& GetMatrix4() const;
  9701. const Quaternion& GetQuaternion() const;
  9702. const ResourceRef& GetResourceRef() const;
  9703. const ResourceRefList& GetResourceRefList() const;
  9704. const String& GetString() const;
  9705. String ToString() const;
  9706. const VariantMap& GetVariantMap() const;
  9707. const Vector2& GetVector2() const;
  9708. const Vector3& GetVector3() const;
  9709. const Vector4& GetVector4() const;
  9710. /* deprecated */
  9711. Camera GetCamera() const;
  9712. /* deprecated */
  9713. CollisionShape GetCollisionShape() const;
  9714. /* deprecated */
  9715. Component GetComponent() const;
  9716. /* deprecated */
  9717. Connection GetConnection() const;
  9718. /* deprecated */
  9719. Node GetNode() const;
  9720. /* deprecated */
  9721. PhysicsWorld GetPhysicsWorld() const;
  9722. /* deprecated */
  9723. RenderSurface GetRenderSurface() const;
  9724. /* deprecated */
  9725. RigidBody GetRigidBody() const;
  9726. /* deprecated */
  9727. Scene GetScene() const;
  9728. /* deprecated */
  9729. Serializable GetSerializable() const;
  9730. /* deprecated */
  9731. Texture GetTexture() const;
  9732. /* deprecated */
  9733. UIElement GetUIElement() const;
  9734. // Properties:
  9735. /* readonly */
  9736. bool empty;
  9737. /* readonly */
  9738. VariantType type;
  9739. /* readonly */
  9740. String typeName;
  9741. /* readonly */
  9742. bool zero;
  9743. };
  9744. class VariantMap
  9745. {
  9746. // Methods:
  9747. void Clear();
  9748. bool Contains(ShortStringHash) const;
  9749. bool Contains(const String&) const;
  9750. bool Erase(ShortStringHash);
  9751. bool Erase(const String&);
  9752. // Properties:
  9753. /* readonly */
  9754. Array<ShortStringHash> keys;
  9755. /* readonly */
  9756. uint length;
  9757. };
  9758. class Vector2
  9759. {
  9760. // Methods:
  9761. float AbsDotProduct(const Vector2&) const;
  9762. float DotProduct(const Vector2&) const;
  9763. bool Equals(const Vector2&) const;
  9764. bool IsNaN() const;
  9765. Vector2 Lerp(const Vector2&, float) const;
  9766. void Normalize();
  9767. Vector2 Normalized() const;
  9768. String ToString() const;
  9769. // Properties:
  9770. /* readonly */
  9771. Array<float> data;
  9772. /* readonly */
  9773. float length;
  9774. /* readonly */
  9775. float lengthSquared;
  9776. float x;
  9777. float y;
  9778. };
  9779. class Vector3
  9780. {
  9781. // Methods:
  9782. float AbsDotProduct(const Vector3&) const;
  9783. float Angle(const Vector3&) const;
  9784. Vector3 CrossProduct(const Vector3&) const;
  9785. float DotProduct(const Vector3&) const;
  9786. bool Equals(const Vector3&) const;
  9787. bool IsNaN() const;
  9788. Vector3 Lerp(const Vector3&, float) const;
  9789. void Normalize();
  9790. Vector3 Normalized() const;
  9791. String ToString() const;
  9792. // Properties:
  9793. /* readonly */
  9794. Array<float> data;
  9795. /* readonly */
  9796. float length;
  9797. /* readonly */
  9798. float lengthSquared;
  9799. float x;
  9800. float y;
  9801. float z;
  9802. };
  9803. class Vector4
  9804. {
  9805. // Methods:
  9806. float AbsDotProduct(const Vector4&) const;
  9807. float DotProduct(const Vector4&) const;
  9808. bool Equals(const Vector4&) const;
  9809. bool IsNaN() const;
  9810. Vector4 Lerp(const Vector4&, float) const;
  9811. String ToString() const;
  9812. // Properties:
  9813. /* readonly */
  9814. Array<float> data;
  9815. float w;
  9816. float x;
  9817. float y;
  9818. float z;
  9819. };
  9820. class VectorBuffer
  9821. {
  9822. // Methods:
  9823. void Clear();
  9824. Array<uint8> Read(uint);
  9825. bool ReadBool();
  9826. BoundingBox ReadBoundingBox();
  9827. int8 ReadByte();
  9828. Color ReadColor();
  9829. String ReadFileID();
  9830. float ReadFloat();
  9831. int ReadInt();
  9832. IntRect ReadIntRect();
  9833. IntVector2 ReadIntVector2();
  9834. String ReadLine();
  9835. Matrix3 ReadMatrix3();
  9836. Matrix3x4 ReadMatrix3x4();
  9837. Matrix4 ReadMatrix4();
  9838. uint ReadNetID();
  9839. Quaternion ReadPackedQuaternion();
  9840. Vector3 ReadPackedVector3(float);
  9841. Quaternion ReadQuaternion();
  9842. int16 ReadShort();
  9843. ShortStringHash ReadShortStringHash();
  9844. String ReadString();
  9845. StringHash ReadStringHash();
  9846. uint8 ReadUByte();
  9847. uint ReadUInt();
  9848. uint16 ReadUShort();
  9849. uint ReadVLE();
  9850. Variant ReadVariant();
  9851. VariantMap ReadVariantMap();
  9852. Vector2 ReadVector2();
  9853. Vector3 ReadVector3();
  9854. Vector4 ReadVector4();
  9855. void Resize(uint);
  9856. uint Seek(uint);
  9857. void SetData(Deserializer, uint);
  9858. uint Write(Array<uint8>);
  9859. bool WriteBool(bool);
  9860. bool WriteBoundingBox(const BoundingBox&);
  9861. bool WriteByte(int8);
  9862. bool WriteColor(const Color&);
  9863. bool WriteFileID(const String&);
  9864. bool WriteFloat(float);
  9865. bool WriteInt(int);
  9866. bool WriteIntRect(const IntRect&);
  9867. bool WriteIntVector2(const IntVector2&);
  9868. bool WriteLine(const String&);
  9869. bool WriteMatrix3(const Matrix3&);
  9870. bool WriteMatrix3x4(const Matrix3x4&);
  9871. bool WriteMatrix4(const Matrix4&);
  9872. bool WriteNetID(uint);
  9873. bool WritePackedQuaternion(const Quaternion&);
  9874. bool WritePackedVector3(const Vector3&, float);
  9875. bool WriteQuaternion(const Quaternion&);
  9876. bool WriteShort(int16);
  9877. bool WriteShortStringHash(const ShortStringHash&);
  9878. bool WriteString(const String&);
  9879. bool WriteStringHash(const StringHash&);
  9880. bool WriteUByte(uint8);
  9881. bool WriteUInt(uint);
  9882. bool WriteUShort(uint16);
  9883. bool WriteVLE(uint);
  9884. bool WriteVariant(const Variant&);
  9885. bool WriteVariantMap(const VariantMap&);
  9886. bool WriteVector2(const Vector2&);
  9887. bool WriteVector3(const Vector3&);
  9888. bool WriteVector4(const Vector4&);
  9889. // Properties:
  9890. /* readonly */
  9891. uint checksum;
  9892. /* readonly */
  9893. bool eof;
  9894. /* readonly */
  9895. String name;
  9896. /* readonly */
  9897. uint position;
  9898. /* readonly */
  9899. uint size;
  9900. };
  9901. class View3D
  9902. {
  9903. // Methods:
  9904. void AddChild(UIElement);
  9905. void ApplyAttributes();
  9906. void BringToFront();
  9907. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9908. void DisableLayoutUpdate();
  9909. IntVector2 ElementToScreen(const IntVector2&);
  9910. void EnableLayoutUpdate();
  9911. uint FindChild(UIElement) const;
  9912. Variant GetAttribute(const String&) const;
  9913. AttributeAnimation GetAttributeAnimation(const String&) const;
  9914. float GetAttributeAnimationSpeed(const String&) const;
  9915. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9916. Variant GetAttributeDefault(const String&) const;
  9917. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  9918. UIElement GetChild(const String&, bool = false) const;
  9919. Array<UIElement> GetChildren(bool = false) const;
  9920. UIElement GetElementEventSender() const;
  9921. uint GetNumChildren(bool) const;
  9922. void InsertChild(uint, UIElement);
  9923. bool IsInside(IntVector2, bool);
  9924. bool IsInsideCombined(IntVector2, bool);
  9925. bool Load(File, bool = false);
  9926. bool LoadChildXML(XMLFile, XMLFile = null);
  9927. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9928. bool LoadXML(File);
  9929. bool LoadXML(XMLFile, XMLFile);
  9930. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9931. bool LoadXML(const XMLElement&, bool = false);
  9932. void QueueUpdate();
  9933. void Remove();
  9934. void RemoveAllChildren();
  9935. void RemoveChild(UIElement, uint = 0);
  9936. void RemoveChild(uint);
  9937. void RemoveInstanceDefault();
  9938. void ResetToDefault();
  9939. bool Save(File) const;
  9940. bool SaveXML(File);
  9941. bool SaveXML(XMLElement&) const;
  9942. IntVector2 ScreenToElement(const IntVector2&);
  9943. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9944. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9945. bool SetAttribute(const String&, const Variant&);
  9946. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9947. void SetAttributeAnimationSpeed(const String&, float);
  9948. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9949. void SetFixedHeight(int);
  9950. void SetFixedSize(int, int);
  9951. void SetFixedWidth(int);
  9952. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9953. void SetMaxSize(int, int);
  9954. void SetMinSize(int, int);
  9955. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9956. void SetPosition(int, int);
  9957. void SetSize(int, int);
  9958. bool SetStyle(const String&, XMLFile = null);
  9959. bool SetStyle(const XMLElement&);
  9960. bool SetStyleAuto(XMLFile = null);
  9961. void SetView(Scene, Camera);
  9962. void UpdateLayout();
  9963. const Variant& GetVar(const ShortStringHash&);
  9964. // Properties:
  9965. bool animationEnabled;
  9966. /* readonly */
  9967. Array<Variant> attributeDefaults;
  9968. /* readonly */
  9969. Array<AttributeInfo> attributeInfos;
  9970. Array<Variant> attributes;
  9971. bool autoUpdate;
  9972. /* readonly */
  9973. ShortStringHash baseType;
  9974. bool bringToBack;
  9975. bool bringToFront;
  9976. /* readonly */
  9977. Node cameraNode;
  9978. /* readonly */
  9979. String category;
  9980. /* readonly */
  9981. IntVector2 childOffset;
  9982. /* readonly */
  9983. Array<UIElement> children;
  9984. IntRect clipBorder;
  9985. bool clipChildren;
  9986. /* writeonly */
  9987. Color color;
  9988. /* readonly */
  9989. bool colorGradient;
  9990. Array<Color> colors;
  9991. /* readonly */
  9992. IntRect combinedScreenRect;
  9993. XMLFile defaultStyle;
  9994. /* readonly */
  9995. Texture2D depthTexture;
  9996. /* readonly */
  9997. float derivedOpacity;
  9998. uint dragDropMode;
  9999. bool editable;
  10000. bool elementEventSender;
  10001. bool enabled;
  10002. /* readonly */
  10003. bool fixedHeight;
  10004. bool fixedHeightResizing;
  10005. /* readonly */
  10006. bool fixedSize;
  10007. /* readonly */
  10008. bool fixedWidth;
  10009. bool fixedWidthResizing;
  10010. bool focus;
  10011. FocusMode focusMode;
  10012. uint format;
  10013. int height;
  10014. HorizontalAlignment horizontalAlignment;
  10015. /* readonly */
  10016. bool hovering;
  10017. int indent;
  10018. int indentSpacing;
  10019. /* readonly */
  10020. int indentWidth;
  10021. bool internal;
  10022. IntRect layoutBorder;
  10023. LayoutMode layoutMode;
  10024. int layoutSpacing;
  10025. int maxHeight;
  10026. IntVector2 maxSize;
  10027. int maxWidth;
  10028. int minHeight;
  10029. IntVector2 minSize;
  10030. int minWidth;
  10031. bool modal;
  10032. Color modalFrameColor;
  10033. IntVector2 modalFrameSize;
  10034. Color modalShadeColor;
  10035. bool movable;
  10036. String name;
  10037. /* readonly */
  10038. uint numAllChildren;
  10039. /* readonly */
  10040. uint numAttributes;
  10041. /* readonly */
  10042. uint numChildren;
  10043. ObjectAnimation objectAnimation;
  10044. float opacity;
  10045. UIElement parent;
  10046. IntVector2 position;
  10047. int priority;
  10048. /* readonly */
  10049. int refs;
  10050. /* readonly */
  10051. Texture2D renderTexture;
  10052. bool resizable;
  10053. IntRect resizeBorder;
  10054. /* readonly */
  10055. UIElement root;
  10056. /* readonly */
  10057. Scene scene;
  10058. /* readonly */
  10059. IntVector2 screenPosition;
  10060. bool selected;
  10061. IntVector2 size;
  10062. bool sortChildren;
  10063. String style;
  10064. bool temporary;
  10065. TraversalMode traversalMode;
  10066. /* readonly */
  10067. ShortStringHash type;
  10068. /* readonly */
  10069. String typeName;
  10070. bool useDerivedOpacity;
  10071. /* readonly */
  10072. VariantMap vars;
  10073. VerticalAlignment verticalAlignment;
  10074. /* readonly */
  10075. Viewport viewport;
  10076. bool visible;
  10077. /* readonly */
  10078. int weakRefs;
  10079. int width;
  10080. };
  10081. class Viewport
  10082. {
  10083. // Methods:
  10084. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10085. void SetRenderPath(XMLFile);
  10086. // Properties:
  10087. /* readonly */
  10088. ShortStringHash baseType;
  10089. Camera camera;
  10090. /* readonly */
  10091. String category;
  10092. IntRect rect;
  10093. /* readonly */
  10094. int refs;
  10095. RenderPath renderPath;
  10096. Scene scene;
  10097. /* readonly */
  10098. ShortStringHash type;
  10099. /* readonly */
  10100. String typeName;
  10101. /* readonly */
  10102. int weakRefs;
  10103. };
  10104. class WeakHandle
  10105. {
  10106. // Methods:
  10107. RefCounted Get() const;
  10108. // Properties:
  10109. /* readonly */
  10110. bool expired;
  10111. /* readonly */
  10112. int refs;
  10113. /* readonly */
  10114. int weakRefs;
  10115. };
  10116. class Window
  10117. {
  10118. // Methods:
  10119. void AddChild(UIElement);
  10120. void ApplyAttributes();
  10121. void BringToFront();
  10122. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10123. void DisableLayoutUpdate();
  10124. IntVector2 ElementToScreen(const IntVector2&);
  10125. void EnableLayoutUpdate();
  10126. uint FindChild(UIElement) const;
  10127. Variant GetAttribute(const String&) const;
  10128. AttributeAnimation GetAttributeAnimation(const String&) const;
  10129. float GetAttributeAnimationSpeed(const String&) const;
  10130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10131. Variant GetAttributeDefault(const String&) const;
  10132. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  10133. UIElement GetChild(const String&, bool = false) const;
  10134. Array<UIElement> GetChildren(bool = false) const;
  10135. UIElement GetElementEventSender() const;
  10136. uint GetNumChildren(bool) const;
  10137. void InsertChild(uint, UIElement);
  10138. bool IsInside(IntVector2, bool);
  10139. bool IsInsideCombined(IntVector2, bool);
  10140. bool Load(File, bool = false);
  10141. bool LoadChildXML(XMLFile, XMLFile = null);
  10142. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10143. bool LoadXML(File);
  10144. bool LoadXML(XMLFile, XMLFile);
  10145. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10146. bool LoadXML(const XMLElement&, bool = false);
  10147. void Remove();
  10148. void RemoveAllChildren();
  10149. void RemoveChild(UIElement, uint = 0);
  10150. void RemoveChild(uint);
  10151. void RemoveInstanceDefault();
  10152. void ResetToDefault();
  10153. bool Save(File) const;
  10154. bool SaveXML(File);
  10155. bool SaveXML(XMLElement&) const;
  10156. IntVector2 ScreenToElement(const IntVector2&);
  10157. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10158. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10159. bool SetAttribute(const String&, const Variant&);
  10160. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10161. void SetAttributeAnimationSpeed(const String&, float);
  10162. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10163. void SetFixedHeight(int);
  10164. void SetFixedSize(int, int);
  10165. void SetFixedWidth(int);
  10166. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10167. void SetMaxSize(int, int);
  10168. void SetMinSize(int, int);
  10169. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10170. void SetPosition(int, int);
  10171. void SetSize(int, int);
  10172. bool SetStyle(const String&, XMLFile = null);
  10173. bool SetStyle(const XMLElement&);
  10174. bool SetStyleAuto(XMLFile = null);
  10175. void UpdateLayout();
  10176. const Variant& GetVar(const ShortStringHash&);
  10177. // Properties:
  10178. bool animationEnabled;
  10179. /* readonly */
  10180. Array<Variant> attributeDefaults;
  10181. /* readonly */
  10182. Array<AttributeInfo> attributeInfos;
  10183. Array<Variant> attributes;
  10184. /* readonly */
  10185. ShortStringHash baseType;
  10186. bool bringToBack;
  10187. bool bringToFront;
  10188. /* readonly */
  10189. String category;
  10190. /* readonly */
  10191. IntVector2 childOffset;
  10192. /* readonly */
  10193. Array<UIElement> children;
  10194. IntRect clipBorder;
  10195. bool clipChildren;
  10196. /* writeonly */
  10197. Color color;
  10198. /* readonly */
  10199. bool colorGradient;
  10200. Array<Color> colors;
  10201. /* readonly */
  10202. IntRect combinedScreenRect;
  10203. XMLFile defaultStyle;
  10204. /* readonly */
  10205. float derivedOpacity;
  10206. uint dragDropMode;
  10207. bool editable;
  10208. bool elementEventSender;
  10209. bool enabled;
  10210. /* readonly */
  10211. bool fixedHeight;
  10212. bool fixedHeightResizing;
  10213. /* readonly */
  10214. bool fixedSize;
  10215. /* readonly */
  10216. bool fixedWidth;
  10217. bool fixedWidthResizing;
  10218. bool focus;
  10219. FocusMode focusMode;
  10220. int height;
  10221. HorizontalAlignment horizontalAlignment;
  10222. /* readonly */
  10223. bool hovering;
  10224. int indent;
  10225. int indentSpacing;
  10226. /* readonly */
  10227. int indentWidth;
  10228. bool internal;
  10229. IntRect layoutBorder;
  10230. LayoutMode layoutMode;
  10231. int layoutSpacing;
  10232. int maxHeight;
  10233. IntVector2 maxSize;
  10234. int maxWidth;
  10235. int minHeight;
  10236. IntVector2 minSize;
  10237. int minWidth;
  10238. bool modal;
  10239. Color modalFrameColor;
  10240. IntVector2 modalFrameSize;
  10241. Color modalShadeColor;
  10242. bool movable;
  10243. String name;
  10244. /* readonly */
  10245. uint numAllChildren;
  10246. /* readonly */
  10247. uint numAttributes;
  10248. /* readonly */
  10249. uint numChildren;
  10250. ObjectAnimation objectAnimation;
  10251. float opacity;
  10252. UIElement parent;
  10253. IntVector2 position;
  10254. int priority;
  10255. /* readonly */
  10256. int refs;
  10257. bool resizable;
  10258. IntRect resizeBorder;
  10259. /* readonly */
  10260. UIElement root;
  10261. /* readonly */
  10262. IntVector2 screenPosition;
  10263. bool selected;
  10264. IntVector2 size;
  10265. bool sortChildren;
  10266. String style;
  10267. bool temporary;
  10268. TraversalMode traversalMode;
  10269. /* readonly */
  10270. ShortStringHash type;
  10271. /* readonly */
  10272. String typeName;
  10273. bool useDerivedOpacity;
  10274. /* readonly */
  10275. VariantMap vars;
  10276. VerticalAlignment verticalAlignment;
  10277. bool visible;
  10278. /* readonly */
  10279. int weakRefs;
  10280. int width;
  10281. };
  10282. class XMLElement
  10283. {
  10284. // Methods:
  10285. XMLElement CreateChild(const String&);
  10286. String GetAttribute(const String& = String ( )) const;
  10287. String GetAttributeLower(const String&) const;
  10288. Array<String> GetAttributeNames() const;
  10289. String GetAttributeUpper(const String&) const;
  10290. bool GetBool(const String&) const;
  10291. BoundingBox GetBoundingBox() const;
  10292. XMLElement GetChild(const String& = String ( )) const;
  10293. Color GetColor(const String&) const;
  10294. float GetFloat(const String&) const;
  10295. int GetInt(const String&) const;
  10296. Matrix3 GetMatrix3(const String&) const;
  10297. Matrix3x4 GetMatrix3x4(const String&) const;
  10298. Matrix4 GetMatrix4(const String&) const;
  10299. XMLElement GetNext(const String& = String ( )) const;
  10300. Quaternion GetQuaternion(const String&) const;
  10301. ResourceRef GetResourceRef() const;
  10302. ResourceRefList GetResourceRefList() const;
  10303. uint GetUInt(const String&) const;
  10304. String GetValue() const;
  10305. Variant GetVariant() const;
  10306. VariantMap GetVariantMap() const;
  10307. Array<Variant> GetVariantVector() const;
  10308. Vector2 GetVector2(const String&) const;
  10309. Vector3 GetVector3(const String&) const;
  10310. Vector4 GetVector4(const String&) const;
  10311. Variant GetVectorVariant(const String&) const;
  10312. bool HasAttribute(const String&) const;
  10313. bool HasChild(const String&) const;
  10314. bool RemoveAttribute(const String& = String ( ));
  10315. bool RemoveChild(const String&);
  10316. bool RemoveChild(const XMLElement&);
  10317. bool RemoveChildren(const String& = String ( ));
  10318. XPathResultSet Select(const String&);
  10319. XPathResultSet SelectPrepared(const XPathQuery&);
  10320. XMLElement SelectSingle(const String&);
  10321. XMLElement SelectSinglePrepared(const XPathQuery&);
  10322. bool SetAttribute(const String&);
  10323. bool SetAttribute(const String&, const String&);
  10324. bool SetBool(const String&, bool);
  10325. bool SetBoundingBox(const BoundingBox&);
  10326. bool SetColor(const String&, const Color&);
  10327. bool SetFloat(const String&, float);
  10328. bool SetInt(const String&, int);
  10329. bool SetMatrix3(const String&, const Matrix3&);
  10330. bool SetMatrix3x4(const String&, const Matrix3x4&);
  10331. bool SetMatrix4(const String&, const Matrix4&);
  10332. bool SetQuaternion(const String&, const Quaternion&);
  10333. bool SetResourceRef(const String&, const ResourceRef&);
  10334. bool SetResourceRefList(const String&, const ResourceRefList&);
  10335. bool SetUInt(const String&, uint);
  10336. bool SetValue(const String&);
  10337. bool SetVariant(const Variant&);
  10338. bool SetVariantMap(const VariantMap&);
  10339. bool SetVariantVector(Array<Variant>);
  10340. bool SetVector2(const String&, const Vector2&);
  10341. bool SetVector3(const String&, const Vector3&);
  10342. bool SetVector4(const String&, const Vector4&);
  10343. bool SetVectorVariant(const String&, const Variant&);
  10344. // Properties:
  10345. /* readonly */
  10346. XMLFile file;
  10347. /* readonly */
  10348. bool isNull;
  10349. /* readonly */
  10350. String name;
  10351. /* readonly */
  10352. XMLElement nextResult;
  10353. /* readonly */
  10354. bool notNull;
  10355. /* readonly */
  10356. uint numAttributes;
  10357. /* readonly */
  10358. XMLElement parent;
  10359. String value;
  10360. };
  10361. class XMLFile
  10362. {
  10363. // Methods:
  10364. XMLElement CreateRoot(const String&);
  10365. XMLElement GetRoot(const String& = String ( ));
  10366. bool Load(File);
  10367. void Patch(XMLElement);
  10368. void Patch(XMLFile);
  10369. bool Save(File) const;
  10370. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10371. // Properties:
  10372. /* readonly */
  10373. ShortStringHash baseType;
  10374. /* readonly */
  10375. String category;
  10376. /* readonly */
  10377. uint memoryUse;
  10378. String name;
  10379. /* readonly */
  10380. int refs;
  10381. /* readonly */
  10382. XMLElement root;
  10383. /* readonly */
  10384. ShortStringHash type;
  10385. /* readonly */
  10386. String typeName;
  10387. /* readonly */
  10388. uint useTimer;
  10389. /* readonly */
  10390. int weakRefs;
  10391. };
  10392. class XPathQuery
  10393. {
  10394. // Methods:
  10395. void Bind();
  10396. void Clear();
  10397. XPathResultSet Evaluate(XMLElement);
  10398. bool EvaluateToBool(XMLElement);
  10399. float EvaluateToFloat(XMLElement);
  10400. String EvaluateToString(XMLElement);
  10401. bool SetQuery(const String&, const String& = String ( ), bool = true);
  10402. bool SetVariable(const String&, bool);
  10403. bool SetVariable(const String&, const String&);
  10404. bool SetVariable(const String&, const XPathResultSet&);
  10405. bool SetVariable(const String&, float);
  10406. // Properties:
  10407. String query;
  10408. };
  10409. class XPathResultSet
  10410. {
  10411. // Properties:
  10412. /* readonly */
  10413. bool empty;
  10414. /* readonly */
  10415. XMLElement firstResult;
  10416. /* readonly */
  10417. uint size;
  10418. };
  10419. class Zone
  10420. {
  10421. // Methods:
  10422. void ApplyAttributes();
  10423. void DrawDebugGeometry(DebugRenderer, bool);
  10424. Variant GetAttribute(const String&) const;
  10425. AttributeAnimation GetAttributeAnimation(const String&) const;
  10426. float GetAttributeAnimationSpeed(const String&) const;
  10427. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10428. Variant GetAttributeDefault(const String&) const;
  10429. bool IsInView(Camera) const;
  10430. bool Load(File, bool = false);
  10431. bool LoadXML(const XMLElement&, bool = false);
  10432. void MarkNetworkUpdate() const;
  10433. void Remove();
  10434. void RemoveInstanceDefault();
  10435. void ResetToDefault();
  10436. bool Save(File) const;
  10437. bool SaveXML(XMLElement&) const;
  10438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10439. bool SetAttribute(const String&, const Variant&);
  10440. void SetAttributeAnimation(const String&, AttributeAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10441. void SetAttributeAnimationSpeed(const String&, float);
  10442. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10443. // Properties:
  10444. Color ambientColor;
  10445. /* readonly */
  10446. Color ambientEndColor;
  10447. bool ambientGradient;
  10448. /* readonly */
  10449. Color ambientStartColor;
  10450. bool animationEnabled;
  10451. /* readonly */
  10452. Array<Variant> attributeDefaults;
  10453. /* readonly */
  10454. Array<AttributeInfo> attributeInfos;
  10455. Array<Variant> attributes;
  10456. /* readonly */
  10457. ShortStringHash baseType;
  10458. BoundingBox boundingBox;
  10459. bool castShadows;
  10460. /* readonly */
  10461. String category;
  10462. float drawDistance;
  10463. bool enabled;
  10464. /* readonly */
  10465. bool enabledEffective;
  10466. Color fogColor;
  10467. float fogEnd;
  10468. float fogHeight;
  10469. float fogHeightScale;
  10470. float fogStart;
  10471. bool heightFog;
  10472. /* readonly */
  10473. uint id;
  10474. /* readonly */
  10475. bool inView;
  10476. /* readonly */
  10477. Matrix3x4 inverseWorldTransform;
  10478. uint lightMask;
  10479. float lodBias;
  10480. uint maxLights;
  10481. /* readonly */
  10482. Node node;
  10483. /* readonly */
  10484. uint numAttributes;
  10485. ObjectAnimation objectAnimation;
  10486. bool occludee;
  10487. bool occluder;
  10488. bool override;
  10489. int priority;
  10490. /* readonly */
  10491. int refs;
  10492. float shadowDistance;
  10493. uint shadowMask;
  10494. bool temporary;
  10495. /* readonly */
  10496. ShortStringHash type;
  10497. /* readonly */
  10498. String typeName;
  10499. uint viewMask;
  10500. /* readonly */
  10501. int weakRefs;
  10502. /* readonly */
  10503. BoundingBox worldBoundingBox;
  10504. uint zoneMask;
  10505. };
  10506. // Enumerations
  10507. enum BlendMode
  10508. {
  10509. BLEND_REPLACE,
  10510. BLEND_ADD,
  10511. BLEND_MULTIPLY,
  10512. BLEND_ALPHA,
  10513. BLEND_ADDALPHA,
  10514. BLEND_PREMULALPHA,
  10515. BLEND_INVDESTALPHA,
  10516. BLEND_SUBTRACT,
  10517. BLEND_SUBTRACTALPHA,
  10518. };
  10519. enum BodyType2D
  10520. {
  10521. BT_STATIC,
  10522. BT_DYNAMIC,
  10523. BT_KINEMATIC,
  10524. };
  10525. enum CollisionEventMode
  10526. {
  10527. COLLISION_NEVER,
  10528. COLLISION_ACTIVE,
  10529. COLLISION_ALWAYS,
  10530. };
  10531. enum CompareMode
  10532. {
  10533. CMP_ALWAYS,
  10534. CMP_EQUAL,
  10535. CMP_NOTEQUAL,
  10536. CMP_LESS,
  10537. CMP_LESSEQUAL,
  10538. CMP_GREATER,
  10539. CMP_GREATEREQUAL,
  10540. };
  10541. enum ConstraintType
  10542. {
  10543. CONSTRAINT_POINT,
  10544. CONSTRAINT_HINGE,
  10545. CONSTRAINT_SLIDER,
  10546. CONSTRAINT_CONETWIST,
  10547. };
  10548. enum Corner
  10549. {
  10550. C_TOPLEFT,
  10551. C_TOPRIGHT,
  10552. C_BOTTOMLEFT,
  10553. C_BOTTOMRIGHT,
  10554. };
  10555. enum CreateMode
  10556. {
  10557. REPLICATED,
  10558. LOCAL,
  10559. };
  10560. enum CubeMapFace
  10561. {
  10562. FACE_POSITIVE_X,
  10563. FACE_NEGATIVE_X,
  10564. FACE_POSITIVE_Y,
  10565. FACE_NEGATIVE_Y,
  10566. FACE_POSITIVE_Z,
  10567. FACE_NEGATIVE_Z,
  10568. };
  10569. enum CullMode
  10570. {
  10571. CULL_NONE,
  10572. CULL_CCW,
  10573. CULL_CW,
  10574. };
  10575. enum CursorShape
  10576. {
  10577. CS_NORMAL,
  10578. CS_RESIZEVERTICAL,
  10579. CS_RESIZEDIAGONAL_TOPRIGHT,
  10580. CS_RESIZEHORIZONTAL,
  10581. CS_RESIZEDIAGONAL_TOPLEFT,
  10582. CS_ACCEPTDROP,
  10583. CS_REJECTDROP,
  10584. CS_BUSY,
  10585. };
  10586. enum CycleMode
  10587. {
  10588. CM_LOOP,
  10589. CM_CLAMP,
  10590. CM_PINGPONG,
  10591. };
  10592. enum DumpMode
  10593. {
  10594. DOXYGEN,
  10595. C_HEADER,
  10596. };
  10597. enum EmitterType
  10598. {
  10599. EMITTER_SPHERE,
  10600. EMITTER_BOX,
  10601. };
  10602. enum EmitterType2D
  10603. {
  10604. EMITTER_TYPE_GRAVITY,
  10605. EMITTER_TYPE_RADIAL,
  10606. };
  10607. enum FileMode
  10608. {
  10609. FILE_READ,
  10610. FILE_WRITE,
  10611. FILE_READWRITE,
  10612. };
  10613. enum FillMode
  10614. {
  10615. FILL_SOLID,
  10616. FILL_WIREFRAME,
  10617. FILL_POINT,
  10618. };
  10619. enum FocusMode
  10620. {
  10621. FM_NOTFOCUSABLE,
  10622. FM_RESETFOCUS,
  10623. FM_FOCUSABLE,
  10624. FM_FOCUSABLE_DEFOCUSABLE,
  10625. };
  10626. enum HighlightMode
  10627. {
  10628. HM_NEVER,
  10629. HM_FOCUS,
  10630. HM_ALWAYS,
  10631. };
  10632. enum HorizontalAlignment
  10633. {
  10634. HA_LEFT,
  10635. HA_CENTER,
  10636. HA_RIGHT,
  10637. };
  10638. enum HttpRequestState
  10639. {
  10640. HTTP_INITIALIZING,
  10641. HTTP_ERROR,
  10642. HTTP_OPEN,
  10643. HTTP_CLOSED,
  10644. };
  10645. enum InterpMethod
  10646. {
  10647. IM_LINEAR,
  10648. IM_SPLINE,
  10649. };
  10650. enum InterpolationMode
  10651. {
  10652. BEZIER_CURVE,
  10653. };
  10654. enum Intersection
  10655. {
  10656. OUTSIDE,
  10657. INTERSECTS,
  10658. INSIDE,
  10659. };
  10660. enum LayoutMode
  10661. {
  10662. LM_FREE,
  10663. LM_HORIZONTAL,
  10664. LM_VERTICAL,
  10665. };
  10666. enum LightType
  10667. {
  10668. LIGHT_DIRECTIONAL,
  10669. LIGHT_SPOT,
  10670. LIGHT_POINT,
  10671. };
  10672. enum Orientation
  10673. {
  10674. O_HORIZONTAL,
  10675. O_VERTICAL,
  10676. };
  10677. enum PassLightingMode
  10678. {
  10679. LIGHTING_UNLIT,
  10680. LIGHTING_PERVERTEX,
  10681. LIGHTING_PERPIXEL,
  10682. };
  10683. enum PrimitiveType
  10684. {
  10685. TRIANGLE_LIST,
  10686. LINE_LIST,
  10687. };
  10688. enum RayQueryLevel
  10689. {
  10690. RAY_AABB,
  10691. RAY_OBB,
  10692. RAY_TRIANGLE,
  10693. };
  10694. enum RenderCommandSortMode
  10695. {
  10696. SORT_FRONTTOBACK,
  10697. SORT_BACKTOFRONT,
  10698. };
  10699. enum RenderCommandType
  10700. {
  10701. CMD_NONE,
  10702. CMD_CLEAR,
  10703. CMD_SCENEPASS,
  10704. CMD_QUAD,
  10705. CMD_FORWARDLIGHTS,
  10706. CMD_LIGHTVOLUMES,
  10707. };
  10708. enum RenderSurfaceUpdateMode
  10709. {
  10710. SURFACE_MANUALUPDATE,
  10711. SURFACE_UPDATEVISIBLE,
  10712. SURFACE_UPDATEALWAYS,
  10713. };
  10714. enum RenderTargetSizeMode
  10715. {
  10716. SIZE_ABSOLUTE,
  10717. SIZE_RENDERTARGETDIVISOR,
  10718. SIZE_VIEWPORTDIVISOR,
  10719. };
  10720. enum ShapeType
  10721. {
  10722. SHAPE_BOX,
  10723. SHAPE_SPHERE,
  10724. SHAPE_STATICPLANE,
  10725. SHAPE_CYLINDER,
  10726. SHAPE_CAPSULE,
  10727. SHAPE_CONE,
  10728. SHAPE_TRIANGLEMESH,
  10729. SHAPE_CONVEXHULL,
  10730. SHAPE_TERRAIN,
  10731. };
  10732. enum SoundType
  10733. {
  10734. SOUND_EFFECT,
  10735. SOUND_AMBIENT,
  10736. SOUND_VOICE,
  10737. SOUND_MUSIC,
  10738. SOUND_MASTER,
  10739. };
  10740. enum TextEffect
  10741. {
  10742. TE_NONE,
  10743. TE_SHADOW,
  10744. TE_STROKE,
  10745. };
  10746. enum TextureAddressMode
  10747. {
  10748. ADDRESS_WRAP,
  10749. ADDRESS_MIRROR,
  10750. ADDRESS_CLAMP,
  10751. ADDRESS_BORDER,
  10752. };
  10753. enum TextureCoordinate
  10754. {
  10755. COORD_U,
  10756. COORD_V,
  10757. COORD_W,
  10758. };
  10759. enum TextureFilterMode
  10760. {
  10761. FILTER_NEAREST,
  10762. FILTER_BILINEAR,
  10763. FILTER_TRILINEAR,
  10764. FILTER_ANISOTROPIC,
  10765. FILTER_DEFAULT,
  10766. };
  10767. enum TextureUnit
  10768. {
  10769. TU_DIFFUSE,
  10770. TU_NORMAL,
  10771. TU_SPECULAR,
  10772. TU_EMISSIVE,
  10773. TU_ENVIRONMENT,
  10774. TU_LIGHTRAMP,
  10775. TU_LIGHTSHAPE,
  10776. TU_SHADOWMAP,
  10777. TU_FACESELECT,
  10778. TU_INDIRECTION,
  10779. TU_ALBEDOBUFFER,
  10780. TU_NORMALBUFFER,
  10781. TU_DEPTHBUFFER,
  10782. TU_LIGHTBUFFER,
  10783. TU_VOLUMEMAP,
  10784. MAX_MATERIAL_TEXTURE_UNITS,
  10785. MAX_TEXTURE_UNITS,
  10786. };
  10787. enum TextureUsage
  10788. {
  10789. TEXTURE_STATIC,
  10790. TEXTURE_DYNAMIC,
  10791. TEXTURE_RENDERTARGET,
  10792. TEXTURE_DEPTHSTENCIL,
  10793. };
  10794. enum TransformSpace
  10795. {
  10796. TS_LOCAL,
  10797. TS_PARENT,
  10798. TS_WORLD,
  10799. };
  10800. enum TraversalMode
  10801. {
  10802. TM_BREADTH_FIRST,
  10803. TM_DEPTH_FIRST,
  10804. };
  10805. enum VariantType
  10806. {
  10807. VAR_NONE,
  10808. VAR_INT,
  10809. VAR_BOOL,
  10810. VAR_FLOAT,
  10811. VAR_VECTOR2,
  10812. VAR_VECTOR3,
  10813. VAR_VECTOR4,
  10814. VAR_QUATERNION,
  10815. VAR_COLOR,
  10816. VAR_STRING,
  10817. VAR_BUFFER,
  10818. VAR_VOIDPTR,
  10819. VAR_RESOURCEREF,
  10820. VAR_RESOURCEREFLIST,
  10821. VAR_VARIANTVECTOR,
  10822. VAR_VARIANTMAP,
  10823. VAR_INTRECT,
  10824. VAR_INTVECTOR2,
  10825. VAR_PTR,
  10826. VAR_MATRIX3,
  10827. VAR_MATRIX3X4,
  10828. VAR_MATRIX4,
  10829. };
  10830. enum VerticalAlignment
  10831. {
  10832. VA_TOP,
  10833. VA_CENTER,
  10834. VA_BOTTOM,
  10835. };
  10836. enum WrapMode
  10837. {
  10838. WM_LOOP,
  10839. WM_ONCE,
  10840. WM_CLAMP,
  10841. };
  10842. // Global functions
  10843. float Abs(float);
  10844. float Acos(float);
  10845. String AddTrailingSlash(const String&);
  10846. float Asin(float);
  10847. float Atan(float);
  10848. float Atan2(float, float);
  10849. float Ceil(float);
  10850. float Clamp(float, float, float);
  10851. int Clamp(int, int, int);
  10852. void ClearDelayedExecute(const String& = String ( ));
  10853. float Cos(float);
  10854. void DelayedExecute(float, bool, const String&);
  10855. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  10856. bool Equals(float, float);
  10857. void ErrorDialog(const String&, const String&);
  10858. float Floor(float);
  10859. uint GetAlphaFormat();
  10860. Array<String> GetArguments();
  10861. String GetConsoleInput();
  10862. uint GetDepthStencilFormat();
  10863. Object GetEventSender();
  10864. String GetExtension(const String&, bool = true);
  10865. String GetFileName(const String&);
  10866. String GetFileNameAndExtension(const String&, bool = false);
  10867. uint GetFloat16Format();
  10868. uint GetFloat32Format();
  10869. uint GetFormat(const String&);
  10870. String GetInternalPath(const String&);
  10871. uint GetLuminanceAlphaFormat();
  10872. uint GetLuminanceFormat();
  10873. uint GetNumLogicalCPUs();
  10874. uint GetNumPhysicalCPUs();
  10875. Array<String> GetObjectCategories();
  10876. Array<String> GetObjectsByCategory(const String&);
  10877. String GetParentPath(const String&);
  10878. String GetPath(const String&);
  10879. String GetPlatform();
  10880. uint GetRG16Format();
  10881. uint GetRGBA16Format();
  10882. uint GetRGBAFloat16Format();
  10883. uint GetRGBAFloat32Format();
  10884. uint GetRGBAFormat();
  10885. uint GetRGBFormat();
  10886. uint GetRGFloat16Format();
  10887. uint GetRGFloat32Format();
  10888. uint GetRandomSeed();
  10889. String GetTextureUnitName(TextureUnit);
  10890. bool IsAbsolutePath(const String&);
  10891. bool IsAlpha(uint);
  10892. bool IsDigit(uint);
  10893. bool IsNaN(float);
  10894. bool IsPowerOfTwo(uint);
  10895. String Join(Array<String>&, const String&);
  10896. float Lerp(float, float, float);
  10897. void MarkNetworkUpdate();
  10898. float Max(float, float);
  10899. int Max(int, int);
  10900. float Min(float, float);
  10901. int Min(int, int);
  10902. float Mod(float, float);
  10903. uint NextPowerOfTwo(uint);
  10904. void OpenConsoleWindow();
  10905. float Pow(float, float);
  10906. void Print(bool, bool = false);
  10907. void Print(const String&, bool = false);
  10908. void Print(const Variant&, bool = false);
  10909. void Print(float, bool = false);
  10910. void Print(int, bool = false);
  10911. void Print(uint, bool = false);
  10912. void PrintCallStack(bool = false);
  10913. float Random();
  10914. float Random(float);
  10915. float Random(float, float);
  10916. int RandomInt();
  10917. int RandomInt(int);
  10918. int RandomInt(int, int);
  10919. float RandomNormal(float, float);
  10920. void Remove();
  10921. String RemoveTrailingSlash(const String&);
  10922. String ReplaceExtension(const String&, const String&);
  10923. uint SDBMHash(uint, uint8);
  10924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10925. void SetRandomSeed(uint);
  10926. float Sign(float);
  10927. float Sin(float);
  10928. float SmoothStep(float, float, float);
  10929. float Sqrt(float);
  10930. const String& GetTypeName(ShortStringHash);
  10931. void SubscribeToEvent(Object, const String&, const String&);
  10932. void SubscribeToEvent(const String&, const String&);
  10933. float Tan(float);
  10934. uint ToLower(uint);
  10935. String ToStringHex(int);
  10936. uint ToUpper(uint);
  10937. void UnsubscribeFromAllEvents();
  10938. void UnsubscribeFromAllEventsExcept(Array<String>);
  10939. void UnsubscribeFromEvent(Object, const String&);
  10940. void UnsubscribeFromEvent(const String&);
  10941. void UnsubscribeFromEvents(Object);
  10942. // Global properties
  10943. Audio audio;
  10944. ResourceCache cache;
  10945. Console console;
  10946. DebugHud debugHud;
  10947. DebugRenderer debugRenderer;
  10948. Engine engine;
  10949. FileSystem fileSystem;
  10950. Graphics graphics;
  10951. Input input;
  10952. Log log;
  10953. Network network;
  10954. Node node;
  10955. Octree octree;
  10956. PhysicsWorld physicsWorld;
  10957. PhysicsWorld2D physicsWorld2D;
  10958. Renderer renderer;
  10959. ResourceCache resourceCache;
  10960. Scene scene;
  10961. Script script;
  10962. ScriptFile scriptFile;
  10963. ScriptInstance self;
  10964. Time time;
  10965. UI ui;
  10966. // Global constants
  10967. uint AM_COMPONENTID;
  10968. uint AM_DEFAULT;
  10969. uint AM_FILE;
  10970. uint AM_LATESTDATA;
  10971. uint AM_NET;
  10972. uint AM_NODEID;
  10973. uint AM_NODEIDVECTOR;
  10974. uint AM_NOEDIT;
  10975. Color BLACK;
  10976. Color BLUE;
  10977. int CONTROLLER_AXIS_LEFTX;
  10978. int CONTROLLER_AXIS_LEFTY;
  10979. int CONTROLLER_AXIS_RIGHTX;
  10980. int CONTROLLER_AXIS_RIGHTY;
  10981. int CONTROLLER_AXIS_TRIGGERLEFT;
  10982. int CONTROLLER_AXIS_TRIGGERRIGHT;
  10983. int CONTROLLER_BUTTON_A;
  10984. int CONTROLLER_BUTTON_B;
  10985. int CONTROLLER_BUTTON_BACK;
  10986. int CONTROLLER_BUTTON_DPAD_DOWN;
  10987. int CONTROLLER_BUTTON_DPAD_LEFT;
  10988. int CONTROLLER_BUTTON_DPAD_RIGHT;
  10989. int CONTROLLER_BUTTON_DPAD_UP;
  10990. int CONTROLLER_BUTTON_GUIDE;
  10991. int CONTROLLER_BUTTON_LEFTSHOULDER;
  10992. int CONTROLLER_BUTTON_LEFTSTICK;
  10993. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  10994. int CONTROLLER_BUTTON_RIGHTSTICK;
  10995. int CONTROLLER_BUTTON_START;
  10996. int CONTROLLER_BUTTON_X;
  10997. int CONTROLLER_BUTTON_Y;
  10998. Color CYAN;
  10999. uint DD_DISABLED;
  11000. uint DD_SOURCE;
  11001. uint DD_SOURCE_AND_TARGET;
  11002. uint DD_TARGET;
  11003. uint DEBUGHUD_SHOW_ALL;
  11004. uint DEBUGHUD_SHOW_MODE;
  11005. uint DEBUGHUD_SHOW_NONE;
  11006. uint DEBUGHUD_SHOW_PROFILER;
  11007. uint DEBUGHUD_SHOW_STATS;
  11008. uint DEFAULT_LIGHTMASK;
  11009. uint DEFAULT_VIEWMASK;
  11010. uint DRAWABLE_ANY;
  11011. uint DRAWABLE_GEOMETRY;
  11012. uint DRAWABLE_LIGHT;
  11013. uint DRAWABLE_ZONE;
  11014. uint FIRST_LOCAL_ID;
  11015. uint FIRST_REPLICATED_ID;
  11016. Color GRAY;
  11017. Color GREEN;
  11018. int HAT_CENTER;
  11019. int HAT_DOWN;
  11020. int HAT_LEFT;
  11021. int HAT_RIGHT;
  11022. int HAT_UP;
  11023. int KEY_0;
  11024. int KEY_1;
  11025. int KEY_2;
  11026. int KEY_3;
  11027. int KEY_4;
  11028. int KEY_5;
  11029. int KEY_6;
  11030. int KEY_7;
  11031. int KEY_8;
  11032. int KEY_9;
  11033. int KEY_A;
  11034. int KEY_ALT;
  11035. int KEY_APPLICATION;
  11036. int KEY_B;
  11037. int KEY_BACKSPACE;
  11038. int KEY_C;
  11039. int KEY_CAPSLOCK;
  11040. int KEY_CTRL;
  11041. int KEY_D;
  11042. int KEY_DELETE;
  11043. int KEY_DOWN;
  11044. int KEY_E;
  11045. int KEY_END;
  11046. int KEY_ESC;
  11047. int KEY_F;
  11048. int KEY_F1;
  11049. int KEY_F10;
  11050. int KEY_F11;
  11051. int KEY_F12;
  11052. int KEY_F13;
  11053. int KEY_F14;
  11054. int KEY_F15;
  11055. int KEY_F16;
  11056. int KEY_F17;
  11057. int KEY_F18;
  11058. int KEY_F19;
  11059. int KEY_F2;
  11060. int KEY_F20;
  11061. int KEY_F21;
  11062. int KEY_F22;
  11063. int KEY_F23;
  11064. int KEY_F24;
  11065. int KEY_F3;
  11066. int KEY_F4;
  11067. int KEY_F5;
  11068. int KEY_F6;
  11069. int KEY_F7;
  11070. int KEY_F8;
  11071. int KEY_F9;
  11072. int KEY_G;
  11073. int KEY_GUI;
  11074. int KEY_H;
  11075. int KEY_HOME;
  11076. int KEY_I;
  11077. int KEY_INSERT;
  11078. int KEY_J;
  11079. int KEY_K;
  11080. int KEY_KP_0;
  11081. int KEY_KP_1;
  11082. int KEY_KP_2;
  11083. int KEY_KP_3;
  11084. int KEY_KP_4;
  11085. int KEY_KP_5;
  11086. int KEY_KP_6;
  11087. int KEY_KP_7;
  11088. int KEY_KP_8;
  11089. int KEY_KP_9;
  11090. int KEY_KP_DIVIDE;
  11091. int KEY_KP_ENTER;
  11092. int KEY_KP_MINUS;
  11093. int KEY_KP_MULTIPLY;
  11094. int KEY_KP_PERIOD;
  11095. int KEY_KP_PLUS;
  11096. int KEY_L;
  11097. int KEY_LALT;
  11098. int KEY_LCTRL;
  11099. int KEY_LEFT;
  11100. int KEY_LGUI;
  11101. int KEY_LSHIFT;
  11102. int KEY_M;
  11103. int KEY_N;
  11104. int KEY_NUMLOCKCLEAR;
  11105. int KEY_O;
  11106. int KEY_P;
  11107. int KEY_PAGEDOWN;
  11108. int KEY_PAGEUP;
  11109. int KEY_PAUSE;
  11110. int KEY_PRINTSCREEN;
  11111. int KEY_Q;
  11112. int KEY_R;
  11113. int KEY_RALT;
  11114. int KEY_RCTRL;
  11115. int KEY_RETURN;
  11116. int KEY_RETURN2;
  11117. int KEY_RGUI;
  11118. int KEY_RIGHT;
  11119. int KEY_RSHIFT;
  11120. int KEY_S;
  11121. int KEY_SCROLLLOCK;
  11122. int KEY_SELECT;
  11123. int KEY_SHIFT;
  11124. int KEY_SPACE;
  11125. int KEY_T;
  11126. int KEY_TAB;
  11127. int KEY_U;
  11128. int KEY_UP;
  11129. int KEY_V;
  11130. int KEY_W;
  11131. int KEY_X;
  11132. int KEY_Y;
  11133. int KEY_Z;
  11134. uint LAST_LOCAL_ID;
  11135. uint LAST_REPLICATED_ID;
  11136. int LOG_DEBUG;
  11137. int LOG_ERROR;
  11138. int LOG_INFO;
  11139. int LOG_NONE;
  11140. int LOG_WARNING;
  11141. Color MAGENTA;
  11142. int MOUSEB_LEFT;
  11143. int MOUSEB_MIDDLE;
  11144. int MOUSEB_RIGHT;
  11145. float M_DEGTORAD;
  11146. float M_DEGTORAD_2;
  11147. float M_EPSILON;
  11148. float M_HALF_PI;
  11149. float M_INFINITY;
  11150. float M_LARGE_EPSILON;
  11151. float M_LARGE_VALUE;
  11152. int M_MAX_INT;
  11153. uint M_MAX_UNSIGNED;
  11154. int M_MIN_INT;
  11155. uint M_MIN_UNSIGNED;
  11156. float M_PI;
  11157. float M_RADTODEG;
  11158. float PIXEL_SIZE;
  11159. int QUALITY_HIGH;
  11160. int QUALITY_LOW;
  11161. int QUALITY_MAX;
  11162. int QUALITY_MEDIUM;
  11163. int QUAL_ALT;
  11164. int QUAL_ANY;
  11165. int QUAL_CTRL;
  11166. int QUAL_SHIFT;
  11167. Color RED;
  11168. int SCANCODE_0;
  11169. int SCANCODE_1;
  11170. int SCANCODE_2;
  11171. int SCANCODE_3;
  11172. int SCANCODE_4;
  11173. int SCANCODE_5;
  11174. int SCANCODE_6;
  11175. int SCANCODE_7;
  11176. int SCANCODE_8;
  11177. int SCANCODE_9;
  11178. int SCANCODE_A;
  11179. int SCANCODE_AC_BACK;
  11180. int SCANCODE_AC_BOOKMARKS;
  11181. int SCANCODE_AC_FORWARD;
  11182. int SCANCODE_AC_HOME;
  11183. int SCANCODE_AC_REFRESH;
  11184. int SCANCODE_AC_SEARCH;
  11185. int SCANCODE_AC_STOP;
  11186. int SCANCODE_AGAIN;
  11187. int SCANCODE_ALT;
  11188. int SCANCODE_ALTERASE;
  11189. int SCANCODE_APOSTROPHE;
  11190. int SCANCODE_APP1;
  11191. int SCANCODE_APP2;
  11192. int SCANCODE_APPLICATION;
  11193. int SCANCODE_AUDIOMUTE;
  11194. int SCANCODE_AUDIONEXT;
  11195. int SCANCODE_AUDIOPLAY;
  11196. int SCANCODE_AUDIOPREV;
  11197. int SCANCODE_AUDIOSTOP;
  11198. int SCANCODE_B;
  11199. int SCANCODE_BACKSLASH;
  11200. int SCANCODE_BACKSPACE;
  11201. int SCANCODE_BRIGHTNESSDOWN;
  11202. int SCANCODE_BRIGHTNESSUP;
  11203. int SCANCODE_C;
  11204. int SCANCODE_CALCULATOR;
  11205. int SCANCODE_CANCEL;
  11206. int SCANCODE_CAPSLOCK;
  11207. int SCANCODE_CLEAR;
  11208. int SCANCODE_CLEARAGAIN;
  11209. int SCANCODE_COMMA;
  11210. int SCANCODE_COMPUTER;
  11211. int SCANCODE_COPY;
  11212. int SCANCODE_CRSEL;
  11213. int SCANCODE_CTRL;
  11214. int SCANCODE_CURRENCYSUBUNIT;
  11215. int SCANCODE_CURRENCYUNIT;
  11216. int SCANCODE_CUT;
  11217. int SCANCODE_D;
  11218. int SCANCODE_DECIMALSEPARATOR;
  11219. int SCANCODE_DELETE;
  11220. int SCANCODE_DISPLAYSWITCH;
  11221. int SCANCODE_DOWN;
  11222. int SCANCODE_E;
  11223. int SCANCODE_EJECT;
  11224. int SCANCODE_END;
  11225. int SCANCODE_EQUALS;
  11226. int SCANCODE_ESCAPE;
  11227. int SCANCODE_EXECUTE;
  11228. int SCANCODE_EXSEL;
  11229. int SCANCODE_F;
  11230. int SCANCODE_F1;
  11231. int SCANCODE_F10;
  11232. int SCANCODE_F11;
  11233. int SCANCODE_F12;
  11234. int SCANCODE_F13;
  11235. int SCANCODE_F14;
  11236. int SCANCODE_F15;
  11237. int SCANCODE_F16;
  11238. int SCANCODE_F17;
  11239. int SCANCODE_F18;
  11240. int SCANCODE_F19;
  11241. int SCANCODE_F2;
  11242. int SCANCODE_F20;
  11243. int SCANCODE_F21;
  11244. int SCANCODE_F22;
  11245. int SCANCODE_F23;
  11246. int SCANCODE_F24;
  11247. int SCANCODE_F3;
  11248. int SCANCODE_F4;
  11249. int SCANCODE_F5;
  11250. int SCANCODE_F6;
  11251. int SCANCODE_F7;
  11252. int SCANCODE_F8;
  11253. int SCANCODE_F9;
  11254. int SCANCODE_FIND;
  11255. int SCANCODE_G;
  11256. int SCANCODE_GRAVE;
  11257. int SCANCODE_GUI;
  11258. int SCANCODE_H;
  11259. int SCANCODE_HELP;
  11260. int SCANCODE_HOME;
  11261. int SCANCODE_I;
  11262. int SCANCODE_INSERT;
  11263. int SCANCODE_INTERNATIONAL1;
  11264. int SCANCODE_INTERNATIONAL2;
  11265. int SCANCODE_INTERNATIONAL3;
  11266. int SCANCODE_INTERNATIONAL4;
  11267. int SCANCODE_INTERNATIONAL5;
  11268. int SCANCODE_INTERNATIONAL6;
  11269. int SCANCODE_INTERNATIONAL7;
  11270. int SCANCODE_INTERNATIONAL8;
  11271. int SCANCODE_INTERNATIONAL9;
  11272. int SCANCODE_J;
  11273. int SCANCODE_K;
  11274. int SCANCODE_KBDILLUMDOWN;
  11275. int SCANCODE_KBDILLUMTOGGLE;
  11276. int SCANCODE_KBDILLUMUP;
  11277. int SCANCODE_KP_0;
  11278. int SCANCODE_KP_00;
  11279. int SCANCODE_KP_000;
  11280. int SCANCODE_KP_1;
  11281. int SCANCODE_KP_2;
  11282. int SCANCODE_KP_3;
  11283. int SCANCODE_KP_4;
  11284. int SCANCODE_KP_5;
  11285. int SCANCODE_KP_6;
  11286. int SCANCODE_KP_7;
  11287. int SCANCODE_KP_8;
  11288. int SCANCODE_KP_9;
  11289. int SCANCODE_KP_A;
  11290. int SCANCODE_KP_AMPERSAND;
  11291. int SCANCODE_KP_AT;
  11292. int SCANCODE_KP_B;
  11293. int SCANCODE_KP_BACKSPACE;
  11294. int SCANCODE_KP_BINARY;
  11295. int SCANCODE_KP_C;
  11296. int SCANCODE_KP_CLEAR;
  11297. int SCANCODE_KP_CLEARENTRY;
  11298. int SCANCODE_KP_COLON;
  11299. int SCANCODE_KP_COMMA;
  11300. int SCANCODE_KP_D;
  11301. int SCANCODE_KP_DBLAMPERSAND;
  11302. int SCANCODE_KP_DBLVERTICALBAR;
  11303. int SCANCODE_KP_DECIMAL;
  11304. int SCANCODE_KP_DIVIDE;
  11305. int SCANCODE_KP_E;
  11306. int SCANCODE_KP_ENTER;
  11307. int SCANCODE_KP_EQUALS;
  11308. int SCANCODE_KP_EQUALSAS400;
  11309. int SCANCODE_KP_EXCLAM;
  11310. int SCANCODE_KP_F;
  11311. int SCANCODE_KP_GREATER;
  11312. int SCANCODE_KP_HASH;
  11313. int SCANCODE_KP_HEXADECIMAL;
  11314. int SCANCODE_KP_LEFTBRACE;
  11315. int SCANCODE_KP_LEFTPAREN;
  11316. int SCANCODE_KP_LESS;
  11317. int SCANCODE_KP_MEMADD;
  11318. int SCANCODE_KP_MEMCLEAR;
  11319. int SCANCODE_KP_MEMDIVIDE;
  11320. int SCANCODE_KP_MEMMULTIPLY;
  11321. int SCANCODE_KP_MEMRECALL;
  11322. int SCANCODE_KP_MEMSTORE;
  11323. int SCANCODE_KP_MEMSUBTRACT;
  11324. int SCANCODE_KP_MINUS;
  11325. int SCANCODE_KP_MULTIPLY;
  11326. int SCANCODE_KP_OCTAL;
  11327. int SCANCODE_KP_PERCENT;
  11328. int SCANCODE_KP_PERIOD;
  11329. int SCANCODE_KP_PLUS;
  11330. int SCANCODE_KP_PLUSMINUS;
  11331. int SCANCODE_KP_POWER;
  11332. int SCANCODE_KP_RIGHTBRACE;
  11333. int SCANCODE_KP_RIGHTPAREN;
  11334. int SCANCODE_KP_SPACE;
  11335. int SCANCODE_KP_TAB;
  11336. int SCANCODE_KP_VERTICALBAR;
  11337. int SCANCODE_KP_XOR;
  11338. int SCANCODE_L;
  11339. int SCANCODE_LALT;
  11340. int SCANCODE_LANG1;
  11341. int SCANCODE_LANG2;
  11342. int SCANCODE_LANG3;
  11343. int SCANCODE_LANG4;
  11344. int SCANCODE_LANG5;
  11345. int SCANCODE_LANG6;
  11346. int SCANCODE_LANG7;
  11347. int SCANCODE_LANG8;
  11348. int SCANCODE_LANG9;
  11349. int SCANCODE_LCTRL;
  11350. int SCANCODE_LEFT;
  11351. int SCANCODE_LEFTBRACKET;
  11352. int SCANCODE_LGUI;
  11353. int SCANCODE_LSHIFT;
  11354. int SCANCODE_M;
  11355. int SCANCODE_MAIL;
  11356. int SCANCODE_MEDIASELECT;
  11357. int SCANCODE_MENU;
  11358. int SCANCODE_MINUS;
  11359. int SCANCODE_MODE;
  11360. int SCANCODE_MUTE;
  11361. int SCANCODE_N;
  11362. int SCANCODE_NONUSBACKSLASH;
  11363. int SCANCODE_NONUSHASH;
  11364. int SCANCODE_NUMLOCKCLEAR;
  11365. int SCANCODE_O;
  11366. int SCANCODE_OPER;
  11367. int SCANCODE_OUT;
  11368. int SCANCODE_P;
  11369. int SCANCODE_PAGEDOWN;
  11370. int SCANCODE_PAGEUP;
  11371. int SCANCODE_PASTE;
  11372. int SCANCODE_PAUSE;
  11373. int SCANCODE_PERIOD;
  11374. int SCANCODE_POWER;
  11375. int SCANCODE_PRINTSCREEN;
  11376. int SCANCODE_PRIOR;
  11377. int SCANCODE_Q;
  11378. int SCANCODE_R;
  11379. int SCANCODE_RALT;
  11380. int SCANCODE_RCTRL;
  11381. int SCANCODE_RETURN;
  11382. int SCANCODE_RETURN2;
  11383. int SCANCODE_RGUI;
  11384. int SCANCODE_RIGHT;
  11385. int SCANCODE_RIGHTBRACKET;
  11386. int SCANCODE_RSHIFT;
  11387. int SCANCODE_S;
  11388. int SCANCODE_SCROLLLOCK;
  11389. int SCANCODE_SELECT;
  11390. int SCANCODE_SEMICOLON;
  11391. int SCANCODE_SEPARATOR;
  11392. int SCANCODE_SHIFT;
  11393. int SCANCODE_SLASH;
  11394. int SCANCODE_SLEEP;
  11395. int SCANCODE_SPACE;
  11396. int SCANCODE_STOP;
  11397. int SCANCODE_SYSREQ;
  11398. int SCANCODE_T;
  11399. int SCANCODE_TAB;
  11400. int SCANCODE_THOUSANDSSEPARATOR;
  11401. int SCANCODE_U;
  11402. int SCANCODE_UNDO;
  11403. int SCANCODE_UNKNOWN;
  11404. int SCANCODE_UP;
  11405. int SCANCODE_V;
  11406. int SCANCODE_VOLUMEDOWN;
  11407. int SCANCODE_VOLUMEUP;
  11408. int SCANCODE_W;
  11409. int SCANCODE_WWW;
  11410. int SCANCODE_X;
  11411. int SCANCODE_Y;
  11412. int SCANCODE_Z;
  11413. uint SCAN_DIRS;
  11414. uint SCAN_FILES;
  11415. uint SCAN_HIDDEN;
  11416. int SHADOWQUALITY_HIGH_16BIT;
  11417. int SHADOWQUALITY_HIGH_24BIT;
  11418. int SHADOWQUALITY_LOW_16BIT;
  11419. int SHADOWQUALITY_LOW_24BIT;
  11420. Color TRANSPARENT;
  11421. uint VO_DISABLE_OCCLUSION;
  11422. uint VO_DISABLE_SHADOWS;
  11423. uint VO_LOW_MATERIAL_QUALITY;
  11424. uint VO_NONE;
  11425. Color WHITE;
  11426. Color YELLOW;