AngelScriptAPI.h 277 KB

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