AngelScriptAPI.h 288 KB

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