AngelScriptAPI.h 277 KB

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