AngelScriptAPI.h 294 KB

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