AngelScriptAPI.h 196 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973
  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 AnimatedModel
  11. {
  12. // Methods:
  13. AnimationState AddAnimationState(Animation);
  14. void ApplyAttributes();
  15. void ApplyMaterialList(const String& = String ( ));
  16. void DrawDebugGeometry(DebugRenderer, bool);
  17. AnimationState GetAnimationState(Animation) const;
  18. AnimationState GetAnimationState(uint) const;
  19. Variant GetAttribute(const String&) const;
  20. Variant GetAttributeDefault(const String&) const;
  21. float GetMorphWeight(uint) const;
  22. bool Load(File, bool = false);
  23. bool LoadXML(const XMLElement&, bool = false);
  24. void MarkNetworkUpdate() const;
  25. void Remove();
  26. void RemoveAllAnimationStates();
  27. void RemoveAnimationState(Animation);
  28. void RemoveAnimationState(AnimationState);
  29. void RemoveAnimationState(const String&);
  30. void RemoveAnimationState(uint);
  31. void RemoveInstanceDefault();
  32. void ResetMorphWeights();
  33. void ResetToDefault();
  34. bool Save(File) const;
  35. bool SaveXML(XMLElement&) const;
  36. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  37. bool SetAttribute(const String&, const Variant&);
  38. void SetMorphWeight(uint, float);
  39. // Properties:
  40. float animationLodBias;
  41. /* (readonly) */
  42. Array<AnimationState> animationStates;
  43. /* (readonly) */
  44. Array<Variant> attributeDefaults;
  45. /* (readonly) */
  46. Array<AttributeInfo> attributeInfos;
  47. Array<Variant> attributes;
  48. /* (readonly) */
  49. ShortStringHash baseType;
  50. /* (readonly) */
  51. BoundingBox boundingBox;
  52. bool castShadows;
  53. /* (readonly) */
  54. String category;
  55. float drawDistance;
  56. bool enabled;
  57. /* (readonly) */
  58. bool enabledEffective;
  59. /* (readonly) */
  60. uint id;
  61. /* (readonly) */
  62. bool inView;
  63. uint lightMask;
  64. float lodBias;
  65. /* (writeonly) */
  66. Material material;
  67. Array<Material> materials;
  68. uint maxLights;
  69. Model model;
  70. /* (readonly) */
  71. Array<String> morphNames;
  72. Array<float> morphWeights;
  73. /* (readonly) */
  74. Node node;
  75. /* (readonly) */
  76. uint numAnimationStates;
  77. /* (readonly) */
  78. uint numAttributes;
  79. /* (readonly) */
  80. uint numGeometries;
  81. /* (readonly) */
  82. uint numMorphs;
  83. bool occludee;
  84. bool occluder;
  85. /* (readonly) */
  86. int refs;
  87. float shadowDistance;
  88. uint shadowMask;
  89. /* (readonly) */
  90. Skeleton skeleton;
  91. bool temporary;
  92. /* (readonly) */
  93. ShortStringHash type;
  94. /* (readonly) */
  95. String typeName;
  96. bool updateInvisible;
  97. uint viewMask;
  98. /* (readonly) */
  99. int weakRefs;
  100. /* (readonly) */
  101. BoundingBox worldBoundingBox;
  102. /* (readonly) */
  103. Zone zone;
  104. uint zoneMask;
  105. };
  106. class Animation
  107. {
  108. // Methods:
  109. void AddTrigger(float, bool, const Variant&);
  110. bool Load(File);
  111. void RemoveAllTriggers();
  112. void RemoveTrigger(uint);
  113. bool Save(File) const;
  114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  115. // Properties:
  116. /* (readonly) */
  117. String animationName;
  118. /* (readonly) */
  119. ShortStringHash baseType;
  120. /* (readonly) */
  121. String category;
  122. /* (readonly) */
  123. float length;
  124. /* (readonly) */
  125. uint memoryUse;
  126. String name;
  127. /* (readonly) */
  128. uint numTracks;
  129. uint numTriggers;
  130. /* (readonly) */
  131. int refs;
  132. /* (readonly) */
  133. Array<AnimationTriggerPoint> triggers;
  134. /* (readonly) */
  135. ShortStringHash type;
  136. /* (readonly) */
  137. String typeName;
  138. /* (readonly) */
  139. uint useTimer;
  140. /* (readonly) */
  141. int weakRefs;
  142. };
  143. class AnimationController
  144. {
  145. // Methods:
  146. void ApplyAttributes();
  147. void DrawDebugGeometry(DebugRenderer, bool);
  148. bool Fade(const String&, float, float);
  149. bool FadeOthers(const String&, float, float);
  150. AnimationState GetAnimationState(StringHash) const;
  151. AnimationState GetAnimationState(const String&) const;
  152. Variant GetAttribute(const String&) const;
  153. Variant GetAttributeDefault(const String&) const;
  154. float GetAutoFade(const String&) const;
  155. float GetFadeTarget(const String&) const;
  156. uint8 GetLayer(const String&) const;
  157. float GetLength(const String&) const;
  158. bool GetLooped(const String&) const;
  159. float GetSpeed(const String&) const;
  160. float GetTime(const String&) const;
  161. float GetWeight(const String&) const;
  162. bool IsFadingIn(const String&) const;
  163. bool IsFadingOut(const String&) const;
  164. bool IsPlaying(const String&) const;
  165. bool Load(File, bool = false);
  166. bool LoadXML(const XMLElement&, bool = false);
  167. void MarkNetworkUpdate() const;
  168. bool Play(const String&, uint8, bool, float = 0.0f);
  169. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  170. void Remove();
  171. void RemoveInstanceDefault();
  172. void ResetToDefault();
  173. bool Save(File) const;
  174. bool SaveXML(XMLElement&) const;
  175. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  176. bool SetAttribute(const String&, const Variant&);
  177. bool SetAutoFade(const String&, float);
  178. bool SetLayer(const String&, uint8);
  179. bool SetLooped(const String&, bool);
  180. bool SetSpeed(const String&, float);
  181. bool SetStartBone(const String&, const String&);
  182. bool SetTime(const String&, float);
  183. bool SetWeight(const String&, float);
  184. void Stop(const String&, float = 0.0f);
  185. void StopAll(float = 0.0f);
  186. void StopLayer(uint8, float = 0.0f);
  187. const String& GetStartBone(const String&) const;
  188. // Properties:
  189. /* (readonly) */
  190. Array<Variant> attributeDefaults;
  191. /* (readonly) */
  192. Array<AttributeInfo> attributeInfos;
  193. Array<Variant> attributes;
  194. /* (readonly) */
  195. ShortStringHash baseType;
  196. /* (readonly) */
  197. String category;
  198. bool enabled;
  199. /* (readonly) */
  200. bool enabledEffective;
  201. /* (readonly) */
  202. uint id;
  203. /* (readonly) */
  204. Node node;
  205. /* (readonly) */
  206. uint numAttributes;
  207. /* (readonly) */
  208. int refs;
  209. bool temporary;
  210. /* (readonly) */
  211. ShortStringHash type;
  212. /* (readonly) */
  213. String typeName;
  214. /* (readonly) */
  215. int weakRefs;
  216. };
  217. class AnimationState
  218. {
  219. // Methods:
  220. void AddTime(float);
  221. void AddWeight(float);
  222. void Apply();
  223. float GetBoneWeight(StringHash) const;
  224. float GetBoneWeight(uint) const;
  225. uint GetTrackIndex(StringHash) const;
  226. uint GetTrackIndex(const String&) const;
  227. void SetBoneWeight(StringHash, float, bool = false);
  228. void SetBoneWeight(const String&, float, bool = false);
  229. void SetBoneWeight(uint, float, bool = false);
  230. // Properties:
  231. /* (readonly) */
  232. Animation animation;
  233. Array<float> boneWeights;
  234. /* (readonly) */
  235. bool enabled;
  236. uint8 layer;
  237. /* (readonly) */
  238. float length;
  239. bool looped;
  240. /* (readonly) */
  241. AnimatedModel model;
  242. /* (readonly) */
  243. Node node;
  244. /* (readonly) */
  245. int refs;
  246. Bone startBone;
  247. float time;
  248. /* (readonly) */
  249. int weakRefs;
  250. float weight;
  251. };
  252. class AnimationTriggerPoint
  253. {
  254. // Properties:
  255. Variant data;
  256. float time;
  257. };
  258. template <class T> class Array
  259. {
  260. // Methods:
  261. void Clear();
  262. void Erase(uint);
  263. int Find(const T&) const;
  264. int Find(uint, const T&) const;
  265. void Insert(uint, const T&);
  266. void Pop();
  267. void Push(const T&);
  268. void Resize(uint);
  269. void Reverse();
  270. void Sort();
  271. void Sort(uint, uint);
  272. void SortReverse();
  273. void SortReverse(uint, uint);
  274. // Properties:
  275. /* (readonly) */
  276. bool empty;
  277. uint length;
  278. };
  279. class AttributeInfo
  280. {
  281. // Properties:
  282. Variant defaultValue;
  283. /* (readonly) */
  284. Array<String> enumNames;
  285. uint mode;
  286. String name;
  287. VariantType type;
  288. };
  289. class Audio
  290. {
  291. // Methods:
  292. bool Play();
  293. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  294. void SetMode(int, int, bool, bool = true);
  295. void Stop();
  296. // Properties:
  297. /* (readonly) */
  298. ShortStringHash baseType;
  299. /* (readonly) */
  300. String category;
  301. /* (readonly) */
  302. bool initialized;
  303. /* (readonly) */
  304. bool interpolation;
  305. SoundListener listener;
  306. Array<float> masterGain;
  307. /* (readonly) */
  308. int mixRate;
  309. /* (readonly) */
  310. bool playing;
  311. /* (readonly) */
  312. int refs;
  313. /* (readonly) */
  314. uint sampleSize;
  315. /* (readonly) */
  316. bool stereo;
  317. /* (readonly) */
  318. ShortStringHash type;
  319. /* (readonly) */
  320. String typeName;
  321. /* (readonly) */
  322. int weakRefs;
  323. };
  324. class BiasParameters
  325. {
  326. // Properties:
  327. float constantBias;
  328. float slopeScaledBias;
  329. };
  330. class Billboard
  331. {
  332. // Properties:
  333. Color color;
  334. bool enabled;
  335. Vector3 position;
  336. float rotation;
  337. Vector2 size;
  338. Rect uv;
  339. };
  340. class BillboardSet
  341. {
  342. // Methods:
  343. void ApplyAttributes();
  344. void Commit();
  345. void DrawDebugGeometry(DebugRenderer, bool);
  346. Variant GetAttribute(const String&) const;
  347. Variant GetAttributeDefault(const String&) const;
  348. bool Load(File, bool = false);
  349. bool LoadXML(const XMLElement&, bool = false);
  350. void MarkNetworkUpdate() const;
  351. void Remove();
  352. void RemoveInstanceDefault();
  353. void ResetToDefault();
  354. bool Save(File) const;
  355. bool SaveXML(XMLElement&) const;
  356. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  357. bool SetAttribute(const String&, const Variant&);
  358. // Properties:
  359. float animationLodBias;
  360. /* (readonly) */
  361. Array<Variant> attributeDefaults;
  362. /* (readonly) */
  363. Array<AttributeInfo> attributeInfos;
  364. Array<Variant> attributes;
  365. /* (readonly) */
  366. ShortStringHash baseType;
  367. /* (readonly) */
  368. Array<Billboard> billboards;
  369. /* (readonly) */
  370. BoundingBox boundingBox;
  371. bool castShadows;
  372. /* (readonly) */
  373. String category;
  374. float drawDistance;
  375. bool enabled;
  376. /* (readonly) */
  377. bool enabledEffective;
  378. bool faceCamera;
  379. /* (readonly) */
  380. uint id;
  381. /* (readonly) */
  382. bool inView;
  383. uint lightMask;
  384. float lodBias;
  385. Material material;
  386. uint maxLights;
  387. /* (readonly) */
  388. Node node;
  389. /* (readonly) */
  390. uint numAttributes;
  391. uint numBillboards;
  392. bool occludee;
  393. bool occluder;
  394. /* (readonly) */
  395. int refs;
  396. bool relative;
  397. bool scaled;
  398. float shadowDistance;
  399. uint shadowMask;
  400. bool sorted;
  401. bool temporary;
  402. /* (readonly) */
  403. ShortStringHash type;
  404. /* (readonly) */
  405. String typeName;
  406. uint viewMask;
  407. /* (readonly) */
  408. int weakRefs;
  409. /* (readonly) */
  410. BoundingBox worldBoundingBox;
  411. /* (readonly) */
  412. Zone zone;
  413. uint zoneMask;
  414. };
  415. class Bone
  416. {
  417. // Properties:
  418. bool animated;
  419. BoundingBox boundingBox;
  420. Vector3 initialPosition;
  421. Quaternion initialRotation;
  422. Vector3 initialScale;
  423. String name;
  424. Node node;
  425. float radius;
  426. };
  427. class BorderImage
  428. {
  429. // Methods:
  430. void AddChild(UIElement);
  431. void ApplyAttributes();
  432. void BringToFront();
  433. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  434. void DisableLayoutUpdate();
  435. IntVector2 ElementToScreen(const IntVector2&);
  436. void EnableLayoutUpdate();
  437. uint FindChild(UIElement) const;
  438. Variant GetAttribute(const String&) const;
  439. Variant GetAttributeDefault(const String&) const;
  440. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  441. UIElement GetChild(const String&, bool = false) const;
  442. Array<UIElement> GetChildren(bool = false) const;
  443. UIElement GetElementEventSender() const;
  444. uint GetNumChildren(bool) const;
  445. void InsertChild(uint, UIElement);
  446. bool IsInside(IntVector2, bool);
  447. bool IsInsideCombined(IntVector2, bool);
  448. bool Load(File, bool = false);
  449. bool LoadChildXML(XMLFile, XMLFile = null);
  450. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  451. bool LoadXML(File);
  452. bool LoadXML(XMLFile, XMLFile);
  453. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  454. bool LoadXML(const XMLElement&, bool = false);
  455. void Remove();
  456. void RemoveAllChildren();
  457. void RemoveChild(UIElement, uint = 0);
  458. void RemoveChild(uint);
  459. void RemoveInstanceDefault();
  460. void ResetToDefault();
  461. bool Save(File) const;
  462. bool SaveXML(File);
  463. bool SaveXML(XMLElement&) const;
  464. IntVector2 ScreenToElement(const IntVector2&);
  465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  466. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  467. bool SetAttribute(const String&, const Variant&);
  468. void SetFixedHeight(int);
  469. void SetFixedSize(int, int);
  470. void SetFixedWidth(int);
  471. void SetFullImageRect();
  472. void SetHoverOffset(int, int);
  473. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  474. void SetMaxSize(int, int);
  475. void SetMinSize(int, int);
  476. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  477. void SetPosition(int, int);
  478. void SetSize(int, int);
  479. bool SetStyle(const String&, XMLFile = null);
  480. bool SetStyle(const XMLElement&);
  481. bool SetStyleAuto(XMLFile = null);
  482. void UpdateLayout();
  483. const Variant& GetVar(const ShortStringHash&);
  484. // Properties:
  485. /* (readonly) */
  486. Array<Variant> attributeDefaults;
  487. /* (readonly) */
  488. Array<AttributeInfo> attributeInfos;
  489. Array<Variant> attributes;
  490. /* (readonly) */
  491. ShortStringHash baseType;
  492. BlendMode blendMode;
  493. IntRect border;
  494. bool bringToBack;
  495. bool bringToFront;
  496. /* (readonly) */
  497. String category;
  498. /* (readonly) */
  499. IntVector2 childOffset;
  500. /* (readonly) */
  501. Array<UIElement> children;
  502. IntRect clipBorder;
  503. bool clipChildren;
  504. /* (writeonly) */
  505. Color color;
  506. /* (readonly) */
  507. bool colorGradient;
  508. Array<Color> colors;
  509. /* (readonly) */
  510. IntRect combinedScreenRect;
  511. XMLFile defaultStyle;
  512. /* (readonly) */
  513. float derivedOpacity;
  514. uint dragDropMode;
  515. bool editable;
  516. bool elementEventSender;
  517. bool enabled;
  518. /* (readonly) */
  519. bool fixedHeight;
  520. /* (readonly) */
  521. bool fixedSize;
  522. /* (readonly) */
  523. bool fixedWidth;
  524. bool focus;
  525. FocusMode focusMode;
  526. int height;
  527. HorizontalAlignment horizontalAlignment;
  528. IntVector2 hoverOffset;
  529. /* (readonly) */
  530. bool hovering;
  531. IntRect imageRect;
  532. int indent;
  533. int indentSpacing;
  534. /* (readonly) */
  535. int indentWidth;
  536. bool internal;
  537. IntRect layoutBorder;
  538. LayoutMode layoutMode;
  539. int layoutSpacing;
  540. int maxHeight;
  541. IntVector2 maxSize;
  542. int maxWidth;
  543. int minHeight;
  544. IntVector2 minSize;
  545. int minWidth;
  546. String name;
  547. /* (readonly) */
  548. uint numAllChildren;
  549. /* (readonly) */
  550. uint numAttributes;
  551. /* (readonly) */
  552. uint numChildren;
  553. float opacity;
  554. UIElement parent;
  555. IntVector2 position;
  556. int priority;
  557. /* (readonly) */
  558. int refs;
  559. /* (readonly) */
  560. UIElement root;
  561. /* (readonly) */
  562. IntVector2 screenPosition;
  563. bool selected;
  564. IntVector2 size;
  565. bool sortChildren;
  566. String style;
  567. bool temporary;
  568. Texture texture;
  569. bool tiled;
  570. TraversalMode traversalMode;
  571. /* (readonly) */
  572. ShortStringHash type;
  573. /* (readonly) */
  574. String typeName;
  575. bool useDerivedOpacity;
  576. /* (readonly) */
  577. VariantMap vars;
  578. VerticalAlignment verticalAlignment;
  579. bool visible;
  580. /* (readonly) */
  581. int weakRefs;
  582. int width;
  583. };
  584. class BoundingBox
  585. {
  586. // Methods:
  587. void Clear();
  588. void Clip(const BoundingBox&);
  589. void Define(const BoundingBox&);
  590. void Define(const Frustum&);
  591. void Define(const Polyhedron&);
  592. void Define(const Sphere&);
  593. void Define(const Vector3&);
  594. void Define(const Vector3&, const Vector3&);
  595. void Define(float, float);
  596. Intersection IsInside(const BoundingBox&) const;
  597. Intersection IsInside(const Sphere&) const;
  598. Intersection IsInside(const Vector3&) const;
  599. void Merge(const BoundingBox&);
  600. void Merge(const Frustum&);
  601. void Merge(const Polyhedron&);
  602. void Merge(const Sphere&);
  603. void Merge(const Vector3&);
  604. Rect Projected(const Matrix4&) const;
  605. String ToString() const;
  606. void Transform(const Matrix3&);
  607. void Transform(const Matrix3x4&);
  608. BoundingBox Transformed(const Matrix3&) const;
  609. BoundingBox Transformed(const Matrix3x4&) const;
  610. // Properties:
  611. /* (readonly) */
  612. Vector3 center;
  613. bool defined;
  614. /* (readonly) */
  615. Vector3 halfSize;
  616. Vector3 max;
  617. Vector3 min;
  618. /* (readonly) */
  619. Vector3 size;
  620. };
  621. class Button
  622. {
  623. // Methods:
  624. void AddChild(UIElement);
  625. void ApplyAttributes();
  626. void BringToFront();
  627. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  628. void DisableLayoutUpdate();
  629. IntVector2 ElementToScreen(const IntVector2&);
  630. void EnableLayoutUpdate();
  631. uint FindChild(UIElement) const;
  632. Variant GetAttribute(const String&) const;
  633. Variant GetAttributeDefault(const String&) const;
  634. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  635. UIElement GetChild(const String&, bool = false) const;
  636. Array<UIElement> GetChildren(bool = false) const;
  637. UIElement GetElementEventSender() const;
  638. uint GetNumChildren(bool) const;
  639. void InsertChild(uint, UIElement);
  640. bool IsInside(IntVector2, bool);
  641. bool IsInsideCombined(IntVector2, bool);
  642. bool Load(File, bool = false);
  643. bool LoadChildXML(XMLFile, XMLFile = null);
  644. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  645. bool LoadXML(File);
  646. bool LoadXML(XMLFile, XMLFile);
  647. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  648. bool LoadXML(const XMLElement&, bool = false);
  649. void Remove();
  650. void RemoveAllChildren();
  651. void RemoveChild(UIElement, uint = 0);
  652. void RemoveChild(uint);
  653. void RemoveInstanceDefault();
  654. void ResetToDefault();
  655. bool Save(File) const;
  656. bool SaveXML(File);
  657. bool SaveXML(XMLElement&) const;
  658. IntVector2 ScreenToElement(const IntVector2&);
  659. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  660. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  661. bool SetAttribute(const String&, const Variant&);
  662. void SetFixedHeight(int);
  663. void SetFixedSize(int, int);
  664. void SetFixedWidth(int);
  665. void SetFullImageRect();
  666. void SetHoverOffset(int, int);
  667. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  668. void SetMaxSize(int, int);
  669. void SetMinSize(int, int);
  670. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  671. void SetPosition(int, int);
  672. void SetPressedChildOffset(int, int);
  673. void SetPressedOffset(int, int);
  674. void SetRepeat(float, float);
  675. void SetSize(int, int);
  676. bool SetStyle(const String&, XMLFile = null);
  677. bool SetStyle(const XMLElement&);
  678. bool SetStyleAuto(XMLFile = null);
  679. void UpdateLayout();
  680. const Variant& GetVar(const ShortStringHash&);
  681. // Properties:
  682. /* (readonly) */
  683. Array<Variant> attributeDefaults;
  684. /* (readonly) */
  685. Array<AttributeInfo> attributeInfos;
  686. Array<Variant> attributes;
  687. /* (readonly) */
  688. ShortStringHash baseType;
  689. BlendMode blendMode;
  690. IntRect border;
  691. bool bringToBack;
  692. bool bringToFront;
  693. /* (readonly) */
  694. String category;
  695. /* (readonly) */
  696. IntVector2 childOffset;
  697. /* (readonly) */
  698. Array<UIElement> children;
  699. IntRect clipBorder;
  700. bool clipChildren;
  701. /* (writeonly) */
  702. Color color;
  703. /* (readonly) */
  704. bool colorGradient;
  705. Array<Color> colors;
  706. /* (readonly) */
  707. IntRect combinedScreenRect;
  708. XMLFile defaultStyle;
  709. /* (readonly) */
  710. float derivedOpacity;
  711. uint dragDropMode;
  712. bool editable;
  713. bool elementEventSender;
  714. bool enabled;
  715. /* (readonly) */
  716. bool fixedHeight;
  717. /* (readonly) */
  718. bool fixedSize;
  719. /* (readonly) */
  720. bool fixedWidth;
  721. bool focus;
  722. FocusMode focusMode;
  723. int height;
  724. HorizontalAlignment horizontalAlignment;
  725. IntVector2 hoverOffset;
  726. /* (readonly) */
  727. bool hovering;
  728. IntRect imageRect;
  729. int indent;
  730. int indentSpacing;
  731. /* (readonly) */
  732. int indentWidth;
  733. bool internal;
  734. IntRect layoutBorder;
  735. LayoutMode layoutMode;
  736. int layoutSpacing;
  737. int maxHeight;
  738. IntVector2 maxSize;
  739. int maxWidth;
  740. int minHeight;
  741. IntVector2 minSize;
  742. int minWidth;
  743. String name;
  744. /* (readonly) */
  745. uint numAllChildren;
  746. /* (readonly) */
  747. uint numAttributes;
  748. /* (readonly) */
  749. uint numChildren;
  750. float opacity;
  751. UIElement parent;
  752. IntVector2 position;
  753. /* (readonly) */
  754. bool pressed;
  755. IntVector2 pressedChildOffset;
  756. IntVector2 pressedOffset;
  757. int priority;
  758. /* (readonly) */
  759. int refs;
  760. float repeatDelay;
  761. float repeatRate;
  762. /* (readonly) */
  763. UIElement root;
  764. /* (readonly) */
  765. IntVector2 screenPosition;
  766. bool selected;
  767. IntVector2 size;
  768. bool sortChildren;
  769. String style;
  770. bool temporary;
  771. Texture texture;
  772. bool tiled;
  773. TraversalMode traversalMode;
  774. /* (readonly) */
  775. ShortStringHash type;
  776. /* (readonly) */
  777. String typeName;
  778. bool useDerivedOpacity;
  779. /* (readonly) */
  780. VariantMap vars;
  781. VerticalAlignment verticalAlignment;
  782. bool visible;
  783. /* (readonly) */
  784. int weakRefs;
  785. int width;
  786. };
  787. class Camera
  788. {
  789. // Methods:
  790. void ApplyAttributes();
  791. void DrawDebugGeometry(DebugRenderer, bool);
  792. Variant GetAttribute(const String&) const;
  793. Variant GetAttributeDefault(const String&) const;
  794. float GetDistance(const Vector3&) const;
  795. float GetDistanceSquared(const Vector3&) const;
  796. Ray GetScreenRay(float, float) const;
  797. Frustum GetSplitFrustum(float, float) const;
  798. bool Load(File, bool = false);
  799. bool LoadXML(const XMLElement&, bool = false);
  800. void MarkNetworkUpdate() const;
  801. void Remove();
  802. void RemoveInstanceDefault();
  803. void ResetToDefault();
  804. bool Save(File) const;
  805. bool SaveXML(XMLElement&) const;
  806. Vector3 ScreenToWorldPoint(const Vector3&) const;
  807. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  808. bool SetAttribute(const String&, const Variant&);
  809. void SetOrthoSize(const Vector2&);
  810. Vector2 WorldToScreenPoint(const Vector3&) const;
  811. // Properties:
  812. float aspectRatio;
  813. /* (readonly) */
  814. Array<Variant> attributeDefaults;
  815. /* (readonly) */
  816. Array<AttributeInfo> attributeInfos;
  817. Array<Variant> attributes;
  818. bool autoAspectRatio;
  819. /* (readonly) */
  820. ShortStringHash baseType;
  821. /* (readonly) */
  822. String category;
  823. Plane clipPlane;
  824. /* (readonly) */
  825. Matrix3x4 effectiveWorldTransform;
  826. bool enabled;
  827. /* (readonly) */
  828. bool enabledEffective;
  829. float farClip;
  830. FillMode fillMode;
  831. float fov;
  832. /* (readonly) */
  833. Frustum frustum;
  834. /* (readonly) */
  835. float halfViewSize;
  836. /* (readonly) */
  837. uint id;
  838. float lodBias;
  839. float nearClip;
  840. /* (readonly) */
  841. Node node;
  842. /* (readonly) */
  843. uint numAttributes;
  844. float orthoSize;
  845. bool orthographic;
  846. /* (readonly) */
  847. Matrix4 projection;
  848. Vector2 projectionOffset;
  849. Plane reflectionPlane;
  850. /* (readonly) */
  851. int refs;
  852. bool temporary;
  853. /* (readonly) */
  854. ShortStringHash type;
  855. /* (readonly) */
  856. String typeName;
  857. bool useClipping;
  858. bool useReflection;
  859. /* (readonly) */
  860. Matrix3x4 view;
  861. uint viewMask;
  862. uint viewOverrideFlags;
  863. /* (readonly) */
  864. Frustum viewSpaceFrustum;
  865. /* (readonly) */
  866. int weakRefs;
  867. float zoom;
  868. };
  869. class CascadeParameters
  870. {
  871. // Properties:
  872. float biasAutoAdjust;
  873. float fadeStart;
  874. float split1;
  875. float split2;
  876. float split3;
  877. float split4;
  878. };
  879. class CheckBox
  880. {
  881. // Methods:
  882. void AddChild(UIElement);
  883. void ApplyAttributes();
  884. void BringToFront();
  885. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  886. void DisableLayoutUpdate();
  887. IntVector2 ElementToScreen(const IntVector2&);
  888. void EnableLayoutUpdate();
  889. uint FindChild(UIElement) const;
  890. Variant GetAttribute(const String&) const;
  891. Variant GetAttributeDefault(const String&) const;
  892. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  893. UIElement GetChild(const String&, bool = false) const;
  894. Array<UIElement> GetChildren(bool = false) const;
  895. UIElement GetElementEventSender() const;
  896. uint GetNumChildren(bool) const;
  897. void InsertChild(uint, UIElement);
  898. bool IsInside(IntVector2, bool);
  899. bool IsInsideCombined(IntVector2, bool);
  900. bool Load(File, bool = false);
  901. bool LoadChildXML(XMLFile, XMLFile = null);
  902. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  903. bool LoadXML(File);
  904. bool LoadXML(XMLFile, XMLFile);
  905. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  906. bool LoadXML(const XMLElement&, bool = false);
  907. void Remove();
  908. void RemoveAllChildren();
  909. void RemoveChild(UIElement, uint = 0);
  910. void RemoveChild(uint);
  911. void RemoveInstanceDefault();
  912. void ResetToDefault();
  913. bool Save(File) const;
  914. bool SaveXML(File);
  915. bool SaveXML(XMLElement&) const;
  916. IntVector2 ScreenToElement(const IntVector2&);
  917. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  918. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  919. bool SetAttribute(const String&, const Variant&);
  920. void SetCheckedOffset(int, int);
  921. void SetFixedHeight(int);
  922. void SetFixedSize(int, int);
  923. void SetFixedWidth(int);
  924. void SetFullImageRect();
  925. void SetHoverOffset(int, int);
  926. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  927. void SetMaxSize(int, int);
  928. void SetMinSize(int, int);
  929. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  930. void SetPosition(int, int);
  931. void SetSize(int, int);
  932. bool SetStyle(const String&, XMLFile = null);
  933. bool SetStyle(const XMLElement&);
  934. bool SetStyleAuto(XMLFile = null);
  935. void UpdateLayout();
  936. const Variant& GetVar(const ShortStringHash&);
  937. // Properties:
  938. /* (readonly) */
  939. Array<Variant> attributeDefaults;
  940. /* (readonly) */
  941. Array<AttributeInfo> attributeInfos;
  942. Array<Variant> attributes;
  943. /* (readonly) */
  944. ShortStringHash baseType;
  945. BlendMode blendMode;
  946. IntRect border;
  947. bool bringToBack;
  948. bool bringToFront;
  949. /* (readonly) */
  950. String category;
  951. bool checked;
  952. IntVector2 checkedOffset;
  953. /* (readonly) */
  954. IntVector2 childOffset;
  955. /* (readonly) */
  956. Array<UIElement> children;
  957. IntRect clipBorder;
  958. bool clipChildren;
  959. /* (writeonly) */
  960. Color color;
  961. /* (readonly) */
  962. bool colorGradient;
  963. Array<Color> colors;
  964. /* (readonly) */
  965. IntRect combinedScreenRect;
  966. XMLFile defaultStyle;
  967. /* (readonly) */
  968. float derivedOpacity;
  969. uint dragDropMode;
  970. bool editable;
  971. bool elementEventSender;
  972. bool enabled;
  973. /* (readonly) */
  974. bool fixedHeight;
  975. /* (readonly) */
  976. bool fixedSize;
  977. /* (readonly) */
  978. bool fixedWidth;
  979. bool focus;
  980. FocusMode focusMode;
  981. int height;
  982. HorizontalAlignment horizontalAlignment;
  983. IntVector2 hoverOffset;
  984. /* (readonly) */
  985. bool hovering;
  986. IntRect imageRect;
  987. int indent;
  988. int indentSpacing;
  989. /* (readonly) */
  990. int indentWidth;
  991. bool internal;
  992. IntRect layoutBorder;
  993. LayoutMode layoutMode;
  994. int layoutSpacing;
  995. int maxHeight;
  996. IntVector2 maxSize;
  997. int maxWidth;
  998. int minHeight;
  999. IntVector2 minSize;
  1000. int minWidth;
  1001. String name;
  1002. /* (readonly) */
  1003. uint numAllChildren;
  1004. /* (readonly) */
  1005. uint numAttributes;
  1006. /* (readonly) */
  1007. uint numChildren;
  1008. float opacity;
  1009. UIElement parent;
  1010. IntVector2 position;
  1011. int priority;
  1012. /* (readonly) */
  1013. int refs;
  1014. /* (readonly) */
  1015. UIElement root;
  1016. /* (readonly) */
  1017. IntVector2 screenPosition;
  1018. bool selected;
  1019. IntVector2 size;
  1020. bool sortChildren;
  1021. String style;
  1022. bool temporary;
  1023. Texture texture;
  1024. bool tiled;
  1025. TraversalMode traversalMode;
  1026. /* (readonly) */
  1027. ShortStringHash type;
  1028. /* (readonly) */
  1029. String typeName;
  1030. bool useDerivedOpacity;
  1031. /* (readonly) */
  1032. VariantMap vars;
  1033. VerticalAlignment verticalAlignment;
  1034. bool visible;
  1035. /* (readonly) */
  1036. int weakRefs;
  1037. int width;
  1038. };
  1039. class CollisionShape
  1040. {
  1041. // Methods:
  1042. void ApplyAttributes();
  1043. void DrawDebugGeometry(DebugRenderer, bool);
  1044. Variant GetAttribute(const String&) const;
  1045. Variant GetAttributeDefault(const String&) const;
  1046. bool Load(File, 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 SaveXML(XMLElement&) const;
  1054. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1055. bool SetAttribute(const String&, const Variant&);
  1056. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1057. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1058. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1059. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1060. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1061. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1062. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1063. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1064. void SetTerrain();
  1065. void SetTransform(const Vector3&, const Quaternion&);
  1066. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1067. // Properties:
  1068. /* (readonly) */
  1069. Array<Variant> attributeDefaults;
  1070. /* (readonly) */
  1071. Array<AttributeInfo> attributeInfos;
  1072. Array<Variant> attributes;
  1073. /* (readonly) */
  1074. ShortStringHash baseType;
  1075. /* (readonly) */
  1076. String category;
  1077. bool enabled;
  1078. /* (readonly) */
  1079. bool enabledEffective;
  1080. /* (readonly) */
  1081. uint id;
  1082. uint lodLevel;
  1083. float margin;
  1084. Model model;
  1085. /* (readonly) */
  1086. Node node;
  1087. /* (readonly) */
  1088. uint numAttributes;
  1089. Vector3 position;
  1090. /* (readonly) */
  1091. int refs;
  1092. Quaternion rotation;
  1093. ShapeType shapeType;
  1094. Vector3 size;
  1095. bool temporary;
  1096. /* (readonly) */
  1097. ShortStringHash type;
  1098. /* (readonly) */
  1099. String typeName;
  1100. /* (readonly) */
  1101. int weakRefs;
  1102. /* (readonly) */
  1103. BoundingBox worldBoundingBox;
  1104. };
  1105. class Color
  1106. {
  1107. // Methods:
  1108. float Average() const;
  1109. float Chroma() const;
  1110. void Clip(bool);
  1111. void FromHSL(float, float, float, float);
  1112. void FromHSV(float, float, float, float);
  1113. float Hue() const;
  1114. void Invert(bool);
  1115. Color Lerp(const Color&, float) const;
  1116. float Lightness() const;
  1117. float Luma() const;
  1118. float MaxRGB() const;
  1119. float MinRGB() const;
  1120. float Range() const;
  1121. float SaturationHSL() const;
  1122. float SaturationHSV() const;
  1123. float SumRGB() const;
  1124. Vector3 ToHSL() const;
  1125. Vector3 ToHSV() const;
  1126. String ToString() const;
  1127. uint ToUInt() const;
  1128. float Value() const;
  1129. // Properties:
  1130. float a;
  1131. float b;
  1132. /* (readonly) */
  1133. Array<float> data;
  1134. float g;
  1135. float r;
  1136. /* (readonly) */
  1137. Vector3 rgb;
  1138. /* (readonly) */
  1139. Vector4 rgba;
  1140. };
  1141. class ColorFrame
  1142. {
  1143. // Properties:
  1144. Color color;
  1145. float time;
  1146. };
  1147. class Component
  1148. {
  1149. // Methods:
  1150. void ApplyAttributes();
  1151. void DrawDebugGeometry(DebugRenderer, bool);
  1152. Variant GetAttribute(const String&) const;
  1153. Variant GetAttributeDefault(const String&) const;
  1154. bool Load(File, bool = false);
  1155. bool LoadXML(const XMLElement&, bool = false);
  1156. void MarkNetworkUpdate() const;
  1157. void Remove();
  1158. void RemoveInstanceDefault();
  1159. void ResetToDefault();
  1160. bool Save(File) const;
  1161. bool SaveXML(XMLElement&) const;
  1162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1163. bool SetAttribute(const String&, const Variant&);
  1164. // Properties:
  1165. /* (readonly) */
  1166. Array<Variant> attributeDefaults;
  1167. /* (readonly) */
  1168. Array<AttributeInfo> attributeInfos;
  1169. Array<Variant> attributes;
  1170. /* (readonly) */
  1171. ShortStringHash baseType;
  1172. /* (readonly) */
  1173. String category;
  1174. bool enabled;
  1175. /* (readonly) */
  1176. bool enabledEffective;
  1177. /* (readonly) */
  1178. uint id;
  1179. /* (readonly) */
  1180. Node node;
  1181. /* (readonly) */
  1182. uint numAttributes;
  1183. /* (readonly) */
  1184. int refs;
  1185. bool temporary;
  1186. /* (readonly) */
  1187. ShortStringHash type;
  1188. /* (readonly) */
  1189. String typeName;
  1190. /* (readonly) */
  1191. int weakRefs;
  1192. };
  1193. class Connection
  1194. {
  1195. // Methods:
  1196. void Disconnect(int = 0);
  1197. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1198. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1199. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1200. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1201. String ToString() const;
  1202. // Properties:
  1203. /* (readonly) */
  1204. String address;
  1205. /* (readonly) */
  1206. ShortStringHash baseType;
  1207. /* (readonly) */
  1208. String category;
  1209. /* (readonly) */
  1210. bool client;
  1211. /* (readonly) */
  1212. bool connectPending;
  1213. /* (readonly) */
  1214. bool connected;
  1215. Controls controls;
  1216. /* (readonly) */
  1217. String downloadName;
  1218. /* (readonly) */
  1219. float downloadProgress;
  1220. VariantMap identity;
  1221. bool logStatistics;
  1222. /* (readonly) */
  1223. uint numDownloads;
  1224. /* (readonly) */
  1225. uint16 port;
  1226. Vector3 position;
  1227. /* (readonly) */
  1228. int refs;
  1229. Scene scene;
  1230. /* (readonly) */
  1231. bool sceneLoaded;
  1232. /* (readonly) */
  1233. ShortStringHash type;
  1234. /* (readonly) */
  1235. String typeName;
  1236. /* (readonly) */
  1237. int weakRefs;
  1238. };
  1239. class Console
  1240. {
  1241. // Methods:
  1242. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1243. void Toggle();
  1244. void UpdateElements();
  1245. // Properties:
  1246. /* (readonly) */
  1247. BorderImage background;
  1248. /* (readonly) */
  1249. ShortStringHash baseType;
  1250. /* (readonly) */
  1251. String category;
  1252. XMLFile defaultStyle;
  1253. /* (readonly) */
  1254. uint historyPosition;
  1255. /* (readonly) */
  1256. Array<String> historyRow;
  1257. /* (readonly) */
  1258. LineEdit lineEdit;
  1259. uint numHistoryRows;
  1260. uint numRows;
  1261. /* (readonly) */
  1262. int refs;
  1263. /* (readonly) */
  1264. ShortStringHash type;
  1265. /* (readonly) */
  1266. String typeName;
  1267. bool visible;
  1268. /* (readonly) */
  1269. int weakRefs;
  1270. };
  1271. class Constraint
  1272. {
  1273. // Methods:
  1274. void ApplyAttributes();
  1275. void DrawDebugGeometry(DebugRenderer, bool);
  1276. Variant GetAttribute(const String&) const;
  1277. Variant GetAttributeDefault(const String&) const;
  1278. bool Load(File, bool = false);
  1279. bool LoadXML(const XMLElement&, bool = false);
  1280. void MarkNetworkUpdate() const;
  1281. void Remove();
  1282. void RemoveInstanceDefault();
  1283. void ResetToDefault();
  1284. bool Save(File) const;
  1285. bool SaveXML(XMLElement&) const;
  1286. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1287. bool SetAttribute(const String&, const Variant&);
  1288. // Properties:
  1289. /* (readonly) */
  1290. Array<Variant> attributeDefaults;
  1291. /* (readonly) */
  1292. Array<AttributeInfo> attributeInfos;
  1293. Array<Variant> attributes;
  1294. /* (writeonly) */
  1295. Vector3 axis;
  1296. /* (readonly) */
  1297. ShortStringHash baseType;
  1298. /* (readonly) */
  1299. String category;
  1300. float cfm;
  1301. ConstraintType constraintType;
  1302. bool disableCollision;
  1303. bool enabled;
  1304. /* (readonly) */
  1305. bool enabledEffective;
  1306. float erp;
  1307. Vector2 highLimit;
  1308. /* (readonly) */
  1309. uint id;
  1310. Vector2 lowLimit;
  1311. /* (readonly) */
  1312. Node node;
  1313. /* (readonly) */
  1314. uint numAttributes;
  1315. /* (writeonly) */
  1316. Vector3 otherAxis;
  1317. RigidBody otherBody;
  1318. Vector3 otherPosition;
  1319. Quaternion otherRotation;
  1320. /* (readonly) */
  1321. RigidBody ownBody;
  1322. Vector3 position;
  1323. /* (readonly) */
  1324. int refs;
  1325. Quaternion rotation;
  1326. bool temporary;
  1327. /* (readonly) */
  1328. ShortStringHash type;
  1329. /* (readonly) */
  1330. String typeName;
  1331. /* (readonly) */
  1332. int weakRefs;
  1333. Vector3 worldPosition;
  1334. };
  1335. class Controls
  1336. {
  1337. // Methods:
  1338. bool IsDown(uint) const;
  1339. bool IsPressed(uint, const Controls&) const;
  1340. void Reset();
  1341. void Set(uint, bool);
  1342. // Properties:
  1343. uint buttons;
  1344. VariantMap extraData;
  1345. float pitch;
  1346. float yaw;
  1347. };
  1348. class Cursor
  1349. {
  1350. // Methods:
  1351. void AddChild(UIElement);
  1352. void ApplyAttributes();
  1353. void BringToFront();
  1354. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1355. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  1356. void DisableLayoutUpdate();
  1357. IntVector2 ElementToScreen(const IntVector2&);
  1358. void EnableLayoutUpdate();
  1359. uint FindChild(UIElement) const;
  1360. Variant GetAttribute(const String&) const;
  1361. Variant GetAttributeDefault(const String&) const;
  1362. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  1363. UIElement GetChild(const String&, bool = false) const;
  1364. Array<UIElement> GetChildren(bool = false) const;
  1365. UIElement GetElementEventSender() const;
  1366. uint GetNumChildren(bool) const;
  1367. void InsertChild(uint, UIElement);
  1368. bool IsInside(IntVector2, bool);
  1369. bool IsInsideCombined(IntVector2, bool);
  1370. bool Load(File, bool = false);
  1371. bool LoadChildXML(XMLFile, XMLFile = null);
  1372. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1373. bool LoadXML(File);
  1374. bool LoadXML(XMLFile, XMLFile);
  1375. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1376. bool LoadXML(const XMLElement&, bool = false);
  1377. void Remove();
  1378. void RemoveAllChildren();
  1379. void RemoveChild(UIElement, uint = 0);
  1380. void RemoveChild(uint);
  1381. void RemoveInstanceDefault();
  1382. void ResetToDefault();
  1383. bool Save(File) const;
  1384. bool SaveXML(File);
  1385. bool SaveXML(XMLElement&) const;
  1386. IntVector2 ScreenToElement(const IntVector2&);
  1387. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1388. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1389. bool SetAttribute(const String&, const Variant&);
  1390. void SetFixedHeight(int);
  1391. void SetFixedSize(int, int);
  1392. void SetFixedWidth(int);
  1393. void SetFullImageRect();
  1394. void SetHoverOffset(int, int);
  1395. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1396. void SetMaxSize(int, int);
  1397. void SetMinSize(int, int);
  1398. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1399. void SetPosition(int, int);
  1400. void SetSize(int, int);
  1401. bool SetStyle(const String&, XMLFile = null);
  1402. bool SetStyle(const XMLElement&);
  1403. bool SetStyleAuto(XMLFile = null);
  1404. void UpdateLayout();
  1405. const Variant& GetVar(const ShortStringHash&);
  1406. // Properties:
  1407. /* (readonly) */
  1408. Array<Variant> attributeDefaults;
  1409. /* (readonly) */
  1410. Array<AttributeInfo> attributeInfos;
  1411. Array<Variant> attributes;
  1412. /* (readonly) */
  1413. ShortStringHash baseType;
  1414. BlendMode blendMode;
  1415. IntRect border;
  1416. bool bringToBack;
  1417. bool bringToFront;
  1418. /* (readonly) */
  1419. String category;
  1420. /* (readonly) */
  1421. IntVector2 childOffset;
  1422. /* (readonly) */
  1423. Array<UIElement> children;
  1424. IntRect clipBorder;
  1425. bool clipChildren;
  1426. /* (writeonly) */
  1427. Color color;
  1428. /* (readonly) */
  1429. bool colorGradient;
  1430. Array<Color> colors;
  1431. /* (readonly) */
  1432. IntRect combinedScreenRect;
  1433. XMLFile defaultStyle;
  1434. /* (readonly) */
  1435. float derivedOpacity;
  1436. uint dragDropMode;
  1437. bool editable;
  1438. bool elementEventSender;
  1439. bool enabled;
  1440. /* (readonly) */
  1441. bool fixedHeight;
  1442. /* (readonly) */
  1443. bool fixedSize;
  1444. /* (readonly) */
  1445. bool fixedWidth;
  1446. bool focus;
  1447. FocusMode focusMode;
  1448. int height;
  1449. HorizontalAlignment horizontalAlignment;
  1450. IntVector2 hoverOffset;
  1451. /* (readonly) */
  1452. bool hovering;
  1453. IntRect imageRect;
  1454. int indent;
  1455. int indentSpacing;
  1456. /* (readonly) */
  1457. int indentWidth;
  1458. bool internal;
  1459. IntRect layoutBorder;
  1460. LayoutMode layoutMode;
  1461. int layoutSpacing;
  1462. int maxHeight;
  1463. IntVector2 maxSize;
  1464. int maxWidth;
  1465. int minHeight;
  1466. IntVector2 minSize;
  1467. int minWidth;
  1468. String name;
  1469. /* (readonly) */
  1470. uint numAllChildren;
  1471. /* (readonly) */
  1472. uint numAttributes;
  1473. /* (readonly) */
  1474. uint numChildren;
  1475. float opacity;
  1476. UIElement parent;
  1477. IntVector2 position;
  1478. int priority;
  1479. /* (readonly) */
  1480. int refs;
  1481. /* (readonly) */
  1482. UIElement root;
  1483. /* (readonly) */
  1484. IntVector2 screenPosition;
  1485. bool selected;
  1486. CursorShape shape;
  1487. IntVector2 size;
  1488. bool sortChildren;
  1489. String style;
  1490. bool temporary;
  1491. Texture texture;
  1492. bool tiled;
  1493. TraversalMode traversalMode;
  1494. /* (readonly) */
  1495. ShortStringHash type;
  1496. /* (readonly) */
  1497. String typeName;
  1498. bool useDerivedOpacity;
  1499. bool useSystemShapes;
  1500. /* (readonly) */
  1501. VariantMap vars;
  1502. VerticalAlignment verticalAlignment;
  1503. bool visible;
  1504. /* (readonly) */
  1505. int weakRefs;
  1506. int width;
  1507. };
  1508. class CustomGeometry
  1509. {
  1510. // Methods:
  1511. void ApplyAttributes();
  1512. void BeginGeometry(uint, PrimitiveType);
  1513. void Clear();
  1514. void Commit();
  1515. void DefineColor(const Color&);
  1516. void DefineNormal(const Vector3&);
  1517. void DefineTangent(const Vector4&);
  1518. void DefineTexCoord(const Vector2&);
  1519. void DefineVertex(const Vector3&);
  1520. void DrawDebugGeometry(DebugRenderer, bool);
  1521. Variant GetAttribute(const String&) const;
  1522. Variant GetAttributeDefault(const String&) const;
  1523. bool Load(File, bool = false);
  1524. bool LoadXML(const XMLElement&, bool = false);
  1525. void MarkNetworkUpdate() const;
  1526. void Remove();
  1527. void RemoveInstanceDefault();
  1528. void ResetToDefault();
  1529. bool Save(File) const;
  1530. bool SaveXML(XMLElement&) const;
  1531. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1532. bool SetAttribute(const String&, const Variant&);
  1533. // Properties:
  1534. /* (readonly) */
  1535. Array<Variant> attributeDefaults;
  1536. /* (readonly) */
  1537. Array<AttributeInfo> attributeInfos;
  1538. Array<Variant> attributes;
  1539. /* (readonly) */
  1540. ShortStringHash baseType;
  1541. /* (readonly) */
  1542. BoundingBox boundingBox;
  1543. bool castShadows;
  1544. /* (readonly) */
  1545. String category;
  1546. float drawDistance;
  1547. bool enabled;
  1548. /* (readonly) */
  1549. bool enabledEffective;
  1550. /* (readonly) */
  1551. uint id;
  1552. /* (readonly) */
  1553. bool inView;
  1554. uint lightMask;
  1555. float lodBias;
  1556. /* (writeonly) */
  1557. Material material;
  1558. Array<Material> materials;
  1559. uint maxLights;
  1560. /* (readonly) */
  1561. Node node;
  1562. /* (readonly) */
  1563. uint numAttributes;
  1564. uint numGeometries;
  1565. bool occludee;
  1566. bool occluder;
  1567. /* (readonly) */
  1568. int refs;
  1569. float shadowDistance;
  1570. uint shadowMask;
  1571. bool temporary;
  1572. /* (readonly) */
  1573. ShortStringHash type;
  1574. /* (readonly) */
  1575. String typeName;
  1576. uint viewMask;
  1577. /* (readonly) */
  1578. int weakRefs;
  1579. /* (readonly) */
  1580. BoundingBox worldBoundingBox;
  1581. /* (readonly) */
  1582. Zone zone;
  1583. uint zoneMask;
  1584. };
  1585. class DebugHud
  1586. {
  1587. // Methods:
  1588. void ClearAppStats();
  1589. void ResetAppStats(const String&);
  1590. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1591. void SetAppStats(const String&, const String&);
  1592. void SetAppStats(const String&, const Variant&);
  1593. void Toggle(uint);
  1594. void ToggleAll();
  1595. // Properties:
  1596. /* (readonly) */
  1597. ShortStringHash baseType;
  1598. /* (readonly) */
  1599. String category;
  1600. XMLFile defaultStyle;
  1601. uint mode;
  1602. /* (readonly) */
  1603. Text modeText;
  1604. float profilerInterval;
  1605. uint profilerMaxDepth;
  1606. /* (readonly) */
  1607. Text profilerText;
  1608. /* (readonly) */
  1609. int refs;
  1610. /* (readonly) */
  1611. Text statsText;
  1612. /* (readonly) */
  1613. ShortStringHash type;
  1614. /* (readonly) */
  1615. String typeName;
  1616. bool useRendererStats;
  1617. /* (readonly) */
  1618. int weakRefs;
  1619. };
  1620. class DebugRenderer
  1621. {
  1622. // Methods:
  1623. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  1624. void AddFrustum(const Frustum&, const Color&, bool = true);
  1625. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  1626. void AddNode(Node, float = 1.0, bool = true);
  1627. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  1628. void AddSkeleton(Skeleton, const Color&, bool = true);
  1629. void AddSphere(const Sphere&, const Color&, bool = true);
  1630. void ApplyAttributes();
  1631. void DrawDebugGeometry(DebugRenderer, bool);
  1632. Variant GetAttribute(const String&) const;
  1633. Variant GetAttributeDefault(const String&) const;
  1634. bool Load(File, bool = false);
  1635. bool LoadXML(const XMLElement&, bool = false);
  1636. void MarkNetworkUpdate() const;
  1637. void Remove();
  1638. void RemoveInstanceDefault();
  1639. void ResetToDefault();
  1640. bool Save(File) const;
  1641. bool SaveXML(XMLElement&) const;
  1642. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1643. bool SetAttribute(const String&, const Variant&);
  1644. // Properties:
  1645. /* (readonly) */
  1646. Array<Variant> attributeDefaults;
  1647. /* (readonly) */
  1648. Array<AttributeInfo> attributeInfos;
  1649. Array<Variant> attributes;
  1650. /* (readonly) */
  1651. ShortStringHash baseType;
  1652. /* (readonly) */
  1653. String category;
  1654. bool enabled;
  1655. /* (readonly) */
  1656. bool enabledEffective;
  1657. /* (readonly) */
  1658. uint id;
  1659. /* (readonly) */
  1660. Node node;
  1661. /* (readonly) */
  1662. uint numAttributes;
  1663. /* (readonly) */
  1664. int refs;
  1665. bool temporary;
  1666. /* (readonly) */
  1667. ShortStringHash type;
  1668. /* (readonly) */
  1669. String typeName;
  1670. /* (readonly) */
  1671. int weakRefs;
  1672. };
  1673. class DecalSet
  1674. {
  1675. // Methods:
  1676. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  1677. void ApplyAttributes();
  1678. void DrawDebugGeometry(DebugRenderer, bool);
  1679. Variant GetAttribute(const String&) const;
  1680. Variant GetAttributeDefault(const String&) const;
  1681. bool Load(File, bool = false);
  1682. bool LoadXML(const XMLElement&, bool = false);
  1683. void MarkNetworkUpdate() const;
  1684. void Remove();
  1685. void RemoveAllDecals();
  1686. void RemoveDecals(uint);
  1687. void RemoveInstanceDefault();
  1688. void ResetToDefault();
  1689. bool Save(File) const;
  1690. bool SaveXML(XMLElement&) const;
  1691. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1692. bool SetAttribute(const String&, const Variant&);
  1693. // Properties:
  1694. /* (readonly) */
  1695. Array<Variant> attributeDefaults;
  1696. /* (readonly) */
  1697. Array<AttributeInfo> attributeInfos;
  1698. Array<Variant> attributes;
  1699. /* (readonly) */
  1700. ShortStringHash baseType;
  1701. /* (readonly) */
  1702. BoundingBox boundingBox;
  1703. bool castShadows;
  1704. /* (readonly) */
  1705. String category;
  1706. float drawDistance;
  1707. bool enabled;
  1708. /* (readonly) */
  1709. bool enabledEffective;
  1710. /* (readonly) */
  1711. uint id;
  1712. /* (readonly) */
  1713. bool inView;
  1714. uint lightMask;
  1715. float lodBias;
  1716. Material material;
  1717. uint maxIndices;
  1718. uint maxLights;
  1719. uint maxVertices;
  1720. /* (readonly) */
  1721. Node node;
  1722. /* (readonly) */
  1723. uint numAttributes;
  1724. /* (readonly) */
  1725. uint numDecals;
  1726. /* (readonly) */
  1727. uint numIndices;
  1728. /* (readonly) */
  1729. uint numVertices;
  1730. bool occludee;
  1731. bool occluder;
  1732. /* (readonly) */
  1733. int refs;
  1734. float shadowDistance;
  1735. uint shadowMask;
  1736. bool temporary;
  1737. /* (readonly) */
  1738. ShortStringHash type;
  1739. /* (readonly) */
  1740. String typeName;
  1741. uint viewMask;
  1742. /* (readonly) */
  1743. int weakRefs;
  1744. /* (readonly) */
  1745. BoundingBox worldBoundingBox;
  1746. /* (readonly) */
  1747. Zone zone;
  1748. uint zoneMask;
  1749. };
  1750. class Deserializer
  1751. {
  1752. // Methods:
  1753. Array<uint8> Read(uint);
  1754. bool ReadBool();
  1755. BoundingBox ReadBoundingBox();
  1756. int8 ReadByte();
  1757. Color ReadColor();
  1758. String ReadFileID();
  1759. float ReadFloat();
  1760. int ReadInt();
  1761. IntRect ReadIntRect();
  1762. IntVector2 ReadIntVector2();
  1763. String ReadLine();
  1764. uint ReadNetID();
  1765. Quaternion ReadPackedQuaternion();
  1766. Vector3 ReadPackedVector3(float);
  1767. Quaternion ReadQuaternion();
  1768. int16 ReadShort();
  1769. ShortStringHash ReadShortStringHash();
  1770. String ReadString();
  1771. StringHash ReadStringHash();
  1772. uint8 ReadUByte();
  1773. uint ReadUInt();
  1774. uint16 ReadUShort();
  1775. uint ReadVLE();
  1776. Variant ReadVariant();
  1777. VariantMap ReadVariantMap();
  1778. Vector2 ReadVector2();
  1779. Vector3 ReadVector3();
  1780. Vector4 ReadVector4();
  1781. uint Seek(uint);
  1782. // Properties:
  1783. /* (readonly) */
  1784. uint checksum;
  1785. /* (readonly) */
  1786. bool eof;
  1787. /* (readonly) */
  1788. String name;
  1789. /* (readonly) */
  1790. uint position;
  1791. /* (readonly) */
  1792. uint size;
  1793. };
  1794. class Dictionary
  1795. {
  1796. // Methods:
  1797. void Clear();
  1798. void Erase(const String&);
  1799. bool Exists(const String&) const;
  1800. bool Get(const String&, void*) const;
  1801. bool Get(const String&, double&) const;
  1802. bool Get(const String&, int64&) const;
  1803. void Set(const String&, void*);
  1804. void Set(const String&, double&);
  1805. void Set(const String&, int64&);
  1806. // Properties:
  1807. /* (readonly) */
  1808. bool empty;
  1809. /* (readonly) */
  1810. Array<String> keys;
  1811. /* (readonly) */
  1812. uint length;
  1813. };
  1814. class Drawable
  1815. {
  1816. // Methods:
  1817. void ApplyAttributes();
  1818. void DrawDebugGeometry(DebugRenderer, bool);
  1819. Variant GetAttribute(const String&) const;
  1820. Variant GetAttributeDefault(const String&) const;
  1821. bool Load(File, bool = false);
  1822. bool LoadXML(const XMLElement&, bool = false);
  1823. void MarkNetworkUpdate() const;
  1824. void Remove();
  1825. void RemoveInstanceDefault();
  1826. void ResetToDefault();
  1827. bool Save(File) const;
  1828. bool SaveXML(XMLElement&) const;
  1829. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1830. bool SetAttribute(const String&, const Variant&);
  1831. // Properties:
  1832. /* (readonly) */
  1833. Array<Variant> attributeDefaults;
  1834. /* (readonly) */
  1835. Array<AttributeInfo> attributeInfos;
  1836. Array<Variant> attributes;
  1837. /* (readonly) */
  1838. ShortStringHash baseType;
  1839. /* (readonly) */
  1840. BoundingBox boundingBox;
  1841. bool castShadows;
  1842. /* (readonly) */
  1843. String category;
  1844. float drawDistance;
  1845. bool enabled;
  1846. /* (readonly) */
  1847. bool enabledEffective;
  1848. /* (readonly) */
  1849. uint id;
  1850. /* (readonly) */
  1851. bool inView;
  1852. uint lightMask;
  1853. float lodBias;
  1854. uint maxLights;
  1855. /* (readonly) */
  1856. Node node;
  1857. /* (readonly) */
  1858. uint numAttributes;
  1859. bool occludee;
  1860. bool occluder;
  1861. /* (readonly) */
  1862. int refs;
  1863. float shadowDistance;
  1864. uint shadowMask;
  1865. bool temporary;
  1866. /* (readonly) */
  1867. ShortStringHash type;
  1868. /* (readonly) */
  1869. String typeName;
  1870. uint viewMask;
  1871. /* (readonly) */
  1872. int weakRefs;
  1873. /* (readonly) */
  1874. BoundingBox worldBoundingBox;
  1875. uint zoneMask;
  1876. };
  1877. class DropDownList
  1878. {
  1879. // Methods:
  1880. void AddChild(UIElement);
  1881. void AddItem(UIElement);
  1882. void ApplyAttributes();
  1883. void BringToFront();
  1884. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1885. void DisableLayoutUpdate();
  1886. IntVector2 ElementToScreen(const IntVector2&);
  1887. void EnableLayoutUpdate();
  1888. uint FindChild(UIElement) const;
  1889. Variant GetAttribute(const String&) const;
  1890. Variant GetAttributeDefault(const String&) const;
  1891. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  1892. UIElement GetChild(const String&, bool = false) const;
  1893. Array<UIElement> GetChildren(bool = false) const;
  1894. UIElement GetElementEventSender() const;
  1895. Array<UIElement> GetItems() const;
  1896. uint GetNumChildren(bool) const;
  1897. void InsertChild(uint, UIElement);
  1898. void InsertItem(uint, UIElement);
  1899. bool IsInside(IntVector2, bool);
  1900. bool IsInsideCombined(IntVector2, bool);
  1901. bool Load(File, bool = false);
  1902. bool LoadChildXML(XMLFile, XMLFile = null);
  1903. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1904. bool LoadXML(File);
  1905. bool LoadXML(XMLFile, XMLFile);
  1906. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1907. bool LoadXML(const XMLElement&, bool = false);
  1908. void Remove();
  1909. void RemoveAllChildren();
  1910. void RemoveAllItems();
  1911. void RemoveChild(UIElement, uint = 0);
  1912. void RemoveChild(uint);
  1913. void RemoveInstanceDefault();
  1914. void RemoveItem(UIElement);
  1915. void RemoveItem(uint);
  1916. void ResetToDefault();
  1917. bool Save(File) const;
  1918. bool SaveXML(File);
  1919. bool SaveXML(XMLElement&) const;
  1920. IntVector2 ScreenToElement(const IntVector2&);
  1921. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1922. void SetAccelerator(int, int);
  1923. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1924. bool SetAttribute(const String&, const Variant&);
  1925. void SetFixedHeight(int);
  1926. void SetFixedSize(int, int);
  1927. void SetFixedWidth(int);
  1928. void SetFullImageRect();
  1929. void SetHoverOffset(int, int);
  1930. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1931. void SetMaxSize(int, int);
  1932. void SetMinSize(int, int);
  1933. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1934. void SetPosition(int, int);
  1935. void SetPressedChildOffset(int, int);
  1936. void SetPressedOffset(int, int);
  1937. void SetRepeat(float, float);
  1938. void SetSize(int, int);
  1939. bool SetStyle(const String&, XMLFile = null);
  1940. bool SetStyle(const XMLElement&);
  1941. bool SetStyleAuto(XMLFile = null);
  1942. void UpdateLayout();
  1943. const Variant& GetVar(const ShortStringHash&);
  1944. UIElement getPopup() const;
  1945. // Properties:
  1946. /* (readonly) */
  1947. int acceleratorKey;
  1948. /* (readonly) */
  1949. int acceleratorQualifiers;
  1950. /* (readonly) */
  1951. Array<Variant> attributeDefaults;
  1952. /* (readonly) */
  1953. Array<AttributeInfo> attributeInfos;
  1954. Array<Variant> attributes;
  1955. /* (readonly) */
  1956. ShortStringHash baseType;
  1957. BlendMode blendMode;
  1958. IntRect border;
  1959. bool bringToBack;
  1960. bool bringToFront;
  1961. /* (readonly) */
  1962. String category;
  1963. /* (readonly) */
  1964. IntVector2 childOffset;
  1965. /* (readonly) */
  1966. Array<UIElement> children;
  1967. IntRect clipBorder;
  1968. bool clipChildren;
  1969. /* (writeonly) */
  1970. Color color;
  1971. /* (readonly) */
  1972. bool colorGradient;
  1973. Array<Color> colors;
  1974. /* (readonly) */
  1975. IntRect combinedScreenRect;
  1976. XMLFile defaultStyle;
  1977. /* (readonly) */
  1978. float derivedOpacity;
  1979. uint dragDropMode;
  1980. bool editable;
  1981. bool elementEventSender;
  1982. bool enabled;
  1983. /* (readonly) */
  1984. bool fixedHeight;
  1985. /* (readonly) */
  1986. bool fixedSize;
  1987. /* (readonly) */
  1988. bool fixedWidth;
  1989. bool focus;
  1990. FocusMode focusMode;
  1991. int height;
  1992. HorizontalAlignment horizontalAlignment;
  1993. IntVector2 hoverOffset;
  1994. /* (readonly) */
  1995. bool hovering;
  1996. IntRect imageRect;
  1997. int indent;
  1998. int indentSpacing;
  1999. /* (readonly) */
  2000. int indentWidth;
  2001. bool internal;
  2002. /* (readonly) */
  2003. Array<UIElement> items;
  2004. IntRect layoutBorder;
  2005. LayoutMode layoutMode;
  2006. int layoutSpacing;
  2007. /* (readonly) */
  2008. ListView listView;
  2009. int maxHeight;
  2010. IntVector2 maxSize;
  2011. int maxWidth;
  2012. int minHeight;
  2013. IntVector2 minSize;
  2014. int minWidth;
  2015. String name;
  2016. /* (readonly) */
  2017. uint numAllChildren;
  2018. /* (readonly) */
  2019. uint numAttributes;
  2020. /* (readonly) */
  2021. uint numChildren;
  2022. /* (readonly) */
  2023. uint numItems;
  2024. float opacity;
  2025. UIElement parent;
  2026. /* (readonly) */
  2027. UIElement placeholder;
  2028. String placeholderText;
  2029. IntVector2 position;
  2030. /* (readonly) */
  2031. bool pressed;
  2032. IntVector2 pressedChildOffset;
  2033. IntVector2 pressedOffset;
  2034. int priority;
  2035. /* (readonly) */
  2036. int refs;
  2037. float repeatDelay;
  2038. float repeatRate;
  2039. bool resizePopup;
  2040. /* (readonly) */
  2041. UIElement root;
  2042. /* (readonly) */
  2043. IntVector2 screenPosition;
  2044. bool selected;
  2045. /* (readonly) */
  2046. UIElement selectedItem;
  2047. uint selection;
  2048. bool showPopup;
  2049. IntVector2 size;
  2050. bool sortChildren;
  2051. String style;
  2052. bool temporary;
  2053. Texture texture;
  2054. bool tiled;
  2055. TraversalMode traversalMode;
  2056. /* (readonly) */
  2057. ShortStringHash type;
  2058. /* (readonly) */
  2059. String typeName;
  2060. bool useDerivedOpacity;
  2061. /* (readonly) */
  2062. VariantMap vars;
  2063. VerticalAlignment verticalAlignment;
  2064. bool visible;
  2065. /* (readonly) */
  2066. int weakRefs;
  2067. int width;
  2068. };
  2069. class Engine
  2070. {
  2071. // Methods:
  2072. Console CreateConsole();
  2073. DebugHud CreateDebugHud();
  2074. void DumpMemory();
  2075. void DumpProfiler();
  2076. void DumpResources();
  2077. void Exit();
  2078. void RunFrame();
  2079. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2080. // Properties:
  2081. bool autoExit;
  2082. /* (readonly) */
  2083. ShortStringHash baseType;
  2084. /* (readonly) */
  2085. String category;
  2086. /* (readonly) */
  2087. bool exiting;
  2088. /* (readonly) */
  2089. bool headless;
  2090. /* (readonly) */
  2091. bool initialized;
  2092. int maxFps;
  2093. int maxInactiveFps;
  2094. int minFps;
  2095. bool pauseMinimized;
  2096. /* (readonly) */
  2097. int refs;
  2098. int timeStepSmoothing;
  2099. /* (readonly) */
  2100. ShortStringHash type;
  2101. /* (readonly) */
  2102. String typeName;
  2103. /* (readonly) */
  2104. int weakRefs;
  2105. };
  2106. class File
  2107. {
  2108. // Methods:
  2109. void Close();
  2110. bool Open(const String&, FileMode = FILE_READ);
  2111. Array<uint8> Read(uint);
  2112. bool ReadBool();
  2113. BoundingBox ReadBoundingBox();
  2114. int8 ReadByte();
  2115. Color ReadColor();
  2116. String ReadFileID();
  2117. float ReadFloat();
  2118. int ReadInt();
  2119. IntRect ReadIntRect();
  2120. IntVector2 ReadIntVector2();
  2121. String ReadLine();
  2122. uint ReadNetID();
  2123. Quaternion ReadPackedQuaternion();
  2124. Vector3 ReadPackedVector3(float);
  2125. Quaternion ReadQuaternion();
  2126. int16 ReadShort();
  2127. ShortStringHash ReadShortStringHash();
  2128. String ReadString();
  2129. StringHash ReadStringHash();
  2130. uint8 ReadUByte();
  2131. uint ReadUInt();
  2132. uint16 ReadUShort();
  2133. uint ReadVLE();
  2134. Variant ReadVariant();
  2135. VariantMap ReadVariantMap();
  2136. Vector2 ReadVector2();
  2137. Vector3 ReadVector3();
  2138. Vector4 ReadVector4();
  2139. uint Seek(uint);
  2140. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2141. uint Write(Array<uint8>);
  2142. bool WriteBool(bool);
  2143. bool WriteBoundingBox(const BoundingBox&);
  2144. bool WriteByte(int8);
  2145. bool WriteColor(const Color&);
  2146. bool WriteFileID(const String&);
  2147. bool WriteFloat(float);
  2148. bool WriteInt(int);
  2149. bool WriteIntRect(const IntRect&);
  2150. bool WriteIntVector2(const IntVector2&);
  2151. bool WriteLine(const String&);
  2152. bool WriteNetID(uint);
  2153. bool WritePackedQuaternion(const Quaternion&);
  2154. bool WritePackedVector3(const Vector3&, float);
  2155. bool WriteQuaternion(const Quaternion&);
  2156. bool WriteShort(int16);
  2157. bool WriteShortStringHash(const ShortStringHash&);
  2158. bool WriteString(const String&);
  2159. bool WriteStringHash(const StringHash&);
  2160. bool WriteUByte(uint8);
  2161. bool WriteUInt(uint);
  2162. bool WriteUShort(uint16);
  2163. bool WriteVLE(uint);
  2164. bool WriteVariant(const Variant&);
  2165. bool WriteVariantMap(const VariantMap&);
  2166. bool WriteVector2(const Vector2&);
  2167. bool WriteVector3(const Vector3&);
  2168. bool WriteVector4(const Vector4&);
  2169. // Properties:
  2170. /* (readonly) */
  2171. ShortStringHash baseType;
  2172. /* (readonly) */
  2173. String category;
  2174. /* (readonly) */
  2175. uint checksum;
  2176. /* (readonly) */
  2177. bool eof;
  2178. /* (readonly) */
  2179. FileMode mode;
  2180. /* (readonly) */
  2181. String name;
  2182. /* (readonly) */
  2183. bool open;
  2184. /* (readonly) */
  2185. bool packaged;
  2186. /* (readonly) */
  2187. uint position;
  2188. /* (readonly) */
  2189. int refs;
  2190. /* (readonly) */
  2191. uint size;
  2192. /* (readonly) */
  2193. ShortStringHash type;
  2194. /* (readonly) */
  2195. String typeName;
  2196. /* (readonly) */
  2197. int weakRefs;
  2198. };
  2199. class FileSelector
  2200. {
  2201. // Methods:
  2202. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2203. void SetButtonTexts(const String&, const String&);
  2204. void SetFilters(Array<String>, uint);
  2205. void UpdateElements();
  2206. // Properties:
  2207. /* (readonly) */
  2208. ShortStringHash baseType;
  2209. /* (readonly) */
  2210. Button cancelButton;
  2211. /* (readonly) */
  2212. String category;
  2213. XMLFile defaultStyle;
  2214. bool directoryMode;
  2215. /* (readonly) */
  2216. ListView fileList;
  2217. String fileName;
  2218. /* (readonly) */
  2219. LineEdit fileNameEdit;
  2220. /* (readonly) */
  2221. String filter;
  2222. /* (readonly) */
  2223. uint filterIndex;
  2224. /* (readonly) */
  2225. DropDownList filterList;
  2226. /* (readonly) */
  2227. Button okButton;
  2228. String path;
  2229. /* (readonly) */
  2230. LineEdit pathEdit;
  2231. /* (readonly) */
  2232. int refs;
  2233. String title;
  2234. /* (readonly) */
  2235. Text titleText;
  2236. /* (readonly) */
  2237. ShortStringHash type;
  2238. /* (readonly) */
  2239. String typeName;
  2240. /* (readonly) */
  2241. int weakRefs;
  2242. /* (readonly) */
  2243. Window window;
  2244. };
  2245. class FileSystem
  2246. {
  2247. // Methods:
  2248. bool Copy(const String&, const String&);
  2249. bool CreateDir(const String&);
  2250. bool Delete(const String&);
  2251. bool DirExists(const String&) const;
  2252. bool FileExists(const String&) const;
  2253. uint GetLastModifiedTime(const String&) const;
  2254. bool Rename(const String&, const String&);
  2255. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  2256. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2257. int SystemCommand(const String&);
  2258. bool SystemOpen(const String&, const String&);
  2259. int SystemRun(const String&, Array<String>);
  2260. // Properties:
  2261. /* (readonly) */
  2262. ShortStringHash baseType;
  2263. /* (readonly) */
  2264. String category;
  2265. String currentDir;
  2266. /* (readonly) */
  2267. String programDir;
  2268. /* (readonly) */
  2269. int refs;
  2270. /* (readonly) */
  2271. ShortStringHash type;
  2272. /* (readonly) */
  2273. String typeName;
  2274. /* (readonly) */
  2275. String userDocumentsDir;
  2276. /* (readonly) */
  2277. int weakRefs;
  2278. };
  2279. class FocusParameters
  2280. {
  2281. // Properties:
  2282. bool autoSize;
  2283. bool focus;
  2284. float minView;
  2285. bool nonUniform;
  2286. float quantize;
  2287. };
  2288. class Font
  2289. {
  2290. // Methods:
  2291. bool Load(File);
  2292. bool Save(File) const;
  2293. bool SaveXML(File, int, bool = false);
  2294. bool SaveXML(const String&, int, bool = false);
  2295. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2296. // Properties:
  2297. /* (readonly) */
  2298. ShortStringHash baseType;
  2299. /* (readonly) */
  2300. String category;
  2301. /* (readonly) */
  2302. uint memoryUse;
  2303. String name;
  2304. /* (readonly) */
  2305. int refs;
  2306. /* (readonly) */
  2307. ShortStringHash type;
  2308. /* (readonly) */
  2309. String typeName;
  2310. /* (readonly) */
  2311. uint useTimer;
  2312. /* (readonly) */
  2313. int weakRefs;
  2314. };
  2315. class Frustum
  2316. {
  2317. // Methods:
  2318. void Define(const BoundingBox&, const Matrix3x4&);
  2319. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  2320. void Define(float, float, float, float, float, const Matrix3x4&);
  2321. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  2322. float Distance(const Vector3&) const;
  2323. Intersection IsInside(const BoundingBox&);
  2324. Intersection IsInside(const Sphere&);
  2325. Intersection IsInside(const Vector3&);
  2326. void Transform(const Matrix3&);
  2327. void Transform(const Matrix3x4&);
  2328. Frustum Transformed(const Matrix3&) const;
  2329. Frustum Transformed(const Matrix3x4&) const;
  2330. // Properties:
  2331. /* (readonly) */
  2332. Array<Vector3> vertices;
  2333. };
  2334. class Graphics
  2335. {
  2336. // Methods:
  2337. void Close();
  2338. void Maximize();
  2339. void Minimize();
  2340. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2341. bool SetMode(int, int);
  2342. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  2343. void SetWindowPosition(int, int);
  2344. bool TakeScreenShot(Image);
  2345. bool ToggleFullscreen();
  2346. // Properties:
  2347. /* (readonly) */
  2348. ShortStringHash baseType;
  2349. /* (readonly) */
  2350. bool borderless;
  2351. /* (readonly) */
  2352. String category;
  2353. /* (readonly) */
  2354. bool deferredSupport;
  2355. /* (readonly) */
  2356. IntVector2 desktopResolution;
  2357. /* (readonly) */
  2358. bool deviceLost;
  2359. bool flushGPU;
  2360. bool forceSM2;
  2361. /* (readonly) */
  2362. bool fullscreen;
  2363. /* (readonly) */
  2364. bool hardwareShadowSupport;
  2365. /* (readonly) */
  2366. int height;
  2367. /* (readonly) */
  2368. bool initialized;
  2369. /* (readonly) */
  2370. bool instancingSupport;
  2371. /* (readonly) */
  2372. bool lightPrepassSupport;
  2373. /* (readonly) */
  2374. int multiSample;
  2375. /* (readonly) */
  2376. Array<int> multiSampleLevels;
  2377. /* (readonly) */
  2378. uint numBatches;
  2379. /* (readonly) */
  2380. uint numPrimitives;
  2381. /* (readonly) */
  2382. int refs;
  2383. /* (readonly) */
  2384. bool resizable;
  2385. /* (readonly) */
  2386. Array<IntVector2> resolutions;
  2387. bool sRGB;
  2388. /* (readonly) */
  2389. bool sRGBSupport;
  2390. /* (readonly) */
  2391. bool sRGBWriteSupport;
  2392. /* (readonly) */
  2393. bool sm3Support;
  2394. /* (readonly) */
  2395. bool tripleBuffer;
  2396. /* (readonly) */
  2397. ShortStringHash type;
  2398. /* (readonly) */
  2399. String typeName;
  2400. /* (readonly) */
  2401. bool vsync;
  2402. /* (readonly) */
  2403. int weakRefs;
  2404. /* (readonly) */
  2405. int width;
  2406. /* (writeonly) */
  2407. Image windowIcon;
  2408. IntVector2 windowPosition;
  2409. String windowTitle;
  2410. };
  2411. class HttpRequest
  2412. {
  2413. // Methods:
  2414. Array<uint8> Read(uint);
  2415. bool ReadBool();
  2416. BoundingBox ReadBoundingBox();
  2417. int8 ReadByte();
  2418. Color ReadColor();
  2419. String ReadFileID();
  2420. float ReadFloat();
  2421. int ReadInt();
  2422. IntRect ReadIntRect();
  2423. IntVector2 ReadIntVector2();
  2424. String ReadLine();
  2425. uint ReadNetID();
  2426. Quaternion ReadPackedQuaternion();
  2427. Vector3 ReadPackedVector3(float);
  2428. Quaternion ReadQuaternion();
  2429. int16 ReadShort();
  2430. ShortStringHash ReadShortStringHash();
  2431. String ReadString();
  2432. StringHash ReadStringHash();
  2433. uint8 ReadUByte();
  2434. uint ReadUInt();
  2435. uint16 ReadUShort();
  2436. uint ReadVLE();
  2437. Variant ReadVariant();
  2438. VariantMap ReadVariantMap();
  2439. Vector2 ReadVector2();
  2440. Vector3 ReadVector3();
  2441. Vector4 ReadVector4();
  2442. uint Seek(uint);
  2443. // Properties:
  2444. /* (readonly) */
  2445. uint availableSize;
  2446. /* (readonly) */
  2447. uint checksum;
  2448. /* (readonly) */
  2449. bool eof;
  2450. /* (readonly) */
  2451. String error;
  2452. /* (readonly) */
  2453. String name;
  2454. /* (readonly) */
  2455. bool open;
  2456. /* (readonly) */
  2457. uint position;
  2458. /* (readonly) */
  2459. int refs;
  2460. /* (readonly) */
  2461. uint size;
  2462. /* (readonly) */
  2463. HttpRequestState state;
  2464. /* (readonly) */
  2465. String url;
  2466. /* (readonly) */
  2467. String verb;
  2468. /* (readonly) */
  2469. int weakRefs;
  2470. };
  2471. class Image
  2472. {
  2473. // Methods:
  2474. void Clear(const Color&);
  2475. void FlipVertical();
  2476. Color GetPixel(int, int) const;
  2477. Color GetPixel(int, int, int) const;
  2478. Color GetPixelBilinear(float, float) const;
  2479. Color GetPixelTrilinear(float, float, float) const;
  2480. bool Load(File);
  2481. bool LoadColorLUT(File);
  2482. void Resize(int, int);
  2483. bool Save(File) const;
  2484. void SaveBMP(const String&) const;
  2485. void SaveJPG(const String&, int) const;
  2486. void SavePNG(const String&) const;
  2487. void SaveTGA(const String&) const;
  2488. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2489. void SetPixel(int, int, const Color&);
  2490. void SetPixel(int, int, int, const Color&);
  2491. bool SetSize(int, int, int, uint);
  2492. bool SetSize(int, int, uint);
  2493. // Properties:
  2494. /* (readonly) */
  2495. ShortStringHash baseType;
  2496. /* (readonly) */
  2497. String category;
  2498. /* (readonly) */
  2499. uint components;
  2500. /* (readonly) */
  2501. bool compressed;
  2502. /* (readonly) */
  2503. int depth;
  2504. /* (readonly) */
  2505. int height;
  2506. /* (readonly) */
  2507. uint memoryUse;
  2508. String name;
  2509. /* (readonly) */
  2510. int refs;
  2511. /* (readonly) */
  2512. ShortStringHash type;
  2513. /* (readonly) */
  2514. String typeName;
  2515. /* (readonly) */
  2516. uint useTimer;
  2517. /* (readonly) */
  2518. int weakRefs;
  2519. /* (readonly) */
  2520. int width;
  2521. };
  2522. class Input
  2523. {
  2524. // Methods:
  2525. void CloseJoystick(uint);
  2526. bool DetectJoysticks();
  2527. bool OpenJoystick(uint);
  2528. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2529. // Properties:
  2530. /* (readonly) */
  2531. ShortStringHash baseType;
  2532. /* (readonly) */
  2533. String category;
  2534. /* (readonly) */
  2535. bool focus;
  2536. /* (readonly) */
  2537. Array<String> joystickNames;
  2538. /* (readonly) */
  2539. Array<JoystickState> joysticks;
  2540. /* (readonly) */
  2541. Array<bool> keyDown;
  2542. /* (readonly) */
  2543. Array<bool> keyPress;
  2544. /* (readonly) */
  2545. bool minimized;
  2546. /* (readonly) */
  2547. Array<bool> mouseButtonDown;
  2548. /* (readonly) */
  2549. Array<bool> mouseButtonPress;
  2550. /* (readonly) */
  2551. IntVector2 mouseMove;
  2552. /* (readonly) */
  2553. int mouseMoveWheel;
  2554. /* (readonly) */
  2555. int mouseMoveX;
  2556. /* (readonly) */
  2557. int mouseMoveY;
  2558. /* (readonly) */
  2559. IntVector2 mousePosition;
  2560. bool mouseVisible;
  2561. /* (readonly) */
  2562. uint numJoysticks;
  2563. /* (readonly) */
  2564. uint numTouches;
  2565. /* (readonly) */
  2566. Array<bool> qualifierDown;
  2567. /* (readonly) */
  2568. Array<bool> qualifierPress;
  2569. /* (readonly) */
  2570. int qualifiers;
  2571. /* (readonly) */
  2572. int refs;
  2573. /* (readonly) */
  2574. bool screenKeyboardSupport;
  2575. bool screenKeyboardVisible;
  2576. bool toggleFullscreen;
  2577. /* (readonly) */
  2578. Array<TouchState> touches;
  2579. /* (readonly) */
  2580. ShortStringHash type;
  2581. /* (readonly) */
  2582. String typeName;
  2583. /* (readonly) */
  2584. int weakRefs;
  2585. };
  2586. class IntRect
  2587. {
  2588. // Methods:
  2589. Intersection IsInside(const IntVector2&) const;
  2590. // Properties:
  2591. int bottom;
  2592. /* (readonly) */
  2593. Array<int> data;
  2594. /* (readonly) */
  2595. int height;
  2596. int left;
  2597. int right;
  2598. /* (readonly) */
  2599. IntVector2 size;
  2600. int top;
  2601. /* (readonly) */
  2602. int width;
  2603. };
  2604. class IntVector2
  2605. {
  2606. // Methods:
  2607. String ToString() const;
  2608. // Properties:
  2609. /* (readonly) */
  2610. Array<int> data;
  2611. int x;
  2612. int y;
  2613. };
  2614. class JoystickState
  2615. {
  2616. // Properties:
  2617. /* (readonly) */
  2618. Array<float> axisPosition;
  2619. /* (readonly) */
  2620. Array<bool> buttonDown;
  2621. /* (readonly) */
  2622. Array<bool> buttonPress;
  2623. /* (readonly) */
  2624. Array<int> hatPosition;
  2625. String name;
  2626. /* (readonly) */
  2627. uint numAxes;
  2628. /* (readonly) */
  2629. uint numButtons;
  2630. /* (readonly) */
  2631. uint numHats;
  2632. };
  2633. class Light
  2634. {
  2635. // Methods:
  2636. void ApplyAttributes();
  2637. void DrawDebugGeometry(DebugRenderer, bool);
  2638. Variant GetAttribute(const String&) const;
  2639. Variant GetAttributeDefault(const String&) const;
  2640. bool Load(File, bool = false);
  2641. bool LoadXML(const XMLElement&, bool = false);
  2642. void MarkNetworkUpdate() const;
  2643. void Remove();
  2644. void RemoveInstanceDefault();
  2645. void ResetToDefault();
  2646. bool Save(File) const;
  2647. bool SaveXML(XMLElement&) const;
  2648. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2649. bool SetAttribute(const String&, const Variant&);
  2650. // Properties:
  2651. float aspectRatio;
  2652. /* (readonly) */
  2653. Array<Variant> attributeDefaults;
  2654. /* (readonly) */
  2655. Array<AttributeInfo> attributeInfos;
  2656. Array<Variant> attributes;
  2657. /* (readonly) */
  2658. ShortStringHash baseType;
  2659. /* (readonly) */
  2660. BoundingBox boundingBox;
  2661. bool castShadows;
  2662. /* (readonly) */
  2663. String category;
  2664. Color color;
  2665. float drawDistance;
  2666. bool enabled;
  2667. /* (readonly) */
  2668. bool enabledEffective;
  2669. float fadeDistance;
  2670. float fov;
  2671. /* (readonly) */
  2672. Frustum frustum;
  2673. /* (readonly) */
  2674. uint id;
  2675. /* (readonly) */
  2676. bool inView;
  2677. uint lightMask;
  2678. LightType lightType;
  2679. float lodBias;
  2680. uint maxLights;
  2681. /* (readonly) */
  2682. Node node;
  2683. /* (readonly) */
  2684. uint numAttributes;
  2685. bool occludee;
  2686. bool occluder;
  2687. bool perVertex;
  2688. Texture rampTexture;
  2689. float range;
  2690. /* (readonly) */
  2691. int refs;
  2692. BiasParameters shadowBias;
  2693. CascadeParameters shadowCascade;
  2694. float shadowDistance;
  2695. float shadowFadeDistance;
  2696. FocusParameters shadowFocus;
  2697. float shadowIntensity;
  2698. uint shadowMask;
  2699. float shadowNearFarRatio;
  2700. float shadowResolution;
  2701. Texture shapeTexture;
  2702. float specularIntensity;
  2703. bool temporary;
  2704. /* (readonly) */
  2705. ShortStringHash type;
  2706. /* (readonly) */
  2707. String typeName;
  2708. uint viewMask;
  2709. /* (readonly) */
  2710. int weakRefs;
  2711. /* (readonly) */
  2712. BoundingBox worldBoundingBox;
  2713. uint zoneMask;
  2714. };
  2715. class LineEdit
  2716. {
  2717. // Methods:
  2718. void AddChild(UIElement);
  2719. void ApplyAttributes();
  2720. void BringToFront();
  2721. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2722. void DisableLayoutUpdate();
  2723. IntVector2 ElementToScreen(const IntVector2&);
  2724. void EnableLayoutUpdate();
  2725. uint FindChild(UIElement) const;
  2726. Variant GetAttribute(const String&) const;
  2727. Variant GetAttributeDefault(const String&) const;
  2728. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  2729. UIElement GetChild(const String&, bool = false) const;
  2730. Array<UIElement> GetChildren(bool = false) const;
  2731. UIElement GetElementEventSender() const;
  2732. uint GetNumChildren(bool) const;
  2733. void InsertChild(uint, UIElement);
  2734. bool IsInside(IntVector2, bool);
  2735. bool IsInsideCombined(IntVector2, bool);
  2736. bool Load(File, bool = false);
  2737. bool LoadChildXML(XMLFile, XMLFile = null);
  2738. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2739. bool LoadXML(File);
  2740. bool LoadXML(XMLFile, XMLFile);
  2741. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2742. bool LoadXML(const XMLElement&, bool = false);
  2743. void Remove();
  2744. void RemoveAllChildren();
  2745. void RemoveChild(UIElement, uint = 0);
  2746. void RemoveChild(uint);
  2747. void RemoveInstanceDefault();
  2748. void ResetToDefault();
  2749. bool Save(File) const;
  2750. bool SaveXML(File);
  2751. bool SaveXML(XMLElement&) const;
  2752. IntVector2 ScreenToElement(const IntVector2&);
  2753. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2754. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2755. bool SetAttribute(const String&, const Variant&);
  2756. void SetFixedHeight(int);
  2757. void SetFixedSize(int, int);
  2758. void SetFixedWidth(int);
  2759. void SetFullImageRect();
  2760. void SetHoverOffset(int, int);
  2761. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2762. void SetMaxSize(int, int);
  2763. void SetMinSize(int, int);
  2764. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2765. void SetPosition(int, int);
  2766. void SetSize(int, int);
  2767. bool SetStyle(const String&, XMLFile = null);
  2768. bool SetStyle(const XMLElement&);
  2769. bool SetStyleAuto(XMLFile = null);
  2770. void UpdateLayout();
  2771. const Variant& GetVar(const ShortStringHash&);
  2772. // Properties:
  2773. /* (readonly) */
  2774. Array<Variant> attributeDefaults;
  2775. /* (readonly) */
  2776. Array<AttributeInfo> attributeInfos;
  2777. Array<Variant> attributes;
  2778. /* (readonly) */
  2779. ShortStringHash baseType;
  2780. BlendMode blendMode;
  2781. IntRect border;
  2782. bool bringToBack;
  2783. bool bringToFront;
  2784. /* (readonly) */
  2785. String category;
  2786. /* (readonly) */
  2787. IntVector2 childOffset;
  2788. /* (readonly) */
  2789. Array<UIElement> children;
  2790. IntRect clipBorder;
  2791. bool clipChildren;
  2792. /* (writeonly) */
  2793. Color color;
  2794. /* (readonly) */
  2795. bool colorGradient;
  2796. Array<Color> colors;
  2797. /* (readonly) */
  2798. IntRect combinedScreenRect;
  2799. /* (readonly) */
  2800. BorderImage cursor;
  2801. float cursorBlinkRate;
  2802. bool cursorMovable;
  2803. uint cursorPosition;
  2804. XMLFile defaultStyle;
  2805. /* (readonly) */
  2806. float derivedOpacity;
  2807. uint dragDropMode;
  2808. uint echoCharacter;
  2809. bool editable;
  2810. bool elementEventSender;
  2811. bool enabled;
  2812. /* (readonly) */
  2813. bool fixedHeight;
  2814. /* (readonly) */
  2815. bool fixedSize;
  2816. /* (readonly) */
  2817. bool fixedWidth;
  2818. bool focus;
  2819. FocusMode focusMode;
  2820. int height;
  2821. HorizontalAlignment horizontalAlignment;
  2822. IntVector2 hoverOffset;
  2823. /* (readonly) */
  2824. bool hovering;
  2825. IntRect imageRect;
  2826. int indent;
  2827. int indentSpacing;
  2828. /* (readonly) */
  2829. int indentWidth;
  2830. bool internal;
  2831. IntRect layoutBorder;
  2832. LayoutMode layoutMode;
  2833. int layoutSpacing;
  2834. int maxHeight;
  2835. uint maxLength;
  2836. IntVector2 maxSize;
  2837. int maxWidth;
  2838. int minHeight;
  2839. IntVector2 minSize;
  2840. int minWidth;
  2841. String name;
  2842. /* (readonly) */
  2843. uint numAllChildren;
  2844. /* (readonly) */
  2845. uint numAttributes;
  2846. /* (readonly) */
  2847. uint numChildren;
  2848. float opacity;
  2849. UIElement parent;
  2850. IntVector2 position;
  2851. int priority;
  2852. /* (readonly) */
  2853. int refs;
  2854. /* (readonly) */
  2855. UIElement root;
  2856. /* (readonly) */
  2857. IntVector2 screenPosition;
  2858. bool selected;
  2859. IntVector2 size;
  2860. bool sortChildren;
  2861. String style;
  2862. bool temporary;
  2863. String text;
  2864. bool textCopyable;
  2865. /* (readonly) */
  2866. Text textElement;
  2867. bool textSelectable;
  2868. Texture texture;
  2869. bool tiled;
  2870. TraversalMode traversalMode;
  2871. /* (readonly) */
  2872. ShortStringHash type;
  2873. /* (readonly) */
  2874. String typeName;
  2875. bool useDerivedOpacity;
  2876. /* (readonly) */
  2877. VariantMap vars;
  2878. VerticalAlignment verticalAlignment;
  2879. bool visible;
  2880. /* (readonly) */
  2881. int weakRefs;
  2882. int width;
  2883. };
  2884. class ListView
  2885. {
  2886. // Methods:
  2887. void AddChild(UIElement);
  2888. void AddItem(UIElement);
  2889. void AddSelection(uint);
  2890. void ApplyAttributes();
  2891. void BringToFront();
  2892. void ChangeSelection(int, bool);
  2893. void ClearSelection();
  2894. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2895. void DisableLayoutUpdate();
  2896. IntVector2 ElementToScreen(const IntVector2&);
  2897. void EnableLayoutUpdate();
  2898. void Expand(uint, bool, bool = false);
  2899. uint FindChild(UIElement) const;
  2900. uint FindItem(UIElement);
  2901. Variant GetAttribute(const String&) const;
  2902. Variant GetAttributeDefault(const String&) const;
  2903. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  2904. UIElement GetChild(const String&, bool = false) const;
  2905. Array<UIElement> GetChildren(bool = false) const;
  2906. UIElement GetElementEventSender() const;
  2907. Array<UIElement> GetItems() const;
  2908. uint GetNumChildren(bool) const;
  2909. void InsertChild(uint, UIElement);
  2910. void InsertItem(uint, UIElement, UIElement = null);
  2911. bool IsExpanded(uint) const;
  2912. bool IsInside(IntVector2, bool);
  2913. bool IsInsideCombined(IntVector2, bool);
  2914. bool IsSelected(uint) const;
  2915. bool Load(File, bool = false);
  2916. bool LoadChildXML(XMLFile, XMLFile = null);
  2917. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2918. bool LoadXML(File);
  2919. bool LoadXML(XMLFile, XMLFile);
  2920. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2921. bool LoadXML(const XMLElement&, bool = false);
  2922. void Remove();
  2923. void RemoveAllChildren();
  2924. void RemoveAllItems();
  2925. void RemoveChild(UIElement, uint = 0);
  2926. void RemoveChild(uint);
  2927. void RemoveInstanceDefault();
  2928. void RemoveItem(UIElement, uint = 0);
  2929. void RemoveItem(uint);
  2930. void RemoveSelection(uint);
  2931. void ResetToDefault();
  2932. bool Save(File) const;
  2933. bool SaveXML(File);
  2934. bool SaveXML(XMLElement&) const;
  2935. IntVector2 ScreenToElement(const IntVector2&);
  2936. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2937. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2938. bool SetAttribute(const String&, const Variant&);
  2939. void SetFixedHeight(int);
  2940. void SetFixedSize(int, int);
  2941. void SetFixedWidth(int);
  2942. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2943. void SetMaxSize(int, int);
  2944. void SetMinSize(int, int);
  2945. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2946. void SetPosition(int, int);
  2947. void SetScrollBarsVisible(bool, bool);
  2948. void SetSelections(Array<uint>);
  2949. void SetSize(int, int);
  2950. bool SetStyle(const String&, XMLFile = null);
  2951. bool SetStyle(const XMLElement&);
  2952. bool SetStyleAuto(XMLFile = null);
  2953. void SetViewPosition(int, int);
  2954. void ToggleExpand(uint, bool = false);
  2955. void ToggleSelection(uint);
  2956. void UpdateLayout();
  2957. const Variant& GetVar(const ShortStringHash&);
  2958. // Properties:
  2959. /* (readonly) */
  2960. Array<Variant> attributeDefaults;
  2961. /* (readonly) */
  2962. Array<AttributeInfo> attributeInfos;
  2963. Array<Variant> attributes;
  2964. int baseIndent;
  2965. /* (readonly) */
  2966. ShortStringHash baseType;
  2967. bool bringToBack;
  2968. bool bringToFront;
  2969. /* (readonly) */
  2970. String category;
  2971. /* (readonly) */
  2972. IntVector2 childOffset;
  2973. /* (readonly) */
  2974. Array<UIElement> children;
  2975. bool clearSelectionOnDefocus;
  2976. IntRect clipBorder;
  2977. bool clipChildren;
  2978. /* (writeonly) */
  2979. Color color;
  2980. /* (readonly) */
  2981. bool colorGradient;
  2982. Array<Color> colors;
  2983. /* (readonly) */
  2984. IntRect combinedScreenRect;
  2985. /* (readonly) */
  2986. UIElement contentElement;
  2987. XMLFile defaultStyle;
  2988. /* (readonly) */
  2989. float derivedOpacity;
  2990. uint dragDropMode;
  2991. bool editable;
  2992. bool elementEventSender;
  2993. bool enabled;
  2994. /* (readonly) */
  2995. bool fixedHeight;
  2996. /* (readonly) */
  2997. bool fixedSize;
  2998. /* (readonly) */
  2999. bool fixedWidth;
  3000. bool focus;
  3001. FocusMode focusMode;
  3002. int height;
  3003. bool hierarchyMode;
  3004. HighlightMode highlightMode;
  3005. HorizontalAlignment horizontalAlignment;
  3006. /* (readonly) */
  3007. ScrollBar horizontalScrollBar;
  3008. /* (readonly) */
  3009. bool hovering;
  3010. int indent;
  3011. int indentSpacing;
  3012. /* (readonly) */
  3013. int indentWidth;
  3014. bool internal;
  3015. /* (readonly) */
  3016. Array<UIElement> items;
  3017. IntRect layoutBorder;
  3018. LayoutMode layoutMode;
  3019. int layoutSpacing;
  3020. int maxHeight;
  3021. IntVector2 maxSize;
  3022. int maxWidth;
  3023. int minHeight;
  3024. IntVector2 minSize;
  3025. int minWidth;
  3026. bool multiselect;
  3027. String name;
  3028. /* (readonly) */
  3029. uint numAllChildren;
  3030. /* (readonly) */
  3031. uint numAttributes;
  3032. /* (readonly) */
  3033. uint numChildren;
  3034. /* (readonly) */
  3035. uint numItems;
  3036. float opacity;
  3037. float pageStep;
  3038. UIElement parent;
  3039. IntVector2 position;
  3040. int priority;
  3041. /* (readonly) */
  3042. int refs;
  3043. /* (readonly) */
  3044. UIElement root;
  3045. /* (readonly) */
  3046. IntVector2 screenPosition;
  3047. bool scrollBarsAutoVisible;
  3048. /* (readonly) */
  3049. BorderImage scrollPanel;
  3050. float scrollStep;
  3051. bool selected;
  3052. /* (readonly) */
  3053. UIElement selectedItem;
  3054. /* (readonly) */
  3055. Array<UIElement> selectedItems;
  3056. uint selection;
  3057. /* (readonly) */
  3058. Array<uint> selections;
  3059. IntVector2 size;
  3060. bool sortChildren;
  3061. String style;
  3062. bool temporary;
  3063. TraversalMode traversalMode;
  3064. /* (readonly) */
  3065. ShortStringHash type;
  3066. /* (readonly) */
  3067. String typeName;
  3068. bool useDerivedOpacity;
  3069. /* (readonly) */
  3070. VariantMap vars;
  3071. VerticalAlignment verticalAlignment;
  3072. /* (readonly) */
  3073. ScrollBar verticalScrollBar;
  3074. IntVector2 viewPosition;
  3075. bool visible;
  3076. /* (readonly) */
  3077. int weakRefs;
  3078. int width;
  3079. };
  3080. class Log
  3081. {
  3082. // Methods:
  3083. void Close();
  3084. void Debug(const String&);
  3085. void Error(const String&);
  3086. void Info(const String&);
  3087. void Open(const String&);
  3088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3089. void Warning(const String&);
  3090. void Write(const String&, bool = false);
  3091. // Properties:
  3092. /* (readonly) */
  3093. ShortStringHash baseType;
  3094. /* (readonly) */
  3095. String category;
  3096. /* (readonly) */
  3097. String lastMessage;
  3098. int level;
  3099. bool quiet;
  3100. /* (readonly) */
  3101. int refs;
  3102. bool timeStamp;
  3103. /* (readonly) */
  3104. ShortStringHash type;
  3105. /* (readonly) */
  3106. String typeName;
  3107. /* (readonly) */
  3108. int weakRefs;
  3109. };
  3110. class Material
  3111. {
  3112. // Methods:
  3113. Material Clone(const String& = String ( )) const;
  3114. bool Load(File);
  3115. bool Load(const XMLElement&);
  3116. void RemoveShaderParameter(const String&);
  3117. bool Save(File) const;
  3118. bool Save(XMLElement&) const;
  3119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3120. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  3121. void SetUVTransform(const Vector2&, float, const Vector2&);
  3122. void SetUVTransform(const Vector2&, float, float);
  3123. void SortTechniques();
  3124. // Properties:
  3125. /* (readonly) */
  3126. ShortStringHash baseType;
  3127. /* (readonly) */
  3128. String category;
  3129. CullMode cullMode;
  3130. BiasParameters depthBias;
  3131. /* (readonly) */
  3132. uint memoryUse;
  3133. String name;
  3134. uint numTechniques;
  3135. /* (readonly) */
  3136. bool occlusion;
  3137. /* (readonly) */
  3138. int refs;
  3139. /* (readonly) */
  3140. Array<String> shaderParameterNames;
  3141. Array<Variant> shaderParameters;
  3142. CullMode shadowCullMode;
  3143. /* (readonly) */
  3144. Array<TechniqueEntry> techniqueEntries;
  3145. /* (readonly) */
  3146. Array<Technique> techniques;
  3147. Array<Texture> textures;
  3148. /* (readonly) */
  3149. ShortStringHash type;
  3150. /* (readonly) */
  3151. String typeName;
  3152. /* (readonly) */
  3153. uint useTimer;
  3154. /* (readonly) */
  3155. int weakRefs;
  3156. };
  3157. class Matrix3
  3158. {
  3159. // Methods:
  3160. bool Equals(const Matrix3&) const;
  3161. Matrix3 Inverse() const;
  3162. Vector3 Scale() const;
  3163. Matrix3 Scaled(const Vector3&) const;
  3164. void SetScale(const Vector3&);
  3165. void SetScale(float);
  3166. Matrix3 Transpose() const;
  3167. // Properties:
  3168. float m00;
  3169. float m01;
  3170. float m02;
  3171. float m10;
  3172. float m11;
  3173. float m12;
  3174. float m20;
  3175. float m21;
  3176. float m22;
  3177. };
  3178. class Matrix3x4
  3179. {
  3180. // Methods:
  3181. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  3182. bool Equals(const Matrix3x4&) const;
  3183. Matrix3x4 Inverse() const;
  3184. Quaternion Rotation() const;
  3185. Matrix3 RotationMatrix() const;
  3186. Vector3 Scale() const;
  3187. void SetRotation(const Matrix3&);
  3188. void SetScale(const Vector3&);
  3189. void SetScale(float);
  3190. void SetTranslation(const Vector3&);
  3191. Matrix3 ToMatrix3() const;
  3192. Matrix4 ToMatrix4() const;
  3193. Vector3 Translation() const;
  3194. // Properties:
  3195. float m00;
  3196. float m01;
  3197. float m02;
  3198. float m03;
  3199. float m10;
  3200. float m11;
  3201. float m12;
  3202. float m13;
  3203. float m20;
  3204. float m21;
  3205. float m22;
  3206. float m23;
  3207. };
  3208. class Matrix4
  3209. {
  3210. // Methods:
  3211. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  3212. bool Equals(const Matrix4&) const;
  3213. Matrix4 Inverse() const;
  3214. Quaternion Rotation() const;
  3215. Matrix3 RotationMatrix() const;
  3216. Vector3 Scale() const;
  3217. void SetRotation(const Matrix3&);
  3218. void SetScale(const Vector3&);
  3219. void SetScale(float);
  3220. void SetTranslation(const Vector3&);
  3221. Matrix3 ToMatrix3() const;
  3222. Vector3 Translation() const;
  3223. Matrix4 Transpose() const;
  3224. // Properties:
  3225. float m00;
  3226. float m01;
  3227. float m02;
  3228. float m03;
  3229. float m10;
  3230. float m11;
  3231. float m12;
  3232. float m13;
  3233. float m20;
  3234. float m21;
  3235. float m22;
  3236. float m23;
  3237. float m30;
  3238. float m31;
  3239. float m32;
  3240. float m33;
  3241. };
  3242. class Menu
  3243. {
  3244. // Methods:
  3245. void AddChild(UIElement);
  3246. void ApplyAttributes();
  3247. void BringToFront();
  3248. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3249. void DisableLayoutUpdate();
  3250. IntVector2 ElementToScreen(const IntVector2&);
  3251. void EnableLayoutUpdate();
  3252. uint FindChild(UIElement) const;
  3253. Variant GetAttribute(const String&) const;
  3254. Variant GetAttributeDefault(const String&) const;
  3255. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3256. UIElement GetChild(const String&, bool = false) const;
  3257. Array<UIElement> GetChildren(bool = false) const;
  3258. UIElement GetElementEventSender() const;
  3259. uint GetNumChildren(bool) const;
  3260. void InsertChild(uint, UIElement);
  3261. bool IsInside(IntVector2, bool);
  3262. bool IsInsideCombined(IntVector2, bool);
  3263. bool Load(File, bool = false);
  3264. bool LoadChildXML(XMLFile, XMLFile = null);
  3265. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3266. bool LoadXML(File);
  3267. bool LoadXML(XMLFile, XMLFile);
  3268. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3269. bool LoadXML(const XMLElement&, bool = false);
  3270. void Remove();
  3271. void RemoveAllChildren();
  3272. void RemoveChild(UIElement, uint = 0);
  3273. void RemoveChild(uint);
  3274. void RemoveInstanceDefault();
  3275. void ResetToDefault();
  3276. bool Save(File) const;
  3277. bool SaveXML(File);
  3278. bool SaveXML(XMLElement&) const;
  3279. IntVector2 ScreenToElement(const IntVector2&);
  3280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3281. void SetAccelerator(int, int);
  3282. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3283. bool SetAttribute(const String&, const Variant&);
  3284. void SetFixedHeight(int);
  3285. void SetFixedSize(int, int);
  3286. void SetFixedWidth(int);
  3287. void SetFullImageRect();
  3288. void SetHoverOffset(int, int);
  3289. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3290. void SetMaxSize(int, int);
  3291. void SetMinSize(int, int);
  3292. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3293. void SetPopupOffset(int, int);
  3294. void SetPosition(int, int);
  3295. void SetPressedChildOffset(int, int);
  3296. void SetPressedOffset(int, int);
  3297. void SetRepeat(float, float);
  3298. void SetSize(int, int);
  3299. bool SetStyle(const String&, XMLFile = null);
  3300. bool SetStyle(const XMLElement&);
  3301. bool SetStyleAuto(XMLFile = null);
  3302. void UpdateLayout();
  3303. const Variant& GetVar(const ShortStringHash&);
  3304. // Properties:
  3305. /* (readonly) */
  3306. int acceleratorKey;
  3307. /* (readonly) */
  3308. int acceleratorQualifiers;
  3309. /* (readonly) */
  3310. Array<Variant> attributeDefaults;
  3311. /* (readonly) */
  3312. Array<AttributeInfo> attributeInfos;
  3313. Array<Variant> attributes;
  3314. /* (readonly) */
  3315. ShortStringHash baseType;
  3316. BlendMode blendMode;
  3317. IntRect border;
  3318. bool bringToBack;
  3319. bool bringToFront;
  3320. /* (readonly) */
  3321. String category;
  3322. /* (readonly) */
  3323. IntVector2 childOffset;
  3324. /* (readonly) */
  3325. Array<UIElement> children;
  3326. IntRect clipBorder;
  3327. bool clipChildren;
  3328. /* (writeonly) */
  3329. Color color;
  3330. /* (readonly) */
  3331. bool colorGradient;
  3332. Array<Color> colors;
  3333. /* (readonly) */
  3334. IntRect combinedScreenRect;
  3335. XMLFile defaultStyle;
  3336. /* (readonly) */
  3337. float derivedOpacity;
  3338. uint dragDropMode;
  3339. bool editable;
  3340. bool elementEventSender;
  3341. bool enabled;
  3342. /* (readonly) */
  3343. bool fixedHeight;
  3344. /* (readonly) */
  3345. bool fixedSize;
  3346. /* (readonly) */
  3347. bool fixedWidth;
  3348. bool focus;
  3349. FocusMode focusMode;
  3350. int height;
  3351. HorizontalAlignment horizontalAlignment;
  3352. IntVector2 hoverOffset;
  3353. /* (readonly) */
  3354. bool hovering;
  3355. IntRect imageRect;
  3356. int indent;
  3357. int indentSpacing;
  3358. /* (readonly) */
  3359. int indentWidth;
  3360. bool internal;
  3361. IntRect layoutBorder;
  3362. LayoutMode layoutMode;
  3363. int layoutSpacing;
  3364. int maxHeight;
  3365. IntVector2 maxSize;
  3366. int maxWidth;
  3367. int minHeight;
  3368. IntVector2 minSize;
  3369. int minWidth;
  3370. String name;
  3371. /* (readonly) */
  3372. uint numAllChildren;
  3373. /* (readonly) */
  3374. uint numAttributes;
  3375. /* (readonly) */
  3376. uint numChildren;
  3377. float opacity;
  3378. UIElement parent;
  3379. UIElement popup;
  3380. IntVector2 popupOffset;
  3381. IntVector2 position;
  3382. /* (readonly) */
  3383. bool pressed;
  3384. IntVector2 pressedChildOffset;
  3385. IntVector2 pressedOffset;
  3386. int priority;
  3387. /* (readonly) */
  3388. int refs;
  3389. float repeatDelay;
  3390. float repeatRate;
  3391. /* (readonly) */
  3392. UIElement root;
  3393. /* (readonly) */
  3394. IntVector2 screenPosition;
  3395. bool selected;
  3396. bool showPopup;
  3397. IntVector2 size;
  3398. bool sortChildren;
  3399. String style;
  3400. bool temporary;
  3401. Texture texture;
  3402. bool tiled;
  3403. TraversalMode traversalMode;
  3404. /* (readonly) */
  3405. ShortStringHash type;
  3406. /* (readonly) */
  3407. String typeName;
  3408. bool useDerivedOpacity;
  3409. /* (readonly) */
  3410. VariantMap vars;
  3411. VerticalAlignment verticalAlignment;
  3412. bool visible;
  3413. /* (readonly) */
  3414. int weakRefs;
  3415. int width;
  3416. };
  3417. class MessageBox
  3418. {
  3419. // Methods:
  3420. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3421. // Properties:
  3422. /* (readonly) */
  3423. ShortStringHash baseType;
  3424. /* (readonly) */
  3425. String category;
  3426. String message;
  3427. /* (readonly) */
  3428. int refs;
  3429. String title;
  3430. /* (readonly) */
  3431. ShortStringHash type;
  3432. /* (readonly) */
  3433. String typeName;
  3434. /* (readonly) */
  3435. int weakRefs;
  3436. /* (readonly) */
  3437. UIElement window;
  3438. };
  3439. class Model
  3440. {
  3441. // Methods:
  3442. bool Load(File);
  3443. bool Save(File) const;
  3444. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3445. // Properties:
  3446. /* (readonly) */
  3447. ShortStringHash baseType;
  3448. /* (readonly) */
  3449. BoundingBox boundingBox;
  3450. /* (readonly) */
  3451. String category;
  3452. /* (readonly) */
  3453. uint memoryUse;
  3454. String name;
  3455. /* (readonly) */
  3456. uint numGeometries;
  3457. /* (readonly) */
  3458. Array<uint> numGeometryLodLevels;
  3459. /* (readonly) */
  3460. uint numMorphs;
  3461. /* (readonly) */
  3462. int refs;
  3463. /* (readonly) */
  3464. Skeleton skeleton;
  3465. /* (readonly) */
  3466. ShortStringHash type;
  3467. /* (readonly) */
  3468. String typeName;
  3469. /* (readonly) */
  3470. uint useTimer;
  3471. /* (readonly) */
  3472. int weakRefs;
  3473. };
  3474. class Navigable
  3475. {
  3476. // Methods:
  3477. void ApplyAttributes();
  3478. void DrawDebugGeometry(DebugRenderer, bool);
  3479. Variant GetAttribute(const String&) const;
  3480. Variant GetAttributeDefault(const String&) const;
  3481. bool Load(File, bool = false);
  3482. bool LoadXML(const XMLElement&, bool = false);
  3483. void MarkNetworkUpdate() const;
  3484. void Remove();
  3485. void RemoveInstanceDefault();
  3486. void ResetToDefault();
  3487. bool Save(File) const;
  3488. bool SaveXML(XMLElement&) const;
  3489. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3490. bool SetAttribute(const String&, const Variant&);
  3491. // Properties:
  3492. /* (readonly) */
  3493. Array<Variant> attributeDefaults;
  3494. /* (readonly) */
  3495. Array<AttributeInfo> attributeInfos;
  3496. Array<Variant> attributes;
  3497. /* (readonly) */
  3498. ShortStringHash baseType;
  3499. /* (readonly) */
  3500. String category;
  3501. bool enabled;
  3502. /* (readonly) */
  3503. bool enabledEffective;
  3504. /* (readonly) */
  3505. uint id;
  3506. /* (readonly) */
  3507. Node node;
  3508. /* (readonly) */
  3509. uint numAttributes;
  3510. bool recursive;
  3511. /* (readonly) */
  3512. int refs;
  3513. bool temporary;
  3514. /* (readonly) */
  3515. ShortStringHash type;
  3516. /* (readonly) */
  3517. String typeName;
  3518. /* (readonly) */
  3519. int weakRefs;
  3520. };
  3521. class NavigationMesh
  3522. {
  3523. // Methods:
  3524. void ApplyAttributes();
  3525. bool Build();
  3526. bool Build(const BoundingBox&);
  3527. void DrawDebugGeometry(DebugRenderer, bool);
  3528. void DrawDebugGeometry(bool);
  3529. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  3530. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  3531. Variant GetAttribute(const String&) const;
  3532. Variant GetAttributeDefault(const String&) const;
  3533. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  3534. Vector3 GetRandomPoint();
  3535. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  3536. bool Load(File, bool = false);
  3537. bool LoadXML(const XMLElement&, bool = false);
  3538. void MarkNetworkUpdate() const;
  3539. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  3540. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  3541. void Remove();
  3542. void RemoveInstanceDefault();
  3543. void ResetToDefault();
  3544. bool Save(File) const;
  3545. bool SaveXML(XMLElement&) const;
  3546. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3547. bool SetAttribute(const String&, const Variant&);
  3548. // Properties:
  3549. float agentHeight;
  3550. float agentMaxClimb;
  3551. float agentMaxSlope;
  3552. float agentRadius;
  3553. /* (readonly) */
  3554. Array<Variant> attributeDefaults;
  3555. /* (readonly) */
  3556. Array<AttributeInfo> attributeInfos;
  3557. Array<Variant> attributes;
  3558. /* (readonly) */
  3559. ShortStringHash baseType;
  3560. /* (readonly) */
  3561. BoundingBox boundingBox;
  3562. /* (readonly) */
  3563. String category;
  3564. float cellHeight;
  3565. float cellSize;
  3566. float detailSampleDistance;
  3567. float detailSampleMaxError;
  3568. float edgeMaxError;
  3569. float edgeMaxLength;
  3570. bool enabled;
  3571. /* (readonly) */
  3572. bool enabledEffective;
  3573. /* (readonly) */
  3574. uint id;
  3575. /* (readonly) */
  3576. bool initialized;
  3577. /* (readonly) */
  3578. Node node;
  3579. /* (readonly) */
  3580. uint numAttributes;
  3581. /* (readonly) */
  3582. IntVector2 numTiles;
  3583. Vector3 padding;
  3584. /* (readonly) */
  3585. int refs;
  3586. float regionMergeSize;
  3587. float regionMinSize;
  3588. bool temporary;
  3589. int tileSize;
  3590. /* (readonly) */
  3591. ShortStringHash type;
  3592. /* (readonly) */
  3593. String typeName;
  3594. /* (readonly) */
  3595. int weakRefs;
  3596. /* (readonly) */
  3597. BoundingBox worldBoundingBox;
  3598. };
  3599. class Network
  3600. {
  3601. // Methods:
  3602. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  3603. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  3604. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  3605. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  3606. bool CheckRemoteEvent(const String&) const;
  3607. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  3608. void Disconnect(int = 0);
  3609. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  3610. void RegisterRemoteEvent(const String&) const;
  3611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3612. bool StartServer(uint16);
  3613. void StopServer();
  3614. void UnregisterAllRemoteEvents();
  3615. void UnregisterRemoteEvent(const String&) const;
  3616. // Properties:
  3617. /* (readonly) */
  3618. ShortStringHash baseType;
  3619. /* (readonly) */
  3620. String category;
  3621. /* (readonly) */
  3622. Array<Connection> clientConnections;
  3623. String packageCacheDir;
  3624. /* (readonly) */
  3625. int refs;
  3626. /* (readonly) */
  3627. Connection serverConnection;
  3628. /* (readonly) */
  3629. bool serverRunning;
  3630. /* (readonly) */
  3631. ShortStringHash type;
  3632. /* (readonly) */
  3633. String typeName;
  3634. int updateFps;
  3635. /* (readonly) */
  3636. int weakRefs;
  3637. };
  3638. class NetworkPriority
  3639. {
  3640. // Methods:
  3641. void ApplyAttributes();
  3642. void DrawDebugGeometry(DebugRenderer, bool);
  3643. Variant GetAttribute(const String&) const;
  3644. Variant GetAttributeDefault(const String&) const;
  3645. bool Load(File, bool = false);
  3646. bool LoadXML(const XMLElement&, bool = false);
  3647. void MarkNetworkUpdate() const;
  3648. void Remove();
  3649. void RemoveInstanceDefault();
  3650. void ResetToDefault();
  3651. bool Save(File) const;
  3652. bool SaveXML(XMLElement&) const;
  3653. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3654. bool SetAttribute(const String&, const Variant&);
  3655. // Properties:
  3656. bool alwaysUpdateOwner;
  3657. /* (readonly) */
  3658. Array<Variant> attributeDefaults;
  3659. /* (readonly) */
  3660. Array<AttributeInfo> attributeInfos;
  3661. Array<Variant> attributes;
  3662. float basePriority;
  3663. /* (readonly) */
  3664. ShortStringHash baseType;
  3665. /* (readonly) */
  3666. String category;
  3667. float distanceFactor;
  3668. bool enabled;
  3669. /* (readonly) */
  3670. bool enabledEffective;
  3671. /* (readonly) */
  3672. uint id;
  3673. float minPriority;
  3674. /* (readonly) */
  3675. Node node;
  3676. /* (readonly) */
  3677. uint numAttributes;
  3678. /* (readonly) */
  3679. int refs;
  3680. bool temporary;
  3681. /* (readonly) */
  3682. ShortStringHash type;
  3683. /* (readonly) */
  3684. String typeName;
  3685. /* (readonly) */
  3686. int weakRefs;
  3687. };
  3688. class Node
  3689. {
  3690. // Methods:
  3691. void AddChild(Node);
  3692. void ApplyAttributes();
  3693. Node Clone(CreateMode = REPLICATED);
  3694. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  3695. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  3696. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  3697. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  3698. Variant GetAttribute(const String&) const;
  3699. Variant GetAttributeDefault(const String&) const;
  3700. Node GetChild(const String&, bool = false) const;
  3701. Array<Node> GetChildren(bool = false) const;
  3702. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  3703. Array<Node> GetChildrenWithScript(bool = false) const;
  3704. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  3705. Component GetComponent(const String&) const;
  3706. Array<Component> GetComponents() const;
  3707. Array<Component> GetComponents(const String&, bool = false) const;
  3708. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  3709. ScriptObject GetScriptObject() const;
  3710. ScriptObject GetScriptObject(const String&) const;
  3711. bool HasComponent(const String&) const;
  3712. bool Load(File, bool = false);
  3713. bool LoadXML(const XMLElement&, bool = false);
  3714. Vector3 LocalToWorld(const Vector3&) const;
  3715. Vector3 LocalToWorld(const Vector4&) const;
  3716. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  3717. void Pitch(float, bool = false);
  3718. void Remove();
  3719. void RemoveAllChildren();
  3720. void RemoveAllComponents();
  3721. void RemoveChild(Node);
  3722. void RemoveChildren(bool, bool, bool);
  3723. void RemoveComponent(Component);
  3724. void RemoveComponent(const String&);
  3725. void RemoveComponents(bool, bool);
  3726. void RemoveInstanceDefault();
  3727. void ResetToDefault();
  3728. void Roll(float, bool = false);
  3729. void Rotate(const Quaternion&, bool = false);
  3730. bool Save(File) const;
  3731. bool SaveXML(File);
  3732. bool SaveXML(XMLElement&) const;
  3733. void Scale(const Vector3&);
  3734. void Scale(float);
  3735. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3736. bool SetAttribute(const String&, const Variant&);
  3737. void SetEnabled(bool, bool);
  3738. void SetScale(float);
  3739. void SetTransform(const Vector3&, const Quaternion&);
  3740. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  3741. void SetTransform(const Vector3&, const Quaternion&, float);
  3742. void SetWorldTransform(const Vector3&, const Quaternion&);
  3743. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  3744. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  3745. void Translate(const Vector3&);
  3746. void TranslateRelative(const Vector3&);
  3747. Vector3 WorldToLocal(const Vector3&) const;
  3748. Vector3 WorldToLocal(const Vector4&) const;
  3749. void Yaw(float, bool = false);
  3750. // Properties:
  3751. /* (readonly) */
  3752. Array<Variant> attributeDefaults;
  3753. /* (readonly) */
  3754. Array<AttributeInfo> attributeInfos;
  3755. Array<Variant> attributes;
  3756. /* (readonly) */
  3757. ShortStringHash baseType;
  3758. /* (readonly) */
  3759. String category;
  3760. /* (readonly) */
  3761. Array<Node> children;
  3762. /* (readonly) */
  3763. Array<Component> components;
  3764. Vector3 direction;
  3765. bool enabled;
  3766. /* (readonly) */
  3767. uint id;
  3768. String name;
  3769. /* (readonly) */
  3770. uint numAllChildren;
  3771. /* (readonly) */
  3772. uint numAttributes;
  3773. /* (readonly) */
  3774. uint numChildren;
  3775. /* (readonly) */
  3776. uint numComponents;
  3777. Connection owner;
  3778. Node parent;
  3779. Vector3 position;
  3780. /* (readonly) */
  3781. int refs;
  3782. /* (readonly) */
  3783. Vector3 right;
  3784. Quaternion rotation;
  3785. Vector3 scale;
  3786. /* (readonly) */
  3787. Scene scene;
  3788. /* (readonly) */
  3789. ScriptObject scriptObject;
  3790. bool temporary;
  3791. /* (readonly) */
  3792. Matrix3x4 transform;
  3793. /* (readonly) */
  3794. ShortStringHash type;
  3795. /* (readonly) */
  3796. String typeName;
  3797. /* (readonly) */
  3798. Vector3 up;
  3799. /* (readonly) */
  3800. VariantMap vars;
  3801. /* (readonly) */
  3802. int weakRefs;
  3803. Vector3 worldDirection;
  3804. Vector3 worldPosition;
  3805. /* (readonly) */
  3806. Vector3 worldRight;
  3807. Quaternion worldRotation;
  3808. Vector3 worldScale;
  3809. /* (readonly) */
  3810. Matrix3x4 worldTransform;
  3811. /* (readonly) */
  3812. Vector3 worldUp;
  3813. };
  3814. class Object
  3815. {
  3816. // Methods:
  3817. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3818. // Properties:
  3819. /* (readonly) */
  3820. ShortStringHash baseType;
  3821. /* (readonly) */
  3822. String category;
  3823. /* (readonly) */
  3824. int refs;
  3825. /* (readonly) */
  3826. ShortStringHash type;
  3827. /* (readonly) */
  3828. String typeName;
  3829. /* (readonly) */
  3830. int weakRefs;
  3831. };
  3832. class Octree
  3833. {
  3834. // Methods:
  3835. void AddManualDrawable(Drawable);
  3836. void ApplyAttributes();
  3837. void DrawDebugGeometry(DebugRenderer, bool);
  3838. void DrawDebugGeometry(bool) const;
  3839. Variant GetAttribute(const String&) const;
  3840. Variant GetAttributeDefault(const String&) const;
  3841. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  3842. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  3843. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  3844. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  3845. bool Load(File, bool = false);
  3846. bool LoadXML(const XMLElement&, bool = false);
  3847. void MarkNetworkUpdate() const;
  3848. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  3849. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  3850. void Remove();
  3851. void RemoveInstanceDefault();
  3852. void RemoveManualDrawable(Drawable);
  3853. void ResetToDefault();
  3854. bool Save(File) const;
  3855. bool SaveXML(XMLElement&) const;
  3856. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3857. bool SetAttribute(const String&, const Variant&);
  3858. void SetSize(const BoundingBox&, uint);
  3859. // Properties:
  3860. /* (readonly) */
  3861. Array<Variant> attributeDefaults;
  3862. /* (readonly) */
  3863. Array<AttributeInfo> attributeInfos;
  3864. Array<Variant> attributes;
  3865. /* (readonly) */
  3866. ShortStringHash baseType;
  3867. /* (readonly) */
  3868. String category;
  3869. bool enabled;
  3870. /* (readonly) */
  3871. bool enabledEffective;
  3872. /* (readonly) */
  3873. uint id;
  3874. /* (readonly) */
  3875. Node node;
  3876. /* (readonly) */
  3877. uint numAttributes;
  3878. /* (readonly) */
  3879. uint numLevels;
  3880. /* (readonly) */
  3881. int refs;
  3882. bool temporary;
  3883. /* (readonly) */
  3884. ShortStringHash type;
  3885. /* (readonly) */
  3886. String typeName;
  3887. /* (readonly) */
  3888. int weakRefs;
  3889. /* (readonly) */
  3890. BoundingBox worldBoundingBox;
  3891. };
  3892. class OffMeshConnection
  3893. {
  3894. // Methods:
  3895. void ApplyAttributes();
  3896. void DrawDebugGeometry(DebugRenderer, bool);
  3897. Variant GetAttribute(const String&) const;
  3898. Variant GetAttributeDefault(const String&) const;
  3899. bool Load(File, bool = false);
  3900. bool LoadXML(const XMLElement&, bool = false);
  3901. void MarkNetworkUpdate() const;
  3902. void Remove();
  3903. void RemoveInstanceDefault();
  3904. void ResetToDefault();
  3905. bool Save(File) const;
  3906. bool SaveXML(XMLElement&) const;
  3907. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3908. bool SetAttribute(const String&, const Variant&);
  3909. // Properties:
  3910. /* (readonly) */
  3911. Array<Variant> attributeDefaults;
  3912. /* (readonly) */
  3913. Array<AttributeInfo> attributeInfos;
  3914. Array<Variant> attributes;
  3915. /* (readonly) */
  3916. ShortStringHash baseType;
  3917. bool bidirectional;
  3918. /* (readonly) */
  3919. String category;
  3920. bool enabled;
  3921. /* (readonly) */
  3922. bool enabledEffective;
  3923. Node endPoint;
  3924. /* (readonly) */
  3925. uint id;
  3926. /* (readonly) */
  3927. Node node;
  3928. /* (readonly) */
  3929. uint numAttributes;
  3930. float radius;
  3931. /* (readonly) */
  3932. int refs;
  3933. bool temporary;
  3934. /* (readonly) */
  3935. ShortStringHash type;
  3936. /* (readonly) */
  3937. String typeName;
  3938. /* (readonly) */
  3939. int weakRefs;
  3940. };
  3941. class PackageFile
  3942. {
  3943. // Methods:
  3944. bool Exists(const String&) const;
  3945. bool Open(const String&, uint = 0) const;
  3946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3947. bool compressed() const;
  3948. // Properties:
  3949. /* (readonly) */
  3950. ShortStringHash baseType;
  3951. /* (readonly) */
  3952. String category;
  3953. /* (readonly) */
  3954. uint checksum;
  3955. /* (readonly) */
  3956. String name;
  3957. /* (readonly) */
  3958. uint numFiles;
  3959. /* (readonly) */
  3960. int refs;
  3961. /* (readonly) */
  3962. uint totalSize;
  3963. /* (readonly) */
  3964. ShortStringHash type;
  3965. /* (readonly) */
  3966. String typeName;
  3967. /* (readonly) */
  3968. int weakRefs;
  3969. };
  3970. class ParticleEmitter
  3971. {
  3972. // Methods:
  3973. void ApplyAttributes();
  3974. void DrawDebugGeometry(DebugRenderer, bool);
  3975. Variant GetAttribute(const String&) const;
  3976. Variant GetAttributeDefault(const String&) const;
  3977. bool Load(File, bool = false);
  3978. bool Load(XMLFile);
  3979. bool LoadXML(const XMLElement&, bool = false);
  3980. void MarkNetworkUpdate() const;
  3981. void Remove();
  3982. void RemoveInstanceDefault();
  3983. void ResetToDefault();
  3984. bool Save(File) const;
  3985. bool Save(XMLFile);
  3986. bool SaveXML(XMLElement&) const;
  3987. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3988. bool SetAttribute(const String&, const Variant&);
  3989. void SetColor(const Color&);
  3990. void SetEmitting(bool, bool);
  3991. // Properties:
  3992. float activeTime;
  3993. float animationLodBias;
  3994. /* (readonly) */
  3995. Array<Variant> attributeDefaults;
  3996. /* (readonly) */
  3997. Array<AttributeInfo> attributeInfos;
  3998. Array<Variant> attributes;
  3999. /* (readonly) */
  4000. ShortStringHash baseType;
  4001. /* (readonly) */
  4002. BoundingBox boundingBox;
  4003. bool castShadows;
  4004. /* (readonly) */
  4005. String category;
  4006. /* (readonly) */
  4007. Array<ColorFrame> colors;
  4008. Vector3 constantForce;
  4009. float dampingForce;
  4010. float drawDistance;
  4011. /* (writeonly) */
  4012. float emissionRate;
  4013. Vector3 emitterSize;
  4014. EmitterType emitterType;
  4015. bool emitting;
  4016. bool enabled;
  4017. /* (readonly) */
  4018. bool enabledEffective;
  4019. /* (readonly) */
  4020. uint id;
  4021. /* (readonly) */
  4022. bool inView;
  4023. float inactiveTime;
  4024. uint lightMask;
  4025. float lodBias;
  4026. Material material;
  4027. Vector3 maxDirection;
  4028. float maxEmissionRate;
  4029. uint maxLights;
  4030. Vector3 maxParticleSize;
  4031. float maxRotation;
  4032. float maxRotationSpeed;
  4033. float maxTimeToLive;
  4034. float maxVelocity;
  4035. Vector3 minDirection;
  4036. float minEmissionRate;
  4037. Vector2 minParticleSize;
  4038. float minRotation;
  4039. float minRotationSpeed;
  4040. float minTimeToLive;
  4041. float minVelocity;
  4042. /* (readonly) */
  4043. Node node;
  4044. /* (readonly) */
  4045. uint numAttributes;
  4046. uint numColors;
  4047. uint numParticles;
  4048. uint numTextureFrames;
  4049. bool occludee;
  4050. bool occluder;
  4051. /* (writeonly) */
  4052. Vector2 particleSize;
  4053. /* (readonly) */
  4054. int refs;
  4055. bool relative;
  4056. /* (writeonly) */
  4057. float rotation;
  4058. /* (writeonly) */
  4059. float rotationSpeed;
  4060. bool scaled;
  4061. float shadowDistance;
  4062. uint shadowMask;
  4063. float sizeAdd;
  4064. float sizeMul;
  4065. bool sorted;
  4066. bool temporary;
  4067. /* (readonly) */
  4068. Array<TextureFrame> textureFrames;
  4069. /* (writeonly) */
  4070. float timeToLive;
  4071. /* (readonly) */
  4072. ShortStringHash type;
  4073. /* (readonly) */
  4074. String typeName;
  4075. bool updateInvisible;
  4076. /* (writeonly) */
  4077. float velocity;
  4078. uint viewMask;
  4079. /* (readonly) */
  4080. int weakRefs;
  4081. /* (readonly) */
  4082. BoundingBox worldBoundingBox;
  4083. /* (readonly) */
  4084. Zone zone;
  4085. uint zoneMask;
  4086. };
  4087. class Pass
  4088. {
  4089. // Properties:
  4090. bool alphaMask;
  4091. BlendMode blendMode;
  4092. CompareMode depthTestMode;
  4093. bool depthWrite;
  4094. PassLightingMode lightingMode;
  4095. String pixelShader;
  4096. /* (readonly) */
  4097. int refs;
  4098. String vertexShader;
  4099. /* (readonly) */
  4100. int weakRefs;
  4101. };
  4102. class PhysicsRaycastResult
  4103. {
  4104. // Properties:
  4105. /* (readonly) */
  4106. RigidBody body;
  4107. float distance;
  4108. Vector3 normal;
  4109. Vector3 position;
  4110. };
  4111. class PhysicsWorld
  4112. {
  4113. // Methods:
  4114. void ApplyAttributes();
  4115. void DrawDebugGeometry(DebugRenderer, bool);
  4116. void DrawDebugGeometry(bool);
  4117. Variant GetAttribute(const String&) const;
  4118. Variant GetAttributeDefault(const String&) const;
  4119. Array<RigidBody> GetRigidBodies(RigidBody);
  4120. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  4121. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  4122. bool Load(File, bool = false);
  4123. bool LoadXML(const XMLElement&, bool = false);
  4124. void MarkNetworkUpdate() const;
  4125. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  4126. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  4127. void Remove();
  4128. void RemoveCachedGeometry(Model);
  4129. void RemoveInstanceDefault();
  4130. void ResetToDefault();
  4131. bool Save(File) const;
  4132. bool SaveXML(XMLElement&) const;
  4133. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4134. bool SetAttribute(const String&, const Variant&);
  4135. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  4136. void Update(float);
  4137. void UpdateCollisions();
  4138. // Properties:
  4139. /* (readonly) */
  4140. Array<Variant> attributeDefaults;
  4141. /* (readonly) */
  4142. Array<AttributeInfo> attributeInfos;
  4143. Array<Variant> attributes;
  4144. /* (readonly) */
  4145. ShortStringHash baseType;
  4146. /* (readonly) */
  4147. String category;
  4148. bool enabled;
  4149. /* (readonly) */
  4150. bool enabledEffective;
  4151. int fps;
  4152. Vector3 gravity;
  4153. /* (readonly) */
  4154. uint id;
  4155. bool internalEdge;
  4156. bool interpolation;
  4157. /* (readonly) */
  4158. Node node;
  4159. /* (readonly) */
  4160. uint numAttributes;
  4161. int numIterations;
  4162. /* (readonly) */
  4163. int refs;
  4164. bool splitImpulse;
  4165. bool temporary;
  4166. /* (readonly) */
  4167. ShortStringHash type;
  4168. /* (readonly) */
  4169. String typeName;
  4170. /* (readonly) */
  4171. int weakRefs;
  4172. };
  4173. class Plane
  4174. {
  4175. // Methods:
  4176. void Define(const Vector3&, const Vector3&);
  4177. void Define(const Vector3&, const Vector3&, const Vector3&);
  4178. void Define(const Vector4&);
  4179. float Distance(const Vector3&) const;
  4180. Vector3 Reflect(const Vector3&) const;
  4181. Vector4 ToVector4() const;
  4182. void Transform(const Matrix3&);
  4183. void Transform(const Matrix3x4&);
  4184. void Transform(const Matrix4&);
  4185. Plane Transformed(const Matrix3&) const;
  4186. Plane Transformed(const Matrix3x4&) const;
  4187. Plane Transformed(const Matrix4&) const;
  4188. // Properties:
  4189. Vector3 absNormal;
  4190. float d;
  4191. Vector3 normal;
  4192. /* (readonly) */
  4193. Matrix3x4 reflectionMatrix;
  4194. };
  4195. class Polyhedron
  4196. {
  4197. // Methods:
  4198. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  4199. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  4200. void AddFace(const Array<Vector3>);
  4201. void Clear();
  4202. void Clip(const BoundingBox&);
  4203. void Clip(const Frustum&);
  4204. void Define(const BoundingBox&);
  4205. void Define(const Frustum&);
  4206. void Transform(const Matrix3&);
  4207. void Transform(const Matrix3x4&);
  4208. Polyhedron Transformed(const Matrix3&) const;
  4209. Polyhedron Transformed(const Matrix3x4&) const;
  4210. // Properties:
  4211. /* (readonly) */
  4212. Array<Array<Vector3>> face;
  4213. /* (readonly) */
  4214. uint numFaces;
  4215. };
  4216. class Quaternion
  4217. {
  4218. // Methods:
  4219. float DotProduct(const Quaternion&) const;
  4220. bool Equals(const Quaternion&) const;
  4221. void FromAngleAxis(float, const Vector3&);
  4222. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  4223. void FromEulerAngles(float, float, float);
  4224. void FromLookRotation(const Vector3&, const Vector3&);
  4225. void FromRotationTo(const Vector3&, const Vector3&);
  4226. Quaternion Inverse() const;
  4227. Quaternion Nlerp(Quaternion, float, bool) const;
  4228. void Normalize();
  4229. Quaternion Normalized() const;
  4230. Quaternion Slerp(Quaternion, float) const;
  4231. String ToString() const;
  4232. // Properties:
  4233. /* (readonly) */
  4234. Vector3 eulerAngles;
  4235. /* (readonly) */
  4236. float pitch;
  4237. /* (readonly) */
  4238. float roll;
  4239. float w;
  4240. float x;
  4241. float y;
  4242. /* (readonly) */
  4243. float yaw;
  4244. float z;
  4245. };
  4246. class Ray
  4247. {
  4248. // Methods:
  4249. Vector3 ClosestPoint(const Ray&) const;
  4250. void Define(const Vector3&, const Vector3&);
  4251. float Distance(const Vector3&) const;
  4252. float HitDistance(const BoundingBox&) const;
  4253. float HitDistance(const Frustum&, bool = true) const;
  4254. float HitDistance(const Sphere&) const;
  4255. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  4256. Vector3 Project(const Vector3&) const;
  4257. Ray Transformed(const Matrix3x4&) const;
  4258. // Properties:
  4259. Vector3 direction;
  4260. Vector3 origin;
  4261. };
  4262. class RayQueryResult
  4263. {
  4264. // Properties:
  4265. float distance;
  4266. /* (readonly) */
  4267. Drawable drawable;
  4268. /* (readonly) */
  4269. Node node;
  4270. Vector3 normal;
  4271. Vector3 position;
  4272. uint subObject;
  4273. };
  4274. class Rect
  4275. {
  4276. // Methods:
  4277. void Clear();
  4278. void Clip(const Rect&);
  4279. void Define(const Vector2&);
  4280. void Define(const Vector2&, const Vector2&);
  4281. bool Equals(const Rect&) const;
  4282. Intersection IsInside(const Vector2&) const;
  4283. void Merge(const Rect&);
  4284. void Merge(const Vector2&);
  4285. Vector4 ToVector4() const;
  4286. // Properties:
  4287. float bottom;
  4288. /* (readonly) */
  4289. Vector2 center;
  4290. bool defined;
  4291. /* (readonly) */
  4292. Vector2 halfSize;
  4293. float left;
  4294. Vector2 max;
  4295. Vector2 min;
  4296. float right;
  4297. /* (readonly) */
  4298. Vector2 size;
  4299. float top;
  4300. };
  4301. class RefCounted
  4302. {
  4303. // Properties:
  4304. /* (readonly) */
  4305. int refs;
  4306. /* (readonly) */
  4307. int weakRefs;
  4308. };
  4309. class RenderPath
  4310. {
  4311. // Methods:
  4312. void AddCommand(const RenderPathCommand&);
  4313. void AddRenderTarget(const RenderTargetInfo&);
  4314. bool Append(XMLFile);
  4315. RenderPath Clone();
  4316. void InsertCommand(uint, const RenderPathCommand&);
  4317. bool Load(XMLFile);
  4318. void RemoveCommand(uint);
  4319. void RemoveCommands(const String&);
  4320. void RemoveRenderTarget(const String&);
  4321. void RemoveRenderTarget(uint);
  4322. void RemoveRenderTargts(const String&);
  4323. void SetEnabled(const String&, bool);
  4324. void ToggleEnabled(const String&);
  4325. // Properties:
  4326. Array<RenderPathCommand> commands;
  4327. /* (readonly) */
  4328. uint numCommands;
  4329. /* (readonly) */
  4330. uint numRenderTargets;
  4331. /* (readonly) */
  4332. int refs;
  4333. Array<RenderTargetInfo> renderTargets;
  4334. Array<Variant> shaderParameters;
  4335. /* (readonly) */
  4336. int weakRefs;
  4337. };
  4338. class RenderPathCommand
  4339. {
  4340. // Methods:
  4341. void RemoveShaderParameter(const String&);
  4342. // Properties:
  4343. Color clearColor;
  4344. float clearDepth;
  4345. uint clearFlags;
  4346. uint clearStencil;
  4347. bool enabled;
  4348. bool markToStencil;
  4349. String metadata;
  4350. uint numOutputs;
  4351. Array<String> outputNames;
  4352. String pass;
  4353. String pixelShaderName;
  4354. Array<Variant> shaderParameters;
  4355. RenderCommandSortMode sortMode;
  4356. String tag;
  4357. Array<String> textureNames;
  4358. RenderCommandType type;
  4359. bool useFogColor;
  4360. bool useLitBase;
  4361. bool useScissor;
  4362. bool vertexLights;
  4363. String vertexShaderName;
  4364. };
  4365. class RenderSurface
  4366. {
  4367. // Methods:
  4368. void QueueUpdate();
  4369. // Properties:
  4370. /* (readonly) */
  4371. int height;
  4372. RenderSurface linkedDepthStencil;
  4373. RenderSurface linkedRenderTarget;
  4374. uint numViewports;
  4375. /* (readonly) */
  4376. Texture parentTexture;
  4377. RenderSurfaceUpdateMode updateMode;
  4378. /* (readonly) */
  4379. TextureUsage usage;
  4380. Array<Viewport> viewports;
  4381. /* (readonly) */
  4382. int width;
  4383. };
  4384. class RenderTargetInfo
  4385. {
  4386. // Properties:
  4387. bool enabled;
  4388. bool filtered;
  4389. uint format;
  4390. String name;
  4391. bool sRGB;
  4392. IntVector2 size;
  4393. RenderTargetSizeMode sizeMode;
  4394. String tag;
  4395. };
  4396. class Renderer
  4397. {
  4398. // Methods:
  4399. void DrawDebugGeometry(bool) const;
  4400. void ReloadShaders() const;
  4401. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4402. void SetDefaultRenderPath(XMLFile);
  4403. // Properties:
  4404. /* (readonly) */
  4405. ShortStringHash baseType;
  4406. /* (readonly) */
  4407. String category;
  4408. RenderPath defaultRenderPath;
  4409. /* (readonly) */
  4410. Zone defaultZone;
  4411. bool drawShadows;
  4412. bool dynamicInstancing;
  4413. bool hdrRendering;
  4414. int materialQuality;
  4415. int maxInstanceTriangles;
  4416. int maxOccluderTriangles;
  4417. int maxShadowCascades;
  4418. int maxShadowMaps;
  4419. int maxSortedInstances;
  4420. int minInstances;
  4421. /* (readonly) */
  4422. uint numBatches;
  4423. /* (readonly) */
  4424. Array<uint> numGeometries;
  4425. /* (readonly) */
  4426. Array<uint> numLights;
  4427. /* (readonly) */
  4428. Array<uint> numOccluders;
  4429. /* (readonly) */
  4430. uint numPrimitives;
  4431. /* (readonly) */
  4432. Array<uint> numShadowMaps;
  4433. uint numViewports;
  4434. /* (readonly) */
  4435. uint numViews;
  4436. float occluderSizeThreshold;
  4437. int occlusionBufferSize;
  4438. /* (readonly) */
  4439. int refs;
  4440. bool reuseShadowMaps;
  4441. int shadowMapSize;
  4442. int shadowQuality;
  4443. bool specularLighting;
  4444. int textureAnisotropy;
  4445. TextureFilterMode textureFilterMode;
  4446. int textureQuality;
  4447. /* (readonly) */
  4448. ShortStringHash type;
  4449. /* (readonly) */
  4450. String typeName;
  4451. Array<Viewport> viewports;
  4452. /* (readonly) */
  4453. int weakRefs;
  4454. };
  4455. class Resource
  4456. {
  4457. // Methods:
  4458. bool Load(File);
  4459. bool Save(File) const;
  4460. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4461. // Properties:
  4462. /* (readonly) */
  4463. ShortStringHash baseType;
  4464. /* (readonly) */
  4465. String category;
  4466. /* (readonly) */
  4467. uint memoryUse;
  4468. String name;
  4469. /* (readonly) */
  4470. int refs;
  4471. /* (readonly) */
  4472. ShortStringHash type;
  4473. /* (readonly) */
  4474. String typeName;
  4475. /* (readonly) */
  4476. uint useTimer;
  4477. /* (readonly) */
  4478. int weakRefs;
  4479. };
  4480. class ResourceCache
  4481. {
  4482. // Methods:
  4483. bool AddManualResource(Resource);
  4484. void AddPackageFile(PackageFile, uint = - 1);
  4485. bool AddResourceDir(const String&, uint = - 1);
  4486. bool Exists(const String&) const;
  4487. File GetFile(const String&);
  4488. String GetPreferredResourceDir(const String&) const;
  4489. Resource GetResource(ShortStringHash, const String&);
  4490. Resource GetResource(const String&, const String&);
  4491. String GetResourceFileName(const String&) const;
  4492. void ReleaseAllResources(bool = false);
  4493. void ReleaseResource(const String&, const String&, bool = false);
  4494. void ReleaseResources(ShortStringHash, bool = false);
  4495. void ReleaseResources(const String&, bool = false);
  4496. void ReleaseResources(const String&, const String&, bool = false);
  4497. bool ReloadResource(Resource);
  4498. void RemovePackageFile(PackageFile, bool = true, bool = false);
  4499. void RemovePackageFile(const String&, bool = true, bool = false);
  4500. void RemoveResourceDir(const String&);
  4501. String SanitateResourceDirName(const String&) const;
  4502. String SanitateResourceName(const String&) const;
  4503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4504. // Properties:
  4505. bool autoReloadResources;
  4506. /* (readonly) */
  4507. ShortStringHash baseType;
  4508. /* (readonly) */
  4509. String category;
  4510. Array<uint> memoryBudget;
  4511. /* (readonly) */
  4512. Array<uint> memoryUse;
  4513. /* (readonly) */
  4514. Array<PackageFile> packageFiles;
  4515. /* (readonly) */
  4516. int refs;
  4517. /* (readonly) */
  4518. Array<String> resourceDirs;
  4519. /* (readonly) */
  4520. bool seachPackagesFirst;
  4521. /* (writeonly) */
  4522. bool searchPackagesFirst;
  4523. /* (readonly) */
  4524. uint totalMemoryUse;
  4525. /* (readonly) */
  4526. ShortStringHash type;
  4527. /* (readonly) */
  4528. String typeName;
  4529. /* (readonly) */
  4530. int weakRefs;
  4531. };
  4532. class ResourceRef
  4533. {
  4534. // Properties:
  4535. String name;
  4536. ShortStringHash type;
  4537. };
  4538. class ResourceRefList
  4539. {
  4540. // Methods:
  4541. void Resize(uint);
  4542. // Properties:
  4543. /* (readonly) */
  4544. bool empty;
  4545. /* (readonly) */
  4546. uint length;
  4547. Array<String> names;
  4548. ShortStringHash type;
  4549. };
  4550. class RigidBody
  4551. {
  4552. // Methods:
  4553. void Activate();
  4554. void ApplyAttributes();
  4555. void ApplyForce(const Vector3&);
  4556. void ApplyForce(const Vector3&, const Vector3&);
  4557. void ApplyImpulse(const Vector3&);
  4558. void ApplyImpulse(const Vector3&, const Vector3&);
  4559. void ApplyTorque(const Vector3&);
  4560. void ApplyTorqueImpulse(const Vector3&);
  4561. void DrawDebugGeometry(DebugRenderer, bool);
  4562. Variant GetAttribute(const String&) const;
  4563. Variant GetAttributeDefault(const String&) const;
  4564. Vector3 GetVelocityAtPoint(const Vector3&) const;
  4565. bool Load(File, bool = false);
  4566. bool LoadXML(const XMLElement&, bool = false);
  4567. void MarkNetworkUpdate() const;
  4568. void ReAddBodyToWorld();
  4569. void Remove();
  4570. void RemoveInstanceDefault();
  4571. void ResetForces();
  4572. void ResetToDefault();
  4573. bool Save(File) const;
  4574. bool SaveXML(XMLElement&) const;
  4575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4576. bool SetAttribute(const String&, const Variant&);
  4577. void SetCollisionLayerAndMask(uint, uint);
  4578. void SetTransform(const Vector3&, const Quaternion&);
  4579. // Properties:
  4580. /* (readonly) */
  4581. bool active;
  4582. float angularDamping;
  4583. Vector3 angularFactor;
  4584. float angularRestThreshold;
  4585. Vector3 angularVelocity;
  4586. Vector3 anisotropicFriction;
  4587. /* (readonly) */
  4588. Array<Variant> attributeDefaults;
  4589. /* (readonly) */
  4590. Array<AttributeInfo> attributeInfos;
  4591. Array<Variant> attributes;
  4592. /* (readonly) */
  4593. ShortStringHash baseType;
  4594. /* (readonly) */
  4595. String category;
  4596. float ccdMotionThreshold;
  4597. float ccdRadius;
  4598. /* (readonly) */
  4599. Vector3 centerOfMass;
  4600. /* (readonly) */
  4601. Array<RigidBody> collidingBodies;
  4602. CollisionEventMode collisionEventMode;
  4603. uint collisionLayer;
  4604. uint collisionMask;
  4605. float contactProcessingThreshold;
  4606. bool enabled;
  4607. /* (readonly) */
  4608. bool enabledEffective;
  4609. float friction;
  4610. Vector3 gravityOverride;
  4611. /* (readonly) */
  4612. uint id;
  4613. bool kinematic;
  4614. float linearDamping;
  4615. Vector3 linearFactor;
  4616. float linearRestThreshold;
  4617. Vector3 linearVelocity;
  4618. float mass;
  4619. /* (readonly) */
  4620. Node node;
  4621. /* (readonly) */
  4622. uint numAttributes;
  4623. bool phantom;
  4624. Vector3 position;
  4625. /* (readonly) */
  4626. int refs;
  4627. float restitution;
  4628. float rollingFriction;
  4629. Quaternion rotation;
  4630. bool temporary;
  4631. /* (readonly) */
  4632. ShortStringHash type;
  4633. /* (readonly) */
  4634. String typeName;
  4635. bool useGravity;
  4636. /* (readonly) */
  4637. int weakRefs;
  4638. };
  4639. class Scene
  4640. {
  4641. // Methods:
  4642. void AddChild(Node);
  4643. void AddRequiredPackageFile(PackageFile);
  4644. void ApplyAttributes();
  4645. void Clear(bool = true, bool = true);
  4646. void ClearRequiredPackageFiles();
  4647. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  4648. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4649. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  4650. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  4651. Variant GetAttribute(const String&) const;
  4652. Variant GetAttributeDefault(const String&) const;
  4653. Node GetChild(const String&, bool = false) const;
  4654. Array<Node> GetChildren(bool = false) const;
  4655. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  4656. Array<Node> GetChildrenWithScript(bool = false) const;
  4657. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  4658. Component GetComponent(const String&) const;
  4659. Component GetComponent(uint);
  4660. Array<Component> GetComponents() const;
  4661. Array<Component> GetComponents(const String&, bool = false) const;
  4662. Node GetNode(uint);
  4663. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4664. ScriptObject GetScriptObject() const;
  4665. ScriptObject GetScriptObject(const String&) const;
  4666. bool HasComponent(const String&) const;
  4667. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4668. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4669. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4670. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4671. bool Load(File, bool = false);
  4672. bool LoadAsync(File);
  4673. bool LoadAsyncXML(File);
  4674. bool LoadXML(File);
  4675. bool LoadXML(const XMLElement&, bool = false);
  4676. Vector3 LocalToWorld(const Vector3&) const;
  4677. Vector3 LocalToWorld(const Vector4&) const;
  4678. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  4679. void Pitch(float, bool = false);
  4680. void RegisterVar(const String&);
  4681. void Remove();
  4682. void RemoveAllChildren();
  4683. void RemoveAllComponents();
  4684. void RemoveChild(Node);
  4685. void RemoveChildren(bool, bool, bool);
  4686. void RemoveComponent(Component);
  4687. void RemoveComponent(const String&);
  4688. void RemoveComponents(bool, bool);
  4689. void RemoveInstanceDefault();
  4690. void ResetToDefault();
  4691. void Roll(float, bool = false);
  4692. void Rotate(const Quaternion&, bool = false);
  4693. bool Save(File) const;
  4694. bool SaveXML(File);
  4695. bool SaveXML(XMLElement&) const;
  4696. void Scale(const Vector3&);
  4697. void Scale(float);
  4698. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4699. bool SetAttribute(const String&, const Variant&);
  4700. void SetScale(float);
  4701. void SetTransform(const Vector3&, const Quaternion&);
  4702. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  4703. void SetTransform(const Vector3&, const Quaternion&, float);
  4704. void SetWorldTransform(const Vector3&, const Quaternion&);
  4705. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  4706. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  4707. void StopAsyncLoading();
  4708. const String& GetVarName(ShortStringHash) const;
  4709. void Translate(const Vector3&);
  4710. void TranslateRelative(const Vector3&);
  4711. void UnregisterAllVars(const String&);
  4712. void UnregisterVar(const String&);
  4713. void Update(float);
  4714. Vector3 WorldToLocal(const Vector3&) const;
  4715. Vector3 WorldToLocal(const Vector4&) const;
  4716. void Yaw(float, bool = false);
  4717. // Properties:
  4718. /* (readonly) */
  4719. bool asyncLoading;
  4720. /* (readonly) */
  4721. float asyncProgress;
  4722. /* (readonly) */
  4723. Array<Variant> attributeDefaults;
  4724. /* (readonly) */
  4725. Array<AttributeInfo> attributeInfos;
  4726. Array<Variant> attributes;
  4727. /* (readonly) */
  4728. ShortStringHash baseType;
  4729. /* (readonly) */
  4730. String category;
  4731. /* (readonly) */
  4732. uint checksum;
  4733. /* (readonly) */
  4734. Array<Node> children;
  4735. /* (readonly) */
  4736. Array<Component> components;
  4737. /* (readonly) */
  4738. DebugRenderer debugRenderer;
  4739. Vector3 direction;
  4740. float elapsedTime;
  4741. /* (readonly) */
  4742. String fileName;
  4743. /* (readonly) */
  4744. uint id;
  4745. String name;
  4746. /* (readonly) */
  4747. uint numAllChildren;
  4748. /* (readonly) */
  4749. uint numAttributes;
  4750. /* (readonly) */
  4751. uint numChildren;
  4752. /* (readonly) */
  4753. uint numComponents;
  4754. /* (readonly) */
  4755. Octree octree;
  4756. Node parent;
  4757. /* (readonly) */
  4758. PhysicsWorld physicsWorld;
  4759. Vector3 position;
  4760. /* (readonly) */
  4761. int refs;
  4762. /* (readonly) */
  4763. Array<PackageFile> requiredPackageFiles;
  4764. /* (readonly) */
  4765. Vector3 right;
  4766. Quaternion rotation;
  4767. Vector3 scale;
  4768. /* (readonly) */
  4769. ScriptObject scriptObject;
  4770. float smoothingConstant;
  4771. float snapThreshold;
  4772. bool temporary;
  4773. float timeScale;
  4774. /* (readonly) */
  4775. Matrix3x4 transform;
  4776. /* (readonly) */
  4777. ShortStringHash type;
  4778. /* (readonly) */
  4779. String typeName;
  4780. /* (readonly) */
  4781. Vector3 up;
  4782. bool updateEnabled;
  4783. /* (readonly) */
  4784. VariantMap vars;
  4785. /* (readonly) */
  4786. int weakRefs;
  4787. Vector3 worldDirection;
  4788. Vector3 worldPosition;
  4789. /* (readonly) */
  4790. Vector3 worldRight;
  4791. Quaternion worldRotation;
  4792. Vector3 worldScale;
  4793. /* (readonly) */
  4794. Matrix3x4 worldTransform;
  4795. /* (readonly) */
  4796. Vector3 worldUp;
  4797. };
  4798. class Script
  4799. {
  4800. // Methods:
  4801. void DumpAPI(DumpMode = DOXYGEN);
  4802. bool Execute(const String&);
  4803. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4804. // Properties:
  4805. /* (readonly) */
  4806. ShortStringHash baseType;
  4807. /* (readonly) */
  4808. String category;
  4809. Scene defaultScene;
  4810. ScriptFile defaultScriptFile;
  4811. /* (readonly) */
  4812. int refs;
  4813. /* (readonly) */
  4814. ShortStringHash type;
  4815. /* (readonly) */
  4816. String typeName;
  4817. /* (readonly) */
  4818. int weakRefs;
  4819. };
  4820. class ScriptFile
  4821. {
  4822. // Methods:
  4823. void ClearDelayedExecute(const String& = String ( ));
  4824. void DelayedExecute(float, bool, const String&);
  4825. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  4826. bool Execute(const String&, const Array<Variant>);
  4827. bool Load(File);
  4828. bool Save(File) const;
  4829. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4830. // Properties:
  4831. /* (readonly) */
  4832. ShortStringHash baseType;
  4833. /* (readonly) */
  4834. String category;
  4835. /* (readonly) */
  4836. bool compiled;
  4837. /* (readonly) */
  4838. uint memoryUse;
  4839. String name;
  4840. /* (readonly) */
  4841. int refs;
  4842. /* (readonly) */
  4843. ShortStringHash type;
  4844. /* (readonly) */
  4845. String typeName;
  4846. /* (readonly) */
  4847. uint useTimer;
  4848. /* (readonly) */
  4849. int weakRefs;
  4850. };
  4851. class ScriptInstance
  4852. {
  4853. // Methods:
  4854. void ApplyAttributes();
  4855. void ClearDelayedExecute(const String& = String ( ));
  4856. bool CreateObject(ScriptFile, const String&);
  4857. void DelayedExecute(float, bool, const String&);
  4858. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  4859. void DrawDebugGeometry(DebugRenderer, bool);
  4860. bool Execute(const String&);
  4861. bool Execute(const String&, const Array<Variant>);
  4862. Variant GetAttribute(const String&) const;
  4863. Variant GetAttributeDefault(const String&) const;
  4864. bool Load(File, bool = false);
  4865. bool LoadXML(const XMLElement&, bool = false);
  4866. void MarkNetworkUpdate() const;
  4867. void Remove();
  4868. void RemoveInstanceDefault();
  4869. void ResetToDefault();
  4870. bool Save(File) const;
  4871. bool SaveXML(XMLElement&) const;
  4872. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4873. bool SetAttribute(const String&, const Variant&);
  4874. // Properties:
  4875. /* (readonly) */
  4876. Array<Variant> attributeDefaults;
  4877. /* (readonly) */
  4878. Array<AttributeInfo> attributeInfos;
  4879. Array<Variant> attributes;
  4880. /* (readonly) */
  4881. ShortStringHash baseType;
  4882. /* (readonly) */
  4883. String category;
  4884. String className;
  4885. bool enabled;
  4886. /* (readonly) */
  4887. bool enabledEffective;
  4888. int fixedUpdateFps;
  4889. /* (readonly) */
  4890. uint id;
  4891. /* (readonly) */
  4892. Node node;
  4893. /* (readonly) */
  4894. uint numAttributes;
  4895. /* (readonly) */
  4896. ScriptObject object;
  4897. /* (readonly) */
  4898. int refs;
  4899. ScriptFile scriptFile;
  4900. bool temporary;
  4901. /* (readonly) */
  4902. ShortStringHash type;
  4903. /* (readonly) */
  4904. String typeName;
  4905. /* (readonly) */
  4906. int weakRefs;
  4907. };
  4908. class ScriptObject
  4909. {
  4910. };
  4911. class ScrollBar
  4912. {
  4913. // Methods:
  4914. void AddChild(UIElement);
  4915. void ApplyAttributes();
  4916. void BringToFront();
  4917. void ChangeValue(float);
  4918. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4919. void DisableLayoutUpdate();
  4920. IntVector2 ElementToScreen(const IntVector2&);
  4921. void EnableLayoutUpdate();
  4922. uint FindChild(UIElement) const;
  4923. Variant GetAttribute(const String&) const;
  4924. Variant GetAttributeDefault(const String&) const;
  4925. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4926. UIElement GetChild(const String&, bool = false) const;
  4927. Array<UIElement> GetChildren(bool = false) const;
  4928. UIElement GetElementEventSender() const;
  4929. uint GetNumChildren(bool) const;
  4930. void InsertChild(uint, UIElement);
  4931. bool IsInside(IntVector2, bool);
  4932. bool IsInsideCombined(IntVector2, bool);
  4933. bool Load(File, bool = false);
  4934. bool LoadChildXML(XMLFile, XMLFile = null);
  4935. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4936. bool LoadXML(File);
  4937. bool LoadXML(XMLFile, XMLFile);
  4938. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4939. bool LoadXML(const XMLElement&, bool = false);
  4940. void Remove();
  4941. void RemoveAllChildren();
  4942. void RemoveChild(UIElement, uint = 0);
  4943. void RemoveChild(uint);
  4944. void RemoveInstanceDefault();
  4945. void ResetToDefault();
  4946. bool Save(File) const;
  4947. bool SaveXML(File);
  4948. bool SaveXML(XMLElement&) const;
  4949. IntVector2 ScreenToElement(const IntVector2&);
  4950. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4951. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4952. bool SetAttribute(const String&, const Variant&);
  4953. void SetFixedHeight(int);
  4954. void SetFixedSize(int, int);
  4955. void SetFixedWidth(int);
  4956. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4957. void SetMaxSize(int, int);
  4958. void SetMinSize(int, int);
  4959. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4960. void SetPosition(int, int);
  4961. void SetSize(int, int);
  4962. bool SetStyle(const String&, XMLFile = null);
  4963. bool SetStyle(const XMLElement&);
  4964. bool SetStyleAuto(XMLFile = null);
  4965. void StepBack();
  4966. void StepForward();
  4967. void UpdateLayout();
  4968. const Variant& GetVar(const ShortStringHash&);
  4969. // Properties:
  4970. /* (readonly) */
  4971. Array<Variant> attributeDefaults;
  4972. /* (readonly) */
  4973. Array<AttributeInfo> attributeInfos;
  4974. Array<Variant> attributes;
  4975. /* (readonly) */
  4976. Button backButton;
  4977. /* (readonly) */
  4978. ShortStringHash baseType;
  4979. bool bringToBack;
  4980. bool bringToFront;
  4981. /* (readonly) */
  4982. String category;
  4983. /* (readonly) */
  4984. IntVector2 childOffset;
  4985. /* (readonly) */
  4986. Array<UIElement> children;
  4987. IntRect clipBorder;
  4988. bool clipChildren;
  4989. /* (writeonly) */
  4990. Color color;
  4991. /* (readonly) */
  4992. bool colorGradient;
  4993. Array<Color> colors;
  4994. /* (readonly) */
  4995. IntRect combinedScreenRect;
  4996. XMLFile defaultStyle;
  4997. /* (readonly) */
  4998. float derivedOpacity;
  4999. uint dragDropMode;
  5000. bool editable;
  5001. /* (readonly) */
  5002. float effectiveScrollStep;
  5003. bool elementEventSender;
  5004. bool enabled;
  5005. /* (readonly) */
  5006. bool fixedHeight;
  5007. /* (readonly) */
  5008. bool fixedSize;
  5009. /* (readonly) */
  5010. bool fixedWidth;
  5011. bool focus;
  5012. FocusMode focusMode;
  5013. /* (readonly) */
  5014. Button forwardButton;
  5015. int height;
  5016. HorizontalAlignment horizontalAlignment;
  5017. /* (readonly) */
  5018. bool hovering;
  5019. int indent;
  5020. int indentSpacing;
  5021. /* (readonly) */
  5022. int indentWidth;
  5023. bool internal;
  5024. IntRect layoutBorder;
  5025. LayoutMode layoutMode;
  5026. int layoutSpacing;
  5027. int maxHeight;
  5028. IntVector2 maxSize;
  5029. int maxWidth;
  5030. int minHeight;
  5031. IntVector2 minSize;
  5032. int minWidth;
  5033. String name;
  5034. /* (readonly) */
  5035. uint numAllChildren;
  5036. /* (readonly) */
  5037. uint numAttributes;
  5038. /* (readonly) */
  5039. uint numChildren;
  5040. float opacity;
  5041. Orientation orientation;
  5042. UIElement parent;
  5043. IntVector2 position;
  5044. int priority;
  5045. float range;
  5046. /* (readonly) */
  5047. int refs;
  5048. /* (readonly) */
  5049. UIElement root;
  5050. /* (readonly) */
  5051. IntVector2 screenPosition;
  5052. float scrollStep;
  5053. bool selected;
  5054. IntVector2 size;
  5055. /* (readonly) */
  5056. Slider slider;
  5057. bool sortChildren;
  5058. float stepFactor;
  5059. String style;
  5060. bool temporary;
  5061. TraversalMode traversalMode;
  5062. /* (readonly) */
  5063. ShortStringHash type;
  5064. /* (readonly) */
  5065. String typeName;
  5066. bool useDerivedOpacity;
  5067. float value;
  5068. /* (readonly) */
  5069. VariantMap vars;
  5070. VerticalAlignment verticalAlignment;
  5071. bool visible;
  5072. /* (readonly) */
  5073. int weakRefs;
  5074. int width;
  5075. };
  5076. class ScrollView
  5077. {
  5078. // Methods:
  5079. void AddChild(UIElement);
  5080. void ApplyAttributes();
  5081. void BringToFront();
  5082. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5083. void DisableLayoutUpdate();
  5084. IntVector2 ElementToScreen(const IntVector2&);
  5085. void EnableLayoutUpdate();
  5086. uint FindChild(UIElement) const;
  5087. Variant GetAttribute(const String&) const;
  5088. Variant GetAttributeDefault(const String&) const;
  5089. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5090. UIElement GetChild(const String&, bool = false) const;
  5091. Array<UIElement> GetChildren(bool = false) const;
  5092. UIElement GetElementEventSender() const;
  5093. uint GetNumChildren(bool) const;
  5094. void InsertChild(uint, UIElement);
  5095. bool IsInside(IntVector2, bool);
  5096. bool IsInsideCombined(IntVector2, bool);
  5097. bool Load(File, bool = false);
  5098. bool LoadChildXML(XMLFile, XMLFile = null);
  5099. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5100. bool LoadXML(File);
  5101. bool LoadXML(XMLFile, XMLFile);
  5102. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5103. bool LoadXML(const XMLElement&, bool = false);
  5104. void Remove();
  5105. void RemoveAllChildren();
  5106. void RemoveChild(UIElement, uint = 0);
  5107. void RemoveChild(uint);
  5108. void RemoveInstanceDefault();
  5109. void ResetToDefault();
  5110. bool Save(File) const;
  5111. bool SaveXML(File);
  5112. bool SaveXML(XMLElement&) const;
  5113. IntVector2 ScreenToElement(const IntVector2&);
  5114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5115. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5116. bool SetAttribute(const String&, const Variant&);
  5117. void SetFixedHeight(int);
  5118. void SetFixedSize(int, int);
  5119. void SetFixedWidth(int);
  5120. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5121. void SetMaxSize(int, int);
  5122. void SetMinSize(int, int);
  5123. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5124. void SetPosition(int, int);
  5125. void SetScrollBarsVisible(bool, bool);
  5126. void SetSize(int, int);
  5127. bool SetStyle(const String&, XMLFile = null);
  5128. bool SetStyle(const XMLElement&);
  5129. bool SetStyleAuto(XMLFile = null);
  5130. void SetViewPosition(int, int);
  5131. void UpdateLayout();
  5132. const Variant& GetVar(const ShortStringHash&);
  5133. // Properties:
  5134. /* (readonly) */
  5135. Array<Variant> attributeDefaults;
  5136. /* (readonly) */
  5137. Array<AttributeInfo> attributeInfos;
  5138. Array<Variant> attributes;
  5139. /* (readonly) */
  5140. ShortStringHash baseType;
  5141. bool bringToBack;
  5142. bool bringToFront;
  5143. /* (readonly) */
  5144. String category;
  5145. /* (readonly) */
  5146. IntVector2 childOffset;
  5147. /* (readonly) */
  5148. Array<UIElement> children;
  5149. IntRect clipBorder;
  5150. bool clipChildren;
  5151. /* (writeonly) */
  5152. Color color;
  5153. /* (readonly) */
  5154. bool colorGradient;
  5155. Array<Color> colors;
  5156. /* (readonly) */
  5157. IntRect combinedScreenRect;
  5158. UIElement contentElement;
  5159. XMLFile defaultStyle;
  5160. /* (readonly) */
  5161. float derivedOpacity;
  5162. uint dragDropMode;
  5163. bool editable;
  5164. bool elementEventSender;
  5165. bool enabled;
  5166. /* (readonly) */
  5167. bool fixedHeight;
  5168. /* (readonly) */
  5169. bool fixedSize;
  5170. /* (readonly) */
  5171. bool fixedWidth;
  5172. bool focus;
  5173. FocusMode focusMode;
  5174. int height;
  5175. HorizontalAlignment horizontalAlignment;
  5176. /* (readonly) */
  5177. ScrollBar horizontalScrollBar;
  5178. /* (readonly) */
  5179. bool hovering;
  5180. int indent;
  5181. int indentSpacing;
  5182. /* (readonly) */
  5183. int indentWidth;
  5184. bool internal;
  5185. IntRect layoutBorder;
  5186. LayoutMode layoutMode;
  5187. int layoutSpacing;
  5188. int maxHeight;
  5189. IntVector2 maxSize;
  5190. int maxWidth;
  5191. int minHeight;
  5192. IntVector2 minSize;
  5193. int minWidth;
  5194. String name;
  5195. /* (readonly) */
  5196. uint numAllChildren;
  5197. /* (readonly) */
  5198. uint numAttributes;
  5199. /* (readonly) */
  5200. uint numChildren;
  5201. float opacity;
  5202. float pageStep;
  5203. UIElement parent;
  5204. IntVector2 position;
  5205. int priority;
  5206. /* (readonly) */
  5207. int refs;
  5208. /* (readonly) */
  5209. UIElement root;
  5210. /* (readonly) */
  5211. IntVector2 screenPosition;
  5212. bool scrollBarsAutoVisible;
  5213. /* (readonly) */
  5214. BorderImage scrollPanel;
  5215. float scrollStep;
  5216. bool selected;
  5217. IntVector2 size;
  5218. bool sortChildren;
  5219. String style;
  5220. bool temporary;
  5221. TraversalMode traversalMode;
  5222. /* (readonly) */
  5223. ShortStringHash type;
  5224. /* (readonly) */
  5225. String typeName;
  5226. bool useDerivedOpacity;
  5227. /* (readonly) */
  5228. VariantMap vars;
  5229. VerticalAlignment verticalAlignment;
  5230. /* (readonly) */
  5231. ScrollBar verticalScrollBar;
  5232. IntVector2 viewPosition;
  5233. bool visible;
  5234. /* (readonly) */
  5235. int weakRefs;
  5236. int width;
  5237. };
  5238. class Serializable
  5239. {
  5240. // Methods:
  5241. void ApplyAttributes();
  5242. Variant GetAttribute(const String&) const;
  5243. Variant GetAttributeDefault(const String&) const;
  5244. bool Load(File, bool = false);
  5245. bool LoadXML(const XMLElement&, bool = false);
  5246. void RemoveInstanceDefault();
  5247. void ResetToDefault();
  5248. bool Save(File) const;
  5249. bool SaveXML(XMLElement&) const;
  5250. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5251. bool SetAttribute(const String&, const Variant&);
  5252. // Properties:
  5253. /* (readonly) */
  5254. Array<Variant> attributeDefaults;
  5255. /* (readonly) */
  5256. Array<AttributeInfo> attributeInfos;
  5257. Array<Variant> attributes;
  5258. /* (readonly) */
  5259. ShortStringHash baseType;
  5260. /* (readonly) */
  5261. String category;
  5262. /* (readonly) */
  5263. uint numAttributes;
  5264. /* (readonly) */
  5265. int refs;
  5266. bool temporary;
  5267. /* (readonly) */
  5268. ShortStringHash type;
  5269. /* (readonly) */
  5270. String typeName;
  5271. /* (readonly) */
  5272. int weakRefs;
  5273. };
  5274. class Serializer
  5275. {
  5276. // Methods:
  5277. uint Write(Array<uint8>);
  5278. bool WriteBool(bool);
  5279. bool WriteBoundingBox(const BoundingBox&);
  5280. bool WriteByte(int8);
  5281. bool WriteColor(const Color&);
  5282. bool WriteFileID(const String&);
  5283. bool WriteFloat(float);
  5284. bool WriteInt(int);
  5285. bool WriteIntRect(const IntRect&);
  5286. bool WriteIntVector2(const IntVector2&);
  5287. bool WriteLine(const String&);
  5288. bool WriteNetID(uint);
  5289. bool WritePackedQuaternion(const Quaternion&);
  5290. bool WritePackedVector3(const Vector3&, float);
  5291. bool WriteQuaternion(const Quaternion&);
  5292. bool WriteShort(int16);
  5293. bool WriteShortStringHash(const ShortStringHash&);
  5294. bool WriteString(const String&);
  5295. bool WriteStringHash(const StringHash&);
  5296. bool WriteUByte(uint8);
  5297. bool WriteUInt(uint);
  5298. bool WriteUShort(uint16);
  5299. bool WriteVLE(uint);
  5300. bool WriteVariant(const Variant&);
  5301. bool WriteVariantMap(const VariantMap&);
  5302. bool WriteVector2(const Vector2&);
  5303. bool WriteVector3(const Vector3&);
  5304. bool WriteVector4(const Vector4&);
  5305. };
  5306. class ShortStringHash
  5307. {
  5308. // Methods:
  5309. String ToString() const;
  5310. // Properties:
  5311. /* (readonly) */
  5312. uint16 value;
  5313. };
  5314. class Skeleton
  5315. {
  5316. // Methods:
  5317. Bone GetBone(const String&) const;
  5318. void Reset();
  5319. // Properties:
  5320. /* (readonly) */
  5321. Array<Bone> bones;
  5322. /* (readonly) */
  5323. uint numBones;
  5324. /* (readonly) */
  5325. Bone rootBone;
  5326. };
  5327. class Skybox
  5328. {
  5329. // Methods:
  5330. void ApplyAttributes();
  5331. void ApplyMaterialList(const String& = String ( ));
  5332. void DrawDebugGeometry(DebugRenderer, bool);
  5333. Variant GetAttribute(const String&) const;
  5334. Variant GetAttributeDefault(const String&) const;
  5335. bool Load(File, bool = false);
  5336. bool LoadXML(const XMLElement&, bool = false);
  5337. void MarkNetworkUpdate() const;
  5338. void Remove();
  5339. void RemoveInstanceDefault();
  5340. void ResetToDefault();
  5341. bool Save(File) const;
  5342. bool SaveXML(XMLElement&) const;
  5343. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5344. bool SetAttribute(const String&, const Variant&);
  5345. // Properties:
  5346. /* (readonly) */
  5347. Array<Variant> attributeDefaults;
  5348. /* (readonly) */
  5349. Array<AttributeInfo> attributeInfos;
  5350. Array<Variant> attributes;
  5351. /* (readonly) */
  5352. ShortStringHash baseType;
  5353. /* (readonly) */
  5354. BoundingBox boundingBox;
  5355. bool castShadows;
  5356. /* (readonly) */
  5357. String category;
  5358. float drawDistance;
  5359. bool enabled;
  5360. /* (readonly) */
  5361. bool enabledEffective;
  5362. /* (readonly) */
  5363. uint id;
  5364. /* (readonly) */
  5365. bool inView;
  5366. uint lightMask;
  5367. float lodBias;
  5368. /* (writeonly) */
  5369. Material material;
  5370. Array<Material> materials;
  5371. uint maxLights;
  5372. Model model;
  5373. /* (readonly) */
  5374. Node node;
  5375. /* (readonly) */
  5376. uint numAttributes;
  5377. /* (readonly) */
  5378. uint numGeometries;
  5379. bool occludee;
  5380. bool occluder;
  5381. /* (readonly) */
  5382. int refs;
  5383. float shadowDistance;
  5384. uint shadowMask;
  5385. bool temporary;
  5386. /* (readonly) */
  5387. ShortStringHash type;
  5388. /* (readonly) */
  5389. String typeName;
  5390. uint viewMask;
  5391. /* (readonly) */
  5392. int weakRefs;
  5393. /* (readonly) */
  5394. BoundingBox worldBoundingBox;
  5395. /* (readonly) */
  5396. Zone zone;
  5397. uint zoneMask;
  5398. };
  5399. class Slider
  5400. {
  5401. // Methods:
  5402. void AddChild(UIElement);
  5403. void ApplyAttributes();
  5404. void BringToFront();
  5405. void ChangeValue(float);
  5406. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5407. void DisableLayoutUpdate();
  5408. IntVector2 ElementToScreen(const IntVector2&);
  5409. void EnableLayoutUpdate();
  5410. uint FindChild(UIElement) const;
  5411. Variant GetAttribute(const String&) const;
  5412. Variant GetAttributeDefault(const String&) const;
  5413. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5414. UIElement GetChild(const String&, bool = false) const;
  5415. Array<UIElement> GetChildren(bool = false) const;
  5416. UIElement GetElementEventSender() const;
  5417. uint GetNumChildren(bool) const;
  5418. void InsertChild(uint, UIElement);
  5419. bool IsInside(IntVector2, bool);
  5420. bool IsInsideCombined(IntVector2, bool);
  5421. bool Load(File, bool = false);
  5422. bool LoadChildXML(XMLFile, XMLFile = null);
  5423. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5424. bool LoadXML(File);
  5425. bool LoadXML(XMLFile, XMLFile);
  5426. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5427. bool LoadXML(const XMLElement&, bool = false);
  5428. void Remove();
  5429. void RemoveAllChildren();
  5430. void RemoveChild(UIElement, uint = 0);
  5431. void RemoveChild(uint);
  5432. void RemoveInstanceDefault();
  5433. void ResetToDefault();
  5434. bool Save(File) const;
  5435. bool SaveXML(File);
  5436. bool SaveXML(XMLElement&) const;
  5437. IntVector2 ScreenToElement(const IntVector2&);
  5438. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5439. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5440. bool SetAttribute(const String&, const Variant&);
  5441. void SetFixedHeight(int);
  5442. void SetFixedSize(int, int);
  5443. void SetFixedWidth(int);
  5444. void SetFullImageRect();
  5445. void SetHoverOffset(int, int);
  5446. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5447. void SetMaxSize(int, int);
  5448. void SetMinSize(int, int);
  5449. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5450. void SetPosition(int, int);
  5451. void SetSize(int, int);
  5452. bool SetStyle(const String&, XMLFile = null);
  5453. bool SetStyle(const XMLElement&);
  5454. bool SetStyleAuto(XMLFile = null);
  5455. void UpdateLayout();
  5456. const Variant& GetVar(const ShortStringHash&);
  5457. // Properties:
  5458. /* (readonly) */
  5459. Array<Variant> attributeDefaults;
  5460. /* (readonly) */
  5461. Array<AttributeInfo> attributeInfos;
  5462. Array<Variant> attributes;
  5463. /* (readonly) */
  5464. ShortStringHash baseType;
  5465. BlendMode blendMode;
  5466. IntRect border;
  5467. bool bringToBack;
  5468. bool bringToFront;
  5469. /* (readonly) */
  5470. String category;
  5471. /* (readonly) */
  5472. IntVector2 childOffset;
  5473. /* (readonly) */
  5474. Array<UIElement> children;
  5475. IntRect clipBorder;
  5476. bool clipChildren;
  5477. /* (writeonly) */
  5478. Color color;
  5479. /* (readonly) */
  5480. bool colorGradient;
  5481. Array<Color> colors;
  5482. /* (readonly) */
  5483. IntRect combinedScreenRect;
  5484. XMLFile defaultStyle;
  5485. /* (readonly) */
  5486. float derivedOpacity;
  5487. uint dragDropMode;
  5488. bool editable;
  5489. bool elementEventSender;
  5490. bool enabled;
  5491. /* (readonly) */
  5492. bool fixedHeight;
  5493. /* (readonly) */
  5494. bool fixedSize;
  5495. /* (readonly) */
  5496. bool fixedWidth;
  5497. bool focus;
  5498. FocusMode focusMode;
  5499. int height;
  5500. HorizontalAlignment horizontalAlignment;
  5501. IntVector2 hoverOffset;
  5502. /* (readonly) */
  5503. bool hovering;
  5504. IntRect imageRect;
  5505. int indent;
  5506. int indentSpacing;
  5507. /* (readonly) */
  5508. int indentWidth;
  5509. bool internal;
  5510. /* (readonly) */
  5511. BorderImage knob;
  5512. IntRect layoutBorder;
  5513. LayoutMode layoutMode;
  5514. int layoutSpacing;
  5515. int maxHeight;
  5516. IntVector2 maxSize;
  5517. int maxWidth;
  5518. int minHeight;
  5519. IntVector2 minSize;
  5520. int minWidth;
  5521. String name;
  5522. /* (readonly) */
  5523. uint numAllChildren;
  5524. /* (readonly) */
  5525. uint numAttributes;
  5526. /* (readonly) */
  5527. uint numChildren;
  5528. float opacity;
  5529. Orientation orientation;
  5530. UIElement parent;
  5531. IntVector2 position;
  5532. int priority;
  5533. float range;
  5534. /* (readonly) */
  5535. int refs;
  5536. float repeatRate;
  5537. /* (readonly) */
  5538. UIElement root;
  5539. /* (readonly) */
  5540. IntVector2 screenPosition;
  5541. bool selected;
  5542. IntVector2 size;
  5543. bool sortChildren;
  5544. String style;
  5545. bool temporary;
  5546. Texture texture;
  5547. bool tiled;
  5548. TraversalMode traversalMode;
  5549. /* (readonly) */
  5550. ShortStringHash type;
  5551. /* (readonly) */
  5552. String typeName;
  5553. bool useDerivedOpacity;
  5554. float value;
  5555. /* (readonly) */
  5556. VariantMap vars;
  5557. VerticalAlignment verticalAlignment;
  5558. bool visible;
  5559. /* (readonly) */
  5560. int weakRefs;
  5561. int width;
  5562. };
  5563. class SmoothedTransform
  5564. {
  5565. // Methods:
  5566. void ApplyAttributes();
  5567. void DrawDebugGeometry(DebugRenderer, bool);
  5568. Variant GetAttribute(const String&) const;
  5569. Variant GetAttributeDefault(const String&) const;
  5570. bool Load(File, bool = false);
  5571. bool LoadXML(const XMLElement&, bool = false);
  5572. void MarkNetworkUpdate() const;
  5573. void Remove();
  5574. void RemoveInstanceDefault();
  5575. void ResetToDefault();
  5576. bool Save(File) const;
  5577. bool SaveXML(XMLElement&) const;
  5578. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5579. bool SetAttribute(const String&, const Variant&);
  5580. void Update(float, float);
  5581. // Properties:
  5582. /* (readonly) */
  5583. Array<Variant> attributeDefaults;
  5584. /* (readonly) */
  5585. Array<AttributeInfo> attributeInfos;
  5586. Array<Variant> attributes;
  5587. /* (readonly) */
  5588. ShortStringHash baseType;
  5589. /* (readonly) */
  5590. String category;
  5591. bool enabled;
  5592. /* (readonly) */
  5593. bool enabledEffective;
  5594. /* (readonly) */
  5595. uint id;
  5596. /* (readonly) */
  5597. bool inProgress;
  5598. /* (readonly) */
  5599. Node node;
  5600. /* (readonly) */
  5601. uint numAttributes;
  5602. /* (readonly) */
  5603. int refs;
  5604. Vector3 targetPosition;
  5605. Quaternion targetRotation;
  5606. Vector3 targetWorldPosition;
  5607. Quaternion targetWorldRotation;
  5608. bool temporary;
  5609. /* (readonly) */
  5610. ShortStringHash type;
  5611. /* (readonly) */
  5612. String typeName;
  5613. /* (readonly) */
  5614. int weakRefs;
  5615. };
  5616. class Sound
  5617. {
  5618. // Methods:
  5619. bool Load(File);
  5620. bool Save(File) const;
  5621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5622. // Properties:
  5623. /* (readonly) */
  5624. ShortStringHash baseType;
  5625. /* (readonly) */
  5626. String category;
  5627. /* (readonly) */
  5628. bool compressed;
  5629. /* (readonly) */
  5630. float frequency;
  5631. /* (readonly) */
  5632. float length;
  5633. bool looped;
  5634. /* (readonly) */
  5635. uint memoryUse;
  5636. String name;
  5637. /* (readonly) */
  5638. int refs;
  5639. /* (readonly) */
  5640. uint sampleSize;
  5641. /* (readonly) */
  5642. bool sixteenBit;
  5643. /* (readonly) */
  5644. bool stereo;
  5645. /* (readonly) */
  5646. ShortStringHash type;
  5647. /* (readonly) */
  5648. String typeName;
  5649. /* (readonly) */
  5650. uint useTimer;
  5651. /* (readonly) */
  5652. int weakRefs;
  5653. };
  5654. class SoundListener
  5655. {
  5656. // Methods:
  5657. void ApplyAttributes();
  5658. void DrawDebugGeometry(DebugRenderer, bool);
  5659. Variant GetAttribute(const String&) const;
  5660. Variant GetAttributeDefault(const String&) const;
  5661. bool Load(File, bool = false);
  5662. bool LoadXML(const XMLElement&, bool = false);
  5663. void MarkNetworkUpdate() const;
  5664. void Remove();
  5665. void RemoveInstanceDefault();
  5666. void ResetToDefault();
  5667. bool Save(File) const;
  5668. bool SaveXML(XMLElement&) const;
  5669. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5670. bool SetAttribute(const String&, const Variant&);
  5671. // Properties:
  5672. /* (readonly) */
  5673. Array<Variant> attributeDefaults;
  5674. /* (readonly) */
  5675. Array<AttributeInfo> attributeInfos;
  5676. Array<Variant> attributes;
  5677. /* (readonly) */
  5678. ShortStringHash baseType;
  5679. /* (readonly) */
  5680. String category;
  5681. bool enabled;
  5682. /* (readonly) */
  5683. bool enabledEffective;
  5684. /* (readonly) */
  5685. uint id;
  5686. /* (readonly) */
  5687. Node node;
  5688. /* (readonly) */
  5689. uint numAttributes;
  5690. /* (readonly) */
  5691. int refs;
  5692. bool temporary;
  5693. /* (readonly) */
  5694. ShortStringHash type;
  5695. /* (readonly) */
  5696. String typeName;
  5697. /* (readonly) */
  5698. int weakRefs;
  5699. };
  5700. class SoundSource
  5701. {
  5702. // Methods:
  5703. void ApplyAttributes();
  5704. void DrawDebugGeometry(DebugRenderer, bool);
  5705. Variant GetAttribute(const String&) const;
  5706. Variant GetAttributeDefault(const String&) const;
  5707. bool Load(File, bool = false);
  5708. bool LoadXML(const XMLElement&, bool = false);
  5709. void MarkNetworkUpdate() const;
  5710. void Play(Sound);
  5711. void Play(Sound, float);
  5712. void Play(Sound, float, float);
  5713. void Play(Sound, float, float, float);
  5714. void Remove();
  5715. void RemoveInstanceDefault();
  5716. void ResetToDefault();
  5717. bool Save(File) const;
  5718. bool SaveXML(XMLElement&) const;
  5719. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5720. bool SetAttribute(const String&, const Variant&);
  5721. void Stop();
  5722. // Properties:
  5723. /* (readonly) */
  5724. float attenuation;
  5725. /* (readonly) */
  5726. Array<Variant> attributeDefaults;
  5727. /* (readonly) */
  5728. Array<AttributeInfo> attributeInfos;
  5729. Array<Variant> attributes;
  5730. bool autoRemove;
  5731. /* (readonly) */
  5732. ShortStringHash baseType;
  5733. /* (readonly) */
  5734. String category;
  5735. bool enabled;
  5736. /* (readonly) */
  5737. bool enabledEffective;
  5738. float frequency;
  5739. float gain;
  5740. /* (readonly) */
  5741. uint id;
  5742. /* (readonly) */
  5743. Node node;
  5744. /* (readonly) */
  5745. uint numAttributes;
  5746. float panning;
  5747. /* (readonly) */
  5748. bool playing;
  5749. /* (readonly) */
  5750. int refs;
  5751. /* (readonly) */
  5752. Sound sound;
  5753. SoundType soundType;
  5754. bool temporary;
  5755. /* (readonly) */
  5756. float timePosition;
  5757. /* (readonly) */
  5758. ShortStringHash type;
  5759. /* (readonly) */
  5760. String typeName;
  5761. /* (readonly) */
  5762. int weakRefs;
  5763. };
  5764. class SoundSource3D
  5765. {
  5766. // Methods:
  5767. void ApplyAttributes();
  5768. void DrawDebugGeometry(DebugRenderer, bool);
  5769. Variant GetAttribute(const String&) const;
  5770. Variant GetAttributeDefault(const String&) const;
  5771. bool Load(File, bool = false);
  5772. bool LoadXML(const XMLElement&, bool = false);
  5773. void MarkNetworkUpdate() const;
  5774. void Play(Sound);
  5775. void Play(Sound, float);
  5776. void Play(Sound, float, float);
  5777. void Play(Sound, float, float, float);
  5778. void Remove();
  5779. void RemoveInstanceDefault();
  5780. void ResetToDefault();
  5781. bool Save(File) const;
  5782. bool SaveXML(XMLElement&) const;
  5783. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5784. void SetAngleAttenuation(float, float);
  5785. bool SetAttribute(const String&, const Variant&);
  5786. void SetDistanceAttenuation(float, float, float);
  5787. void Stop();
  5788. // Properties:
  5789. /* (readonly) */
  5790. float attenuation;
  5791. /* (readonly) */
  5792. Array<Variant> attributeDefaults;
  5793. /* (readonly) */
  5794. Array<AttributeInfo> attributeInfos;
  5795. Array<Variant> attributes;
  5796. bool autoRemove;
  5797. /* (readonly) */
  5798. ShortStringHash baseType;
  5799. /* (readonly) */
  5800. String category;
  5801. bool enabled;
  5802. /* (readonly) */
  5803. bool enabledEffective;
  5804. float farDistance;
  5805. float frequency;
  5806. float gain;
  5807. /* (readonly) */
  5808. uint id;
  5809. float innerAngle;
  5810. float nearDistance;
  5811. /* (readonly) */
  5812. Node node;
  5813. /* (readonly) */
  5814. uint numAttributes;
  5815. float outerAngle;
  5816. float panning;
  5817. /* (readonly) */
  5818. bool playing;
  5819. /* (readonly) */
  5820. int refs;
  5821. float rolloffFactor;
  5822. /* (readonly) */
  5823. Sound sound;
  5824. SoundType soundType;
  5825. bool temporary;
  5826. /* (readonly) */
  5827. float timePosition;
  5828. /* (readonly) */
  5829. ShortStringHash type;
  5830. /* (readonly) */
  5831. String typeName;
  5832. /* (readonly) */
  5833. int weakRefs;
  5834. };
  5835. class Sphere
  5836. {
  5837. // Methods:
  5838. void Clear();
  5839. void Define(const BoundingBox&);
  5840. void Define(const Frustum&);
  5841. void Define(const Polyhedron&);
  5842. void Define(const Sphere&);
  5843. void Define(const Vector3&, float);
  5844. float Distance(const Vector3&) const;
  5845. Intersection IsInside(const BoundingBox&) const;
  5846. Intersection IsInside(const Sphere&) const;
  5847. Intersection IsInside(const Vector3&) const;
  5848. void Merge(const BoundingBox&);
  5849. void Merge(const Frustum&);
  5850. void Merge(const Sphere&);
  5851. void Merge(const Vector3&);
  5852. // Properties:
  5853. Vector3 center;
  5854. bool defined;
  5855. float radius;
  5856. };
  5857. class Spline
  5858. {
  5859. // Methods:
  5860. void ApplyAttributes();
  5861. Variant GetAttribute(const String&) const;
  5862. Variant GetAttributeDefault(const String&) const;
  5863. Vector3 GetPoint(float) const;
  5864. bool Load(File, bool = false);
  5865. bool LoadXML(const XMLElement&, bool = false);
  5866. void MarkNetworkUpdate() const;
  5867. void Move(float);
  5868. void Pop();
  5869. void Push(const Vector3&);
  5870. void Remove();
  5871. void RemoveInstanceDefault();
  5872. void Reset();
  5873. void ResetToDefault();
  5874. bool Save(File) const;
  5875. bool SaveXML(XMLElement&) const;
  5876. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5877. bool SetAttribute(const String&, const Variant&);
  5878. // Properties:
  5879. /* (readonly) */
  5880. Array<Variant> attributeDefaults;
  5881. /* (readonly) */
  5882. Array<AttributeInfo> attributeInfos;
  5883. Array<Variant> attributes;
  5884. /* (readonly) */
  5885. ShortStringHash baseType;
  5886. /* (readonly) */
  5887. String category;
  5888. Array<Vector3> controlPoints;
  5889. bool enabled;
  5890. /* (readonly) */
  5891. bool enabledEffective;
  5892. /* (readonly) */
  5893. bool finished;
  5894. /* (readonly) */
  5895. uint id;
  5896. InterpolationMode interpolationMode;
  5897. /* (readonly) */
  5898. Node node;
  5899. /* (readonly) */
  5900. uint numAttributes;
  5901. Vector3 position;
  5902. /* (readonly) */
  5903. int refs;
  5904. float speed;
  5905. bool temporary;
  5906. /* (readonly) */
  5907. ShortStringHash type;
  5908. /* (readonly) */
  5909. String typeName;
  5910. /* (readonly) */
  5911. int weakRefs;
  5912. };
  5913. class Sprite
  5914. {
  5915. // Methods:
  5916. void AddChild(UIElement);
  5917. void ApplyAttributes();
  5918. void BringToFront();
  5919. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5920. uint FindChild(UIElement) const;
  5921. Variant GetAttribute(const String&) const;
  5922. Variant GetAttributeDefault(const String&) const;
  5923. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5924. UIElement GetChild(const String&, bool = false) const;
  5925. Array<UIElement> GetChildren(bool = false) const;
  5926. UIElement GetElementEventSender() const;
  5927. uint GetNumChildren(bool) const;
  5928. void InsertChild(uint, UIElement);
  5929. bool Load(File, bool = false);
  5930. bool LoadChildXML(XMLFile, XMLFile = null);
  5931. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5932. bool LoadXML(File);
  5933. bool LoadXML(XMLFile, XMLFile);
  5934. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5935. bool LoadXML(const XMLElement&, bool = false);
  5936. void Remove();
  5937. void RemoveAllChildren();
  5938. void RemoveChild(UIElement, uint = 0);
  5939. void RemoveChild(uint);
  5940. void RemoveInstanceDefault();
  5941. void ResetToDefault();
  5942. bool Save(File) const;
  5943. bool SaveXML(File);
  5944. bool SaveXML(XMLElement&) const;
  5945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5946. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5947. bool SetAttribute(const String&, const Variant&);
  5948. void SetFixedHeight(int);
  5949. void SetFixedSize(int, int);
  5950. void SetFixedWidth(int);
  5951. void SetFullImageRect();
  5952. void SetHotSpot(int, int);
  5953. void SetMaxSize(int, int);
  5954. void SetMinSize(int, int);
  5955. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5956. void SetPosition(float, float);
  5957. void SetScale(float);
  5958. void SetScale(float, float);
  5959. void SetSize(int, int);
  5960. bool SetStyle(const String&, XMLFile = null);
  5961. bool SetStyle(const XMLElement&);
  5962. bool SetStyleAuto(XMLFile = null);
  5963. const Variant& GetVar(const ShortStringHash&);
  5964. // Properties:
  5965. /* (readonly) */
  5966. Array<Variant> attributeDefaults;
  5967. /* (readonly) */
  5968. Array<AttributeInfo> attributeInfos;
  5969. Array<Variant> attributes;
  5970. /* (readonly) */
  5971. ShortStringHash baseType;
  5972. BlendMode blendMode;
  5973. bool bringToBack;
  5974. bool bringToFront;
  5975. /* (readonly) */
  5976. String category;
  5977. /* (readonly) */
  5978. Array<UIElement> children;
  5979. /* (writeonly) */
  5980. Color color;
  5981. /* (readonly) */
  5982. bool colorGradient;
  5983. Array<Color> colors;
  5984. XMLFile defaultStyle;
  5985. /* (readonly) */
  5986. float derivedOpacity;
  5987. bool elementEventSender;
  5988. int height;
  5989. HorizontalAlignment horizontalAlignment;
  5990. IntVector2 hotSpot;
  5991. IntRect imageRect;
  5992. String name;
  5993. /* (readonly) */
  5994. uint numAllChildren;
  5995. /* (readonly) */
  5996. uint numAttributes;
  5997. /* (readonly) */
  5998. uint numChildren;
  5999. float opacity;
  6000. UIElement parent;
  6001. Vector2 position;
  6002. int priority;
  6003. /* (readonly) */
  6004. int refs;
  6005. /* (readonly) */
  6006. UIElement root;
  6007. float rotation;
  6008. Vector2 scale;
  6009. IntVector2 size;
  6010. bool sortChildren;
  6011. String style;
  6012. bool temporary;
  6013. Texture texture;
  6014. /* (readonly) */
  6015. ShortStringHash type;
  6016. /* (readonly) */
  6017. String typeName;
  6018. bool useDerivedOpacity;
  6019. /* (readonly) */
  6020. VariantMap vars;
  6021. VerticalAlignment verticalAlignment;
  6022. bool visible;
  6023. /* (readonly) */
  6024. int weakRefs;
  6025. int width;
  6026. };
  6027. class StaticModel
  6028. {
  6029. // Methods:
  6030. void ApplyAttributes();
  6031. void ApplyMaterialList(const String& = String ( ));
  6032. void DrawDebugGeometry(DebugRenderer, bool);
  6033. Variant GetAttribute(const String&) const;
  6034. Variant GetAttributeDefault(const String&) const;
  6035. bool IsInside(const Vector3&) const;
  6036. bool IsInsideLocal(const Vector3&) const;
  6037. bool Load(File, bool = false);
  6038. bool LoadXML(const XMLElement&, bool = false);
  6039. void MarkNetworkUpdate() const;
  6040. void Remove();
  6041. void RemoveInstanceDefault();
  6042. void ResetToDefault();
  6043. bool Save(File) const;
  6044. bool SaveXML(XMLElement&) const;
  6045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6046. bool SetAttribute(const String&, const Variant&);
  6047. // Properties:
  6048. /* (readonly) */
  6049. Array<Variant> attributeDefaults;
  6050. /* (readonly) */
  6051. Array<AttributeInfo> attributeInfos;
  6052. Array<Variant> attributes;
  6053. /* (readonly) */
  6054. ShortStringHash baseType;
  6055. /* (readonly) */
  6056. BoundingBox boundingBox;
  6057. bool castShadows;
  6058. /* (readonly) */
  6059. String category;
  6060. float drawDistance;
  6061. bool enabled;
  6062. /* (readonly) */
  6063. bool enabledEffective;
  6064. /* (readonly) */
  6065. uint id;
  6066. /* (readonly) */
  6067. bool inView;
  6068. uint lightMask;
  6069. float lodBias;
  6070. /* (writeonly) */
  6071. Material material;
  6072. Array<Material> materials;
  6073. uint maxLights;
  6074. Model model;
  6075. /* (readonly) */
  6076. Node node;
  6077. /* (readonly) */
  6078. uint numAttributes;
  6079. /* (readonly) */
  6080. uint numGeometries;
  6081. bool occludee;
  6082. bool occluder;
  6083. uint occlusionLodLevel;
  6084. /* (readonly) */
  6085. int refs;
  6086. float shadowDistance;
  6087. uint shadowMask;
  6088. bool temporary;
  6089. /* (readonly) */
  6090. ShortStringHash type;
  6091. /* (readonly) */
  6092. String typeName;
  6093. uint viewMask;
  6094. /* (readonly) */
  6095. int weakRefs;
  6096. /* (readonly) */
  6097. BoundingBox worldBoundingBox;
  6098. uint zoneMask;
  6099. };
  6100. class StaticModelGroup
  6101. {
  6102. // Methods:
  6103. void AddInstanceNode(Node);
  6104. void ApplyAttributes();
  6105. void ApplyMaterialList(const String& = String ( ));
  6106. void DrawDebugGeometry(DebugRenderer, bool);
  6107. Variant GetAttribute(const String&) const;
  6108. Variant GetAttributeDefault(const String&) const;
  6109. bool Load(File, bool = false);
  6110. bool LoadXML(const XMLElement&, bool = false);
  6111. void MarkNetworkUpdate() const;
  6112. void Remove();
  6113. void RemoveAllInstanceNodes();
  6114. void RemoveInstanceDefault();
  6115. void RemoveInstanceNode(Node);
  6116. void ResetToDefault();
  6117. bool Save(File) const;
  6118. bool SaveXML(XMLElement&) const;
  6119. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6120. bool SetAttribute(const String&, const Variant&);
  6121. // Properties:
  6122. /* (readonly) */
  6123. Array<Variant> attributeDefaults;
  6124. /* (readonly) */
  6125. Array<AttributeInfo> attributeInfos;
  6126. Array<Variant> attributes;
  6127. /* (readonly) */
  6128. ShortStringHash baseType;
  6129. /* (readonly) */
  6130. BoundingBox boundingBox;
  6131. bool castShadows;
  6132. /* (readonly) */
  6133. String category;
  6134. float drawDistance;
  6135. bool enabled;
  6136. /* (readonly) */
  6137. bool enabledEffective;
  6138. /* (readonly) */
  6139. uint id;
  6140. /* (readonly) */
  6141. bool inView;
  6142. /* (readonly) */
  6143. Array<Node> instanceNodes;
  6144. uint lightMask;
  6145. float lodBias;
  6146. /* (writeonly) */
  6147. Material material;
  6148. Array<Material> materials;
  6149. uint maxLights;
  6150. Model model;
  6151. /* (readonly) */
  6152. Node node;
  6153. /* (readonly) */
  6154. uint numAttributes;
  6155. /* (readonly) */
  6156. uint numGeometries;
  6157. /* (readonly) */
  6158. uint numInstanceNodes;
  6159. bool occludee;
  6160. bool occluder;
  6161. uint occlusionLodLevel;
  6162. /* (readonly) */
  6163. int refs;
  6164. float shadowDistance;
  6165. uint shadowMask;
  6166. bool temporary;
  6167. /* (readonly) */
  6168. ShortStringHash type;
  6169. /* (readonly) */
  6170. String typeName;
  6171. uint viewMask;
  6172. /* (readonly) */
  6173. int weakRefs;
  6174. /* (readonly) */
  6175. BoundingBox worldBoundingBox;
  6176. /* (readonly) */
  6177. Zone zone;
  6178. uint zoneMask;
  6179. };
  6180. class String
  6181. {
  6182. // Methods:
  6183. void AppendUTF8(uint);
  6184. uint AtUTF8(uint) const;
  6185. uint ByteOffsetUTF8(uint) const;
  6186. void Clear();
  6187. int Compare(const String&, bool = true) const;
  6188. bool Contains(const String&, bool = true) const;
  6189. bool Contains(uint8, bool = true) const;
  6190. bool EndsWith(const String&, bool = true) const;
  6191. uint Find(const String&, uint = 0, bool = true) const;
  6192. uint Find(uint8, uint = 0, bool = true) const;
  6193. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  6194. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  6195. void Join(Array<String>&, const String&);
  6196. uint NextUTF8Char(uint&) const;
  6197. void Replace(const String&, const String&, bool = true);
  6198. void Replace(uint8, uint8, bool = true);
  6199. void ReplaceUTF8(uint, uint);
  6200. String Replaced(const String&, const String&, bool = true) const;
  6201. String Replaced(uint8, uint8, bool = true) const;
  6202. void Resize(uint);
  6203. void SetUTF8FromLatin1(const String&);
  6204. Array<String> Split(uint8) const;
  6205. bool StartsWith(const String&, bool = true) const;
  6206. String Substring(uint) const;
  6207. String Substring(uint, uint) const;
  6208. String SubstringUTF8(uint) const;
  6209. String SubstringUTF8(uint, uint) const;
  6210. bool ToBool() const;
  6211. Color ToColor() const;
  6212. float ToFloat() const;
  6213. int ToInt() const;
  6214. IntRect ToIntRect() const;
  6215. IntVector2 ToIntVector2() const;
  6216. String ToLower() const;
  6217. Quaternion ToQuaternion() const;
  6218. uint ToUInt() const;
  6219. String ToUpper() const;
  6220. Vector2 ToVector2() const;
  6221. Vector3 ToVector3() const;
  6222. Vector4 ToVector4(bool = false) const;
  6223. Variant ToVectorVariant() const;
  6224. String Trimmed() const;
  6225. // Properties:
  6226. /* (readonly) */
  6227. bool empty;
  6228. /* (readonly) */
  6229. uint length;
  6230. /* (readonly) */
  6231. uint utf8Length;
  6232. };
  6233. class StringHash
  6234. {
  6235. // Methods:
  6236. String ToString() const;
  6237. // Properties:
  6238. /* (readonly) */
  6239. uint value;
  6240. };
  6241. class Technique
  6242. {
  6243. // Methods:
  6244. Pass CreatePass(StringHash);
  6245. bool HasPass(StringHash) const;
  6246. bool Load(File);
  6247. void RemovePass(StringHash);
  6248. bool Save(File) const;
  6249. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6250. // Properties:
  6251. /* (readonly) */
  6252. ShortStringHash baseType;
  6253. /* (readonly) */
  6254. String category;
  6255. /* (readonly) */
  6256. uint memoryUse;
  6257. String name;
  6258. /* (readonly) */
  6259. Array<Pass> passes;
  6260. /* (readonly) */
  6261. int refs;
  6262. bool sm3;
  6263. /* (readonly) */
  6264. ShortStringHash type;
  6265. /* (readonly) */
  6266. String typeName;
  6267. /* (readonly) */
  6268. uint useTimer;
  6269. /* (readonly) */
  6270. int weakRefs;
  6271. };
  6272. class TechniqueEntry
  6273. {
  6274. // Properties:
  6275. float lodDistance;
  6276. int qualityLevel;
  6277. Technique technique;
  6278. };
  6279. class Terrain
  6280. {
  6281. // Methods:
  6282. void ApplyAttributes();
  6283. void DrawDebugGeometry(DebugRenderer, bool);
  6284. Variant GetAttribute(const String&) const;
  6285. Variant GetAttributeDefault(const String&) const;
  6286. float GetHeight(const Vector3&) const;
  6287. Vector3 GetNormal(const Vector3&) const;
  6288. TerrainPatch GetPatch(int, int) const;
  6289. bool Load(File, bool = false);
  6290. bool LoadXML(const XMLElement&, bool = false);
  6291. void MarkNetworkUpdate() const;
  6292. void Remove();
  6293. void RemoveInstanceDefault();
  6294. void ResetToDefault();
  6295. bool Save(File) const;
  6296. bool SaveXML(XMLElement&) const;
  6297. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6298. bool SetAttribute(const String&, const Variant&);
  6299. // Properties:
  6300. /* (readonly) */
  6301. Array<Variant> attributeDefaults;
  6302. /* (readonly) */
  6303. Array<AttributeInfo> attributeInfos;
  6304. Array<Variant> attributes;
  6305. /* (readonly) */
  6306. ShortStringHash baseType;
  6307. bool castShadows;
  6308. /* (readonly) */
  6309. String category;
  6310. float drawDistance;
  6311. bool enabled;
  6312. /* (readonly) */
  6313. bool enabledEffective;
  6314. Image heightMap;
  6315. /* (readonly) */
  6316. uint id;
  6317. uint lightMask;
  6318. float lodBias;
  6319. Material material;
  6320. uint maxLights;
  6321. /* (readonly) */
  6322. Node node;
  6323. /* (readonly) */
  6324. uint numAttributes;
  6325. /* (readonly) */
  6326. IntVector2 numPatches;
  6327. /* (readonly) */
  6328. IntVector2 numVertices;
  6329. bool occludee;
  6330. bool occluder;
  6331. int patchSize;
  6332. /* (readonly) */
  6333. Array<TerrainPatch> patches;
  6334. /* (readonly) */
  6335. int refs;
  6336. float shadowDistance;
  6337. uint shadowMask;
  6338. bool smoothing;
  6339. Vector3 spacing;
  6340. bool temporary;
  6341. /* (readonly) */
  6342. ShortStringHash type;
  6343. /* (readonly) */
  6344. String typeName;
  6345. uint viewMask;
  6346. /* (readonly) */
  6347. int weakRefs;
  6348. uint zoneMask;
  6349. };
  6350. class TerrainPatch
  6351. {
  6352. // Methods:
  6353. void ApplyAttributes();
  6354. void DrawDebugGeometry(DebugRenderer, bool);
  6355. Variant GetAttribute(const String&) const;
  6356. Variant GetAttributeDefault(const String&) const;
  6357. bool Load(File, bool = false);
  6358. bool LoadXML(const XMLElement&, bool = false);
  6359. void MarkNetworkUpdate() const;
  6360. void Remove();
  6361. void RemoveInstanceDefault();
  6362. void ResetToDefault();
  6363. bool Save(File) const;
  6364. bool SaveXML(XMLElement&) const;
  6365. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6366. bool SetAttribute(const String&, const Variant&);
  6367. // Properties:
  6368. /* (readonly) */
  6369. Array<Variant> attributeDefaults;
  6370. /* (readonly) */
  6371. Array<AttributeInfo> attributeInfos;
  6372. Array<Variant> attributes;
  6373. /* (readonly) */
  6374. ShortStringHash baseType;
  6375. /* (readonly) */
  6376. BoundingBox boundingBox;
  6377. bool castShadows;
  6378. /* (readonly) */
  6379. String category;
  6380. float drawDistance;
  6381. bool enabled;
  6382. /* (readonly) */
  6383. bool enabledEffective;
  6384. /* (readonly) */
  6385. uint id;
  6386. /* (readonly) */
  6387. bool inView;
  6388. uint lightMask;
  6389. float lodBias;
  6390. uint maxLights;
  6391. /* (readonly) */
  6392. Node node;
  6393. /* (readonly) */
  6394. uint numAttributes;
  6395. bool occludee;
  6396. bool occluder;
  6397. /* (readonly) */
  6398. int refs;
  6399. float shadowDistance;
  6400. uint shadowMask;
  6401. bool temporary;
  6402. /* (readonly) */
  6403. ShortStringHash type;
  6404. /* (readonly) */
  6405. String typeName;
  6406. uint viewMask;
  6407. /* (readonly) */
  6408. int weakRefs;
  6409. /* (readonly) */
  6410. BoundingBox worldBoundingBox;
  6411. uint zoneMask;
  6412. };
  6413. class Text
  6414. {
  6415. // Methods:
  6416. void AddChild(UIElement);
  6417. void ApplyAttributes();
  6418. void BringToFront();
  6419. void ClearSelection();
  6420. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6421. void DisableLayoutUpdate();
  6422. IntVector2 ElementToScreen(const IntVector2&);
  6423. void EnableLayoutUpdate();
  6424. uint FindChild(UIElement) const;
  6425. Variant GetAttribute(const String&) const;
  6426. Variant GetAttributeDefault(const String&) const;
  6427. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6428. UIElement GetChild(const String&, bool = false) const;
  6429. Array<UIElement> GetChildren(bool = false) const;
  6430. UIElement GetElementEventSender() const;
  6431. uint GetNumChildren(bool) const;
  6432. void InsertChild(uint, UIElement);
  6433. bool IsInside(IntVector2, bool);
  6434. bool IsInsideCombined(IntVector2, bool);
  6435. bool Load(File, bool = false);
  6436. bool LoadChildXML(XMLFile, XMLFile = null);
  6437. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6438. bool LoadXML(File);
  6439. bool LoadXML(XMLFile, XMLFile);
  6440. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6441. bool LoadXML(const XMLElement&, bool = false);
  6442. void Remove();
  6443. void RemoveAllChildren();
  6444. void RemoveChild(UIElement, uint = 0);
  6445. void RemoveChild(uint);
  6446. void RemoveInstanceDefault();
  6447. void ResetToDefault();
  6448. bool Save(File) const;
  6449. bool SaveXML(File);
  6450. bool SaveXML(XMLElement&) const;
  6451. IntVector2 ScreenToElement(const IntVector2&);
  6452. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6453. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6454. bool SetAttribute(const String&, const Variant&);
  6455. void SetFixedHeight(int);
  6456. void SetFixedSize(int, int);
  6457. void SetFixedWidth(int);
  6458. bool SetFont(Font, int);
  6459. bool SetFont(const String&, int);
  6460. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6461. void SetMaxSize(int, int);
  6462. void SetMinSize(int, int);
  6463. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6464. void SetPosition(int, int);
  6465. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  6466. void SetSize(int, int);
  6467. bool SetStyle(const String&, XMLFile = null);
  6468. bool SetStyle(const XMLElement&);
  6469. bool SetStyleAuto(XMLFile = null);
  6470. void UpdateLayout();
  6471. const Variant& GetVar(const ShortStringHash&);
  6472. // Properties:
  6473. /* (readonly) */
  6474. Array<Variant> attributeDefaults;
  6475. /* (readonly) */
  6476. Array<AttributeInfo> attributeInfos;
  6477. Array<Variant> attributes;
  6478. /* (readonly) */
  6479. ShortStringHash baseType;
  6480. bool bringToBack;
  6481. bool bringToFront;
  6482. /* (readonly) */
  6483. String category;
  6484. /* (readonly) */
  6485. IntVector2 childOffset;
  6486. /* (readonly) */
  6487. Array<UIElement> children;
  6488. IntRect clipBorder;
  6489. bool clipChildren;
  6490. /* (writeonly) */
  6491. Color color;
  6492. /* (readonly) */
  6493. bool colorGradient;
  6494. Array<Color> colors;
  6495. /* (readonly) */
  6496. IntRect combinedScreenRect;
  6497. XMLFile defaultStyle;
  6498. /* (readonly) */
  6499. float derivedOpacity;
  6500. uint dragDropMode;
  6501. bool editable;
  6502. Color effectColor;
  6503. bool elementEventSender;
  6504. bool enabled;
  6505. /* (readonly) */
  6506. bool fixedHeight;
  6507. /* (readonly) */
  6508. bool fixedSize;
  6509. /* (readonly) */
  6510. bool fixedWidth;
  6511. bool focus;
  6512. FocusMode focusMode;
  6513. /* (readonly) */
  6514. Font font;
  6515. /* (readonly) */
  6516. int fontSize;
  6517. int height;
  6518. HorizontalAlignment horizontalAlignment;
  6519. Color hoverColor;
  6520. /* (readonly) */
  6521. bool hovering;
  6522. int indent;
  6523. int indentSpacing;
  6524. /* (readonly) */
  6525. int indentWidth;
  6526. bool internal;
  6527. IntRect layoutBorder;
  6528. LayoutMode layoutMode;
  6529. int layoutSpacing;
  6530. int maxHeight;
  6531. IntVector2 maxSize;
  6532. int maxWidth;
  6533. int minHeight;
  6534. IntVector2 minSize;
  6535. int minWidth;
  6536. String name;
  6537. /* (readonly) */
  6538. uint numAllChildren;
  6539. /* (readonly) */
  6540. uint numAttributes;
  6541. /* (readonly) */
  6542. uint numChildren;
  6543. /* (readonly) */
  6544. uint numRows;
  6545. float opacity;
  6546. UIElement parent;
  6547. IntVector2 position;
  6548. int priority;
  6549. /* (readonly) */
  6550. int refs;
  6551. /* (readonly) */
  6552. UIElement root;
  6553. /* (readonly) */
  6554. int rowHeight;
  6555. float rowSpacing;
  6556. /* (readonly) */
  6557. IntVector2 screenPosition;
  6558. bool selected;
  6559. Color selectionColor;
  6560. /* (readonly) */
  6561. uint selectionLength;
  6562. /* (readonly) */
  6563. uint selectionStart;
  6564. IntVector2 size;
  6565. bool sortChildren;
  6566. String style;
  6567. bool temporary;
  6568. String text;
  6569. HorizontalAlignment textAlignment;
  6570. TextEffect textEffect;
  6571. TraversalMode traversalMode;
  6572. /* (readonly) */
  6573. ShortStringHash type;
  6574. /* (readonly) */
  6575. String typeName;
  6576. bool useDerivedOpacity;
  6577. /* (readonly) */
  6578. VariantMap vars;
  6579. VerticalAlignment verticalAlignment;
  6580. bool visible;
  6581. /* (readonly) */
  6582. int weakRefs;
  6583. int width;
  6584. bool wordwrap;
  6585. };
  6586. class Text3D
  6587. {
  6588. // Methods:
  6589. void ApplyAttributes();
  6590. void DrawDebugGeometry(DebugRenderer, bool);
  6591. Variant GetAttribute(const String&) const;
  6592. Variant GetAttributeDefault(const String&) const;
  6593. bool Load(File, bool = false);
  6594. bool LoadXML(const XMLElement&, bool = false);
  6595. void MarkNetworkUpdate() const;
  6596. void Remove();
  6597. void RemoveInstanceDefault();
  6598. void ResetToDefault();
  6599. bool Save(File) const;
  6600. bool SaveXML(XMLElement&) const;
  6601. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6602. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6603. bool SetAttribute(const String&, const Variant&);
  6604. bool SetFont(Font, int);
  6605. bool SetFont(const String&, int);
  6606. // Properties:
  6607. /* (readonly) */
  6608. Array<Variant> attributeDefaults;
  6609. /* (readonly) */
  6610. Array<AttributeInfo> attributeInfos;
  6611. Array<Variant> attributes;
  6612. /* (readonly) */
  6613. ShortStringHash baseType;
  6614. /* (readonly) */
  6615. BoundingBox boundingBox;
  6616. bool castShadows;
  6617. /* (readonly) */
  6618. String category;
  6619. /* (writeonly) */
  6620. Color color;
  6621. Array<Color> colors;
  6622. float drawDistance;
  6623. Color effectColor;
  6624. float effectDepthBias;
  6625. bool enabled;
  6626. /* (readonly) */
  6627. bool enabledEffective;
  6628. bool faceCamera;
  6629. /* (readonly) */
  6630. Font font;
  6631. /* (readonly) */
  6632. int fontSize;
  6633. HorizontalAlignment horizontalAlignment;
  6634. /* (readonly) */
  6635. uint id;
  6636. /* (readonly) */
  6637. bool inView;
  6638. uint lightMask;
  6639. float lodBias;
  6640. Material material;
  6641. uint maxLights;
  6642. /* (readonly) */
  6643. Node node;
  6644. /* (readonly) */
  6645. uint numAttributes;
  6646. /* (readonly) */
  6647. uint numRows;
  6648. bool occludee;
  6649. bool occluder;
  6650. float opacity;
  6651. /* (readonly) */
  6652. int refs;
  6653. /* (readonly) */
  6654. int rowHeight;
  6655. float rowSpacing;
  6656. float shadowDistance;
  6657. uint shadowMask;
  6658. bool temporary;
  6659. String text;
  6660. HorizontalAlignment textAlignment;
  6661. TextEffect textEffect;
  6662. /* (readonly) */
  6663. ShortStringHash type;
  6664. /* (readonly) */
  6665. String typeName;
  6666. VerticalAlignment verticalAlignment;
  6667. uint viewMask;
  6668. /* (readonly) */
  6669. int weakRefs;
  6670. int width;
  6671. bool wordwrap;
  6672. /* (readonly) */
  6673. BoundingBox worldBoundingBox;
  6674. uint zoneMask;
  6675. };
  6676. class Texture
  6677. {
  6678. // Methods:
  6679. void ClearDataLost();
  6680. bool Load(File);
  6681. bool Save(File) const;
  6682. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6683. void SetNumLevels(uint);
  6684. // Properties:
  6685. Array<TextureAddressMode> addressMode;
  6686. Texture backupTexture;
  6687. /* (readonly) */
  6688. ShortStringHash baseType;
  6689. Color borderColor;
  6690. /* (readonly) */
  6691. String category;
  6692. /* (readonly) */
  6693. bool compressed;
  6694. /* (readonly) */
  6695. bool dataLost;
  6696. TextureFilterMode filterMode;
  6697. /* (readonly) */
  6698. uint format;
  6699. /* (readonly) */
  6700. int height;
  6701. /* (readonly) */
  6702. Array<int> levelHeight;
  6703. /* (readonly) */
  6704. Array<int> levelWidth;
  6705. /* (readonly) */
  6706. uint levels;
  6707. /* (readonly) */
  6708. uint memoryUse;
  6709. Array<int> mipsToSkip;
  6710. String name;
  6711. /* (readonly) */
  6712. int refs;
  6713. bool sRGB;
  6714. /* (readonly) */
  6715. ShortStringHash type;
  6716. /* (readonly) */
  6717. String typeName;
  6718. /* (readonly) */
  6719. TextureUsage usage;
  6720. /* (readonly) */
  6721. uint useTimer;
  6722. /* (readonly) */
  6723. int weakRefs;
  6724. /* (readonly) */
  6725. int width;
  6726. };
  6727. class Texture2D
  6728. {
  6729. // Methods:
  6730. void ClearDataLost();
  6731. bool Load(File);
  6732. bool Load(Image, bool = false);
  6733. bool Save(File) const;
  6734. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6735. void SetNumLevels(uint);
  6736. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  6737. // Properties:
  6738. Array<TextureAddressMode> addressMode;
  6739. Texture backupTexture;
  6740. /* (readonly) */
  6741. ShortStringHash baseType;
  6742. Color borderColor;
  6743. /* (readonly) */
  6744. String category;
  6745. /* (readonly) */
  6746. bool compressed;
  6747. /* (readonly) */
  6748. bool dataLost;
  6749. TextureFilterMode filterMode;
  6750. /* (readonly) */
  6751. uint format;
  6752. /* (readonly) */
  6753. int height;
  6754. /* (readonly) */
  6755. Array<int> levelHeight;
  6756. /* (readonly) */
  6757. Array<int> levelWidth;
  6758. /* (readonly) */
  6759. uint levels;
  6760. /* (readonly) */
  6761. uint memoryUse;
  6762. Array<int> mipsToSkip;
  6763. String name;
  6764. /* (readonly) */
  6765. int refs;
  6766. /* (readonly) */
  6767. RenderSurface renderSurface;
  6768. bool sRGB;
  6769. /* (readonly) */
  6770. ShortStringHash type;
  6771. /* (readonly) */
  6772. String typeName;
  6773. /* (readonly) */
  6774. TextureUsage usage;
  6775. /* (readonly) */
  6776. uint useTimer;
  6777. /* (readonly) */
  6778. int weakRefs;
  6779. /* (readonly) */
  6780. int width;
  6781. };
  6782. class Texture3D
  6783. {
  6784. // Methods:
  6785. void ClearDataLost();
  6786. bool Load(File);
  6787. bool Load(Image, bool = false);
  6788. bool Save(File) const;
  6789. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6790. void SetNumLevels(uint);
  6791. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  6792. // Properties:
  6793. Array<TextureAddressMode> addressMode;
  6794. Texture backupTexture;
  6795. /* (readonly) */
  6796. ShortStringHash baseType;
  6797. Color borderColor;
  6798. /* (readonly) */
  6799. String category;
  6800. /* (readonly) */
  6801. bool compressed;
  6802. /* (readonly) */
  6803. bool dataLost;
  6804. TextureFilterMode filterMode;
  6805. /* (readonly) */
  6806. uint format;
  6807. /* (readonly) */
  6808. int height;
  6809. /* (readonly) */
  6810. Array<int> levelHeight;
  6811. /* (readonly) */
  6812. Array<int> levelWidth;
  6813. /* (readonly) */
  6814. uint levels;
  6815. /* (readonly) */
  6816. uint memoryUse;
  6817. Array<int> mipsToSkip;
  6818. String name;
  6819. /* (readonly) */
  6820. int refs;
  6821. /* (readonly) */
  6822. RenderSurface renderSurface;
  6823. bool sRGB;
  6824. /* (readonly) */
  6825. ShortStringHash type;
  6826. /* (readonly) */
  6827. String typeName;
  6828. /* (readonly) */
  6829. TextureUsage usage;
  6830. /* (readonly) */
  6831. uint useTimer;
  6832. /* (readonly) */
  6833. int weakRefs;
  6834. /* (readonly) */
  6835. int width;
  6836. };
  6837. class TextureCube
  6838. {
  6839. // Methods:
  6840. void ClearDataLost();
  6841. bool Load(CubeMapFace, Image, bool = false);
  6842. bool Load(File);
  6843. bool Save(File) const;
  6844. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6845. void SetNumLevels(uint);
  6846. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  6847. // Properties:
  6848. Array<TextureAddressMode> addressMode;
  6849. Texture backupTexture;
  6850. /* (readonly) */
  6851. ShortStringHash baseType;
  6852. Color borderColor;
  6853. /* (readonly) */
  6854. String category;
  6855. /* (readonly) */
  6856. bool compressed;
  6857. /* (readonly) */
  6858. bool dataLost;
  6859. TextureFilterMode filterMode;
  6860. /* (readonly) */
  6861. uint format;
  6862. /* (readonly) */
  6863. int height;
  6864. /* (readonly) */
  6865. Array<int> levelHeight;
  6866. /* (readonly) */
  6867. Array<int> levelWidth;
  6868. /* (readonly) */
  6869. uint levels;
  6870. /* (readonly) */
  6871. uint memoryUse;
  6872. Array<int> mipsToSkip;
  6873. String name;
  6874. /* (readonly) */
  6875. int refs;
  6876. /* (readonly) */
  6877. Array<RenderSurface> renderSurfaces;
  6878. bool sRGB;
  6879. /* (readonly) */
  6880. ShortStringHash type;
  6881. /* (readonly) */
  6882. String typeName;
  6883. /* (readonly) */
  6884. TextureUsage usage;
  6885. /* (readonly) */
  6886. uint useTimer;
  6887. /* (readonly) */
  6888. int weakRefs;
  6889. /* (readonly) */
  6890. int width;
  6891. };
  6892. class TextureFrame
  6893. {
  6894. // Properties:
  6895. float time;
  6896. Rect uv;
  6897. };
  6898. class Time
  6899. {
  6900. // Methods:
  6901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6902. // Properties:
  6903. /* (readonly) */
  6904. ShortStringHash baseType;
  6905. /* (readonly) */
  6906. String category;
  6907. /* (readonly) */
  6908. float elapsedTime;
  6909. /* (readonly) */
  6910. uint frameNumber;
  6911. /* (readonly) */
  6912. int refs;
  6913. /* (readonly) */
  6914. uint systemTime;
  6915. /* (readonly) */
  6916. String timeStamp;
  6917. /* (readonly) */
  6918. float timeStep;
  6919. /* (readonly) */
  6920. ShortStringHash type;
  6921. /* (readonly) */
  6922. String typeName;
  6923. /* (readonly) */
  6924. int weakRefs;
  6925. };
  6926. class Timer
  6927. {
  6928. // Methods:
  6929. uint GetMSec(bool);
  6930. void Reset();
  6931. };
  6932. class ToolTip
  6933. {
  6934. // Methods:
  6935. void AddChild(UIElement);
  6936. void ApplyAttributes();
  6937. void BringToFront();
  6938. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6939. void DisableLayoutUpdate();
  6940. IntVector2 ElementToScreen(const IntVector2&);
  6941. void EnableLayoutUpdate();
  6942. uint FindChild(UIElement) const;
  6943. Variant GetAttribute(const String&) const;
  6944. Variant GetAttributeDefault(const String&) const;
  6945. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6946. UIElement GetChild(const String&, bool = false) const;
  6947. Array<UIElement> GetChildren(bool = false) const;
  6948. UIElement GetElementEventSender() const;
  6949. uint GetNumChildren(bool) const;
  6950. void InsertChild(uint, UIElement);
  6951. bool IsInside(IntVector2, bool);
  6952. bool IsInsideCombined(IntVector2, bool);
  6953. bool Load(File, bool = false);
  6954. bool LoadChildXML(XMLFile, XMLFile = null);
  6955. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6956. bool LoadXML(File);
  6957. bool LoadXML(XMLFile, XMLFile);
  6958. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6959. bool LoadXML(const XMLElement&, bool = false);
  6960. void Remove();
  6961. void RemoveAllChildren();
  6962. void RemoveChild(UIElement, uint = 0);
  6963. void RemoveChild(uint);
  6964. void RemoveInstanceDefault();
  6965. void ResetToDefault();
  6966. bool Save(File) const;
  6967. bool SaveXML(File);
  6968. bool SaveXML(XMLElement&) const;
  6969. IntVector2 ScreenToElement(const IntVector2&);
  6970. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6971. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6972. bool SetAttribute(const String&, const Variant&);
  6973. void SetFixedHeight(int);
  6974. void SetFixedSize(int, int);
  6975. void SetFixedWidth(int);
  6976. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6977. void SetMaxSize(int, int);
  6978. void SetMinSize(int, int);
  6979. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6980. void SetPosition(int, int);
  6981. void SetSize(int, int);
  6982. bool SetStyle(const String&, XMLFile = null);
  6983. bool SetStyle(const XMLElement&);
  6984. bool SetStyleAuto(XMLFile = null);
  6985. void UpdateLayout();
  6986. const Variant& GetVar(const ShortStringHash&);
  6987. // Properties:
  6988. /* (readonly) */
  6989. Array<Variant> attributeDefaults;
  6990. /* (readonly) */
  6991. Array<AttributeInfo> attributeInfos;
  6992. Array<Variant> attributes;
  6993. /* (readonly) */
  6994. ShortStringHash baseType;
  6995. bool bringToBack;
  6996. bool bringToFront;
  6997. /* (readonly) */
  6998. String category;
  6999. /* (readonly) */
  7000. IntVector2 childOffset;
  7001. /* (readonly) */
  7002. Array<UIElement> children;
  7003. IntRect clipBorder;
  7004. bool clipChildren;
  7005. /* (writeonly) */
  7006. Color color;
  7007. /* (readonly) */
  7008. bool colorGradient;
  7009. Array<Color> colors;
  7010. /* (readonly) */
  7011. IntRect combinedScreenRect;
  7012. XMLFile defaultStyle;
  7013. float delay;
  7014. /* (readonly) */
  7015. float derivedOpacity;
  7016. uint dragDropMode;
  7017. bool editable;
  7018. bool elementEventSender;
  7019. bool enabled;
  7020. /* (readonly) */
  7021. bool fixedHeight;
  7022. /* (readonly) */
  7023. bool fixedSize;
  7024. /* (readonly) */
  7025. bool fixedWidth;
  7026. bool focus;
  7027. FocusMode focusMode;
  7028. int height;
  7029. HorizontalAlignment horizontalAlignment;
  7030. /* (readonly) */
  7031. bool hovering;
  7032. int indent;
  7033. int indentSpacing;
  7034. /* (readonly) */
  7035. int indentWidth;
  7036. bool internal;
  7037. IntRect layoutBorder;
  7038. LayoutMode layoutMode;
  7039. int layoutSpacing;
  7040. int maxHeight;
  7041. IntVector2 maxSize;
  7042. int maxWidth;
  7043. int minHeight;
  7044. IntVector2 minSize;
  7045. int minWidth;
  7046. String name;
  7047. /* (readonly) */
  7048. uint numAllChildren;
  7049. /* (readonly) */
  7050. uint numAttributes;
  7051. /* (readonly) */
  7052. uint numChildren;
  7053. float opacity;
  7054. UIElement parent;
  7055. IntVector2 position;
  7056. int priority;
  7057. /* (readonly) */
  7058. int refs;
  7059. /* (readonly) */
  7060. UIElement root;
  7061. /* (readonly) */
  7062. IntVector2 screenPosition;
  7063. bool selected;
  7064. IntVector2 size;
  7065. bool sortChildren;
  7066. String style;
  7067. bool temporary;
  7068. TraversalMode traversalMode;
  7069. /* (readonly) */
  7070. ShortStringHash type;
  7071. /* (readonly) */
  7072. String typeName;
  7073. bool useDerivedOpacity;
  7074. /* (readonly) */
  7075. VariantMap vars;
  7076. VerticalAlignment verticalAlignment;
  7077. bool visible;
  7078. /* (readonly) */
  7079. int weakRefs;
  7080. int width;
  7081. };
  7082. class TouchState
  7083. {
  7084. // Properties:
  7085. IntVector2 delta;
  7086. IntVector2 lastPosition;
  7087. IntVector2 position;
  7088. float pressure;
  7089. int touchID;
  7090. };
  7091. class UI
  7092. {
  7093. // Methods:
  7094. void Clear();
  7095. void DebugDraw(UIElement);
  7096. UIElement GetElementAt(const IntVector2&, bool = true);
  7097. UIElement GetElementAt(int, int, bool = true);
  7098. bool HasModalElement() const;
  7099. UIElement LoadLayout(File);
  7100. UIElement LoadLayout(File, XMLFile);
  7101. UIElement LoadLayout(XMLFile);
  7102. UIElement LoadLayout(XMLFile, XMLFile);
  7103. bool SaveLayout(File, UIElement);
  7104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7105. void SetFocusElement(UIElement, bool = false);
  7106. // Properties:
  7107. /* (readonly) */
  7108. ShortStringHash baseType;
  7109. /* (readonly) */
  7110. String category;
  7111. String clipBoardText;
  7112. Cursor cursor;
  7113. /* (readonly) */
  7114. IntVector2 cursorPosition;
  7115. float defaultToolTipDelay;
  7116. float doubleClickInterval;
  7117. int dragBeginDistance;
  7118. float dragBeginInterval;
  7119. /* (readonly) */
  7120. UIElement dragElement;
  7121. UIElement focusElement;
  7122. bool forceAutoHint;
  7123. /* (readonly) */
  7124. UIElement frontElement;
  7125. int maxFontTextureSize;
  7126. /* (readonly) */
  7127. UIElement modalRoot;
  7128. bool nonFocusedMouseWheel;
  7129. /* (readonly) */
  7130. int refs;
  7131. /* (readonly) */
  7132. UIElement root;
  7133. /* (readonly) */
  7134. ShortStringHash type;
  7135. /* (readonly) */
  7136. String typeName;
  7137. bool useMutableGlyphs;
  7138. bool useScreenKeyboard;
  7139. bool useSystemClipBoard;
  7140. /* (readonly) */
  7141. int weakRefs;
  7142. };
  7143. class UIElement
  7144. {
  7145. // Methods:
  7146. void AddChild(UIElement);
  7147. void ApplyAttributes();
  7148. void BringToFront();
  7149. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7150. void DisableLayoutUpdate();
  7151. IntVector2 ElementToScreen(const IntVector2&);
  7152. void EnableLayoutUpdate();
  7153. uint FindChild(UIElement) const;
  7154. Variant GetAttribute(const String&) const;
  7155. Variant GetAttributeDefault(const String&) const;
  7156. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7157. UIElement GetChild(const String&, bool = false) const;
  7158. Array<UIElement> GetChildren(bool = false) const;
  7159. UIElement GetElementEventSender() const;
  7160. uint GetNumChildren(bool) const;
  7161. void InsertChild(uint, UIElement);
  7162. bool IsInside(IntVector2, bool);
  7163. bool IsInsideCombined(IntVector2, bool);
  7164. bool Load(File, bool = false);
  7165. bool LoadChildXML(XMLFile, XMLFile = null);
  7166. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7167. bool LoadXML(File);
  7168. bool LoadXML(XMLFile, XMLFile);
  7169. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7170. bool LoadXML(const XMLElement&, bool = false);
  7171. void Remove();
  7172. void RemoveAllChildren();
  7173. void RemoveChild(UIElement, uint = 0);
  7174. void RemoveChild(uint);
  7175. void RemoveInstanceDefault();
  7176. void ResetToDefault();
  7177. bool Save(File) const;
  7178. bool SaveXML(File);
  7179. bool SaveXML(XMLElement&) const;
  7180. IntVector2 ScreenToElement(const IntVector2&);
  7181. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7182. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7183. bool SetAttribute(const String&, const Variant&);
  7184. void SetFixedHeight(int);
  7185. void SetFixedSize(int, int);
  7186. void SetFixedWidth(int);
  7187. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7188. void SetMaxSize(int, int);
  7189. void SetMinSize(int, int);
  7190. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7191. void SetPosition(int, int);
  7192. void SetSize(int, int);
  7193. bool SetStyle(const String&, XMLFile = null);
  7194. bool SetStyle(const XMLElement&);
  7195. bool SetStyleAuto(XMLFile = null);
  7196. void UpdateLayout();
  7197. const Variant& GetVar(const ShortStringHash&);
  7198. // Properties:
  7199. /* (readonly) */
  7200. Array<Variant> attributeDefaults;
  7201. /* (readonly) */
  7202. Array<AttributeInfo> attributeInfos;
  7203. Array<Variant> attributes;
  7204. /* (readonly) */
  7205. ShortStringHash baseType;
  7206. bool bringToBack;
  7207. bool bringToFront;
  7208. /* (readonly) */
  7209. String category;
  7210. /* (readonly) */
  7211. IntVector2 childOffset;
  7212. /* (readonly) */
  7213. Array<UIElement> children;
  7214. IntRect clipBorder;
  7215. bool clipChildren;
  7216. /* (writeonly) */
  7217. Color color;
  7218. /* (readonly) */
  7219. bool colorGradient;
  7220. Array<Color> colors;
  7221. /* (readonly) */
  7222. IntRect combinedScreenRect;
  7223. XMLFile defaultStyle;
  7224. /* (readonly) */
  7225. float derivedOpacity;
  7226. uint dragDropMode;
  7227. bool editable;
  7228. bool elementEventSender;
  7229. bool enabled;
  7230. /* (readonly) */
  7231. bool fixedHeight;
  7232. /* (readonly) */
  7233. bool fixedSize;
  7234. /* (readonly) */
  7235. bool fixedWidth;
  7236. bool focus;
  7237. FocusMode focusMode;
  7238. int height;
  7239. HorizontalAlignment horizontalAlignment;
  7240. /* (readonly) */
  7241. bool hovering;
  7242. int indent;
  7243. int indentSpacing;
  7244. /* (readonly) */
  7245. int indentWidth;
  7246. bool internal;
  7247. IntRect layoutBorder;
  7248. LayoutMode layoutMode;
  7249. int layoutSpacing;
  7250. int maxHeight;
  7251. IntVector2 maxSize;
  7252. int maxWidth;
  7253. int minHeight;
  7254. IntVector2 minSize;
  7255. int minWidth;
  7256. String name;
  7257. /* (readonly) */
  7258. uint numAllChildren;
  7259. /* (readonly) */
  7260. uint numAttributes;
  7261. /* (readonly) */
  7262. uint numChildren;
  7263. float opacity;
  7264. UIElement parent;
  7265. IntVector2 position;
  7266. int priority;
  7267. /* (readonly) */
  7268. int refs;
  7269. /* (readonly) */
  7270. UIElement root;
  7271. /* (readonly) */
  7272. IntVector2 screenPosition;
  7273. bool selected;
  7274. IntVector2 size;
  7275. bool sortChildren;
  7276. String style;
  7277. bool temporary;
  7278. TraversalMode traversalMode;
  7279. /* (readonly) */
  7280. ShortStringHash type;
  7281. /* (readonly) */
  7282. String typeName;
  7283. bool useDerivedOpacity;
  7284. /* (readonly) */
  7285. VariantMap vars;
  7286. VerticalAlignment verticalAlignment;
  7287. bool visible;
  7288. /* (readonly) */
  7289. int weakRefs;
  7290. int width;
  7291. };
  7292. class Variant
  7293. {
  7294. // Methods:
  7295. void Clear();
  7296. const Color& GetColor() const;
  7297. void FromString(VariantType, const String&);
  7298. void FromString(const String&, const String&);
  7299. bool GetBool() const;
  7300. VectorBuffer GetBuffer() const;
  7301. Camera GetCamera() const;
  7302. CollisionShape GetCollisionShape() const;
  7303. Component GetComponent() const;
  7304. Connection GetConnection() const;
  7305. float GetFloat() const;
  7306. int GetInt() const;
  7307. Node GetNode() const;
  7308. PhysicsWorld GetPhysicsWorld() const;
  7309. RenderSurface GetRenderSurface() const;
  7310. RigidBody GetRigidBody() const;
  7311. Scene GetScene() const;
  7312. Serializable GetSerializable() const;
  7313. ShortStringHash GetShortStringHash() const;
  7314. StringHash GetStringHash() const;
  7315. Texture GetTexture() const;
  7316. UIElement GetUIElement() const;
  7317. uint GetUInt() const;
  7318. Array<Variant> GetVariantVector() const;
  7319. const IntRect& GetIntRect() const;
  7320. const IntVector2& GetIntVector2() const;
  7321. const Quaternion& GetQuaternion() const;
  7322. const ResourceRef& GetResourceRef() const;
  7323. const ResourceRefList& GetResourceRefList() const;
  7324. const String& GetString() const;
  7325. String ToString() const;
  7326. const VariantMap& GetVariantMap() const;
  7327. const Vector2& GetVector2() const;
  7328. const Vector3& GetVector3() const;
  7329. const Vector4& GetVector4() const;
  7330. // Properties:
  7331. /* (readonly) */
  7332. bool empty;
  7333. /* (readonly) */
  7334. VariantType type;
  7335. /* (readonly) */
  7336. String typeName;
  7337. /* (readonly) */
  7338. bool zero;
  7339. };
  7340. class VariantMap
  7341. {
  7342. // Methods:
  7343. void Clear();
  7344. bool Contains(ShortStringHash) const;
  7345. bool Contains(const String&) const;
  7346. bool Erase(ShortStringHash);
  7347. bool Erase(const String&);
  7348. // Properties:
  7349. /* (readonly) */
  7350. Array<ShortStringHash> keys;
  7351. /* (readonly) */
  7352. uint length;
  7353. };
  7354. class Vector2
  7355. {
  7356. // Methods:
  7357. float AbsDotProduct(const Vector2&) const;
  7358. float DotProduct(const Vector2&) const;
  7359. bool Equals(const Vector2&) const;
  7360. Vector2 Lerp(const Vector2&, float) const;
  7361. void Normalize();
  7362. Vector2 Normalized() const;
  7363. String ToString() const;
  7364. // Properties:
  7365. /* (readonly) */
  7366. Array<float> data;
  7367. /* (readonly) */
  7368. float length;
  7369. /* (readonly) */
  7370. float lengthSquared;
  7371. float x;
  7372. float y;
  7373. };
  7374. class Vector3
  7375. {
  7376. // Methods:
  7377. float AbsDotProduct(const Vector3&) const;
  7378. float Angle(const Vector3&) const;
  7379. Vector3 CrossProduct(const Vector3&) const;
  7380. float DotProduct(const Vector3&) const;
  7381. bool Equals(const Vector3&) const;
  7382. Vector3 Lerp(const Vector3&, float) const;
  7383. void Normalize();
  7384. Vector3 Normalized() const;
  7385. String ToString() const;
  7386. // Properties:
  7387. /* (readonly) */
  7388. Array<float> data;
  7389. /* (readonly) */
  7390. float length;
  7391. /* (readonly) */
  7392. float lengthSquared;
  7393. float x;
  7394. float y;
  7395. float z;
  7396. };
  7397. class Vector4
  7398. {
  7399. // Methods:
  7400. float AbsDotProduct(const Vector4&) const;
  7401. float DotProduct(const Vector4&) const;
  7402. bool Equals(const Vector4&) const;
  7403. Vector4 Lerp(const Vector4&, float) const;
  7404. String ToString() const;
  7405. // Properties:
  7406. /* (readonly) */
  7407. Array<float> data;
  7408. float w;
  7409. float x;
  7410. float y;
  7411. float z;
  7412. };
  7413. class VectorBuffer
  7414. {
  7415. // Methods:
  7416. void Clear();
  7417. Array<uint8> Read(uint);
  7418. bool ReadBool();
  7419. BoundingBox ReadBoundingBox();
  7420. int8 ReadByte();
  7421. Color ReadColor();
  7422. String ReadFileID();
  7423. float ReadFloat();
  7424. int ReadInt();
  7425. IntRect ReadIntRect();
  7426. IntVector2 ReadIntVector2();
  7427. String ReadLine();
  7428. uint ReadNetID();
  7429. Quaternion ReadPackedQuaternion();
  7430. Vector3 ReadPackedVector3(float);
  7431. Quaternion ReadQuaternion();
  7432. int16 ReadShort();
  7433. ShortStringHash ReadShortStringHash();
  7434. String ReadString();
  7435. StringHash ReadStringHash();
  7436. uint8 ReadUByte();
  7437. uint ReadUInt();
  7438. uint16 ReadUShort();
  7439. uint ReadVLE();
  7440. Variant ReadVariant();
  7441. VariantMap ReadVariantMap();
  7442. Vector2 ReadVector2();
  7443. Vector3 ReadVector3();
  7444. Vector4 ReadVector4();
  7445. void Resize(uint);
  7446. uint Seek(uint);
  7447. void SetData(Deserializer, uint);
  7448. uint Write(Array<uint8>);
  7449. bool WriteBool(bool);
  7450. bool WriteBoundingBox(const BoundingBox&);
  7451. bool WriteByte(int8);
  7452. bool WriteColor(const Color&);
  7453. bool WriteFileID(const String&);
  7454. bool WriteFloat(float);
  7455. bool WriteInt(int);
  7456. bool WriteIntRect(const IntRect&);
  7457. bool WriteIntVector2(const IntVector2&);
  7458. bool WriteLine(const String&);
  7459. bool WriteNetID(uint);
  7460. bool WritePackedQuaternion(const Quaternion&);
  7461. bool WritePackedVector3(const Vector3&, float);
  7462. bool WriteQuaternion(const Quaternion&);
  7463. bool WriteShort(int16);
  7464. bool WriteShortStringHash(const ShortStringHash&);
  7465. bool WriteString(const String&);
  7466. bool WriteStringHash(const StringHash&);
  7467. bool WriteUByte(uint8);
  7468. bool WriteUInt(uint);
  7469. bool WriteUShort(uint16);
  7470. bool WriteVLE(uint);
  7471. bool WriteVariant(const Variant&);
  7472. bool WriteVariantMap(const VariantMap&);
  7473. bool WriteVector2(const Vector2&);
  7474. bool WriteVector3(const Vector3&);
  7475. bool WriteVector4(const Vector4&);
  7476. // Properties:
  7477. /* (readonly) */
  7478. uint checksum;
  7479. /* (readonly) */
  7480. bool eof;
  7481. /* (readonly) */
  7482. String name;
  7483. /* (readonly) */
  7484. uint position;
  7485. /* (readonly) */
  7486. uint size;
  7487. };
  7488. class View3D
  7489. {
  7490. // Methods:
  7491. void AddChild(UIElement);
  7492. void ApplyAttributes();
  7493. void BringToFront();
  7494. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7495. void DisableLayoutUpdate();
  7496. IntVector2 ElementToScreen(const IntVector2&);
  7497. void EnableLayoutUpdate();
  7498. uint FindChild(UIElement) const;
  7499. Variant GetAttribute(const String&) const;
  7500. Variant GetAttributeDefault(const String&) const;
  7501. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7502. UIElement GetChild(const String&, bool = false) const;
  7503. Array<UIElement> GetChildren(bool = false) const;
  7504. UIElement GetElementEventSender() const;
  7505. uint GetNumChildren(bool) const;
  7506. void InsertChild(uint, UIElement);
  7507. bool IsInside(IntVector2, bool);
  7508. bool IsInsideCombined(IntVector2, bool);
  7509. bool Load(File, bool = false);
  7510. bool LoadChildXML(XMLFile, XMLFile = null);
  7511. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7512. bool LoadXML(File);
  7513. bool LoadXML(XMLFile, XMLFile);
  7514. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7515. bool LoadXML(const XMLElement&, bool = false);
  7516. void QueueUpdate();
  7517. void Remove();
  7518. void RemoveAllChildren();
  7519. void RemoveChild(UIElement, uint = 0);
  7520. void RemoveChild(uint);
  7521. void RemoveInstanceDefault();
  7522. void ResetToDefault();
  7523. bool Save(File) const;
  7524. bool SaveXML(File);
  7525. bool SaveXML(XMLElement&) const;
  7526. IntVector2 ScreenToElement(const IntVector2&);
  7527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7528. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7529. bool SetAttribute(const String&, const Variant&);
  7530. void SetFixedHeight(int);
  7531. void SetFixedSize(int, int);
  7532. void SetFixedWidth(int);
  7533. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7534. void SetMaxSize(int, int);
  7535. void SetMinSize(int, int);
  7536. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7537. void SetPosition(int, int);
  7538. void SetSize(int, int);
  7539. bool SetStyle(const String&, XMLFile = null);
  7540. bool SetStyle(const XMLElement&);
  7541. bool SetStyleAuto(XMLFile = null);
  7542. void SetView(Scene, Camera);
  7543. void UpdateLayout();
  7544. const Variant& GetVar(const ShortStringHash&);
  7545. // Properties:
  7546. /* (readonly) */
  7547. Array<Variant> attributeDefaults;
  7548. /* (readonly) */
  7549. Array<AttributeInfo> attributeInfos;
  7550. Array<Variant> attributes;
  7551. bool autoUpdate;
  7552. /* (readonly) */
  7553. ShortStringHash baseType;
  7554. bool bringToBack;
  7555. bool bringToFront;
  7556. /* (readonly) */
  7557. Node cameraNode;
  7558. /* (readonly) */
  7559. String category;
  7560. /* (readonly) */
  7561. IntVector2 childOffset;
  7562. /* (readonly) */
  7563. Array<UIElement> children;
  7564. IntRect clipBorder;
  7565. bool clipChildren;
  7566. /* (writeonly) */
  7567. Color color;
  7568. /* (readonly) */
  7569. bool colorGradient;
  7570. Array<Color> colors;
  7571. /* (readonly) */
  7572. IntRect combinedScreenRect;
  7573. XMLFile defaultStyle;
  7574. /* (readonly) */
  7575. Texture2D depthTexture;
  7576. /* (readonly) */
  7577. float derivedOpacity;
  7578. uint dragDropMode;
  7579. bool editable;
  7580. bool elementEventSender;
  7581. bool enabled;
  7582. /* (readonly) */
  7583. bool fixedHeight;
  7584. bool fixedHeightResizing;
  7585. /* (readonly) */
  7586. bool fixedSize;
  7587. /* (readonly) */
  7588. bool fixedWidth;
  7589. bool fixedWidthResizing;
  7590. bool focus;
  7591. FocusMode focusMode;
  7592. uint format;
  7593. int height;
  7594. HorizontalAlignment horizontalAlignment;
  7595. /* (readonly) */
  7596. bool hovering;
  7597. int indent;
  7598. int indentSpacing;
  7599. /* (readonly) */
  7600. int indentWidth;
  7601. bool internal;
  7602. IntRect layoutBorder;
  7603. LayoutMode layoutMode;
  7604. int layoutSpacing;
  7605. int maxHeight;
  7606. IntVector2 maxSize;
  7607. int maxWidth;
  7608. int minHeight;
  7609. IntVector2 minSize;
  7610. int minWidth;
  7611. bool modal;
  7612. Color modalFrameColor;
  7613. IntVector2 modalFrameSize;
  7614. Color modalShadeColor;
  7615. bool movable;
  7616. String name;
  7617. /* (readonly) */
  7618. uint numAllChildren;
  7619. /* (readonly) */
  7620. uint numAttributes;
  7621. /* (readonly) */
  7622. uint numChildren;
  7623. float opacity;
  7624. UIElement parent;
  7625. IntVector2 position;
  7626. int priority;
  7627. /* (readonly) */
  7628. int refs;
  7629. /* (readonly) */
  7630. Texture2D renderTexture;
  7631. bool resizable;
  7632. IntRect resizeBorder;
  7633. /* (readonly) */
  7634. UIElement root;
  7635. /* (readonly) */
  7636. Scene scene;
  7637. /* (readonly) */
  7638. IntVector2 screenPosition;
  7639. bool selected;
  7640. IntVector2 size;
  7641. bool sortChildren;
  7642. String style;
  7643. bool temporary;
  7644. TraversalMode traversalMode;
  7645. /* (readonly) */
  7646. ShortStringHash type;
  7647. /* (readonly) */
  7648. String typeName;
  7649. bool useDerivedOpacity;
  7650. /* (readonly) */
  7651. VariantMap vars;
  7652. VerticalAlignment verticalAlignment;
  7653. /* (readonly) */
  7654. Viewport viewport;
  7655. bool visible;
  7656. /* (readonly) */
  7657. int weakRefs;
  7658. int width;
  7659. };
  7660. class Viewport
  7661. {
  7662. // Methods:
  7663. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7664. void SetRenderPath(XMLFile);
  7665. // Properties:
  7666. /* (readonly) */
  7667. ShortStringHash baseType;
  7668. Camera camera;
  7669. /* (readonly) */
  7670. String category;
  7671. IntRect rect;
  7672. /* (readonly) */
  7673. int refs;
  7674. RenderPath renderPath;
  7675. Scene scene;
  7676. /* (readonly) */
  7677. ShortStringHash type;
  7678. /* (readonly) */
  7679. String typeName;
  7680. /* (readonly) */
  7681. int weakRefs;
  7682. };
  7683. class WeakHandle
  7684. {
  7685. // Methods:
  7686. RefCounted Get() const;
  7687. // Properties:
  7688. /* (readonly) */
  7689. bool expired;
  7690. /* (readonly) */
  7691. int refs;
  7692. /* (readonly) */
  7693. int weakRefs;
  7694. };
  7695. class Window
  7696. {
  7697. // Methods:
  7698. void AddChild(UIElement);
  7699. void ApplyAttributes();
  7700. void BringToFront();
  7701. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7702. void DisableLayoutUpdate();
  7703. IntVector2 ElementToScreen(const IntVector2&);
  7704. void EnableLayoutUpdate();
  7705. uint FindChild(UIElement) const;
  7706. Variant GetAttribute(const String&) const;
  7707. Variant GetAttributeDefault(const String&) const;
  7708. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7709. UIElement GetChild(const String&, bool = false) const;
  7710. Array<UIElement> GetChildren(bool = false) const;
  7711. UIElement GetElementEventSender() const;
  7712. uint GetNumChildren(bool) const;
  7713. void InsertChild(uint, UIElement);
  7714. bool IsInside(IntVector2, bool);
  7715. bool IsInsideCombined(IntVector2, bool);
  7716. bool Load(File, bool = false);
  7717. bool LoadChildXML(XMLFile, XMLFile = null);
  7718. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7719. bool LoadXML(File);
  7720. bool LoadXML(XMLFile, XMLFile);
  7721. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7722. bool LoadXML(const XMLElement&, bool = false);
  7723. void Remove();
  7724. void RemoveAllChildren();
  7725. void RemoveChild(UIElement, uint = 0);
  7726. void RemoveChild(uint);
  7727. void RemoveInstanceDefault();
  7728. void ResetToDefault();
  7729. bool Save(File) const;
  7730. bool SaveXML(File);
  7731. bool SaveXML(XMLElement&) const;
  7732. IntVector2 ScreenToElement(const IntVector2&);
  7733. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7734. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7735. bool SetAttribute(const String&, const Variant&);
  7736. void SetFixedHeight(int);
  7737. void SetFixedSize(int, int);
  7738. void SetFixedWidth(int);
  7739. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7740. void SetMaxSize(int, int);
  7741. void SetMinSize(int, int);
  7742. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7743. void SetPosition(int, int);
  7744. void SetSize(int, int);
  7745. bool SetStyle(const String&, XMLFile = null);
  7746. bool SetStyle(const XMLElement&);
  7747. bool SetStyleAuto(XMLFile = null);
  7748. void UpdateLayout();
  7749. const Variant& GetVar(const ShortStringHash&);
  7750. // Properties:
  7751. /* (readonly) */
  7752. Array<Variant> attributeDefaults;
  7753. /* (readonly) */
  7754. Array<AttributeInfo> attributeInfos;
  7755. Array<Variant> attributes;
  7756. /* (readonly) */
  7757. ShortStringHash baseType;
  7758. bool bringToBack;
  7759. bool bringToFront;
  7760. /* (readonly) */
  7761. String category;
  7762. /* (readonly) */
  7763. IntVector2 childOffset;
  7764. /* (readonly) */
  7765. Array<UIElement> children;
  7766. IntRect clipBorder;
  7767. bool clipChildren;
  7768. /* (writeonly) */
  7769. Color color;
  7770. /* (readonly) */
  7771. bool colorGradient;
  7772. Array<Color> colors;
  7773. /* (readonly) */
  7774. IntRect combinedScreenRect;
  7775. XMLFile defaultStyle;
  7776. /* (readonly) */
  7777. float derivedOpacity;
  7778. uint dragDropMode;
  7779. bool editable;
  7780. bool elementEventSender;
  7781. bool enabled;
  7782. /* (readonly) */
  7783. bool fixedHeight;
  7784. bool fixedHeightResizing;
  7785. /* (readonly) */
  7786. bool fixedSize;
  7787. /* (readonly) */
  7788. bool fixedWidth;
  7789. bool fixedWidthResizing;
  7790. bool focus;
  7791. FocusMode focusMode;
  7792. int height;
  7793. HorizontalAlignment horizontalAlignment;
  7794. /* (readonly) */
  7795. bool hovering;
  7796. int indent;
  7797. int indentSpacing;
  7798. /* (readonly) */
  7799. int indentWidth;
  7800. bool internal;
  7801. IntRect layoutBorder;
  7802. LayoutMode layoutMode;
  7803. int layoutSpacing;
  7804. int maxHeight;
  7805. IntVector2 maxSize;
  7806. int maxWidth;
  7807. int minHeight;
  7808. IntVector2 minSize;
  7809. int minWidth;
  7810. bool modal;
  7811. Color modalFrameColor;
  7812. IntVector2 modalFrameSize;
  7813. Color modalShadeColor;
  7814. bool movable;
  7815. String name;
  7816. /* (readonly) */
  7817. uint numAllChildren;
  7818. /* (readonly) */
  7819. uint numAttributes;
  7820. /* (readonly) */
  7821. uint numChildren;
  7822. float opacity;
  7823. UIElement parent;
  7824. IntVector2 position;
  7825. int priority;
  7826. /* (readonly) */
  7827. int refs;
  7828. bool resizable;
  7829. IntRect resizeBorder;
  7830. /* (readonly) */
  7831. UIElement root;
  7832. /* (readonly) */
  7833. IntVector2 screenPosition;
  7834. bool selected;
  7835. IntVector2 size;
  7836. bool sortChildren;
  7837. String style;
  7838. bool temporary;
  7839. TraversalMode traversalMode;
  7840. /* (readonly) */
  7841. ShortStringHash type;
  7842. /* (readonly) */
  7843. String typeName;
  7844. bool useDerivedOpacity;
  7845. /* (readonly) */
  7846. VariantMap vars;
  7847. VerticalAlignment verticalAlignment;
  7848. bool visible;
  7849. /* (readonly) */
  7850. int weakRefs;
  7851. int width;
  7852. };
  7853. class XMLElement
  7854. {
  7855. // Methods:
  7856. XMLElement CreateChild(const String&);
  7857. String GetAttribute(const String& = String ( )) const;
  7858. String GetAttributeLower(const String&) const;
  7859. Array<String> GetAttributeNames() const;
  7860. String GetAttributeUpper(const String&) const;
  7861. bool GetBool(const String&) const;
  7862. BoundingBox GetBoundingBox() const;
  7863. XMLElement GetChild(const String& = String ( )) const;
  7864. Color GetColor(const String&) const;
  7865. float GetFloat(const String&) const;
  7866. int GetInt(const String&) const;
  7867. XMLElement GetNext(const String& = String ( )) const;
  7868. Quaternion GetQuaternion(const String&) const;
  7869. ResourceRef GetResourceRef() const;
  7870. ResourceRefList GetResourceRefList() const;
  7871. uint GetUInt(const String&) const;
  7872. String GetValue() const;
  7873. Variant GetVariant() const;
  7874. VariantMap GetVariantMap() const;
  7875. Array<Variant> GetVariantVector() const;
  7876. Vector2 GetVector2(const String&) const;
  7877. Vector3 GetVector3(const String&) const;
  7878. Vector4 GetVector4(const String&) const;
  7879. Variant GetVectorVariant(const String&) const;
  7880. bool HasAttribute(const String&) const;
  7881. bool HasChild(const String&) const;
  7882. bool RemoveAttribute(const String& = String ( ));
  7883. bool RemoveChild(const String&);
  7884. bool RemoveChild(const XMLElement&);
  7885. bool RemoveChildren(const String& = String ( ));
  7886. XPathResultSet Select(const String&);
  7887. XPathResultSet SelectPrepared(const XPathQuery&);
  7888. XMLElement SelectSingle(const String&);
  7889. XMLElement SelectSinglePrepared(const XPathQuery&);
  7890. bool SetAttribute(const String&);
  7891. bool SetAttribute(const String&, const String&);
  7892. bool SetBool(const String&, bool);
  7893. bool SetBoundingBox(const BoundingBox&);
  7894. bool SetColor(const String&, const Color&);
  7895. bool SetFloat(const String&, float);
  7896. bool SetInt(const String&, int);
  7897. bool SetQuaternion(const String&, const Quaternion&);
  7898. bool SetResourceRef(const String&, const ResourceRef&);
  7899. bool SetResourceRefList(const String&, const ResourceRefList&);
  7900. bool SetUInt(const String&, uint);
  7901. bool SetValue(const String&);
  7902. bool SetVariant(const Variant&);
  7903. bool SetVariantMap(const VariantMap&);
  7904. bool SetVariantVector(Array<Variant>);
  7905. bool SetVector2(const String&, const Vector2&);
  7906. bool SetVector3(const String&, const Vector3&);
  7907. bool SetVector4(const String&, const Vector4&);
  7908. bool SetVectorVariant(const String&, const Variant&);
  7909. // Properties:
  7910. /* (readonly) */
  7911. XMLFile file;
  7912. /* (readonly) */
  7913. bool isNull;
  7914. /* (readonly) */
  7915. String name;
  7916. /* (readonly) */
  7917. XMLElement nextResult;
  7918. /* (readonly) */
  7919. bool notNull;
  7920. /* (readonly) */
  7921. uint numAttributes;
  7922. /* (readonly) */
  7923. XMLElement parent;
  7924. String value;
  7925. };
  7926. class XMLFile
  7927. {
  7928. // Methods:
  7929. XMLElement CreateRoot(const String&);
  7930. XMLElement GetRoot(const String& = String ( ));
  7931. bool Load(File);
  7932. void Patch(XMLElement);
  7933. void Patch(XMLFile);
  7934. bool Save(File) const;
  7935. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7936. // Properties:
  7937. /* (readonly) */
  7938. ShortStringHash baseType;
  7939. /* (readonly) */
  7940. String category;
  7941. /* (readonly) */
  7942. uint memoryUse;
  7943. String name;
  7944. /* (readonly) */
  7945. int refs;
  7946. /* (readonly) */
  7947. XMLElement root;
  7948. /* (readonly) */
  7949. ShortStringHash type;
  7950. /* (readonly) */
  7951. String typeName;
  7952. /* (readonly) */
  7953. uint useTimer;
  7954. /* (readonly) */
  7955. int weakRefs;
  7956. };
  7957. class XPathQuery
  7958. {
  7959. // Methods:
  7960. void Bind();
  7961. void Clear();
  7962. XPathResultSet Evaluate(XMLElement);
  7963. bool EvaluateToBool(XMLElement);
  7964. float EvaluateToFloat(XMLElement);
  7965. String EvaluateToString(XMLElement);
  7966. bool SetQuery(const String&, const String& = String ( ), bool = true);
  7967. bool SetVariable(const String&, bool);
  7968. bool SetVariable(const String&, const String&);
  7969. bool SetVariable(const String&, const XPathResultSet&);
  7970. bool SetVariable(const String&, float);
  7971. // Properties:
  7972. String query;
  7973. };
  7974. class XPathResultSet
  7975. {
  7976. // Properties:
  7977. /* (readonly) */
  7978. bool empty;
  7979. /* (readonly) */
  7980. XMLElement firstResult;
  7981. /* (readonly) */
  7982. uint size;
  7983. };
  7984. class Zone
  7985. {
  7986. // Methods:
  7987. void ApplyAttributes();
  7988. void DrawDebugGeometry(DebugRenderer, bool);
  7989. Variant GetAttribute(const String&) const;
  7990. Variant GetAttributeDefault(const String&) const;
  7991. bool Load(File, bool = false);
  7992. bool LoadXML(const XMLElement&, bool = false);
  7993. void MarkNetworkUpdate() const;
  7994. void Remove();
  7995. void RemoveInstanceDefault();
  7996. void ResetToDefault();
  7997. bool Save(File) const;
  7998. bool SaveXML(XMLElement&) const;
  7999. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8000. bool SetAttribute(const String&, const Variant&);
  8001. // Properties:
  8002. Color ambientColor;
  8003. /* (readonly) */
  8004. Color ambientEndColor;
  8005. bool ambientGradient;
  8006. /* (readonly) */
  8007. Color ambientStartColor;
  8008. /* (readonly) */
  8009. Array<Variant> attributeDefaults;
  8010. /* (readonly) */
  8011. Array<AttributeInfo> attributeInfos;
  8012. Array<Variant> attributes;
  8013. /* (readonly) */
  8014. ShortStringHash baseType;
  8015. BoundingBox boundingBox;
  8016. bool castShadows;
  8017. /* (readonly) */
  8018. String category;
  8019. float drawDistance;
  8020. bool enabled;
  8021. /* (readonly) */
  8022. bool enabledEffective;
  8023. Color fogColor;
  8024. float fogEnd;
  8025. float fogHeight;
  8026. float fogHeightScale;
  8027. float fogStart;
  8028. /* (readonly) */
  8029. uint id;
  8030. /* (readonly) */
  8031. bool inView;
  8032. /* (readonly) */
  8033. Matrix3x4 inverseWorldTransform;
  8034. uint lightMask;
  8035. float lodBias;
  8036. uint maxLights;
  8037. /* (readonly) */
  8038. Node node;
  8039. /* (readonly) */
  8040. uint numAttributes;
  8041. bool occludee;
  8042. bool occluder;
  8043. bool override;
  8044. int priority;
  8045. /* (readonly) */
  8046. int refs;
  8047. float shadowDistance;
  8048. uint shadowMask;
  8049. bool temporary;
  8050. /* (readonly) */
  8051. ShortStringHash type;
  8052. /* (readonly) */
  8053. String typeName;
  8054. uint viewMask;
  8055. /* (readonly) */
  8056. int weakRefs;
  8057. /* (readonly) */
  8058. BoundingBox worldBoundingBox;
  8059. uint zoneMask;
  8060. };
  8061. // Enumerations
  8062. enum BlendMode
  8063. {
  8064. BLEND_REPLACE,
  8065. BLEND_ADD,
  8066. BLEND_MULTIPLY,
  8067. BLEND_ALPHA,
  8068. BLEND_ADDALPHA,
  8069. BLEND_PREMULALPHA,
  8070. BLEND_INVDESTALPHA,
  8071. };
  8072. enum CollisionEventMode
  8073. {
  8074. COLLISION_NEVER,
  8075. COLLISION_ACTIVE,
  8076. COLLISION_ALWAYS,
  8077. };
  8078. enum CompareMode
  8079. {
  8080. CMP_ALWAYS,
  8081. CMP_EQUAL,
  8082. CMP_NOTEQUAL,
  8083. CMP_LESS,
  8084. CMP_LESSEQUAL,
  8085. CMP_GREATER,
  8086. CMP_GREATEREQUAL,
  8087. };
  8088. enum ConstraintType
  8089. {
  8090. CONSTRAINT_POINT,
  8091. CONSTRAINT_HINGE,
  8092. CONSTRAINT_SLIDER,
  8093. CONSTRAINT_CONETWIST,
  8094. };
  8095. enum Corner
  8096. {
  8097. C_TOPLEFT,
  8098. C_TOPRIGHT,
  8099. C_BOTTOMLEFT,
  8100. C_BOTTOMRIGHT,
  8101. };
  8102. enum CreateMode
  8103. {
  8104. REPLICATED,
  8105. LOCAL,
  8106. };
  8107. enum CubeMapFace
  8108. {
  8109. FACE_POSITIVE_X,
  8110. FACE_NEGATIVE_X,
  8111. FACE_POSITIVE_Y,
  8112. FACE_NEGATIVE_Y,
  8113. FACE_POSITIVE_Z,
  8114. FACE_NEGATIVE_Z,
  8115. };
  8116. enum CullMode
  8117. {
  8118. CULL_NONE,
  8119. CULL_CCW,
  8120. CULL_CW,
  8121. };
  8122. enum CursorShape
  8123. {
  8124. CS_NORMAL,
  8125. CS_RESIZEVERTICAL,
  8126. CS_RESIZEDIAGONAL_TOPRIGHT,
  8127. CS_RESIZEHORIZONTAL,
  8128. CS_RESIZEDIAGONAL_TOPLEFT,
  8129. CS_ACCEPTDROP,
  8130. CS_REJECTDROP,
  8131. CS_BUSY,
  8132. };
  8133. enum DumpMode
  8134. {
  8135. DOXYGEN,
  8136. C_HEADER,
  8137. };
  8138. enum EmitterType
  8139. {
  8140. EMITTER_SPHERE,
  8141. EMITTER_BOX,
  8142. };
  8143. enum FileMode
  8144. {
  8145. FILE_READ,
  8146. FILE_WRITE,
  8147. FILE_READWRITE,
  8148. };
  8149. enum FillMode
  8150. {
  8151. FILL_SOLID,
  8152. FILL_WIREFRAME,
  8153. FILL_POINT,
  8154. };
  8155. enum FocusMode
  8156. {
  8157. FM_NOTFOCUSABLE,
  8158. FM_RESETFOCUS,
  8159. FM_FOCUSABLE,
  8160. FM_FOCUSABLE_DEFOCUSABLE,
  8161. };
  8162. enum HighlightMode
  8163. {
  8164. HM_NEVER,
  8165. HM_FOCUS,
  8166. HM_ALWAYS,
  8167. };
  8168. enum HorizontalAlignment
  8169. {
  8170. HA_LEFT,
  8171. HA_CENTER,
  8172. HA_RIGHT,
  8173. };
  8174. enum HttpRequestState
  8175. {
  8176. HTTP_INITIALIZING,
  8177. HTTP_ERROR,
  8178. HTTP_OPEN,
  8179. HTTP_CLOSED,
  8180. };
  8181. enum InterpolationMode
  8182. {
  8183. BEZIER_CURVE,
  8184. };
  8185. enum Intersection
  8186. {
  8187. OUTSIDE,
  8188. INTERSECTS,
  8189. INSIDE,
  8190. };
  8191. enum LayoutMode
  8192. {
  8193. LM_FREE,
  8194. LM_HORIZONTAL,
  8195. LM_VERTICAL,
  8196. };
  8197. enum LightType
  8198. {
  8199. LIGHT_DIRECTIONAL,
  8200. LIGHT_SPOT,
  8201. LIGHT_POINT,
  8202. };
  8203. enum Orientation
  8204. {
  8205. O_HORIZONTAL,
  8206. O_VERTICAL,
  8207. };
  8208. enum PassLightingMode
  8209. {
  8210. LIGHTING_UNLIT,
  8211. LIGHTING_PERVERTEX,
  8212. LIGHTING_PERPIXEL,
  8213. };
  8214. enum PrimitiveType
  8215. {
  8216. TRIANGLE_LIST,
  8217. LINE_LIST,
  8218. };
  8219. enum RayQueryLevel
  8220. {
  8221. RAY_AABB,
  8222. RAY_OBB,
  8223. RAY_TRIANGLE,
  8224. };
  8225. enum RenderCommandSortMode
  8226. {
  8227. SORT_FRONTTOBACK,
  8228. SORT_BACKTOFRONT,
  8229. };
  8230. enum RenderCommandType
  8231. {
  8232. CMD_NONE,
  8233. CMD_CLEAR,
  8234. CMD_SCENEPASS,
  8235. CMD_QUAD,
  8236. CMD_FORWARDLIGHTS,
  8237. CMD_LIGHTVOLUMES,
  8238. };
  8239. enum RenderSurfaceUpdateMode
  8240. {
  8241. SURFACE_MANUALUPDATE,
  8242. SURFACE_UPDATEVISIBLE,
  8243. SURFACE_UPDATEALWAYS,
  8244. };
  8245. enum RenderTargetSizeMode
  8246. {
  8247. SIZE_ABSOLUTE,
  8248. SIZE_RENDERTARGETDIVISOR,
  8249. SIZE_VIEWPORTDIVISOR,
  8250. };
  8251. enum ShapeType
  8252. {
  8253. SHAPE_BOX,
  8254. SHAPE_SPHERE,
  8255. SHAPE_STATICPLANE,
  8256. SHAPE_CYLINDER,
  8257. SHAPE_CAPSULE,
  8258. SHAPE_CONE,
  8259. SHAPE_TRIANGLEMESH,
  8260. SHAPE_CONVEXHULL,
  8261. SHAPE_TERRAIN,
  8262. };
  8263. enum SoundType
  8264. {
  8265. SOUND_EFFECT,
  8266. SOUND_AMBIENT,
  8267. SOUND_VOICE,
  8268. SOUND_MUSIC,
  8269. SOUND_MASTER,
  8270. };
  8271. enum TextEffect
  8272. {
  8273. TE_NONE,
  8274. TE_SHADOW,
  8275. TE_STROKE,
  8276. };
  8277. enum TextureAddressMode
  8278. {
  8279. ADDRESS_WRAP,
  8280. ADDRESS_MIRROR,
  8281. ADDRESS_CLAMP,
  8282. ADDRESS_BORDER,
  8283. };
  8284. enum TextureCoordinate
  8285. {
  8286. COORD_U,
  8287. COORD_V,
  8288. COORD_W,
  8289. };
  8290. enum TextureFilterMode
  8291. {
  8292. FILTER_NEAREST,
  8293. FILTER_BILINEAR,
  8294. FILTER_TRILINEAR,
  8295. FILTER_ANISOTROPIC,
  8296. FILTER_DEFAULT,
  8297. };
  8298. enum TextureUnit
  8299. {
  8300. TU_DIFFUSE,
  8301. TU_NORMAL,
  8302. TU_SPECULAR,
  8303. TU_EMISSIVE,
  8304. TU_ENVIRONMENT,
  8305. TU_LIGHTRAMP,
  8306. TU_LIGHTSHAPE,
  8307. TU_SHADOWMAP,
  8308. TU_FACESELECT,
  8309. TU_INDIRECTION,
  8310. TU_ALBEDOBUFFER,
  8311. TU_NORMALBUFFER,
  8312. TU_DEPTHBUFFER,
  8313. TU_LIGHTBUFFER,
  8314. TU_VOLUMEMAP,
  8315. MAX_MATERIAL_TEXTURE_UNITS,
  8316. MAX_TEXTURE_UNITS,
  8317. };
  8318. enum TextureUsage
  8319. {
  8320. TEXTURE_STATIC,
  8321. TEXTURE_DYNAMIC,
  8322. TEXTURE_RENDERTARGET,
  8323. TEXTURE_DEPTHSTENCIL,
  8324. };
  8325. enum TraversalMode
  8326. {
  8327. TM_BREADTH_FIRST,
  8328. TM_DEPTH_FIRST,
  8329. };
  8330. enum VariantType
  8331. {
  8332. VAR_NONE,
  8333. VAR_INT,
  8334. VAR_BOOL,
  8335. VAR_FLOAT,
  8336. VAR_VECTOR2,
  8337. VAR_VECTOR3,
  8338. VAR_VECTOR4,
  8339. VAR_QUATERNION,
  8340. VAR_COLOR,
  8341. VAR_STRING,
  8342. VAR_BUFFER,
  8343. VAR_PTR,
  8344. VAR_RESOURCEREF,
  8345. VAR_RESOURCEREFLIST,
  8346. VAR_VARIANTVECTOR,
  8347. VAR_VARIANTMAP,
  8348. VAR_INTRECT,
  8349. VAR_INTVECTOR2,
  8350. };
  8351. enum VerticalAlignment
  8352. {
  8353. VA_TOP,
  8354. VA_CENTER,
  8355. VA_BOTTOM,
  8356. };
  8357. // Global functions
  8358. float Abs(float);
  8359. float Acos(float);
  8360. String AddTrailingSlash(const String&);
  8361. float Asin(float);
  8362. float Atan(float);
  8363. float Atan2(float, float);
  8364. float Ceil(float);
  8365. float Clamp(float, float, float);
  8366. int Clamp(int, int, int);
  8367. void ClearDelayedExecute(const String& = String ( ));
  8368. float Cos(float);
  8369. void DelayedExecute(float, bool, const String&);
  8370. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  8371. bool Equals(float, float);
  8372. void ErrorDialog(const String&, const String&);
  8373. float Floor(float);
  8374. uint GetAlphaFormat();
  8375. Array<String> GetArguments();
  8376. String GetConsoleInput();
  8377. uint GetDepthStencilFormat();
  8378. Object GetEventSender();
  8379. String GetExtension(const String&, bool = true);
  8380. String GetFileName(const String&);
  8381. String GetFileNameAndExtension(const String&, bool = false);
  8382. uint GetFloat16Format();
  8383. uint GetFloat32Format();
  8384. uint GetFormat(const String&);
  8385. String GetInternalPath(const String&);
  8386. uint GetLuminanceAlphaFormat();
  8387. uint GetLuminanceFormat();
  8388. uint GetNumLogicalCPUs();
  8389. uint GetNumPhysicalCPUs();
  8390. Array<String> GetObjectCategories();
  8391. Array<String> GetObjectsByCategory(const String&);
  8392. String GetParentPath(const String&);
  8393. String GetPath(const String&);
  8394. String GetPlatform();
  8395. uint GetRG16Format();
  8396. uint GetRGBA16Format();
  8397. uint GetRGBAFloat16Format();
  8398. uint GetRGBAFloat32Format();
  8399. uint GetRGBAFormat();
  8400. uint GetRGBFormat();
  8401. uint GetRGFloat16Format();
  8402. uint GetRGFloat32Format();
  8403. uint GetRandomSeed();
  8404. String GetTextureUnitName(TextureUnit);
  8405. bool IsAbsolutePath(const String&);
  8406. bool IsAlpha(uint);
  8407. bool IsDigit(uint);
  8408. String Join(Array<String>&, const String&);
  8409. float Lerp(float, float, float);
  8410. void MarkNetworkUpdate();
  8411. float Max(float, float);
  8412. int Max(int, int);
  8413. float Min(float, float);
  8414. int Min(int, int);
  8415. float Mod(float, float);
  8416. void OpenConsoleWindow();
  8417. float Pow(float, float);
  8418. void Print(bool, bool = false);
  8419. void Print(const String&, bool = false);
  8420. void Print(const Variant&, bool = false);
  8421. void Print(float, bool = false);
  8422. void Print(int, bool = false);
  8423. void Print(uint, bool = false);
  8424. void PrintCallStack(bool = false);
  8425. float Random();
  8426. float Random(float);
  8427. float Random(float, float);
  8428. int RandomInt();
  8429. int RandomInt(int);
  8430. int RandomInt(int, int);
  8431. void Remove();
  8432. String RemoveTrailingSlash(const String&);
  8433. String ReplaceExtension(const String&, const String&);
  8434. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8435. void SetRandomSeed(uint);
  8436. float Sign(float);
  8437. float Sin(float);
  8438. float SmoothStep(float, float, float);
  8439. float Sqrt(float);
  8440. const String& GetTypeName(ShortStringHash);
  8441. void SubscribeToEvent(Object, const String&, const String&);
  8442. void SubscribeToEvent(const String&, const String&);
  8443. float Tan(float);
  8444. uint ToLower(uint);
  8445. String ToStringHex(int);
  8446. uint ToUpper(uint);
  8447. void UnsubscribeFromAllEvents();
  8448. void UnsubscribeFromAllEventsExcept(Array<String>);
  8449. void UnsubscribeFromEvent(Object, const String&);
  8450. void UnsubscribeFromEvent(const String&);
  8451. void UnsubscribeFromEvents(Object);
  8452. // Global properties
  8453. Audio audio;
  8454. ResourceCache cache;
  8455. Console console;
  8456. DebugHud debugHud;
  8457. DebugRenderer debugRenderer;
  8458. Engine engine;
  8459. FileSystem fileSystem;
  8460. Graphics graphics;
  8461. Input input;
  8462. Log log;
  8463. Network network;
  8464. Node node;
  8465. Octree octree;
  8466. PhysicsWorld physicsWorld;
  8467. Renderer renderer;
  8468. ResourceCache resourceCache;
  8469. Scene scene;
  8470. Script script;
  8471. ScriptFile scriptFile;
  8472. ScriptInstance self;
  8473. Time time;
  8474. UI ui;
  8475. // Global constants
  8476. uint AM_COMPONENTID;
  8477. uint AM_DEFAULT;
  8478. uint AM_FILE;
  8479. uint AM_LATESTDATA;
  8480. uint AM_NET;
  8481. uint AM_NODEID;
  8482. uint AM_NODEIDVECTOR;
  8483. uint AM_NOEDIT;
  8484. int CONTROLLER_AXIS_LEFTX;
  8485. int CONTROLLER_AXIS_LEFTY;
  8486. int CONTROLLER_AXIS_RIGHTX;
  8487. int CONTROLLER_AXIS_RIGHTY;
  8488. int CONTROLLER_AXIS_TRIGGERLEFT;
  8489. int CONTROLLER_AXIS_TRIGGERRIGHT;
  8490. int CONTROLLER_BUTTON_A;
  8491. int CONTROLLER_BUTTON_B;
  8492. int CONTROLLER_BUTTON_BACK;
  8493. int CONTROLLER_BUTTON_DPAD_DOWN;
  8494. int CONTROLLER_BUTTON_DPAD_LEFT;
  8495. int CONTROLLER_BUTTON_DPAD_RIGHT;
  8496. int CONTROLLER_BUTTON_DPAD_UP;
  8497. int CONTROLLER_BUTTON_GUIDE;
  8498. int CONTROLLER_BUTTON_LEFTSHOULDER;
  8499. int CONTROLLER_BUTTON_LEFTSTICK;
  8500. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  8501. int CONTROLLER_BUTTON_RIGHTSTICK;
  8502. int CONTROLLER_BUTTON_START;
  8503. int CONTROLLER_BUTTON_X;
  8504. int CONTROLLER_BUTTON_Y;
  8505. uint DD_DISABLED;
  8506. uint DD_SOURCE;
  8507. uint DD_SOURCE_AND_TARGET;
  8508. uint DD_TARGET;
  8509. uint DEBUGHUD_SHOW_ALL;
  8510. uint DEBUGHUD_SHOW_MODE;
  8511. uint DEBUGHUD_SHOW_NONE;
  8512. uint DEBUGHUD_SHOW_PROFILER;
  8513. uint DEBUGHUD_SHOW_STATS;
  8514. uint DEFAULT_LIGHTMASK;
  8515. uint DEFAULT_VIEWMASK;
  8516. uint DRAWABLE_ANY;
  8517. uint DRAWABLE_GEOMETRY;
  8518. uint DRAWABLE_LIGHT;
  8519. uint DRAWABLE_ZONE;
  8520. uint FIRST_LOCAL_ID;
  8521. uint FIRST_REPLICATED_ID;
  8522. int HAT_CENTER;
  8523. int HAT_DOWN;
  8524. int HAT_LEFT;
  8525. int HAT_RIGHT;
  8526. int HAT_UP;
  8527. int KEY_ADD;
  8528. int KEY_APPS;
  8529. int KEY_BACKSPACE;
  8530. int KEY_CAPSLOCK;
  8531. int KEY_DECIMAL;
  8532. int KEY_DELETE;
  8533. int KEY_DIVIDE;
  8534. int KEY_DOWN;
  8535. int KEY_END;
  8536. int KEY_ESC;
  8537. int KEY_F1;
  8538. int KEY_F10;
  8539. int KEY_F11;
  8540. int KEY_F12;
  8541. int KEY_F13;
  8542. int KEY_F14;
  8543. int KEY_F15;
  8544. int KEY_F16;
  8545. int KEY_F17;
  8546. int KEY_F18;
  8547. int KEY_F19;
  8548. int KEY_F2;
  8549. int KEY_F20;
  8550. int KEY_F21;
  8551. int KEY_F22;
  8552. int KEY_F23;
  8553. int KEY_F24;
  8554. int KEY_F3;
  8555. int KEY_F4;
  8556. int KEY_F5;
  8557. int KEY_F6;
  8558. int KEY_F7;
  8559. int KEY_F8;
  8560. int KEY_F9;
  8561. int KEY_HOME;
  8562. int KEY_INSERT;
  8563. int KEY_KP_ENTER;
  8564. int KEY_LALT;
  8565. int KEY_LCTRL;
  8566. int KEY_LEFT;
  8567. int KEY_LSHIFT;
  8568. int KEY_LWIN;
  8569. int KEY_MULTIPLY;
  8570. int KEY_NUMLOCK;
  8571. int KEY_NUMPAD0;
  8572. int KEY_NUMPAD1;
  8573. int KEY_NUMPAD2;
  8574. int KEY_NUMPAD3;
  8575. int KEY_NUMPAD4;
  8576. int KEY_NUMPAD5;
  8577. int KEY_NUMPAD6;
  8578. int KEY_NUMPAD7;
  8579. int KEY_NUMPAD8;
  8580. int KEY_NUMPAD9;
  8581. int KEY_PAGEDOWN;
  8582. int KEY_PAGEUP;
  8583. int KEY_PAUSE;
  8584. int KEY_RALT;
  8585. int KEY_RCTRL;
  8586. int KEY_RETURN;
  8587. int KEY_RETURN2;
  8588. int KEY_RIGHT;
  8589. int KEY_RSHIFT;
  8590. int KEY_RWIN;
  8591. int KEY_SCROLLLOCK;
  8592. int KEY_SPACE;
  8593. int KEY_SUBTRACT;
  8594. int KEY_TAB;
  8595. int KEY_UP;
  8596. uint LAST_LOCAL_ID;
  8597. uint LAST_REPLICATED_ID;
  8598. int LOG_DEBUG;
  8599. int LOG_ERROR;
  8600. int LOG_INFO;
  8601. int LOG_NONE;
  8602. int LOG_WARNING;
  8603. int MOUSEB_LEFT;
  8604. int MOUSEB_MIDDLE;
  8605. int MOUSEB_RIGHT;
  8606. float M_DEGTORAD;
  8607. float M_DEGTORAD_2;
  8608. float M_EPSILON;
  8609. float M_HALF_PI;
  8610. float M_INFINITY;
  8611. float M_LARGE_EPSILON;
  8612. float M_LARGE_VALUE;
  8613. int M_MAX_INT;
  8614. uint M_MAX_UNSIGNED;
  8615. int M_MIN_INT;
  8616. uint M_MIN_UNSIGNED;
  8617. float M_PI;
  8618. float M_RADTODEG;
  8619. int QUALITY_HIGH;
  8620. int QUALITY_LOW;
  8621. int QUALITY_MEDIUM;
  8622. int QUAL_ALT;
  8623. int QUAL_ANY;
  8624. int QUAL_CTRL;
  8625. int QUAL_SHIFT;
  8626. uint SCAN_DIRS;
  8627. uint SCAN_FILES;
  8628. uint SCAN_HIDDEN;
  8629. int SHADOWQUALITY_HIGH_16BIT;
  8630. int SHADOWQUALITY_HIGH_24BIT;
  8631. int SHADOWQUALITY_LOW_16BIT;
  8632. int SHADOWQUALITY_LOW_24BIT;
  8633. uint VO_DISABLE_OCCLUSION;
  8634. uint VO_DISABLE_SHADOWS;
  8635. uint VO_LOW_MATERIAL_QUALITY;
  8636. uint VO_NONE;