AngelScriptAPI.h 196 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985
  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. String pixelShaderDefines;
  4097. /* (readonly) */
  4098. int refs;
  4099. String vertexShader;
  4100. String vertexShaderDefines;
  4101. /* (readonly) */
  4102. int weakRefs;
  4103. };
  4104. class PhysicsRaycastResult
  4105. {
  4106. // Properties:
  4107. /* (readonly) */
  4108. RigidBody body;
  4109. float distance;
  4110. Vector3 normal;
  4111. Vector3 position;
  4112. };
  4113. class PhysicsWorld
  4114. {
  4115. // Methods:
  4116. void ApplyAttributes();
  4117. void DrawDebugGeometry(DebugRenderer, bool);
  4118. void DrawDebugGeometry(bool);
  4119. Variant GetAttribute(const String&) const;
  4120. Variant GetAttributeDefault(const String&) const;
  4121. Array<RigidBody> GetRigidBodies(RigidBody);
  4122. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  4123. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  4124. bool Load(File, bool = false);
  4125. bool LoadXML(const XMLElement&, bool = false);
  4126. void MarkNetworkUpdate() const;
  4127. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  4128. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  4129. void Remove();
  4130. void RemoveCachedGeometry(Model);
  4131. void RemoveInstanceDefault();
  4132. void ResetToDefault();
  4133. bool Save(File) const;
  4134. bool SaveXML(XMLElement&) const;
  4135. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4136. bool SetAttribute(const String&, const Variant&);
  4137. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  4138. void Update(float);
  4139. void UpdateCollisions();
  4140. // Properties:
  4141. /* (readonly) */
  4142. Array<Variant> attributeDefaults;
  4143. /* (readonly) */
  4144. Array<AttributeInfo> attributeInfos;
  4145. Array<Variant> attributes;
  4146. /* (readonly) */
  4147. ShortStringHash baseType;
  4148. /* (readonly) */
  4149. String category;
  4150. bool enabled;
  4151. /* (readonly) */
  4152. bool enabledEffective;
  4153. int fps;
  4154. Vector3 gravity;
  4155. /* (readonly) */
  4156. uint id;
  4157. bool internalEdge;
  4158. bool interpolation;
  4159. /* (readonly) */
  4160. Node node;
  4161. /* (readonly) */
  4162. uint numAttributes;
  4163. int numIterations;
  4164. /* (readonly) */
  4165. int refs;
  4166. bool splitImpulse;
  4167. bool temporary;
  4168. /* (readonly) */
  4169. ShortStringHash type;
  4170. /* (readonly) */
  4171. String typeName;
  4172. /* (readonly) */
  4173. int weakRefs;
  4174. };
  4175. class Plane
  4176. {
  4177. // Methods:
  4178. void Define(const Vector3&, const Vector3&);
  4179. void Define(const Vector3&, const Vector3&, const Vector3&);
  4180. void Define(const Vector4&);
  4181. float Distance(const Vector3&) const;
  4182. Vector3 Reflect(const Vector3&) const;
  4183. Vector4 ToVector4() const;
  4184. void Transform(const Matrix3&);
  4185. void Transform(const Matrix3x4&);
  4186. void Transform(const Matrix4&);
  4187. Plane Transformed(const Matrix3&) const;
  4188. Plane Transformed(const Matrix3x4&) const;
  4189. Plane Transformed(const Matrix4&) const;
  4190. // Properties:
  4191. Vector3 absNormal;
  4192. float d;
  4193. Vector3 normal;
  4194. /* (readonly) */
  4195. Matrix3x4 reflectionMatrix;
  4196. };
  4197. class Polyhedron
  4198. {
  4199. // Methods:
  4200. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  4201. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  4202. void AddFace(const Array<Vector3>);
  4203. void Clear();
  4204. void Clip(const BoundingBox&);
  4205. void Clip(const Frustum&);
  4206. void Define(const BoundingBox&);
  4207. void Define(const Frustum&);
  4208. void Transform(const Matrix3&);
  4209. void Transform(const Matrix3x4&);
  4210. Polyhedron Transformed(const Matrix3&) const;
  4211. Polyhedron Transformed(const Matrix3x4&) const;
  4212. // Properties:
  4213. /* (readonly) */
  4214. Array<Array<Vector3>> face;
  4215. /* (readonly) */
  4216. uint numFaces;
  4217. };
  4218. class Quaternion
  4219. {
  4220. // Methods:
  4221. float DotProduct(const Quaternion&) const;
  4222. bool Equals(const Quaternion&) const;
  4223. void FromAngleAxis(float, const Vector3&);
  4224. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  4225. void FromEulerAngles(float, float, float);
  4226. void FromLookRotation(const Vector3&, const Vector3&);
  4227. void FromRotationTo(const Vector3&, const Vector3&);
  4228. Quaternion Inverse() const;
  4229. Quaternion Nlerp(Quaternion, float, bool) const;
  4230. void Normalize();
  4231. Quaternion Normalized() const;
  4232. Quaternion Slerp(Quaternion, float) const;
  4233. String ToString() const;
  4234. // Properties:
  4235. /* (readonly) */
  4236. Vector3 eulerAngles;
  4237. /* (readonly) */
  4238. float pitch;
  4239. /* (readonly) */
  4240. float roll;
  4241. float w;
  4242. float x;
  4243. float y;
  4244. /* (readonly) */
  4245. float yaw;
  4246. float z;
  4247. };
  4248. class Ray
  4249. {
  4250. // Methods:
  4251. Vector3 ClosestPoint(const Ray&) const;
  4252. void Define(const Vector3&, const Vector3&);
  4253. float Distance(const Vector3&) const;
  4254. float HitDistance(const BoundingBox&) const;
  4255. float HitDistance(const Frustum&, bool = true) const;
  4256. float HitDistance(const Sphere&) const;
  4257. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  4258. Vector3 Project(const Vector3&) const;
  4259. Ray Transformed(const Matrix3x4&) const;
  4260. // Properties:
  4261. Vector3 direction;
  4262. Vector3 origin;
  4263. };
  4264. class RayQueryResult
  4265. {
  4266. // Properties:
  4267. float distance;
  4268. /* (readonly) */
  4269. Drawable drawable;
  4270. /* (readonly) */
  4271. Node node;
  4272. Vector3 normal;
  4273. Vector3 position;
  4274. uint subObject;
  4275. };
  4276. class Rect
  4277. {
  4278. // Methods:
  4279. void Clear();
  4280. void Clip(const Rect&);
  4281. void Define(const Vector2&);
  4282. void Define(const Vector2&, const Vector2&);
  4283. bool Equals(const Rect&) const;
  4284. Intersection IsInside(const Vector2&) const;
  4285. void Merge(const Rect&);
  4286. void Merge(const Vector2&);
  4287. Vector4 ToVector4() const;
  4288. // Properties:
  4289. float bottom;
  4290. /* (readonly) */
  4291. Vector2 center;
  4292. bool defined;
  4293. /* (readonly) */
  4294. Vector2 halfSize;
  4295. float left;
  4296. Vector2 max;
  4297. Vector2 min;
  4298. float right;
  4299. /* (readonly) */
  4300. Vector2 size;
  4301. float top;
  4302. };
  4303. class RefCounted
  4304. {
  4305. // Properties:
  4306. /* (readonly) */
  4307. int refs;
  4308. /* (readonly) */
  4309. int weakRefs;
  4310. };
  4311. class RenderPath
  4312. {
  4313. // Methods:
  4314. void AddCommand(const RenderPathCommand&);
  4315. void AddRenderTarget(const RenderTargetInfo&);
  4316. bool Append(XMLFile);
  4317. RenderPath Clone();
  4318. void InsertCommand(uint, const RenderPathCommand&);
  4319. bool Load(XMLFile);
  4320. void RemoveCommand(uint);
  4321. void RemoveCommands(const String&);
  4322. void RemoveRenderTarget(const String&);
  4323. void RemoveRenderTarget(uint);
  4324. void RemoveRenderTargts(const String&);
  4325. void SetEnabled(const String&, bool);
  4326. void ToggleEnabled(const String&);
  4327. // Properties:
  4328. Array<RenderPathCommand> commands;
  4329. /* (readonly) */
  4330. uint numCommands;
  4331. /* (readonly) */
  4332. uint numRenderTargets;
  4333. /* (readonly) */
  4334. int refs;
  4335. Array<RenderTargetInfo> renderTargets;
  4336. Array<Variant> shaderParameters;
  4337. /* (readonly) */
  4338. int weakRefs;
  4339. };
  4340. class RenderPathCommand
  4341. {
  4342. // Methods:
  4343. void RemoveShaderParameter(const String&);
  4344. // Properties:
  4345. Color clearColor;
  4346. float clearDepth;
  4347. uint clearFlags;
  4348. uint clearStencil;
  4349. bool enabled;
  4350. bool markToStencil;
  4351. String metadata;
  4352. uint numOutputs;
  4353. Array<String> outputNames;
  4354. String pass;
  4355. String pixelShaderDefines;
  4356. String pixelShaderName;
  4357. Array<Variant> shaderParameters;
  4358. RenderCommandSortMode sortMode;
  4359. String tag;
  4360. Array<String> textureNames;
  4361. RenderCommandType type;
  4362. bool useFogColor;
  4363. bool useLitBase;
  4364. bool useScissor;
  4365. bool vertexLights;
  4366. String vertexShaderDefines;
  4367. String vertexShaderName;
  4368. };
  4369. class RenderSurface
  4370. {
  4371. // Methods:
  4372. void QueueUpdate();
  4373. // Properties:
  4374. /* (readonly) */
  4375. int height;
  4376. RenderSurface linkedDepthStencil;
  4377. RenderSurface linkedRenderTarget;
  4378. uint numViewports;
  4379. /* (readonly) */
  4380. Texture parentTexture;
  4381. RenderSurfaceUpdateMode updateMode;
  4382. /* (readonly) */
  4383. TextureUsage usage;
  4384. Array<Viewport> viewports;
  4385. /* (readonly) */
  4386. int width;
  4387. };
  4388. class RenderTargetInfo
  4389. {
  4390. // Properties:
  4391. bool enabled;
  4392. bool filtered;
  4393. uint format;
  4394. String name;
  4395. bool sRGB;
  4396. IntVector2 size;
  4397. RenderTargetSizeMode sizeMode;
  4398. String tag;
  4399. };
  4400. class Renderer
  4401. {
  4402. // Methods:
  4403. void DrawDebugGeometry(bool) const;
  4404. void ReloadShaders() const;
  4405. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4406. void SetDefaultRenderPath(XMLFile);
  4407. // Properties:
  4408. /* (readonly) */
  4409. ShortStringHash baseType;
  4410. /* (readonly) */
  4411. String category;
  4412. /* (readonly) */
  4413. Material defaultLightRamp;
  4414. /* (readonly) */
  4415. Material defaultLightSpot;
  4416. /* (readonly) */
  4417. Material defaultMaterial;
  4418. RenderPath defaultRenderPath;
  4419. /* (readonly) */
  4420. Zone defaultZone;
  4421. bool drawShadows;
  4422. bool dynamicInstancing;
  4423. bool hdrRendering;
  4424. int materialQuality;
  4425. int maxInstanceTriangles;
  4426. int maxOccluderTriangles;
  4427. int maxShadowCascades;
  4428. int maxShadowMaps;
  4429. int maxSortedInstances;
  4430. int minInstances;
  4431. /* (readonly) */
  4432. uint numBatches;
  4433. /* (readonly) */
  4434. Array<uint> numGeometries;
  4435. /* (readonly) */
  4436. Array<uint> numLights;
  4437. /* (readonly) */
  4438. Array<uint> numOccluders;
  4439. /* (readonly) */
  4440. uint numPrimitives;
  4441. /* (readonly) */
  4442. Array<uint> numShadowMaps;
  4443. uint numViewports;
  4444. /* (readonly) */
  4445. uint numViews;
  4446. float occluderSizeThreshold;
  4447. int occlusionBufferSize;
  4448. /* (readonly) */
  4449. int refs;
  4450. bool reuseShadowMaps;
  4451. int shadowMapSize;
  4452. int shadowQuality;
  4453. bool specularLighting;
  4454. int textureAnisotropy;
  4455. TextureFilterMode textureFilterMode;
  4456. int textureQuality;
  4457. /* (readonly) */
  4458. ShortStringHash type;
  4459. /* (readonly) */
  4460. String typeName;
  4461. Array<Viewport> viewports;
  4462. /* (readonly) */
  4463. int weakRefs;
  4464. };
  4465. class Resource
  4466. {
  4467. // Methods:
  4468. bool Load(File);
  4469. bool Save(File) const;
  4470. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4471. // Properties:
  4472. /* (readonly) */
  4473. ShortStringHash baseType;
  4474. /* (readonly) */
  4475. String category;
  4476. /* (readonly) */
  4477. uint memoryUse;
  4478. String name;
  4479. /* (readonly) */
  4480. int refs;
  4481. /* (readonly) */
  4482. ShortStringHash type;
  4483. /* (readonly) */
  4484. String typeName;
  4485. /* (readonly) */
  4486. uint useTimer;
  4487. /* (readonly) */
  4488. int weakRefs;
  4489. };
  4490. class ResourceCache
  4491. {
  4492. // Methods:
  4493. bool AddManualResource(Resource);
  4494. void AddPackageFile(PackageFile, uint = - 1);
  4495. bool AddResourceDir(const String&, uint = - 1);
  4496. bool Exists(const String&) const;
  4497. File GetFile(const String&);
  4498. String GetPreferredResourceDir(const String&) const;
  4499. Resource GetResource(ShortStringHash, const String&);
  4500. Resource GetResource(const String&, const String&);
  4501. String GetResourceFileName(const String&) const;
  4502. void ReleaseAllResources(bool = false);
  4503. void ReleaseResource(const String&, const String&, bool = false);
  4504. void ReleaseResources(ShortStringHash, bool = false);
  4505. void ReleaseResources(const String&, bool = false);
  4506. void ReleaseResources(const String&, const String&, bool = false);
  4507. bool ReloadResource(Resource);
  4508. void RemovePackageFile(PackageFile, bool = true, bool = false);
  4509. void RemovePackageFile(const String&, bool = true, bool = false);
  4510. void RemoveResourceDir(const String&);
  4511. String SanitateResourceDirName(const String&) const;
  4512. String SanitateResourceName(const String&) const;
  4513. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4514. // Properties:
  4515. bool autoReloadResources;
  4516. /* (readonly) */
  4517. ShortStringHash baseType;
  4518. /* (readonly) */
  4519. String category;
  4520. Array<uint> memoryBudget;
  4521. /* (readonly) */
  4522. Array<uint> memoryUse;
  4523. /* (readonly) */
  4524. Array<PackageFile> packageFiles;
  4525. /* (readonly) */
  4526. int refs;
  4527. /* (readonly) */
  4528. Array<String> resourceDirs;
  4529. /* (readonly) */
  4530. bool seachPackagesFirst;
  4531. /* (writeonly) */
  4532. bool searchPackagesFirst;
  4533. /* (readonly) */
  4534. uint totalMemoryUse;
  4535. /* (readonly) */
  4536. ShortStringHash type;
  4537. /* (readonly) */
  4538. String typeName;
  4539. /* (readonly) */
  4540. int weakRefs;
  4541. };
  4542. class ResourceRef
  4543. {
  4544. // Properties:
  4545. String name;
  4546. ShortStringHash type;
  4547. };
  4548. class ResourceRefList
  4549. {
  4550. // Methods:
  4551. void Resize(uint);
  4552. // Properties:
  4553. /* (readonly) */
  4554. bool empty;
  4555. /* (readonly) */
  4556. uint length;
  4557. Array<String> names;
  4558. ShortStringHash type;
  4559. };
  4560. class RigidBody
  4561. {
  4562. // Methods:
  4563. void Activate();
  4564. void ApplyAttributes();
  4565. void ApplyForce(const Vector3&);
  4566. void ApplyForce(const Vector3&, const Vector3&);
  4567. void ApplyImpulse(const Vector3&);
  4568. void ApplyImpulse(const Vector3&, const Vector3&);
  4569. void ApplyTorque(const Vector3&);
  4570. void ApplyTorqueImpulse(const Vector3&);
  4571. void DrawDebugGeometry(DebugRenderer, bool);
  4572. Variant GetAttribute(const String&) const;
  4573. Variant GetAttributeDefault(const String&) const;
  4574. Vector3 GetVelocityAtPoint(const Vector3&) const;
  4575. bool Load(File, bool = false);
  4576. bool LoadXML(const XMLElement&, bool = false);
  4577. void MarkNetworkUpdate() const;
  4578. void ReAddBodyToWorld();
  4579. void Remove();
  4580. void RemoveInstanceDefault();
  4581. void ResetForces();
  4582. void ResetToDefault();
  4583. bool Save(File) const;
  4584. bool SaveXML(XMLElement&) const;
  4585. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4586. bool SetAttribute(const String&, const Variant&);
  4587. void SetCollisionLayerAndMask(uint, uint);
  4588. void SetTransform(const Vector3&, const Quaternion&);
  4589. // Properties:
  4590. /* (readonly) */
  4591. bool active;
  4592. float angularDamping;
  4593. Vector3 angularFactor;
  4594. float angularRestThreshold;
  4595. Vector3 angularVelocity;
  4596. Vector3 anisotropicFriction;
  4597. /* (readonly) */
  4598. Array<Variant> attributeDefaults;
  4599. /* (readonly) */
  4600. Array<AttributeInfo> attributeInfos;
  4601. Array<Variant> attributes;
  4602. /* (readonly) */
  4603. ShortStringHash baseType;
  4604. /* (readonly) */
  4605. String category;
  4606. float ccdMotionThreshold;
  4607. float ccdRadius;
  4608. /* (readonly) */
  4609. Vector3 centerOfMass;
  4610. /* (readonly) */
  4611. Array<RigidBody> collidingBodies;
  4612. CollisionEventMode collisionEventMode;
  4613. uint collisionLayer;
  4614. uint collisionMask;
  4615. float contactProcessingThreshold;
  4616. bool enabled;
  4617. /* (readonly) */
  4618. bool enabledEffective;
  4619. float friction;
  4620. Vector3 gravityOverride;
  4621. /* (readonly) */
  4622. uint id;
  4623. bool kinematic;
  4624. float linearDamping;
  4625. Vector3 linearFactor;
  4626. float linearRestThreshold;
  4627. Vector3 linearVelocity;
  4628. float mass;
  4629. /* (readonly) */
  4630. Node node;
  4631. /* (readonly) */
  4632. uint numAttributes;
  4633. bool phantom;
  4634. Vector3 position;
  4635. /* (readonly) */
  4636. int refs;
  4637. float restitution;
  4638. float rollingFriction;
  4639. Quaternion rotation;
  4640. bool temporary;
  4641. /* (readonly) */
  4642. ShortStringHash type;
  4643. /* (readonly) */
  4644. String typeName;
  4645. bool useGravity;
  4646. /* (readonly) */
  4647. int weakRefs;
  4648. };
  4649. class Scene
  4650. {
  4651. // Methods:
  4652. void AddChild(Node);
  4653. void AddRequiredPackageFile(PackageFile);
  4654. void ApplyAttributes();
  4655. void Clear(bool = true, bool = true);
  4656. void ClearRequiredPackageFiles();
  4657. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  4658. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4659. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  4660. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  4661. Variant GetAttribute(const String&) const;
  4662. Variant GetAttributeDefault(const String&) const;
  4663. Node GetChild(const String&, bool = false) const;
  4664. Array<Node> GetChildren(bool = false) const;
  4665. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  4666. Array<Node> GetChildrenWithScript(bool = false) const;
  4667. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  4668. Component GetComponent(const String&) const;
  4669. Component GetComponent(uint);
  4670. Array<Component> GetComponents() const;
  4671. Array<Component> GetComponents(const String&, bool = false) const;
  4672. Node GetNode(uint);
  4673. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4674. ScriptObject GetScriptObject() const;
  4675. ScriptObject GetScriptObject(const String&) const;
  4676. bool HasComponent(const String&) const;
  4677. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4678. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4679. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4680. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  4681. bool Load(File, bool = false);
  4682. bool LoadAsync(File);
  4683. bool LoadAsyncXML(File);
  4684. bool LoadXML(File);
  4685. bool LoadXML(const XMLElement&, bool = false);
  4686. Vector3 LocalToWorld(const Vector3&) const;
  4687. Vector3 LocalToWorld(const Vector4&) const;
  4688. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  4689. void Pitch(float, bool = false);
  4690. void RegisterVar(const String&);
  4691. void Remove();
  4692. void RemoveAllChildren();
  4693. void RemoveAllComponents();
  4694. void RemoveChild(Node);
  4695. void RemoveChildren(bool, bool, bool);
  4696. void RemoveComponent(Component);
  4697. void RemoveComponent(const String&);
  4698. void RemoveComponents(bool, bool);
  4699. void RemoveInstanceDefault();
  4700. void ResetToDefault();
  4701. void Roll(float, bool = false);
  4702. void Rotate(const Quaternion&, bool = false);
  4703. bool Save(File) const;
  4704. bool SaveXML(File);
  4705. bool SaveXML(XMLElement&) const;
  4706. void Scale(const Vector3&);
  4707. void Scale(float);
  4708. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4709. bool SetAttribute(const String&, const Variant&);
  4710. void SetScale(float);
  4711. void SetTransform(const Vector3&, const Quaternion&);
  4712. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  4713. void SetTransform(const Vector3&, const Quaternion&, float);
  4714. void SetWorldTransform(const Vector3&, const Quaternion&);
  4715. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  4716. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  4717. void StopAsyncLoading();
  4718. const String& GetVarName(ShortStringHash) const;
  4719. void Translate(const Vector3&);
  4720. void TranslateRelative(const Vector3&);
  4721. void UnregisterAllVars(const String&);
  4722. void UnregisterVar(const String&);
  4723. void Update(float);
  4724. Vector3 WorldToLocal(const Vector3&) const;
  4725. Vector3 WorldToLocal(const Vector4&) const;
  4726. void Yaw(float, bool = false);
  4727. // Properties:
  4728. /* (readonly) */
  4729. bool asyncLoading;
  4730. /* (readonly) */
  4731. float asyncProgress;
  4732. /* (readonly) */
  4733. Array<Variant> attributeDefaults;
  4734. /* (readonly) */
  4735. Array<AttributeInfo> attributeInfos;
  4736. Array<Variant> attributes;
  4737. /* (readonly) */
  4738. ShortStringHash baseType;
  4739. /* (readonly) */
  4740. String category;
  4741. /* (readonly) */
  4742. uint checksum;
  4743. /* (readonly) */
  4744. Array<Node> children;
  4745. /* (readonly) */
  4746. Array<Component> components;
  4747. /* (readonly) */
  4748. DebugRenderer debugRenderer;
  4749. Vector3 direction;
  4750. float elapsedTime;
  4751. /* (readonly) */
  4752. String fileName;
  4753. /* (readonly) */
  4754. uint id;
  4755. String name;
  4756. /* (readonly) */
  4757. uint numAllChildren;
  4758. /* (readonly) */
  4759. uint numAttributes;
  4760. /* (readonly) */
  4761. uint numChildren;
  4762. /* (readonly) */
  4763. uint numComponents;
  4764. /* (readonly) */
  4765. Octree octree;
  4766. Node parent;
  4767. /* (readonly) */
  4768. PhysicsWorld physicsWorld;
  4769. Vector3 position;
  4770. /* (readonly) */
  4771. int refs;
  4772. /* (readonly) */
  4773. Array<PackageFile> requiredPackageFiles;
  4774. /* (readonly) */
  4775. Vector3 right;
  4776. Quaternion rotation;
  4777. Vector3 scale;
  4778. /* (readonly) */
  4779. ScriptObject scriptObject;
  4780. float smoothingConstant;
  4781. float snapThreshold;
  4782. bool temporary;
  4783. float timeScale;
  4784. /* (readonly) */
  4785. Matrix3x4 transform;
  4786. /* (readonly) */
  4787. ShortStringHash type;
  4788. /* (readonly) */
  4789. String typeName;
  4790. /* (readonly) */
  4791. Vector3 up;
  4792. bool updateEnabled;
  4793. /* (readonly) */
  4794. VariantMap vars;
  4795. /* (readonly) */
  4796. int weakRefs;
  4797. Vector3 worldDirection;
  4798. Vector3 worldPosition;
  4799. /* (readonly) */
  4800. Vector3 worldRight;
  4801. Quaternion worldRotation;
  4802. Vector3 worldScale;
  4803. /* (readonly) */
  4804. Matrix3x4 worldTransform;
  4805. /* (readonly) */
  4806. Vector3 worldUp;
  4807. };
  4808. class Script
  4809. {
  4810. // Methods:
  4811. void DumpAPI(DumpMode = DOXYGEN);
  4812. bool Execute(const String&);
  4813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4814. // Properties:
  4815. /* (readonly) */
  4816. ShortStringHash baseType;
  4817. /* (readonly) */
  4818. String category;
  4819. Scene defaultScene;
  4820. ScriptFile defaultScriptFile;
  4821. /* (readonly) */
  4822. int refs;
  4823. /* (readonly) */
  4824. ShortStringHash type;
  4825. /* (readonly) */
  4826. String typeName;
  4827. /* (readonly) */
  4828. int weakRefs;
  4829. };
  4830. class ScriptFile
  4831. {
  4832. // Methods:
  4833. void ClearDelayedExecute(const String& = String ( ));
  4834. void DelayedExecute(float, bool, const String&);
  4835. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  4836. bool Execute(const String&, const Array<Variant>);
  4837. bool Load(File);
  4838. bool Save(File) const;
  4839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4840. // Properties:
  4841. /* (readonly) */
  4842. ShortStringHash baseType;
  4843. /* (readonly) */
  4844. String category;
  4845. /* (readonly) */
  4846. bool compiled;
  4847. /* (readonly) */
  4848. uint memoryUse;
  4849. String name;
  4850. /* (readonly) */
  4851. int refs;
  4852. /* (readonly) */
  4853. ShortStringHash type;
  4854. /* (readonly) */
  4855. String typeName;
  4856. /* (readonly) */
  4857. uint useTimer;
  4858. /* (readonly) */
  4859. int weakRefs;
  4860. };
  4861. class ScriptInstance
  4862. {
  4863. // Methods:
  4864. void ApplyAttributes();
  4865. void ClearDelayedExecute(const String& = String ( ));
  4866. bool CreateObject(ScriptFile, const String&);
  4867. void DelayedExecute(float, bool, const String&);
  4868. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  4869. void DrawDebugGeometry(DebugRenderer, bool);
  4870. bool Execute(const String&);
  4871. bool Execute(const String&, const Array<Variant>);
  4872. Variant GetAttribute(const String&) const;
  4873. Variant GetAttributeDefault(const String&) const;
  4874. bool Load(File, bool = false);
  4875. bool LoadXML(const XMLElement&, bool = false);
  4876. void MarkNetworkUpdate() const;
  4877. void Remove();
  4878. void RemoveInstanceDefault();
  4879. void ResetToDefault();
  4880. bool Save(File) const;
  4881. bool SaveXML(XMLElement&) const;
  4882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4883. bool SetAttribute(const String&, const Variant&);
  4884. // Properties:
  4885. /* (readonly) */
  4886. Array<Variant> attributeDefaults;
  4887. /* (readonly) */
  4888. Array<AttributeInfo> attributeInfos;
  4889. Array<Variant> attributes;
  4890. /* (readonly) */
  4891. ShortStringHash baseType;
  4892. /* (readonly) */
  4893. String category;
  4894. String className;
  4895. bool enabled;
  4896. /* (readonly) */
  4897. bool enabledEffective;
  4898. int fixedUpdateFps;
  4899. /* (readonly) */
  4900. uint id;
  4901. /* (readonly) */
  4902. Node node;
  4903. /* (readonly) */
  4904. uint numAttributes;
  4905. /* (readonly) */
  4906. ScriptObject object;
  4907. /* (readonly) */
  4908. int refs;
  4909. ScriptFile scriptFile;
  4910. bool temporary;
  4911. /* (readonly) */
  4912. ShortStringHash type;
  4913. /* (readonly) */
  4914. String typeName;
  4915. /* (readonly) */
  4916. int weakRefs;
  4917. };
  4918. class ScriptObject
  4919. {
  4920. };
  4921. class ScrollBar
  4922. {
  4923. // Methods:
  4924. void AddChild(UIElement);
  4925. void ApplyAttributes();
  4926. void BringToFront();
  4927. void ChangeValue(float);
  4928. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4929. void DisableLayoutUpdate();
  4930. IntVector2 ElementToScreen(const IntVector2&);
  4931. void EnableLayoutUpdate();
  4932. uint FindChild(UIElement) const;
  4933. Variant GetAttribute(const String&) const;
  4934. Variant GetAttributeDefault(const String&) const;
  4935. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4936. UIElement GetChild(const String&, bool = false) const;
  4937. Array<UIElement> GetChildren(bool = false) const;
  4938. UIElement GetElementEventSender() const;
  4939. uint GetNumChildren(bool) const;
  4940. void InsertChild(uint, UIElement);
  4941. bool IsInside(IntVector2, bool);
  4942. bool IsInsideCombined(IntVector2, bool);
  4943. bool Load(File, bool = false);
  4944. bool LoadChildXML(XMLFile, XMLFile = null);
  4945. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4946. bool LoadXML(File);
  4947. bool LoadXML(XMLFile, XMLFile);
  4948. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4949. bool LoadXML(const XMLElement&, bool = false);
  4950. void Remove();
  4951. void RemoveAllChildren();
  4952. void RemoveChild(UIElement, uint = 0);
  4953. void RemoveChild(uint);
  4954. void RemoveInstanceDefault();
  4955. void ResetToDefault();
  4956. bool Save(File) const;
  4957. bool SaveXML(File);
  4958. bool SaveXML(XMLElement&) const;
  4959. IntVector2 ScreenToElement(const IntVector2&);
  4960. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4961. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4962. bool SetAttribute(const String&, const Variant&);
  4963. void SetFixedHeight(int);
  4964. void SetFixedSize(int, int);
  4965. void SetFixedWidth(int);
  4966. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4967. void SetMaxSize(int, int);
  4968. void SetMinSize(int, int);
  4969. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4970. void SetPosition(int, int);
  4971. void SetSize(int, int);
  4972. bool SetStyle(const String&, XMLFile = null);
  4973. bool SetStyle(const XMLElement&);
  4974. bool SetStyleAuto(XMLFile = null);
  4975. void StepBack();
  4976. void StepForward();
  4977. void UpdateLayout();
  4978. const Variant& GetVar(const ShortStringHash&);
  4979. // Properties:
  4980. /* (readonly) */
  4981. Array<Variant> attributeDefaults;
  4982. /* (readonly) */
  4983. Array<AttributeInfo> attributeInfos;
  4984. Array<Variant> attributes;
  4985. /* (readonly) */
  4986. Button backButton;
  4987. /* (readonly) */
  4988. ShortStringHash baseType;
  4989. bool bringToBack;
  4990. bool bringToFront;
  4991. /* (readonly) */
  4992. String category;
  4993. /* (readonly) */
  4994. IntVector2 childOffset;
  4995. /* (readonly) */
  4996. Array<UIElement> children;
  4997. IntRect clipBorder;
  4998. bool clipChildren;
  4999. /* (writeonly) */
  5000. Color color;
  5001. /* (readonly) */
  5002. bool colorGradient;
  5003. Array<Color> colors;
  5004. /* (readonly) */
  5005. IntRect combinedScreenRect;
  5006. XMLFile defaultStyle;
  5007. /* (readonly) */
  5008. float derivedOpacity;
  5009. uint dragDropMode;
  5010. bool editable;
  5011. /* (readonly) */
  5012. float effectiveScrollStep;
  5013. bool elementEventSender;
  5014. bool enabled;
  5015. /* (readonly) */
  5016. bool fixedHeight;
  5017. /* (readonly) */
  5018. bool fixedSize;
  5019. /* (readonly) */
  5020. bool fixedWidth;
  5021. bool focus;
  5022. FocusMode focusMode;
  5023. /* (readonly) */
  5024. Button forwardButton;
  5025. int height;
  5026. HorizontalAlignment horizontalAlignment;
  5027. /* (readonly) */
  5028. bool hovering;
  5029. int indent;
  5030. int indentSpacing;
  5031. /* (readonly) */
  5032. int indentWidth;
  5033. bool internal;
  5034. IntRect layoutBorder;
  5035. LayoutMode layoutMode;
  5036. int layoutSpacing;
  5037. int maxHeight;
  5038. IntVector2 maxSize;
  5039. int maxWidth;
  5040. int minHeight;
  5041. IntVector2 minSize;
  5042. int minWidth;
  5043. String name;
  5044. /* (readonly) */
  5045. uint numAllChildren;
  5046. /* (readonly) */
  5047. uint numAttributes;
  5048. /* (readonly) */
  5049. uint numChildren;
  5050. float opacity;
  5051. Orientation orientation;
  5052. UIElement parent;
  5053. IntVector2 position;
  5054. int priority;
  5055. float range;
  5056. /* (readonly) */
  5057. int refs;
  5058. /* (readonly) */
  5059. UIElement root;
  5060. /* (readonly) */
  5061. IntVector2 screenPosition;
  5062. float scrollStep;
  5063. bool selected;
  5064. IntVector2 size;
  5065. /* (readonly) */
  5066. Slider slider;
  5067. bool sortChildren;
  5068. float stepFactor;
  5069. String style;
  5070. bool temporary;
  5071. TraversalMode traversalMode;
  5072. /* (readonly) */
  5073. ShortStringHash type;
  5074. /* (readonly) */
  5075. String typeName;
  5076. bool useDerivedOpacity;
  5077. float value;
  5078. /* (readonly) */
  5079. VariantMap vars;
  5080. VerticalAlignment verticalAlignment;
  5081. bool visible;
  5082. /* (readonly) */
  5083. int weakRefs;
  5084. int width;
  5085. };
  5086. class ScrollView
  5087. {
  5088. // Methods:
  5089. void AddChild(UIElement);
  5090. void ApplyAttributes();
  5091. void BringToFront();
  5092. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5093. void DisableLayoutUpdate();
  5094. IntVector2 ElementToScreen(const IntVector2&);
  5095. void EnableLayoutUpdate();
  5096. uint FindChild(UIElement) const;
  5097. Variant GetAttribute(const String&) const;
  5098. Variant GetAttributeDefault(const String&) const;
  5099. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5100. UIElement GetChild(const String&, bool = false) const;
  5101. Array<UIElement> GetChildren(bool = false) const;
  5102. UIElement GetElementEventSender() const;
  5103. uint GetNumChildren(bool) const;
  5104. void InsertChild(uint, UIElement);
  5105. bool IsInside(IntVector2, bool);
  5106. bool IsInsideCombined(IntVector2, bool);
  5107. bool Load(File, bool = false);
  5108. bool LoadChildXML(XMLFile, XMLFile = null);
  5109. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5110. bool LoadXML(File);
  5111. bool LoadXML(XMLFile, XMLFile);
  5112. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5113. bool LoadXML(const XMLElement&, bool = false);
  5114. void Remove();
  5115. void RemoveAllChildren();
  5116. void RemoveChild(UIElement, uint = 0);
  5117. void RemoveChild(uint);
  5118. void RemoveInstanceDefault();
  5119. void ResetToDefault();
  5120. bool Save(File) const;
  5121. bool SaveXML(File);
  5122. bool SaveXML(XMLElement&) const;
  5123. IntVector2 ScreenToElement(const IntVector2&);
  5124. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5125. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5126. bool SetAttribute(const String&, const Variant&);
  5127. void SetFixedHeight(int);
  5128. void SetFixedSize(int, int);
  5129. void SetFixedWidth(int);
  5130. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5131. void SetMaxSize(int, int);
  5132. void SetMinSize(int, int);
  5133. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5134. void SetPosition(int, int);
  5135. void SetScrollBarsVisible(bool, bool);
  5136. void SetSize(int, int);
  5137. bool SetStyle(const String&, XMLFile = null);
  5138. bool SetStyle(const XMLElement&);
  5139. bool SetStyleAuto(XMLFile = null);
  5140. void SetViewPosition(int, int);
  5141. void UpdateLayout();
  5142. const Variant& GetVar(const ShortStringHash&);
  5143. // Properties:
  5144. /* (readonly) */
  5145. Array<Variant> attributeDefaults;
  5146. /* (readonly) */
  5147. Array<AttributeInfo> attributeInfos;
  5148. Array<Variant> attributes;
  5149. /* (readonly) */
  5150. ShortStringHash baseType;
  5151. bool bringToBack;
  5152. bool bringToFront;
  5153. /* (readonly) */
  5154. String category;
  5155. /* (readonly) */
  5156. IntVector2 childOffset;
  5157. /* (readonly) */
  5158. Array<UIElement> children;
  5159. IntRect clipBorder;
  5160. bool clipChildren;
  5161. /* (writeonly) */
  5162. Color color;
  5163. /* (readonly) */
  5164. bool colorGradient;
  5165. Array<Color> colors;
  5166. /* (readonly) */
  5167. IntRect combinedScreenRect;
  5168. UIElement contentElement;
  5169. XMLFile defaultStyle;
  5170. /* (readonly) */
  5171. float derivedOpacity;
  5172. uint dragDropMode;
  5173. bool editable;
  5174. bool elementEventSender;
  5175. bool enabled;
  5176. /* (readonly) */
  5177. bool fixedHeight;
  5178. /* (readonly) */
  5179. bool fixedSize;
  5180. /* (readonly) */
  5181. bool fixedWidth;
  5182. bool focus;
  5183. FocusMode focusMode;
  5184. int height;
  5185. HorizontalAlignment horizontalAlignment;
  5186. /* (readonly) */
  5187. ScrollBar horizontalScrollBar;
  5188. /* (readonly) */
  5189. bool hovering;
  5190. int indent;
  5191. int indentSpacing;
  5192. /* (readonly) */
  5193. int indentWidth;
  5194. bool internal;
  5195. IntRect layoutBorder;
  5196. LayoutMode layoutMode;
  5197. int layoutSpacing;
  5198. int maxHeight;
  5199. IntVector2 maxSize;
  5200. int maxWidth;
  5201. int minHeight;
  5202. IntVector2 minSize;
  5203. int minWidth;
  5204. String name;
  5205. /* (readonly) */
  5206. uint numAllChildren;
  5207. /* (readonly) */
  5208. uint numAttributes;
  5209. /* (readonly) */
  5210. uint numChildren;
  5211. float opacity;
  5212. float pageStep;
  5213. UIElement parent;
  5214. IntVector2 position;
  5215. int priority;
  5216. /* (readonly) */
  5217. int refs;
  5218. /* (readonly) */
  5219. UIElement root;
  5220. /* (readonly) */
  5221. IntVector2 screenPosition;
  5222. bool scrollBarsAutoVisible;
  5223. /* (readonly) */
  5224. BorderImage scrollPanel;
  5225. float scrollStep;
  5226. bool selected;
  5227. IntVector2 size;
  5228. bool sortChildren;
  5229. String style;
  5230. bool temporary;
  5231. TraversalMode traversalMode;
  5232. /* (readonly) */
  5233. ShortStringHash type;
  5234. /* (readonly) */
  5235. String typeName;
  5236. bool useDerivedOpacity;
  5237. /* (readonly) */
  5238. VariantMap vars;
  5239. VerticalAlignment verticalAlignment;
  5240. /* (readonly) */
  5241. ScrollBar verticalScrollBar;
  5242. IntVector2 viewPosition;
  5243. bool visible;
  5244. /* (readonly) */
  5245. int weakRefs;
  5246. int width;
  5247. };
  5248. class Serializable
  5249. {
  5250. // Methods:
  5251. void ApplyAttributes();
  5252. Variant GetAttribute(const String&) const;
  5253. Variant GetAttributeDefault(const String&) const;
  5254. bool Load(File, bool = false);
  5255. bool LoadXML(const XMLElement&, bool = false);
  5256. void RemoveInstanceDefault();
  5257. void ResetToDefault();
  5258. bool Save(File) const;
  5259. bool SaveXML(XMLElement&) const;
  5260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5261. bool SetAttribute(const String&, const Variant&);
  5262. // Properties:
  5263. /* (readonly) */
  5264. Array<Variant> attributeDefaults;
  5265. /* (readonly) */
  5266. Array<AttributeInfo> attributeInfos;
  5267. Array<Variant> attributes;
  5268. /* (readonly) */
  5269. ShortStringHash baseType;
  5270. /* (readonly) */
  5271. String category;
  5272. /* (readonly) */
  5273. uint numAttributes;
  5274. /* (readonly) */
  5275. int refs;
  5276. bool temporary;
  5277. /* (readonly) */
  5278. ShortStringHash type;
  5279. /* (readonly) */
  5280. String typeName;
  5281. /* (readonly) */
  5282. int weakRefs;
  5283. };
  5284. class Serializer
  5285. {
  5286. // Methods:
  5287. uint Write(Array<uint8>);
  5288. bool WriteBool(bool);
  5289. bool WriteBoundingBox(const BoundingBox&);
  5290. bool WriteByte(int8);
  5291. bool WriteColor(const Color&);
  5292. bool WriteFileID(const String&);
  5293. bool WriteFloat(float);
  5294. bool WriteInt(int);
  5295. bool WriteIntRect(const IntRect&);
  5296. bool WriteIntVector2(const IntVector2&);
  5297. bool WriteLine(const String&);
  5298. bool WriteNetID(uint);
  5299. bool WritePackedQuaternion(const Quaternion&);
  5300. bool WritePackedVector3(const Vector3&, float);
  5301. bool WriteQuaternion(const Quaternion&);
  5302. bool WriteShort(int16);
  5303. bool WriteShortStringHash(const ShortStringHash&);
  5304. bool WriteString(const String&);
  5305. bool WriteStringHash(const StringHash&);
  5306. bool WriteUByte(uint8);
  5307. bool WriteUInt(uint);
  5308. bool WriteUShort(uint16);
  5309. bool WriteVLE(uint);
  5310. bool WriteVariant(const Variant&);
  5311. bool WriteVariantMap(const VariantMap&);
  5312. bool WriteVector2(const Vector2&);
  5313. bool WriteVector3(const Vector3&);
  5314. bool WriteVector4(const Vector4&);
  5315. };
  5316. class ShortStringHash
  5317. {
  5318. // Methods:
  5319. String ToString() const;
  5320. // Properties:
  5321. /* (readonly) */
  5322. uint16 value;
  5323. };
  5324. class Skeleton
  5325. {
  5326. // Methods:
  5327. Bone GetBone(const String&) const;
  5328. void Reset();
  5329. // Properties:
  5330. /* (readonly) */
  5331. Array<Bone> bones;
  5332. /* (readonly) */
  5333. uint numBones;
  5334. /* (readonly) */
  5335. Bone rootBone;
  5336. };
  5337. class Skybox
  5338. {
  5339. // Methods:
  5340. void ApplyAttributes();
  5341. void ApplyMaterialList(const String& = String ( ));
  5342. void DrawDebugGeometry(DebugRenderer, bool);
  5343. Variant GetAttribute(const String&) const;
  5344. Variant GetAttributeDefault(const String&) const;
  5345. bool Load(File, bool = false);
  5346. bool LoadXML(const XMLElement&, bool = false);
  5347. void MarkNetworkUpdate() const;
  5348. void Remove();
  5349. void RemoveInstanceDefault();
  5350. void ResetToDefault();
  5351. bool Save(File) const;
  5352. bool SaveXML(XMLElement&) const;
  5353. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5354. bool SetAttribute(const String&, const Variant&);
  5355. // Properties:
  5356. /* (readonly) */
  5357. Array<Variant> attributeDefaults;
  5358. /* (readonly) */
  5359. Array<AttributeInfo> attributeInfos;
  5360. Array<Variant> attributes;
  5361. /* (readonly) */
  5362. ShortStringHash baseType;
  5363. /* (readonly) */
  5364. BoundingBox boundingBox;
  5365. bool castShadows;
  5366. /* (readonly) */
  5367. String category;
  5368. float drawDistance;
  5369. bool enabled;
  5370. /* (readonly) */
  5371. bool enabledEffective;
  5372. /* (readonly) */
  5373. uint id;
  5374. /* (readonly) */
  5375. bool inView;
  5376. uint lightMask;
  5377. float lodBias;
  5378. /* (writeonly) */
  5379. Material material;
  5380. Array<Material> materials;
  5381. uint maxLights;
  5382. Model model;
  5383. /* (readonly) */
  5384. Node node;
  5385. /* (readonly) */
  5386. uint numAttributes;
  5387. /* (readonly) */
  5388. uint numGeometries;
  5389. bool occludee;
  5390. bool occluder;
  5391. /* (readonly) */
  5392. int refs;
  5393. float shadowDistance;
  5394. uint shadowMask;
  5395. bool temporary;
  5396. /* (readonly) */
  5397. ShortStringHash type;
  5398. /* (readonly) */
  5399. String typeName;
  5400. uint viewMask;
  5401. /* (readonly) */
  5402. int weakRefs;
  5403. /* (readonly) */
  5404. BoundingBox worldBoundingBox;
  5405. /* (readonly) */
  5406. Zone zone;
  5407. uint zoneMask;
  5408. };
  5409. class Slider
  5410. {
  5411. // Methods:
  5412. void AddChild(UIElement);
  5413. void ApplyAttributes();
  5414. void BringToFront();
  5415. void ChangeValue(float);
  5416. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5417. void DisableLayoutUpdate();
  5418. IntVector2 ElementToScreen(const IntVector2&);
  5419. void EnableLayoutUpdate();
  5420. uint FindChild(UIElement) const;
  5421. Variant GetAttribute(const String&) const;
  5422. Variant GetAttributeDefault(const String&) const;
  5423. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5424. UIElement GetChild(const String&, bool = false) const;
  5425. Array<UIElement> GetChildren(bool = false) const;
  5426. UIElement GetElementEventSender() const;
  5427. uint GetNumChildren(bool) const;
  5428. void InsertChild(uint, UIElement);
  5429. bool IsInside(IntVector2, bool);
  5430. bool IsInsideCombined(IntVector2, bool);
  5431. bool Load(File, bool = false);
  5432. bool LoadChildXML(XMLFile, XMLFile = null);
  5433. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5434. bool LoadXML(File);
  5435. bool LoadXML(XMLFile, XMLFile);
  5436. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5437. bool LoadXML(const XMLElement&, bool = false);
  5438. void Remove();
  5439. void RemoveAllChildren();
  5440. void RemoveChild(UIElement, uint = 0);
  5441. void RemoveChild(uint);
  5442. void RemoveInstanceDefault();
  5443. void ResetToDefault();
  5444. bool Save(File) const;
  5445. bool SaveXML(File);
  5446. bool SaveXML(XMLElement&) const;
  5447. IntVector2 ScreenToElement(const IntVector2&);
  5448. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5449. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5450. bool SetAttribute(const String&, const Variant&);
  5451. void SetFixedHeight(int);
  5452. void SetFixedSize(int, int);
  5453. void SetFixedWidth(int);
  5454. void SetFullImageRect();
  5455. void SetHoverOffset(int, int);
  5456. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5457. void SetMaxSize(int, int);
  5458. void SetMinSize(int, int);
  5459. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5460. void SetPosition(int, int);
  5461. void SetSize(int, int);
  5462. bool SetStyle(const String&, XMLFile = null);
  5463. bool SetStyle(const XMLElement&);
  5464. bool SetStyleAuto(XMLFile = null);
  5465. void UpdateLayout();
  5466. const Variant& GetVar(const ShortStringHash&);
  5467. // Properties:
  5468. /* (readonly) */
  5469. Array<Variant> attributeDefaults;
  5470. /* (readonly) */
  5471. Array<AttributeInfo> attributeInfos;
  5472. Array<Variant> attributes;
  5473. /* (readonly) */
  5474. ShortStringHash baseType;
  5475. BlendMode blendMode;
  5476. IntRect border;
  5477. bool bringToBack;
  5478. bool bringToFront;
  5479. /* (readonly) */
  5480. String category;
  5481. /* (readonly) */
  5482. IntVector2 childOffset;
  5483. /* (readonly) */
  5484. Array<UIElement> children;
  5485. IntRect clipBorder;
  5486. bool clipChildren;
  5487. /* (writeonly) */
  5488. Color color;
  5489. /* (readonly) */
  5490. bool colorGradient;
  5491. Array<Color> colors;
  5492. /* (readonly) */
  5493. IntRect combinedScreenRect;
  5494. XMLFile defaultStyle;
  5495. /* (readonly) */
  5496. float derivedOpacity;
  5497. uint dragDropMode;
  5498. bool editable;
  5499. bool elementEventSender;
  5500. bool enabled;
  5501. /* (readonly) */
  5502. bool fixedHeight;
  5503. /* (readonly) */
  5504. bool fixedSize;
  5505. /* (readonly) */
  5506. bool fixedWidth;
  5507. bool focus;
  5508. FocusMode focusMode;
  5509. int height;
  5510. HorizontalAlignment horizontalAlignment;
  5511. IntVector2 hoverOffset;
  5512. /* (readonly) */
  5513. bool hovering;
  5514. IntRect imageRect;
  5515. int indent;
  5516. int indentSpacing;
  5517. /* (readonly) */
  5518. int indentWidth;
  5519. bool internal;
  5520. /* (readonly) */
  5521. BorderImage knob;
  5522. IntRect layoutBorder;
  5523. LayoutMode layoutMode;
  5524. int layoutSpacing;
  5525. int maxHeight;
  5526. IntVector2 maxSize;
  5527. int maxWidth;
  5528. int minHeight;
  5529. IntVector2 minSize;
  5530. int minWidth;
  5531. String name;
  5532. /* (readonly) */
  5533. uint numAllChildren;
  5534. /* (readonly) */
  5535. uint numAttributes;
  5536. /* (readonly) */
  5537. uint numChildren;
  5538. float opacity;
  5539. Orientation orientation;
  5540. UIElement parent;
  5541. IntVector2 position;
  5542. int priority;
  5543. float range;
  5544. /* (readonly) */
  5545. int refs;
  5546. float repeatRate;
  5547. /* (readonly) */
  5548. UIElement root;
  5549. /* (readonly) */
  5550. IntVector2 screenPosition;
  5551. bool selected;
  5552. IntVector2 size;
  5553. bool sortChildren;
  5554. String style;
  5555. bool temporary;
  5556. Texture texture;
  5557. bool tiled;
  5558. TraversalMode traversalMode;
  5559. /* (readonly) */
  5560. ShortStringHash type;
  5561. /* (readonly) */
  5562. String typeName;
  5563. bool useDerivedOpacity;
  5564. float value;
  5565. /* (readonly) */
  5566. VariantMap vars;
  5567. VerticalAlignment verticalAlignment;
  5568. bool visible;
  5569. /* (readonly) */
  5570. int weakRefs;
  5571. int width;
  5572. };
  5573. class SmoothedTransform
  5574. {
  5575. // Methods:
  5576. void ApplyAttributes();
  5577. void DrawDebugGeometry(DebugRenderer, bool);
  5578. Variant GetAttribute(const String&) const;
  5579. Variant GetAttributeDefault(const String&) const;
  5580. bool Load(File, bool = false);
  5581. bool LoadXML(const XMLElement&, bool = false);
  5582. void MarkNetworkUpdate() const;
  5583. void Remove();
  5584. void RemoveInstanceDefault();
  5585. void ResetToDefault();
  5586. bool Save(File) const;
  5587. bool SaveXML(XMLElement&) const;
  5588. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5589. bool SetAttribute(const String&, const Variant&);
  5590. void Update(float, float);
  5591. // Properties:
  5592. /* (readonly) */
  5593. Array<Variant> attributeDefaults;
  5594. /* (readonly) */
  5595. Array<AttributeInfo> attributeInfos;
  5596. Array<Variant> attributes;
  5597. /* (readonly) */
  5598. ShortStringHash baseType;
  5599. /* (readonly) */
  5600. String category;
  5601. bool enabled;
  5602. /* (readonly) */
  5603. bool enabledEffective;
  5604. /* (readonly) */
  5605. uint id;
  5606. /* (readonly) */
  5607. bool inProgress;
  5608. /* (readonly) */
  5609. Node node;
  5610. /* (readonly) */
  5611. uint numAttributes;
  5612. /* (readonly) */
  5613. int refs;
  5614. Vector3 targetPosition;
  5615. Quaternion targetRotation;
  5616. Vector3 targetWorldPosition;
  5617. Quaternion targetWorldRotation;
  5618. bool temporary;
  5619. /* (readonly) */
  5620. ShortStringHash type;
  5621. /* (readonly) */
  5622. String typeName;
  5623. /* (readonly) */
  5624. int weakRefs;
  5625. };
  5626. class Sound
  5627. {
  5628. // Methods:
  5629. bool Load(File);
  5630. bool Save(File) const;
  5631. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5632. // Properties:
  5633. /* (readonly) */
  5634. ShortStringHash baseType;
  5635. /* (readonly) */
  5636. String category;
  5637. /* (readonly) */
  5638. bool compressed;
  5639. /* (readonly) */
  5640. float frequency;
  5641. /* (readonly) */
  5642. float length;
  5643. bool looped;
  5644. /* (readonly) */
  5645. uint memoryUse;
  5646. String name;
  5647. /* (readonly) */
  5648. int refs;
  5649. /* (readonly) */
  5650. uint sampleSize;
  5651. /* (readonly) */
  5652. bool sixteenBit;
  5653. /* (readonly) */
  5654. bool stereo;
  5655. /* (readonly) */
  5656. ShortStringHash type;
  5657. /* (readonly) */
  5658. String typeName;
  5659. /* (readonly) */
  5660. uint useTimer;
  5661. /* (readonly) */
  5662. int weakRefs;
  5663. };
  5664. class SoundListener
  5665. {
  5666. // Methods:
  5667. void ApplyAttributes();
  5668. void DrawDebugGeometry(DebugRenderer, bool);
  5669. Variant GetAttribute(const String&) const;
  5670. Variant GetAttributeDefault(const String&) const;
  5671. bool Load(File, bool = false);
  5672. bool LoadXML(const XMLElement&, bool = false);
  5673. void MarkNetworkUpdate() const;
  5674. void Remove();
  5675. void RemoveInstanceDefault();
  5676. void ResetToDefault();
  5677. bool Save(File) const;
  5678. bool SaveXML(XMLElement&) const;
  5679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5680. bool SetAttribute(const String&, const Variant&);
  5681. // Properties:
  5682. /* (readonly) */
  5683. Array<Variant> attributeDefaults;
  5684. /* (readonly) */
  5685. Array<AttributeInfo> attributeInfos;
  5686. Array<Variant> attributes;
  5687. /* (readonly) */
  5688. ShortStringHash baseType;
  5689. /* (readonly) */
  5690. String category;
  5691. bool enabled;
  5692. /* (readonly) */
  5693. bool enabledEffective;
  5694. /* (readonly) */
  5695. uint id;
  5696. /* (readonly) */
  5697. Node node;
  5698. /* (readonly) */
  5699. uint numAttributes;
  5700. /* (readonly) */
  5701. int refs;
  5702. bool temporary;
  5703. /* (readonly) */
  5704. ShortStringHash type;
  5705. /* (readonly) */
  5706. String typeName;
  5707. /* (readonly) */
  5708. int weakRefs;
  5709. };
  5710. class SoundSource
  5711. {
  5712. // Methods:
  5713. void ApplyAttributes();
  5714. void DrawDebugGeometry(DebugRenderer, bool);
  5715. Variant GetAttribute(const String&) const;
  5716. Variant GetAttributeDefault(const String&) const;
  5717. bool Load(File, bool = false);
  5718. bool LoadXML(const XMLElement&, bool = false);
  5719. void MarkNetworkUpdate() const;
  5720. void Play(Sound);
  5721. void Play(Sound, float);
  5722. void Play(Sound, float, float);
  5723. void Play(Sound, float, float, float);
  5724. void Remove();
  5725. void RemoveInstanceDefault();
  5726. void ResetToDefault();
  5727. bool Save(File) const;
  5728. bool SaveXML(XMLElement&) const;
  5729. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5730. bool SetAttribute(const String&, const Variant&);
  5731. void Stop();
  5732. // Properties:
  5733. /* (readonly) */
  5734. float attenuation;
  5735. /* (readonly) */
  5736. Array<Variant> attributeDefaults;
  5737. /* (readonly) */
  5738. Array<AttributeInfo> attributeInfos;
  5739. Array<Variant> attributes;
  5740. bool autoRemove;
  5741. /* (readonly) */
  5742. ShortStringHash baseType;
  5743. /* (readonly) */
  5744. String category;
  5745. bool enabled;
  5746. /* (readonly) */
  5747. bool enabledEffective;
  5748. float frequency;
  5749. float gain;
  5750. /* (readonly) */
  5751. uint id;
  5752. /* (readonly) */
  5753. Node node;
  5754. /* (readonly) */
  5755. uint numAttributes;
  5756. float panning;
  5757. /* (readonly) */
  5758. bool playing;
  5759. /* (readonly) */
  5760. int refs;
  5761. /* (readonly) */
  5762. Sound sound;
  5763. SoundType soundType;
  5764. bool temporary;
  5765. /* (readonly) */
  5766. float timePosition;
  5767. /* (readonly) */
  5768. ShortStringHash type;
  5769. /* (readonly) */
  5770. String typeName;
  5771. /* (readonly) */
  5772. int weakRefs;
  5773. };
  5774. class SoundSource3D
  5775. {
  5776. // Methods:
  5777. void ApplyAttributes();
  5778. void DrawDebugGeometry(DebugRenderer, bool);
  5779. Variant GetAttribute(const String&) const;
  5780. Variant GetAttributeDefault(const String&) const;
  5781. bool Load(File, bool = false);
  5782. bool LoadXML(const XMLElement&, bool = false);
  5783. void MarkNetworkUpdate() const;
  5784. void Play(Sound);
  5785. void Play(Sound, float);
  5786. void Play(Sound, float, float);
  5787. void Play(Sound, float, float, float);
  5788. void Remove();
  5789. void RemoveInstanceDefault();
  5790. void ResetToDefault();
  5791. bool Save(File) const;
  5792. bool SaveXML(XMLElement&) const;
  5793. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5794. void SetAngleAttenuation(float, float);
  5795. bool SetAttribute(const String&, const Variant&);
  5796. void SetDistanceAttenuation(float, float, float);
  5797. void Stop();
  5798. // Properties:
  5799. /* (readonly) */
  5800. float attenuation;
  5801. /* (readonly) */
  5802. Array<Variant> attributeDefaults;
  5803. /* (readonly) */
  5804. Array<AttributeInfo> attributeInfos;
  5805. Array<Variant> attributes;
  5806. bool autoRemove;
  5807. /* (readonly) */
  5808. ShortStringHash baseType;
  5809. /* (readonly) */
  5810. String category;
  5811. bool enabled;
  5812. /* (readonly) */
  5813. bool enabledEffective;
  5814. float farDistance;
  5815. float frequency;
  5816. float gain;
  5817. /* (readonly) */
  5818. uint id;
  5819. float innerAngle;
  5820. float nearDistance;
  5821. /* (readonly) */
  5822. Node node;
  5823. /* (readonly) */
  5824. uint numAttributes;
  5825. float outerAngle;
  5826. float panning;
  5827. /* (readonly) */
  5828. bool playing;
  5829. /* (readonly) */
  5830. int refs;
  5831. float rolloffFactor;
  5832. /* (readonly) */
  5833. Sound sound;
  5834. SoundType soundType;
  5835. bool temporary;
  5836. /* (readonly) */
  5837. float timePosition;
  5838. /* (readonly) */
  5839. ShortStringHash type;
  5840. /* (readonly) */
  5841. String typeName;
  5842. /* (readonly) */
  5843. int weakRefs;
  5844. };
  5845. class Sphere
  5846. {
  5847. // Methods:
  5848. void Clear();
  5849. void Define(const BoundingBox&);
  5850. void Define(const Frustum&);
  5851. void Define(const Polyhedron&);
  5852. void Define(const Sphere&);
  5853. void Define(const Vector3&, float);
  5854. float Distance(const Vector3&) const;
  5855. Intersection IsInside(const BoundingBox&) const;
  5856. Intersection IsInside(const Sphere&) const;
  5857. Intersection IsInside(const Vector3&) const;
  5858. void Merge(const BoundingBox&);
  5859. void Merge(const Frustum&);
  5860. void Merge(const Sphere&);
  5861. void Merge(const Vector3&);
  5862. // Properties:
  5863. Vector3 center;
  5864. bool defined;
  5865. float radius;
  5866. };
  5867. class Spline
  5868. {
  5869. // Methods:
  5870. void ApplyAttributes();
  5871. Variant GetAttribute(const String&) const;
  5872. Variant GetAttributeDefault(const String&) const;
  5873. Vector3 GetPoint(float) const;
  5874. bool Load(File, bool = false);
  5875. bool LoadXML(const XMLElement&, bool = false);
  5876. void MarkNetworkUpdate() const;
  5877. void Move(float);
  5878. void Pop();
  5879. void Push(const Vector3&);
  5880. void Remove();
  5881. void RemoveInstanceDefault();
  5882. void Reset();
  5883. void ResetToDefault();
  5884. bool Save(File) const;
  5885. bool SaveXML(XMLElement&) const;
  5886. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5887. bool SetAttribute(const String&, const Variant&);
  5888. // Properties:
  5889. /* (readonly) */
  5890. Array<Variant> attributeDefaults;
  5891. /* (readonly) */
  5892. Array<AttributeInfo> attributeInfos;
  5893. Array<Variant> attributes;
  5894. /* (readonly) */
  5895. ShortStringHash baseType;
  5896. /* (readonly) */
  5897. String category;
  5898. Array<Vector3> controlPoints;
  5899. bool enabled;
  5900. /* (readonly) */
  5901. bool enabledEffective;
  5902. /* (readonly) */
  5903. bool finished;
  5904. /* (readonly) */
  5905. uint id;
  5906. InterpolationMode interpolationMode;
  5907. /* (readonly) */
  5908. Node node;
  5909. /* (readonly) */
  5910. uint numAttributes;
  5911. Vector3 position;
  5912. /* (readonly) */
  5913. int refs;
  5914. float speed;
  5915. bool temporary;
  5916. /* (readonly) */
  5917. ShortStringHash type;
  5918. /* (readonly) */
  5919. String typeName;
  5920. /* (readonly) */
  5921. int weakRefs;
  5922. };
  5923. class Sprite
  5924. {
  5925. // Methods:
  5926. void AddChild(UIElement);
  5927. void ApplyAttributes();
  5928. void BringToFront();
  5929. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5930. uint FindChild(UIElement) const;
  5931. Variant GetAttribute(const String&) const;
  5932. Variant GetAttributeDefault(const String&) const;
  5933. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  5934. UIElement GetChild(const String&, bool = false) const;
  5935. Array<UIElement> GetChildren(bool = false) const;
  5936. UIElement GetElementEventSender() const;
  5937. uint GetNumChildren(bool) const;
  5938. void InsertChild(uint, UIElement);
  5939. bool Load(File, bool = false);
  5940. bool LoadChildXML(XMLFile, XMLFile = null);
  5941. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5942. bool LoadXML(File);
  5943. bool LoadXML(XMLFile, XMLFile);
  5944. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5945. bool LoadXML(const XMLElement&, bool = false);
  5946. void Remove();
  5947. void RemoveAllChildren();
  5948. void RemoveChild(UIElement, uint = 0);
  5949. void RemoveChild(uint);
  5950. void RemoveInstanceDefault();
  5951. void ResetToDefault();
  5952. bool Save(File) const;
  5953. bool SaveXML(File);
  5954. bool SaveXML(XMLElement&) const;
  5955. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5956. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5957. bool SetAttribute(const String&, const Variant&);
  5958. void SetFixedHeight(int);
  5959. void SetFixedSize(int, int);
  5960. void SetFixedWidth(int);
  5961. void SetFullImageRect();
  5962. void SetHotSpot(int, int);
  5963. void SetMaxSize(int, int);
  5964. void SetMinSize(int, int);
  5965. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5966. void SetPosition(float, float);
  5967. void SetScale(float);
  5968. void SetScale(float, float);
  5969. void SetSize(int, int);
  5970. bool SetStyle(const String&, XMLFile = null);
  5971. bool SetStyle(const XMLElement&);
  5972. bool SetStyleAuto(XMLFile = null);
  5973. const Variant& GetVar(const ShortStringHash&);
  5974. // Properties:
  5975. /* (readonly) */
  5976. Array<Variant> attributeDefaults;
  5977. /* (readonly) */
  5978. Array<AttributeInfo> attributeInfos;
  5979. Array<Variant> attributes;
  5980. /* (readonly) */
  5981. ShortStringHash baseType;
  5982. BlendMode blendMode;
  5983. bool bringToBack;
  5984. bool bringToFront;
  5985. /* (readonly) */
  5986. String category;
  5987. /* (readonly) */
  5988. Array<UIElement> children;
  5989. /* (writeonly) */
  5990. Color color;
  5991. /* (readonly) */
  5992. bool colorGradient;
  5993. Array<Color> colors;
  5994. XMLFile defaultStyle;
  5995. /* (readonly) */
  5996. float derivedOpacity;
  5997. bool elementEventSender;
  5998. int height;
  5999. HorizontalAlignment horizontalAlignment;
  6000. IntVector2 hotSpot;
  6001. IntRect imageRect;
  6002. String name;
  6003. /* (readonly) */
  6004. uint numAllChildren;
  6005. /* (readonly) */
  6006. uint numAttributes;
  6007. /* (readonly) */
  6008. uint numChildren;
  6009. float opacity;
  6010. UIElement parent;
  6011. Vector2 position;
  6012. int priority;
  6013. /* (readonly) */
  6014. int refs;
  6015. /* (readonly) */
  6016. UIElement root;
  6017. float rotation;
  6018. Vector2 scale;
  6019. IntVector2 size;
  6020. bool sortChildren;
  6021. String style;
  6022. bool temporary;
  6023. Texture texture;
  6024. /* (readonly) */
  6025. ShortStringHash type;
  6026. /* (readonly) */
  6027. String typeName;
  6028. bool useDerivedOpacity;
  6029. /* (readonly) */
  6030. VariantMap vars;
  6031. VerticalAlignment verticalAlignment;
  6032. bool visible;
  6033. /* (readonly) */
  6034. int weakRefs;
  6035. int width;
  6036. };
  6037. class StaticModel
  6038. {
  6039. // Methods:
  6040. void ApplyAttributes();
  6041. void ApplyMaterialList(const String& = String ( ));
  6042. void DrawDebugGeometry(DebugRenderer, bool);
  6043. Variant GetAttribute(const String&) const;
  6044. Variant GetAttributeDefault(const String&) const;
  6045. bool IsInside(const Vector3&) const;
  6046. bool IsInsideLocal(const Vector3&) const;
  6047. bool Load(File, bool = false);
  6048. bool LoadXML(const XMLElement&, bool = false);
  6049. void MarkNetworkUpdate() const;
  6050. void Remove();
  6051. void RemoveInstanceDefault();
  6052. void ResetToDefault();
  6053. bool Save(File) const;
  6054. bool SaveXML(XMLElement&) const;
  6055. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6056. bool SetAttribute(const String&, const Variant&);
  6057. // Properties:
  6058. /* (readonly) */
  6059. Array<Variant> attributeDefaults;
  6060. /* (readonly) */
  6061. Array<AttributeInfo> attributeInfos;
  6062. Array<Variant> attributes;
  6063. /* (readonly) */
  6064. ShortStringHash baseType;
  6065. /* (readonly) */
  6066. BoundingBox boundingBox;
  6067. bool castShadows;
  6068. /* (readonly) */
  6069. String category;
  6070. float drawDistance;
  6071. bool enabled;
  6072. /* (readonly) */
  6073. bool enabledEffective;
  6074. /* (readonly) */
  6075. uint id;
  6076. /* (readonly) */
  6077. bool inView;
  6078. uint lightMask;
  6079. float lodBias;
  6080. /* (writeonly) */
  6081. Material material;
  6082. Array<Material> materials;
  6083. uint maxLights;
  6084. Model model;
  6085. /* (readonly) */
  6086. Node node;
  6087. /* (readonly) */
  6088. uint numAttributes;
  6089. /* (readonly) */
  6090. uint numGeometries;
  6091. bool occludee;
  6092. bool occluder;
  6093. uint occlusionLodLevel;
  6094. /* (readonly) */
  6095. int refs;
  6096. float shadowDistance;
  6097. uint shadowMask;
  6098. bool temporary;
  6099. /* (readonly) */
  6100. ShortStringHash type;
  6101. /* (readonly) */
  6102. String typeName;
  6103. uint viewMask;
  6104. /* (readonly) */
  6105. int weakRefs;
  6106. /* (readonly) */
  6107. BoundingBox worldBoundingBox;
  6108. uint zoneMask;
  6109. };
  6110. class StaticModelGroup
  6111. {
  6112. // Methods:
  6113. void AddInstanceNode(Node);
  6114. void ApplyAttributes();
  6115. void ApplyMaterialList(const String& = String ( ));
  6116. void DrawDebugGeometry(DebugRenderer, bool);
  6117. Variant GetAttribute(const String&) const;
  6118. Variant GetAttributeDefault(const String&) const;
  6119. bool Load(File, bool = false);
  6120. bool LoadXML(const XMLElement&, bool = false);
  6121. void MarkNetworkUpdate() const;
  6122. void Remove();
  6123. void RemoveAllInstanceNodes();
  6124. void RemoveInstanceDefault();
  6125. void RemoveInstanceNode(Node);
  6126. void ResetToDefault();
  6127. bool Save(File) const;
  6128. bool SaveXML(XMLElement&) const;
  6129. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6130. bool SetAttribute(const String&, const Variant&);
  6131. // Properties:
  6132. /* (readonly) */
  6133. Array<Variant> attributeDefaults;
  6134. /* (readonly) */
  6135. Array<AttributeInfo> attributeInfos;
  6136. Array<Variant> attributes;
  6137. /* (readonly) */
  6138. ShortStringHash baseType;
  6139. /* (readonly) */
  6140. BoundingBox boundingBox;
  6141. bool castShadows;
  6142. /* (readonly) */
  6143. String category;
  6144. float drawDistance;
  6145. bool enabled;
  6146. /* (readonly) */
  6147. bool enabledEffective;
  6148. /* (readonly) */
  6149. uint id;
  6150. /* (readonly) */
  6151. bool inView;
  6152. /* (readonly) */
  6153. Array<Node> instanceNodes;
  6154. uint lightMask;
  6155. float lodBias;
  6156. /* (writeonly) */
  6157. Material material;
  6158. Array<Material> materials;
  6159. uint maxLights;
  6160. Model model;
  6161. /* (readonly) */
  6162. Node node;
  6163. /* (readonly) */
  6164. uint numAttributes;
  6165. /* (readonly) */
  6166. uint numGeometries;
  6167. /* (readonly) */
  6168. uint numInstanceNodes;
  6169. bool occludee;
  6170. bool occluder;
  6171. uint occlusionLodLevel;
  6172. /* (readonly) */
  6173. int refs;
  6174. float shadowDistance;
  6175. uint shadowMask;
  6176. bool temporary;
  6177. /* (readonly) */
  6178. ShortStringHash type;
  6179. /* (readonly) */
  6180. String typeName;
  6181. uint viewMask;
  6182. /* (readonly) */
  6183. int weakRefs;
  6184. /* (readonly) */
  6185. BoundingBox worldBoundingBox;
  6186. /* (readonly) */
  6187. Zone zone;
  6188. uint zoneMask;
  6189. };
  6190. class String
  6191. {
  6192. // Methods:
  6193. void AppendUTF8(uint);
  6194. uint AtUTF8(uint) const;
  6195. uint ByteOffsetUTF8(uint) const;
  6196. void Clear();
  6197. int Compare(const String&, bool = true) const;
  6198. bool Contains(const String&, bool = true) const;
  6199. bool Contains(uint8, bool = true) const;
  6200. bool EndsWith(const String&, bool = true) const;
  6201. uint Find(const String&, uint = 0, bool = true) const;
  6202. uint Find(uint8, uint = 0, bool = true) const;
  6203. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  6204. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  6205. void Join(Array<String>&, const String&);
  6206. uint NextUTF8Char(uint&) const;
  6207. void Replace(const String&, const String&, bool = true);
  6208. void Replace(uint8, uint8, bool = true);
  6209. void ReplaceUTF8(uint, uint);
  6210. String Replaced(const String&, const String&, bool = true) const;
  6211. String Replaced(uint8, uint8, bool = true) const;
  6212. void Resize(uint);
  6213. void SetUTF8FromLatin1(const String&);
  6214. Array<String> Split(uint8) const;
  6215. bool StartsWith(const String&, bool = true) const;
  6216. String Substring(uint) const;
  6217. String Substring(uint, uint) const;
  6218. String SubstringUTF8(uint) const;
  6219. String SubstringUTF8(uint, uint) const;
  6220. bool ToBool() const;
  6221. Color ToColor() const;
  6222. float ToFloat() const;
  6223. int ToInt() const;
  6224. IntRect ToIntRect() const;
  6225. IntVector2 ToIntVector2() const;
  6226. String ToLower() const;
  6227. Quaternion ToQuaternion() const;
  6228. uint ToUInt() const;
  6229. String ToUpper() const;
  6230. Vector2 ToVector2() const;
  6231. Vector3 ToVector3() const;
  6232. Vector4 ToVector4(bool = false) const;
  6233. Variant ToVectorVariant() const;
  6234. String Trimmed() const;
  6235. // Properties:
  6236. /* (readonly) */
  6237. bool empty;
  6238. /* (readonly) */
  6239. uint length;
  6240. /* (readonly) */
  6241. uint utf8Length;
  6242. };
  6243. class StringHash
  6244. {
  6245. // Methods:
  6246. String ToString() const;
  6247. // Properties:
  6248. /* (readonly) */
  6249. uint value;
  6250. };
  6251. class Technique
  6252. {
  6253. // Methods:
  6254. Pass CreatePass(StringHash);
  6255. bool HasPass(StringHash) const;
  6256. bool Load(File);
  6257. void RemovePass(StringHash);
  6258. bool Save(File) const;
  6259. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6260. // Properties:
  6261. /* (readonly) */
  6262. ShortStringHash baseType;
  6263. /* (readonly) */
  6264. String category;
  6265. /* (readonly) */
  6266. uint memoryUse;
  6267. String name;
  6268. /* (readonly) */
  6269. Array<Pass> passes;
  6270. /* (readonly) */
  6271. int refs;
  6272. bool sm3;
  6273. /* (readonly) */
  6274. ShortStringHash type;
  6275. /* (readonly) */
  6276. String typeName;
  6277. /* (readonly) */
  6278. uint useTimer;
  6279. /* (readonly) */
  6280. int weakRefs;
  6281. };
  6282. class TechniqueEntry
  6283. {
  6284. // Properties:
  6285. float lodDistance;
  6286. int qualityLevel;
  6287. Technique technique;
  6288. };
  6289. class Terrain
  6290. {
  6291. // Methods:
  6292. void ApplyAttributes();
  6293. void DrawDebugGeometry(DebugRenderer, bool);
  6294. Variant GetAttribute(const String&) const;
  6295. Variant GetAttributeDefault(const String&) const;
  6296. float GetHeight(const Vector3&) const;
  6297. Vector3 GetNormal(const Vector3&) const;
  6298. TerrainPatch GetPatch(int, int) const;
  6299. bool Load(File, bool = false);
  6300. bool LoadXML(const XMLElement&, bool = false);
  6301. void MarkNetworkUpdate() const;
  6302. void Remove();
  6303. void RemoveInstanceDefault();
  6304. void ResetToDefault();
  6305. bool Save(File) const;
  6306. bool SaveXML(XMLElement&) const;
  6307. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6308. bool SetAttribute(const String&, const Variant&);
  6309. // Properties:
  6310. /* (readonly) */
  6311. Array<Variant> attributeDefaults;
  6312. /* (readonly) */
  6313. Array<AttributeInfo> attributeInfos;
  6314. Array<Variant> attributes;
  6315. /* (readonly) */
  6316. ShortStringHash baseType;
  6317. bool castShadows;
  6318. /* (readonly) */
  6319. String category;
  6320. float drawDistance;
  6321. bool enabled;
  6322. /* (readonly) */
  6323. bool enabledEffective;
  6324. Image heightMap;
  6325. /* (readonly) */
  6326. uint id;
  6327. uint lightMask;
  6328. float lodBias;
  6329. Material material;
  6330. uint maxLights;
  6331. /* (readonly) */
  6332. Node node;
  6333. /* (readonly) */
  6334. uint numAttributes;
  6335. /* (readonly) */
  6336. IntVector2 numPatches;
  6337. /* (readonly) */
  6338. IntVector2 numVertices;
  6339. bool occludee;
  6340. bool occluder;
  6341. int patchSize;
  6342. /* (readonly) */
  6343. Array<TerrainPatch> patches;
  6344. /* (readonly) */
  6345. int refs;
  6346. float shadowDistance;
  6347. uint shadowMask;
  6348. bool smoothing;
  6349. Vector3 spacing;
  6350. bool temporary;
  6351. /* (readonly) */
  6352. ShortStringHash type;
  6353. /* (readonly) */
  6354. String typeName;
  6355. uint viewMask;
  6356. /* (readonly) */
  6357. int weakRefs;
  6358. uint zoneMask;
  6359. };
  6360. class TerrainPatch
  6361. {
  6362. // Methods:
  6363. void ApplyAttributes();
  6364. void DrawDebugGeometry(DebugRenderer, bool);
  6365. Variant GetAttribute(const String&) const;
  6366. Variant GetAttributeDefault(const String&) const;
  6367. bool Load(File, bool = false);
  6368. bool LoadXML(const XMLElement&, bool = false);
  6369. void MarkNetworkUpdate() const;
  6370. void Remove();
  6371. void RemoveInstanceDefault();
  6372. void ResetToDefault();
  6373. bool Save(File) const;
  6374. bool SaveXML(XMLElement&) const;
  6375. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6376. bool SetAttribute(const String&, const Variant&);
  6377. // Properties:
  6378. /* (readonly) */
  6379. Array<Variant> attributeDefaults;
  6380. /* (readonly) */
  6381. Array<AttributeInfo> attributeInfos;
  6382. Array<Variant> attributes;
  6383. /* (readonly) */
  6384. ShortStringHash baseType;
  6385. /* (readonly) */
  6386. BoundingBox boundingBox;
  6387. bool castShadows;
  6388. /* (readonly) */
  6389. String category;
  6390. float drawDistance;
  6391. bool enabled;
  6392. /* (readonly) */
  6393. bool enabledEffective;
  6394. /* (readonly) */
  6395. uint id;
  6396. /* (readonly) */
  6397. bool inView;
  6398. uint lightMask;
  6399. float lodBias;
  6400. uint maxLights;
  6401. /* (readonly) */
  6402. Node node;
  6403. /* (readonly) */
  6404. uint numAttributes;
  6405. bool occludee;
  6406. bool occluder;
  6407. /* (readonly) */
  6408. int refs;
  6409. float shadowDistance;
  6410. uint shadowMask;
  6411. bool temporary;
  6412. /* (readonly) */
  6413. ShortStringHash type;
  6414. /* (readonly) */
  6415. String typeName;
  6416. uint viewMask;
  6417. /* (readonly) */
  6418. int weakRefs;
  6419. /* (readonly) */
  6420. BoundingBox worldBoundingBox;
  6421. uint zoneMask;
  6422. };
  6423. class Text
  6424. {
  6425. // Methods:
  6426. void AddChild(UIElement);
  6427. void ApplyAttributes();
  6428. void BringToFront();
  6429. void ClearSelection();
  6430. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6431. void DisableLayoutUpdate();
  6432. IntVector2 ElementToScreen(const IntVector2&);
  6433. void EnableLayoutUpdate();
  6434. uint FindChild(UIElement) const;
  6435. Variant GetAttribute(const String&) const;
  6436. Variant GetAttributeDefault(const String&) const;
  6437. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6438. UIElement GetChild(const String&, bool = false) const;
  6439. Array<UIElement> GetChildren(bool = false) const;
  6440. UIElement GetElementEventSender() const;
  6441. uint GetNumChildren(bool) const;
  6442. void InsertChild(uint, UIElement);
  6443. bool IsInside(IntVector2, bool);
  6444. bool IsInsideCombined(IntVector2, bool);
  6445. bool Load(File, bool = false);
  6446. bool LoadChildXML(XMLFile, XMLFile = null);
  6447. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6448. bool LoadXML(File);
  6449. bool LoadXML(XMLFile, XMLFile);
  6450. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6451. bool LoadXML(const XMLElement&, bool = false);
  6452. void Remove();
  6453. void RemoveAllChildren();
  6454. void RemoveChild(UIElement, uint = 0);
  6455. void RemoveChild(uint);
  6456. void RemoveInstanceDefault();
  6457. void ResetToDefault();
  6458. bool Save(File) const;
  6459. bool SaveXML(File);
  6460. bool SaveXML(XMLElement&) const;
  6461. IntVector2 ScreenToElement(const IntVector2&);
  6462. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6463. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6464. bool SetAttribute(const String&, const Variant&);
  6465. void SetFixedHeight(int);
  6466. void SetFixedSize(int, int);
  6467. void SetFixedWidth(int);
  6468. bool SetFont(Font, int);
  6469. bool SetFont(const String&, int);
  6470. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6471. void SetMaxSize(int, int);
  6472. void SetMinSize(int, int);
  6473. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6474. void SetPosition(int, int);
  6475. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  6476. void SetSize(int, int);
  6477. bool SetStyle(const String&, XMLFile = null);
  6478. bool SetStyle(const XMLElement&);
  6479. bool SetStyleAuto(XMLFile = null);
  6480. void UpdateLayout();
  6481. const Variant& GetVar(const ShortStringHash&);
  6482. // Properties:
  6483. /* (readonly) */
  6484. Array<Variant> attributeDefaults;
  6485. /* (readonly) */
  6486. Array<AttributeInfo> attributeInfos;
  6487. Array<Variant> attributes;
  6488. /* (readonly) */
  6489. ShortStringHash baseType;
  6490. bool bringToBack;
  6491. bool bringToFront;
  6492. /* (readonly) */
  6493. String category;
  6494. /* (readonly) */
  6495. IntVector2 childOffset;
  6496. /* (readonly) */
  6497. Array<UIElement> children;
  6498. IntRect clipBorder;
  6499. bool clipChildren;
  6500. /* (writeonly) */
  6501. Color color;
  6502. /* (readonly) */
  6503. bool colorGradient;
  6504. Array<Color> colors;
  6505. /* (readonly) */
  6506. IntRect combinedScreenRect;
  6507. XMLFile defaultStyle;
  6508. /* (readonly) */
  6509. float derivedOpacity;
  6510. uint dragDropMode;
  6511. bool editable;
  6512. Color effectColor;
  6513. bool elementEventSender;
  6514. bool enabled;
  6515. /* (readonly) */
  6516. bool fixedHeight;
  6517. /* (readonly) */
  6518. bool fixedSize;
  6519. /* (readonly) */
  6520. bool fixedWidth;
  6521. bool focus;
  6522. FocusMode focusMode;
  6523. /* (readonly) */
  6524. Font font;
  6525. /* (readonly) */
  6526. int fontSize;
  6527. int height;
  6528. HorizontalAlignment horizontalAlignment;
  6529. Color hoverColor;
  6530. /* (readonly) */
  6531. bool hovering;
  6532. int indent;
  6533. int indentSpacing;
  6534. /* (readonly) */
  6535. int indentWidth;
  6536. bool internal;
  6537. IntRect layoutBorder;
  6538. LayoutMode layoutMode;
  6539. int layoutSpacing;
  6540. int maxHeight;
  6541. IntVector2 maxSize;
  6542. int maxWidth;
  6543. int minHeight;
  6544. IntVector2 minSize;
  6545. int minWidth;
  6546. String name;
  6547. /* (readonly) */
  6548. uint numAllChildren;
  6549. /* (readonly) */
  6550. uint numAttributes;
  6551. /* (readonly) */
  6552. uint numChildren;
  6553. /* (readonly) */
  6554. uint numRows;
  6555. float opacity;
  6556. UIElement parent;
  6557. IntVector2 position;
  6558. int priority;
  6559. /* (readonly) */
  6560. int refs;
  6561. /* (readonly) */
  6562. UIElement root;
  6563. /* (readonly) */
  6564. int rowHeight;
  6565. float rowSpacing;
  6566. /* (readonly) */
  6567. IntVector2 screenPosition;
  6568. bool selected;
  6569. Color selectionColor;
  6570. /* (readonly) */
  6571. uint selectionLength;
  6572. /* (readonly) */
  6573. uint selectionStart;
  6574. IntVector2 size;
  6575. bool sortChildren;
  6576. String style;
  6577. bool temporary;
  6578. String text;
  6579. HorizontalAlignment textAlignment;
  6580. TextEffect textEffect;
  6581. TraversalMode traversalMode;
  6582. /* (readonly) */
  6583. ShortStringHash type;
  6584. /* (readonly) */
  6585. String typeName;
  6586. bool useDerivedOpacity;
  6587. /* (readonly) */
  6588. VariantMap vars;
  6589. VerticalAlignment verticalAlignment;
  6590. bool visible;
  6591. /* (readonly) */
  6592. int weakRefs;
  6593. int width;
  6594. bool wordwrap;
  6595. };
  6596. class Text3D
  6597. {
  6598. // Methods:
  6599. void ApplyAttributes();
  6600. void DrawDebugGeometry(DebugRenderer, bool);
  6601. Variant GetAttribute(const String&) const;
  6602. Variant GetAttributeDefault(const String&) const;
  6603. bool Load(File, bool = false);
  6604. bool LoadXML(const XMLElement&, bool = false);
  6605. void MarkNetworkUpdate() const;
  6606. void Remove();
  6607. void RemoveInstanceDefault();
  6608. void ResetToDefault();
  6609. bool Save(File) const;
  6610. bool SaveXML(XMLElement&) const;
  6611. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6612. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6613. bool SetAttribute(const String&, const Variant&);
  6614. bool SetFont(Font, int);
  6615. bool SetFont(const String&, int);
  6616. // Properties:
  6617. /* (readonly) */
  6618. Array<Variant> attributeDefaults;
  6619. /* (readonly) */
  6620. Array<AttributeInfo> attributeInfos;
  6621. Array<Variant> attributes;
  6622. /* (readonly) */
  6623. ShortStringHash baseType;
  6624. /* (readonly) */
  6625. BoundingBox boundingBox;
  6626. bool castShadows;
  6627. /* (readonly) */
  6628. String category;
  6629. /* (writeonly) */
  6630. Color color;
  6631. Array<Color> colors;
  6632. float drawDistance;
  6633. Color effectColor;
  6634. float effectDepthBias;
  6635. bool enabled;
  6636. /* (readonly) */
  6637. bool enabledEffective;
  6638. bool faceCamera;
  6639. /* (readonly) */
  6640. Font font;
  6641. /* (readonly) */
  6642. int fontSize;
  6643. HorizontalAlignment horizontalAlignment;
  6644. /* (readonly) */
  6645. uint id;
  6646. /* (readonly) */
  6647. bool inView;
  6648. uint lightMask;
  6649. float lodBias;
  6650. Material material;
  6651. uint maxLights;
  6652. /* (readonly) */
  6653. Node node;
  6654. /* (readonly) */
  6655. uint numAttributes;
  6656. /* (readonly) */
  6657. uint numRows;
  6658. bool occludee;
  6659. bool occluder;
  6660. float opacity;
  6661. /* (readonly) */
  6662. int refs;
  6663. /* (readonly) */
  6664. int rowHeight;
  6665. float rowSpacing;
  6666. float shadowDistance;
  6667. uint shadowMask;
  6668. bool temporary;
  6669. String text;
  6670. HorizontalAlignment textAlignment;
  6671. TextEffect textEffect;
  6672. /* (readonly) */
  6673. ShortStringHash type;
  6674. /* (readonly) */
  6675. String typeName;
  6676. VerticalAlignment verticalAlignment;
  6677. uint viewMask;
  6678. /* (readonly) */
  6679. int weakRefs;
  6680. int width;
  6681. bool wordwrap;
  6682. /* (readonly) */
  6683. BoundingBox worldBoundingBox;
  6684. uint zoneMask;
  6685. };
  6686. class Texture
  6687. {
  6688. // Methods:
  6689. void ClearDataLost();
  6690. bool Load(File);
  6691. bool Save(File) const;
  6692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6693. void SetNumLevels(uint);
  6694. // Properties:
  6695. Array<TextureAddressMode> addressMode;
  6696. Texture backupTexture;
  6697. /* (readonly) */
  6698. ShortStringHash baseType;
  6699. Color borderColor;
  6700. /* (readonly) */
  6701. String category;
  6702. /* (readonly) */
  6703. bool compressed;
  6704. /* (readonly) */
  6705. bool dataLost;
  6706. TextureFilterMode filterMode;
  6707. /* (readonly) */
  6708. uint format;
  6709. /* (readonly) */
  6710. int height;
  6711. /* (readonly) */
  6712. Array<int> levelHeight;
  6713. /* (readonly) */
  6714. Array<int> levelWidth;
  6715. /* (readonly) */
  6716. uint levels;
  6717. /* (readonly) */
  6718. uint memoryUse;
  6719. Array<int> mipsToSkip;
  6720. String name;
  6721. /* (readonly) */
  6722. int refs;
  6723. bool sRGB;
  6724. /* (readonly) */
  6725. ShortStringHash type;
  6726. /* (readonly) */
  6727. String typeName;
  6728. /* (readonly) */
  6729. TextureUsage usage;
  6730. /* (readonly) */
  6731. uint useTimer;
  6732. /* (readonly) */
  6733. int weakRefs;
  6734. /* (readonly) */
  6735. int width;
  6736. };
  6737. class Texture2D
  6738. {
  6739. // Methods:
  6740. void ClearDataLost();
  6741. bool Load(File);
  6742. bool Load(Image, bool = false);
  6743. bool Save(File) const;
  6744. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6745. void SetNumLevels(uint);
  6746. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  6747. // Properties:
  6748. Array<TextureAddressMode> addressMode;
  6749. Texture backupTexture;
  6750. /* (readonly) */
  6751. ShortStringHash baseType;
  6752. Color borderColor;
  6753. /* (readonly) */
  6754. String category;
  6755. /* (readonly) */
  6756. bool compressed;
  6757. /* (readonly) */
  6758. bool dataLost;
  6759. TextureFilterMode filterMode;
  6760. /* (readonly) */
  6761. uint format;
  6762. /* (readonly) */
  6763. int height;
  6764. /* (readonly) */
  6765. Array<int> levelHeight;
  6766. /* (readonly) */
  6767. Array<int> levelWidth;
  6768. /* (readonly) */
  6769. uint levels;
  6770. /* (readonly) */
  6771. uint memoryUse;
  6772. Array<int> mipsToSkip;
  6773. String name;
  6774. /* (readonly) */
  6775. int refs;
  6776. /* (readonly) */
  6777. RenderSurface renderSurface;
  6778. bool sRGB;
  6779. /* (readonly) */
  6780. ShortStringHash type;
  6781. /* (readonly) */
  6782. String typeName;
  6783. /* (readonly) */
  6784. TextureUsage usage;
  6785. /* (readonly) */
  6786. uint useTimer;
  6787. /* (readonly) */
  6788. int weakRefs;
  6789. /* (readonly) */
  6790. int width;
  6791. };
  6792. class Texture3D
  6793. {
  6794. // Methods:
  6795. void ClearDataLost();
  6796. bool Load(File);
  6797. bool Load(Image, bool = false);
  6798. bool Save(File) const;
  6799. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6800. void SetNumLevels(uint);
  6801. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  6802. // Properties:
  6803. Array<TextureAddressMode> addressMode;
  6804. Texture backupTexture;
  6805. /* (readonly) */
  6806. ShortStringHash baseType;
  6807. Color borderColor;
  6808. /* (readonly) */
  6809. String category;
  6810. /* (readonly) */
  6811. bool compressed;
  6812. /* (readonly) */
  6813. bool dataLost;
  6814. TextureFilterMode filterMode;
  6815. /* (readonly) */
  6816. uint format;
  6817. /* (readonly) */
  6818. int height;
  6819. /* (readonly) */
  6820. Array<int> levelHeight;
  6821. /* (readonly) */
  6822. Array<int> levelWidth;
  6823. /* (readonly) */
  6824. uint levels;
  6825. /* (readonly) */
  6826. uint memoryUse;
  6827. Array<int> mipsToSkip;
  6828. String name;
  6829. /* (readonly) */
  6830. int refs;
  6831. /* (readonly) */
  6832. RenderSurface renderSurface;
  6833. bool sRGB;
  6834. /* (readonly) */
  6835. ShortStringHash type;
  6836. /* (readonly) */
  6837. String typeName;
  6838. /* (readonly) */
  6839. TextureUsage usage;
  6840. /* (readonly) */
  6841. uint useTimer;
  6842. /* (readonly) */
  6843. int weakRefs;
  6844. /* (readonly) */
  6845. int width;
  6846. };
  6847. class TextureCube
  6848. {
  6849. // Methods:
  6850. void ClearDataLost();
  6851. bool Load(CubeMapFace, Image, bool = false);
  6852. bool Load(File);
  6853. bool Save(File) const;
  6854. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6855. void SetNumLevels(uint);
  6856. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  6857. // Properties:
  6858. Array<TextureAddressMode> addressMode;
  6859. Texture backupTexture;
  6860. /* (readonly) */
  6861. ShortStringHash baseType;
  6862. Color borderColor;
  6863. /* (readonly) */
  6864. String category;
  6865. /* (readonly) */
  6866. bool compressed;
  6867. /* (readonly) */
  6868. bool dataLost;
  6869. TextureFilterMode filterMode;
  6870. /* (readonly) */
  6871. uint format;
  6872. /* (readonly) */
  6873. int height;
  6874. /* (readonly) */
  6875. Array<int> levelHeight;
  6876. /* (readonly) */
  6877. Array<int> levelWidth;
  6878. /* (readonly) */
  6879. uint levels;
  6880. /* (readonly) */
  6881. uint memoryUse;
  6882. Array<int> mipsToSkip;
  6883. String name;
  6884. /* (readonly) */
  6885. int refs;
  6886. /* (readonly) */
  6887. Array<RenderSurface> renderSurfaces;
  6888. bool sRGB;
  6889. /* (readonly) */
  6890. ShortStringHash type;
  6891. /* (readonly) */
  6892. String typeName;
  6893. /* (readonly) */
  6894. TextureUsage usage;
  6895. /* (readonly) */
  6896. uint useTimer;
  6897. /* (readonly) */
  6898. int weakRefs;
  6899. /* (readonly) */
  6900. int width;
  6901. };
  6902. class TextureFrame
  6903. {
  6904. // Properties:
  6905. float time;
  6906. Rect uv;
  6907. };
  6908. class Time
  6909. {
  6910. // Methods:
  6911. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6912. // Properties:
  6913. /* (readonly) */
  6914. ShortStringHash baseType;
  6915. /* (readonly) */
  6916. String category;
  6917. /* (readonly) */
  6918. float elapsedTime;
  6919. /* (readonly) */
  6920. uint frameNumber;
  6921. /* (readonly) */
  6922. int refs;
  6923. /* (readonly) */
  6924. uint systemTime;
  6925. /* (readonly) */
  6926. String timeStamp;
  6927. /* (readonly) */
  6928. float timeStep;
  6929. /* (readonly) */
  6930. ShortStringHash type;
  6931. /* (readonly) */
  6932. String typeName;
  6933. /* (readonly) */
  6934. int weakRefs;
  6935. };
  6936. class Timer
  6937. {
  6938. // Methods:
  6939. uint GetMSec(bool);
  6940. void Reset();
  6941. };
  6942. class ToolTip
  6943. {
  6944. // Methods:
  6945. void AddChild(UIElement);
  6946. void ApplyAttributes();
  6947. void BringToFront();
  6948. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6949. void DisableLayoutUpdate();
  6950. IntVector2 ElementToScreen(const IntVector2&);
  6951. void EnableLayoutUpdate();
  6952. uint FindChild(UIElement) const;
  6953. Variant GetAttribute(const String&) const;
  6954. Variant GetAttributeDefault(const String&) const;
  6955. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6956. UIElement GetChild(const String&, bool = false) const;
  6957. Array<UIElement> GetChildren(bool = false) const;
  6958. UIElement GetElementEventSender() const;
  6959. uint GetNumChildren(bool) const;
  6960. void InsertChild(uint, UIElement);
  6961. bool IsInside(IntVector2, bool);
  6962. bool IsInsideCombined(IntVector2, bool);
  6963. bool Load(File, bool = false);
  6964. bool LoadChildXML(XMLFile, XMLFile = null);
  6965. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6966. bool LoadXML(File);
  6967. bool LoadXML(XMLFile, XMLFile);
  6968. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6969. bool LoadXML(const XMLElement&, bool = false);
  6970. void Remove();
  6971. void RemoveAllChildren();
  6972. void RemoveChild(UIElement, uint = 0);
  6973. void RemoveChild(uint);
  6974. void RemoveInstanceDefault();
  6975. void ResetToDefault();
  6976. bool Save(File) const;
  6977. bool SaveXML(File);
  6978. bool SaveXML(XMLElement&) const;
  6979. IntVector2 ScreenToElement(const IntVector2&);
  6980. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6981. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6982. bool SetAttribute(const String&, const Variant&);
  6983. void SetFixedHeight(int);
  6984. void SetFixedSize(int, int);
  6985. void SetFixedWidth(int);
  6986. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6987. void SetMaxSize(int, int);
  6988. void SetMinSize(int, int);
  6989. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6990. void SetPosition(int, int);
  6991. void SetSize(int, int);
  6992. bool SetStyle(const String&, XMLFile = null);
  6993. bool SetStyle(const XMLElement&);
  6994. bool SetStyleAuto(XMLFile = null);
  6995. void UpdateLayout();
  6996. const Variant& GetVar(const ShortStringHash&);
  6997. // Properties:
  6998. /* (readonly) */
  6999. Array<Variant> attributeDefaults;
  7000. /* (readonly) */
  7001. Array<AttributeInfo> attributeInfos;
  7002. Array<Variant> attributes;
  7003. /* (readonly) */
  7004. ShortStringHash baseType;
  7005. bool bringToBack;
  7006. bool bringToFront;
  7007. /* (readonly) */
  7008. String category;
  7009. /* (readonly) */
  7010. IntVector2 childOffset;
  7011. /* (readonly) */
  7012. Array<UIElement> children;
  7013. IntRect clipBorder;
  7014. bool clipChildren;
  7015. /* (writeonly) */
  7016. Color color;
  7017. /* (readonly) */
  7018. bool colorGradient;
  7019. Array<Color> colors;
  7020. /* (readonly) */
  7021. IntRect combinedScreenRect;
  7022. XMLFile defaultStyle;
  7023. float delay;
  7024. /* (readonly) */
  7025. float derivedOpacity;
  7026. uint dragDropMode;
  7027. bool editable;
  7028. bool elementEventSender;
  7029. bool enabled;
  7030. /* (readonly) */
  7031. bool fixedHeight;
  7032. /* (readonly) */
  7033. bool fixedSize;
  7034. /* (readonly) */
  7035. bool fixedWidth;
  7036. bool focus;
  7037. FocusMode focusMode;
  7038. int height;
  7039. HorizontalAlignment horizontalAlignment;
  7040. /* (readonly) */
  7041. bool hovering;
  7042. int indent;
  7043. int indentSpacing;
  7044. /* (readonly) */
  7045. int indentWidth;
  7046. bool internal;
  7047. IntRect layoutBorder;
  7048. LayoutMode layoutMode;
  7049. int layoutSpacing;
  7050. int maxHeight;
  7051. IntVector2 maxSize;
  7052. int maxWidth;
  7053. int minHeight;
  7054. IntVector2 minSize;
  7055. int minWidth;
  7056. String name;
  7057. /* (readonly) */
  7058. uint numAllChildren;
  7059. /* (readonly) */
  7060. uint numAttributes;
  7061. /* (readonly) */
  7062. uint numChildren;
  7063. float opacity;
  7064. UIElement parent;
  7065. IntVector2 position;
  7066. int priority;
  7067. /* (readonly) */
  7068. int refs;
  7069. /* (readonly) */
  7070. UIElement root;
  7071. /* (readonly) */
  7072. IntVector2 screenPosition;
  7073. bool selected;
  7074. IntVector2 size;
  7075. bool sortChildren;
  7076. String style;
  7077. bool temporary;
  7078. TraversalMode traversalMode;
  7079. /* (readonly) */
  7080. ShortStringHash type;
  7081. /* (readonly) */
  7082. String typeName;
  7083. bool useDerivedOpacity;
  7084. /* (readonly) */
  7085. VariantMap vars;
  7086. VerticalAlignment verticalAlignment;
  7087. bool visible;
  7088. /* (readonly) */
  7089. int weakRefs;
  7090. int width;
  7091. };
  7092. class TouchState
  7093. {
  7094. // Properties:
  7095. IntVector2 delta;
  7096. IntVector2 lastPosition;
  7097. IntVector2 position;
  7098. float pressure;
  7099. int touchID;
  7100. };
  7101. class UI
  7102. {
  7103. // Methods:
  7104. void Clear();
  7105. void DebugDraw(UIElement);
  7106. UIElement GetElementAt(const IntVector2&, bool = true);
  7107. UIElement GetElementAt(int, int, bool = true);
  7108. bool HasModalElement() const;
  7109. UIElement LoadLayout(File);
  7110. UIElement LoadLayout(File, XMLFile);
  7111. UIElement LoadLayout(XMLFile);
  7112. UIElement LoadLayout(XMLFile, XMLFile);
  7113. bool SaveLayout(File, UIElement);
  7114. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7115. void SetFocusElement(UIElement, bool = false);
  7116. // Properties:
  7117. /* (readonly) */
  7118. ShortStringHash baseType;
  7119. /* (readonly) */
  7120. String category;
  7121. String clipBoardText;
  7122. Cursor cursor;
  7123. /* (readonly) */
  7124. IntVector2 cursorPosition;
  7125. float defaultToolTipDelay;
  7126. float doubleClickInterval;
  7127. int dragBeginDistance;
  7128. float dragBeginInterval;
  7129. /* (readonly) */
  7130. UIElement dragElement;
  7131. UIElement focusElement;
  7132. bool forceAutoHint;
  7133. /* (readonly) */
  7134. UIElement frontElement;
  7135. int maxFontTextureSize;
  7136. /* (readonly) */
  7137. UIElement modalRoot;
  7138. bool nonFocusedMouseWheel;
  7139. /* (readonly) */
  7140. int refs;
  7141. /* (readonly) */
  7142. UIElement root;
  7143. /* (readonly) */
  7144. ShortStringHash type;
  7145. /* (readonly) */
  7146. String typeName;
  7147. bool useMutableGlyphs;
  7148. bool useScreenKeyboard;
  7149. bool useSystemClipBoard;
  7150. /* (readonly) */
  7151. int weakRefs;
  7152. };
  7153. class UIElement
  7154. {
  7155. // Methods:
  7156. void AddChild(UIElement);
  7157. void ApplyAttributes();
  7158. void BringToFront();
  7159. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7160. void DisableLayoutUpdate();
  7161. IntVector2 ElementToScreen(const IntVector2&);
  7162. void EnableLayoutUpdate();
  7163. uint FindChild(UIElement) const;
  7164. Variant GetAttribute(const String&) const;
  7165. Variant GetAttributeDefault(const String&) const;
  7166. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7167. UIElement GetChild(const String&, bool = false) const;
  7168. Array<UIElement> GetChildren(bool = false) const;
  7169. UIElement GetElementEventSender() const;
  7170. uint GetNumChildren(bool) const;
  7171. void InsertChild(uint, UIElement);
  7172. bool IsInside(IntVector2, bool);
  7173. bool IsInsideCombined(IntVector2, bool);
  7174. bool Load(File, bool = false);
  7175. bool LoadChildXML(XMLFile, XMLFile = null);
  7176. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7177. bool LoadXML(File);
  7178. bool LoadXML(XMLFile, XMLFile);
  7179. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7180. bool LoadXML(const XMLElement&, bool = false);
  7181. void Remove();
  7182. void RemoveAllChildren();
  7183. void RemoveChild(UIElement, uint = 0);
  7184. void RemoveChild(uint);
  7185. void RemoveInstanceDefault();
  7186. void ResetToDefault();
  7187. bool Save(File) const;
  7188. bool SaveXML(File);
  7189. bool SaveXML(XMLElement&) const;
  7190. IntVector2 ScreenToElement(const IntVector2&);
  7191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7192. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7193. bool SetAttribute(const String&, const Variant&);
  7194. void SetFixedHeight(int);
  7195. void SetFixedSize(int, int);
  7196. void SetFixedWidth(int);
  7197. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7198. void SetMaxSize(int, int);
  7199. void SetMinSize(int, int);
  7200. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7201. void SetPosition(int, int);
  7202. void SetSize(int, int);
  7203. bool SetStyle(const String&, XMLFile = null);
  7204. bool SetStyle(const XMLElement&);
  7205. bool SetStyleAuto(XMLFile = null);
  7206. void UpdateLayout();
  7207. const Variant& GetVar(const ShortStringHash&);
  7208. // Properties:
  7209. /* (readonly) */
  7210. Array<Variant> attributeDefaults;
  7211. /* (readonly) */
  7212. Array<AttributeInfo> attributeInfos;
  7213. Array<Variant> attributes;
  7214. /* (readonly) */
  7215. ShortStringHash baseType;
  7216. bool bringToBack;
  7217. bool bringToFront;
  7218. /* (readonly) */
  7219. String category;
  7220. /* (readonly) */
  7221. IntVector2 childOffset;
  7222. /* (readonly) */
  7223. Array<UIElement> children;
  7224. IntRect clipBorder;
  7225. bool clipChildren;
  7226. /* (writeonly) */
  7227. Color color;
  7228. /* (readonly) */
  7229. bool colorGradient;
  7230. Array<Color> colors;
  7231. /* (readonly) */
  7232. IntRect combinedScreenRect;
  7233. XMLFile defaultStyle;
  7234. /* (readonly) */
  7235. float derivedOpacity;
  7236. uint dragDropMode;
  7237. bool editable;
  7238. bool elementEventSender;
  7239. bool enabled;
  7240. /* (readonly) */
  7241. bool fixedHeight;
  7242. /* (readonly) */
  7243. bool fixedSize;
  7244. /* (readonly) */
  7245. bool fixedWidth;
  7246. bool focus;
  7247. FocusMode focusMode;
  7248. int height;
  7249. HorizontalAlignment horizontalAlignment;
  7250. /* (readonly) */
  7251. bool hovering;
  7252. int indent;
  7253. int indentSpacing;
  7254. /* (readonly) */
  7255. int indentWidth;
  7256. bool internal;
  7257. IntRect layoutBorder;
  7258. LayoutMode layoutMode;
  7259. int layoutSpacing;
  7260. int maxHeight;
  7261. IntVector2 maxSize;
  7262. int maxWidth;
  7263. int minHeight;
  7264. IntVector2 minSize;
  7265. int minWidth;
  7266. String name;
  7267. /* (readonly) */
  7268. uint numAllChildren;
  7269. /* (readonly) */
  7270. uint numAttributes;
  7271. /* (readonly) */
  7272. uint numChildren;
  7273. float opacity;
  7274. UIElement parent;
  7275. IntVector2 position;
  7276. int priority;
  7277. /* (readonly) */
  7278. int refs;
  7279. /* (readonly) */
  7280. UIElement root;
  7281. /* (readonly) */
  7282. IntVector2 screenPosition;
  7283. bool selected;
  7284. IntVector2 size;
  7285. bool sortChildren;
  7286. String style;
  7287. bool temporary;
  7288. TraversalMode traversalMode;
  7289. /* (readonly) */
  7290. ShortStringHash type;
  7291. /* (readonly) */
  7292. String typeName;
  7293. bool useDerivedOpacity;
  7294. /* (readonly) */
  7295. VariantMap vars;
  7296. VerticalAlignment verticalAlignment;
  7297. bool visible;
  7298. /* (readonly) */
  7299. int weakRefs;
  7300. int width;
  7301. };
  7302. class Variant
  7303. {
  7304. // Methods:
  7305. void Clear();
  7306. const Color& GetColor() const;
  7307. void FromString(VariantType, const String&);
  7308. void FromString(const String&, const String&);
  7309. bool GetBool() const;
  7310. VectorBuffer GetBuffer() const;
  7311. Camera GetCamera() const;
  7312. CollisionShape GetCollisionShape() const;
  7313. Component GetComponent() const;
  7314. Connection GetConnection() const;
  7315. float GetFloat() const;
  7316. int GetInt() const;
  7317. Node GetNode() const;
  7318. PhysicsWorld GetPhysicsWorld() const;
  7319. RenderSurface GetRenderSurface() const;
  7320. RigidBody GetRigidBody() const;
  7321. Scene GetScene() const;
  7322. Serializable GetSerializable() const;
  7323. ShortStringHash GetShortStringHash() const;
  7324. StringHash GetStringHash() const;
  7325. Texture GetTexture() const;
  7326. UIElement GetUIElement() const;
  7327. uint GetUInt() const;
  7328. Array<Variant> GetVariantVector() const;
  7329. const IntRect& GetIntRect() const;
  7330. const IntVector2& GetIntVector2() const;
  7331. const Quaternion& GetQuaternion() const;
  7332. const ResourceRef& GetResourceRef() const;
  7333. const ResourceRefList& GetResourceRefList() const;
  7334. const String& GetString() const;
  7335. String ToString() const;
  7336. const VariantMap& GetVariantMap() const;
  7337. const Vector2& GetVector2() const;
  7338. const Vector3& GetVector3() const;
  7339. const Vector4& GetVector4() const;
  7340. // Properties:
  7341. /* (readonly) */
  7342. bool empty;
  7343. /* (readonly) */
  7344. VariantType type;
  7345. /* (readonly) */
  7346. String typeName;
  7347. /* (readonly) */
  7348. bool zero;
  7349. };
  7350. class VariantMap
  7351. {
  7352. // Methods:
  7353. void Clear();
  7354. bool Contains(ShortStringHash) const;
  7355. bool Contains(const String&) const;
  7356. bool Erase(ShortStringHash);
  7357. bool Erase(const String&);
  7358. // Properties:
  7359. /* (readonly) */
  7360. Array<ShortStringHash> keys;
  7361. /* (readonly) */
  7362. uint length;
  7363. };
  7364. class Vector2
  7365. {
  7366. // Methods:
  7367. float AbsDotProduct(const Vector2&) const;
  7368. float DotProduct(const Vector2&) const;
  7369. bool Equals(const Vector2&) const;
  7370. Vector2 Lerp(const Vector2&, float) const;
  7371. void Normalize();
  7372. Vector2 Normalized() const;
  7373. String ToString() const;
  7374. // Properties:
  7375. /* (readonly) */
  7376. Array<float> data;
  7377. /* (readonly) */
  7378. float length;
  7379. /* (readonly) */
  7380. float lengthSquared;
  7381. float x;
  7382. float y;
  7383. };
  7384. class Vector3
  7385. {
  7386. // Methods:
  7387. float AbsDotProduct(const Vector3&) const;
  7388. float Angle(const Vector3&) const;
  7389. Vector3 CrossProduct(const Vector3&) const;
  7390. float DotProduct(const Vector3&) const;
  7391. bool Equals(const Vector3&) const;
  7392. Vector3 Lerp(const Vector3&, float) const;
  7393. void Normalize();
  7394. Vector3 Normalized() const;
  7395. String ToString() const;
  7396. // Properties:
  7397. /* (readonly) */
  7398. Array<float> data;
  7399. /* (readonly) */
  7400. float length;
  7401. /* (readonly) */
  7402. float lengthSquared;
  7403. float x;
  7404. float y;
  7405. float z;
  7406. };
  7407. class Vector4
  7408. {
  7409. // Methods:
  7410. float AbsDotProduct(const Vector4&) const;
  7411. float DotProduct(const Vector4&) const;
  7412. bool Equals(const Vector4&) const;
  7413. Vector4 Lerp(const Vector4&, float) const;
  7414. String ToString() const;
  7415. // Properties:
  7416. /* (readonly) */
  7417. Array<float> data;
  7418. float w;
  7419. float x;
  7420. float y;
  7421. float z;
  7422. };
  7423. class VectorBuffer
  7424. {
  7425. // Methods:
  7426. void Clear();
  7427. Array<uint8> Read(uint);
  7428. bool ReadBool();
  7429. BoundingBox ReadBoundingBox();
  7430. int8 ReadByte();
  7431. Color ReadColor();
  7432. String ReadFileID();
  7433. float ReadFloat();
  7434. int ReadInt();
  7435. IntRect ReadIntRect();
  7436. IntVector2 ReadIntVector2();
  7437. String ReadLine();
  7438. uint ReadNetID();
  7439. Quaternion ReadPackedQuaternion();
  7440. Vector3 ReadPackedVector3(float);
  7441. Quaternion ReadQuaternion();
  7442. int16 ReadShort();
  7443. ShortStringHash ReadShortStringHash();
  7444. String ReadString();
  7445. StringHash ReadStringHash();
  7446. uint8 ReadUByte();
  7447. uint ReadUInt();
  7448. uint16 ReadUShort();
  7449. uint ReadVLE();
  7450. Variant ReadVariant();
  7451. VariantMap ReadVariantMap();
  7452. Vector2 ReadVector2();
  7453. Vector3 ReadVector3();
  7454. Vector4 ReadVector4();
  7455. void Resize(uint);
  7456. uint Seek(uint);
  7457. void SetData(Deserializer, uint);
  7458. uint Write(Array<uint8>);
  7459. bool WriteBool(bool);
  7460. bool WriteBoundingBox(const BoundingBox&);
  7461. bool WriteByte(int8);
  7462. bool WriteColor(const Color&);
  7463. bool WriteFileID(const String&);
  7464. bool WriteFloat(float);
  7465. bool WriteInt(int);
  7466. bool WriteIntRect(const IntRect&);
  7467. bool WriteIntVector2(const IntVector2&);
  7468. bool WriteLine(const String&);
  7469. bool WriteNetID(uint);
  7470. bool WritePackedQuaternion(const Quaternion&);
  7471. bool WritePackedVector3(const Vector3&, float);
  7472. bool WriteQuaternion(const Quaternion&);
  7473. bool WriteShort(int16);
  7474. bool WriteShortStringHash(const ShortStringHash&);
  7475. bool WriteString(const String&);
  7476. bool WriteStringHash(const StringHash&);
  7477. bool WriteUByte(uint8);
  7478. bool WriteUInt(uint);
  7479. bool WriteUShort(uint16);
  7480. bool WriteVLE(uint);
  7481. bool WriteVariant(const Variant&);
  7482. bool WriteVariantMap(const VariantMap&);
  7483. bool WriteVector2(const Vector2&);
  7484. bool WriteVector3(const Vector3&);
  7485. bool WriteVector4(const Vector4&);
  7486. // Properties:
  7487. /* (readonly) */
  7488. uint checksum;
  7489. /* (readonly) */
  7490. bool eof;
  7491. /* (readonly) */
  7492. String name;
  7493. /* (readonly) */
  7494. uint position;
  7495. /* (readonly) */
  7496. uint size;
  7497. };
  7498. class View3D
  7499. {
  7500. // Methods:
  7501. void AddChild(UIElement);
  7502. void ApplyAttributes();
  7503. void BringToFront();
  7504. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7505. void DisableLayoutUpdate();
  7506. IntVector2 ElementToScreen(const IntVector2&);
  7507. void EnableLayoutUpdate();
  7508. uint FindChild(UIElement) const;
  7509. Variant GetAttribute(const String&) const;
  7510. Variant GetAttributeDefault(const String&) const;
  7511. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7512. UIElement GetChild(const String&, bool = false) const;
  7513. Array<UIElement> GetChildren(bool = false) const;
  7514. UIElement GetElementEventSender() const;
  7515. uint GetNumChildren(bool) const;
  7516. void InsertChild(uint, UIElement);
  7517. bool IsInside(IntVector2, bool);
  7518. bool IsInsideCombined(IntVector2, bool);
  7519. bool Load(File, bool = false);
  7520. bool LoadChildXML(XMLFile, XMLFile = null);
  7521. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7522. bool LoadXML(File);
  7523. bool LoadXML(XMLFile, XMLFile);
  7524. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7525. bool LoadXML(const XMLElement&, bool = false);
  7526. void QueueUpdate();
  7527. void Remove();
  7528. void RemoveAllChildren();
  7529. void RemoveChild(UIElement, uint = 0);
  7530. void RemoveChild(uint);
  7531. void RemoveInstanceDefault();
  7532. void ResetToDefault();
  7533. bool Save(File) const;
  7534. bool SaveXML(File);
  7535. bool SaveXML(XMLElement&) const;
  7536. IntVector2 ScreenToElement(const IntVector2&);
  7537. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7538. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7539. bool SetAttribute(const String&, const Variant&);
  7540. void SetFixedHeight(int);
  7541. void SetFixedSize(int, int);
  7542. void SetFixedWidth(int);
  7543. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7544. void SetMaxSize(int, int);
  7545. void SetMinSize(int, int);
  7546. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7547. void SetPosition(int, int);
  7548. void SetSize(int, int);
  7549. bool SetStyle(const String&, XMLFile = null);
  7550. bool SetStyle(const XMLElement&);
  7551. bool SetStyleAuto(XMLFile = null);
  7552. void SetView(Scene, Camera);
  7553. void UpdateLayout();
  7554. const Variant& GetVar(const ShortStringHash&);
  7555. // Properties:
  7556. /* (readonly) */
  7557. Array<Variant> attributeDefaults;
  7558. /* (readonly) */
  7559. Array<AttributeInfo> attributeInfos;
  7560. Array<Variant> attributes;
  7561. bool autoUpdate;
  7562. /* (readonly) */
  7563. ShortStringHash baseType;
  7564. bool bringToBack;
  7565. bool bringToFront;
  7566. /* (readonly) */
  7567. Node cameraNode;
  7568. /* (readonly) */
  7569. String category;
  7570. /* (readonly) */
  7571. IntVector2 childOffset;
  7572. /* (readonly) */
  7573. Array<UIElement> children;
  7574. IntRect clipBorder;
  7575. bool clipChildren;
  7576. /* (writeonly) */
  7577. Color color;
  7578. /* (readonly) */
  7579. bool colorGradient;
  7580. Array<Color> colors;
  7581. /* (readonly) */
  7582. IntRect combinedScreenRect;
  7583. XMLFile defaultStyle;
  7584. /* (readonly) */
  7585. Texture2D depthTexture;
  7586. /* (readonly) */
  7587. float derivedOpacity;
  7588. uint dragDropMode;
  7589. bool editable;
  7590. bool elementEventSender;
  7591. bool enabled;
  7592. /* (readonly) */
  7593. bool fixedHeight;
  7594. bool fixedHeightResizing;
  7595. /* (readonly) */
  7596. bool fixedSize;
  7597. /* (readonly) */
  7598. bool fixedWidth;
  7599. bool fixedWidthResizing;
  7600. bool focus;
  7601. FocusMode focusMode;
  7602. uint format;
  7603. int height;
  7604. HorizontalAlignment horizontalAlignment;
  7605. /* (readonly) */
  7606. bool hovering;
  7607. int indent;
  7608. int indentSpacing;
  7609. /* (readonly) */
  7610. int indentWidth;
  7611. bool internal;
  7612. IntRect layoutBorder;
  7613. LayoutMode layoutMode;
  7614. int layoutSpacing;
  7615. int maxHeight;
  7616. IntVector2 maxSize;
  7617. int maxWidth;
  7618. int minHeight;
  7619. IntVector2 minSize;
  7620. int minWidth;
  7621. bool modal;
  7622. Color modalFrameColor;
  7623. IntVector2 modalFrameSize;
  7624. Color modalShadeColor;
  7625. bool movable;
  7626. String name;
  7627. /* (readonly) */
  7628. uint numAllChildren;
  7629. /* (readonly) */
  7630. uint numAttributes;
  7631. /* (readonly) */
  7632. uint numChildren;
  7633. float opacity;
  7634. UIElement parent;
  7635. IntVector2 position;
  7636. int priority;
  7637. /* (readonly) */
  7638. int refs;
  7639. /* (readonly) */
  7640. Texture2D renderTexture;
  7641. bool resizable;
  7642. IntRect resizeBorder;
  7643. /* (readonly) */
  7644. UIElement root;
  7645. /* (readonly) */
  7646. Scene scene;
  7647. /* (readonly) */
  7648. IntVector2 screenPosition;
  7649. bool selected;
  7650. IntVector2 size;
  7651. bool sortChildren;
  7652. String style;
  7653. bool temporary;
  7654. TraversalMode traversalMode;
  7655. /* (readonly) */
  7656. ShortStringHash type;
  7657. /* (readonly) */
  7658. String typeName;
  7659. bool useDerivedOpacity;
  7660. /* (readonly) */
  7661. VariantMap vars;
  7662. VerticalAlignment verticalAlignment;
  7663. /* (readonly) */
  7664. Viewport viewport;
  7665. bool visible;
  7666. /* (readonly) */
  7667. int weakRefs;
  7668. int width;
  7669. };
  7670. class Viewport
  7671. {
  7672. // Methods:
  7673. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7674. void SetRenderPath(XMLFile);
  7675. // Properties:
  7676. /* (readonly) */
  7677. ShortStringHash baseType;
  7678. Camera camera;
  7679. /* (readonly) */
  7680. String category;
  7681. IntRect rect;
  7682. /* (readonly) */
  7683. int refs;
  7684. RenderPath renderPath;
  7685. Scene scene;
  7686. /* (readonly) */
  7687. ShortStringHash type;
  7688. /* (readonly) */
  7689. String typeName;
  7690. /* (readonly) */
  7691. int weakRefs;
  7692. };
  7693. class WeakHandle
  7694. {
  7695. // Methods:
  7696. RefCounted Get() const;
  7697. // Properties:
  7698. /* (readonly) */
  7699. bool expired;
  7700. /* (readonly) */
  7701. int refs;
  7702. /* (readonly) */
  7703. int weakRefs;
  7704. };
  7705. class Window
  7706. {
  7707. // Methods:
  7708. void AddChild(UIElement);
  7709. void ApplyAttributes();
  7710. void BringToFront();
  7711. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7712. void DisableLayoutUpdate();
  7713. IntVector2 ElementToScreen(const IntVector2&);
  7714. void EnableLayoutUpdate();
  7715. uint FindChild(UIElement) const;
  7716. Variant GetAttribute(const String&) const;
  7717. Variant GetAttributeDefault(const String&) const;
  7718. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7719. UIElement GetChild(const String&, bool = false) const;
  7720. Array<UIElement> GetChildren(bool = false) const;
  7721. UIElement GetElementEventSender() const;
  7722. uint GetNumChildren(bool) const;
  7723. void InsertChild(uint, UIElement);
  7724. bool IsInside(IntVector2, bool);
  7725. bool IsInsideCombined(IntVector2, bool);
  7726. bool Load(File, bool = false);
  7727. bool LoadChildXML(XMLFile, XMLFile = null);
  7728. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7729. bool LoadXML(File);
  7730. bool LoadXML(XMLFile, XMLFile);
  7731. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7732. bool LoadXML(const XMLElement&, bool = false);
  7733. void Remove();
  7734. void RemoveAllChildren();
  7735. void RemoveChild(UIElement, uint = 0);
  7736. void RemoveChild(uint);
  7737. void RemoveInstanceDefault();
  7738. void ResetToDefault();
  7739. bool Save(File) const;
  7740. bool SaveXML(File);
  7741. bool SaveXML(XMLElement&) const;
  7742. IntVector2 ScreenToElement(const IntVector2&);
  7743. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7744. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7745. bool SetAttribute(const String&, const Variant&);
  7746. void SetFixedHeight(int);
  7747. void SetFixedSize(int, int);
  7748. void SetFixedWidth(int);
  7749. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7750. void SetMaxSize(int, int);
  7751. void SetMinSize(int, int);
  7752. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7753. void SetPosition(int, int);
  7754. void SetSize(int, int);
  7755. bool SetStyle(const String&, XMLFile = null);
  7756. bool SetStyle(const XMLElement&);
  7757. bool SetStyleAuto(XMLFile = null);
  7758. void UpdateLayout();
  7759. const Variant& GetVar(const ShortStringHash&);
  7760. // Properties:
  7761. /* (readonly) */
  7762. Array<Variant> attributeDefaults;
  7763. /* (readonly) */
  7764. Array<AttributeInfo> attributeInfos;
  7765. Array<Variant> attributes;
  7766. /* (readonly) */
  7767. ShortStringHash baseType;
  7768. bool bringToBack;
  7769. bool bringToFront;
  7770. /* (readonly) */
  7771. String category;
  7772. /* (readonly) */
  7773. IntVector2 childOffset;
  7774. /* (readonly) */
  7775. Array<UIElement> children;
  7776. IntRect clipBorder;
  7777. bool clipChildren;
  7778. /* (writeonly) */
  7779. Color color;
  7780. /* (readonly) */
  7781. bool colorGradient;
  7782. Array<Color> colors;
  7783. /* (readonly) */
  7784. IntRect combinedScreenRect;
  7785. XMLFile defaultStyle;
  7786. /* (readonly) */
  7787. float derivedOpacity;
  7788. uint dragDropMode;
  7789. bool editable;
  7790. bool elementEventSender;
  7791. bool enabled;
  7792. /* (readonly) */
  7793. bool fixedHeight;
  7794. bool fixedHeightResizing;
  7795. /* (readonly) */
  7796. bool fixedSize;
  7797. /* (readonly) */
  7798. bool fixedWidth;
  7799. bool fixedWidthResizing;
  7800. bool focus;
  7801. FocusMode focusMode;
  7802. int height;
  7803. HorizontalAlignment horizontalAlignment;
  7804. /* (readonly) */
  7805. bool hovering;
  7806. int indent;
  7807. int indentSpacing;
  7808. /* (readonly) */
  7809. int indentWidth;
  7810. bool internal;
  7811. IntRect layoutBorder;
  7812. LayoutMode layoutMode;
  7813. int layoutSpacing;
  7814. int maxHeight;
  7815. IntVector2 maxSize;
  7816. int maxWidth;
  7817. int minHeight;
  7818. IntVector2 minSize;
  7819. int minWidth;
  7820. bool modal;
  7821. Color modalFrameColor;
  7822. IntVector2 modalFrameSize;
  7823. Color modalShadeColor;
  7824. bool movable;
  7825. String name;
  7826. /* (readonly) */
  7827. uint numAllChildren;
  7828. /* (readonly) */
  7829. uint numAttributes;
  7830. /* (readonly) */
  7831. uint numChildren;
  7832. float opacity;
  7833. UIElement parent;
  7834. IntVector2 position;
  7835. int priority;
  7836. /* (readonly) */
  7837. int refs;
  7838. bool resizable;
  7839. IntRect resizeBorder;
  7840. /* (readonly) */
  7841. UIElement root;
  7842. /* (readonly) */
  7843. IntVector2 screenPosition;
  7844. bool selected;
  7845. IntVector2 size;
  7846. bool sortChildren;
  7847. String style;
  7848. bool temporary;
  7849. TraversalMode traversalMode;
  7850. /* (readonly) */
  7851. ShortStringHash type;
  7852. /* (readonly) */
  7853. String typeName;
  7854. bool useDerivedOpacity;
  7855. /* (readonly) */
  7856. VariantMap vars;
  7857. VerticalAlignment verticalAlignment;
  7858. bool visible;
  7859. /* (readonly) */
  7860. int weakRefs;
  7861. int width;
  7862. };
  7863. class XMLElement
  7864. {
  7865. // Methods:
  7866. XMLElement CreateChild(const String&);
  7867. String GetAttribute(const String& = String ( )) const;
  7868. String GetAttributeLower(const String&) const;
  7869. Array<String> GetAttributeNames() const;
  7870. String GetAttributeUpper(const String&) const;
  7871. bool GetBool(const String&) const;
  7872. BoundingBox GetBoundingBox() const;
  7873. XMLElement GetChild(const String& = String ( )) const;
  7874. Color GetColor(const String&) const;
  7875. float GetFloat(const String&) const;
  7876. int GetInt(const String&) const;
  7877. XMLElement GetNext(const String& = String ( )) const;
  7878. Quaternion GetQuaternion(const String&) const;
  7879. ResourceRef GetResourceRef() const;
  7880. ResourceRefList GetResourceRefList() const;
  7881. uint GetUInt(const String&) const;
  7882. String GetValue() const;
  7883. Variant GetVariant() const;
  7884. VariantMap GetVariantMap() const;
  7885. Array<Variant> GetVariantVector() const;
  7886. Vector2 GetVector2(const String&) const;
  7887. Vector3 GetVector3(const String&) const;
  7888. Vector4 GetVector4(const String&) const;
  7889. Variant GetVectorVariant(const String&) const;
  7890. bool HasAttribute(const String&) const;
  7891. bool HasChild(const String&) const;
  7892. bool RemoveAttribute(const String& = String ( ));
  7893. bool RemoveChild(const String&);
  7894. bool RemoveChild(const XMLElement&);
  7895. bool RemoveChildren(const String& = String ( ));
  7896. XPathResultSet Select(const String&);
  7897. XPathResultSet SelectPrepared(const XPathQuery&);
  7898. XMLElement SelectSingle(const String&);
  7899. XMLElement SelectSinglePrepared(const XPathQuery&);
  7900. bool SetAttribute(const String&);
  7901. bool SetAttribute(const String&, const String&);
  7902. bool SetBool(const String&, bool);
  7903. bool SetBoundingBox(const BoundingBox&);
  7904. bool SetColor(const String&, const Color&);
  7905. bool SetFloat(const String&, float);
  7906. bool SetInt(const String&, int);
  7907. bool SetQuaternion(const String&, const Quaternion&);
  7908. bool SetResourceRef(const String&, const ResourceRef&);
  7909. bool SetResourceRefList(const String&, const ResourceRefList&);
  7910. bool SetUInt(const String&, uint);
  7911. bool SetValue(const String&);
  7912. bool SetVariant(const Variant&);
  7913. bool SetVariantMap(const VariantMap&);
  7914. bool SetVariantVector(Array<Variant>);
  7915. bool SetVector2(const String&, const Vector2&);
  7916. bool SetVector3(const String&, const Vector3&);
  7917. bool SetVector4(const String&, const Vector4&);
  7918. bool SetVectorVariant(const String&, const Variant&);
  7919. // Properties:
  7920. /* (readonly) */
  7921. XMLFile file;
  7922. /* (readonly) */
  7923. bool isNull;
  7924. /* (readonly) */
  7925. String name;
  7926. /* (readonly) */
  7927. XMLElement nextResult;
  7928. /* (readonly) */
  7929. bool notNull;
  7930. /* (readonly) */
  7931. uint numAttributes;
  7932. /* (readonly) */
  7933. XMLElement parent;
  7934. String value;
  7935. };
  7936. class XMLFile
  7937. {
  7938. // Methods:
  7939. XMLElement CreateRoot(const String&);
  7940. XMLElement GetRoot(const String& = String ( ));
  7941. bool Load(File);
  7942. void Patch(XMLElement);
  7943. void Patch(XMLFile);
  7944. bool Save(File) const;
  7945. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7946. // Properties:
  7947. /* (readonly) */
  7948. ShortStringHash baseType;
  7949. /* (readonly) */
  7950. String category;
  7951. /* (readonly) */
  7952. uint memoryUse;
  7953. String name;
  7954. /* (readonly) */
  7955. int refs;
  7956. /* (readonly) */
  7957. XMLElement root;
  7958. /* (readonly) */
  7959. ShortStringHash type;
  7960. /* (readonly) */
  7961. String typeName;
  7962. /* (readonly) */
  7963. uint useTimer;
  7964. /* (readonly) */
  7965. int weakRefs;
  7966. };
  7967. class XPathQuery
  7968. {
  7969. // Methods:
  7970. void Bind();
  7971. void Clear();
  7972. XPathResultSet Evaluate(XMLElement);
  7973. bool EvaluateToBool(XMLElement);
  7974. float EvaluateToFloat(XMLElement);
  7975. String EvaluateToString(XMLElement);
  7976. bool SetQuery(const String&, const String& = String ( ), bool = true);
  7977. bool SetVariable(const String&, bool);
  7978. bool SetVariable(const String&, const String&);
  7979. bool SetVariable(const String&, const XPathResultSet&);
  7980. bool SetVariable(const String&, float);
  7981. // Properties:
  7982. String query;
  7983. };
  7984. class XPathResultSet
  7985. {
  7986. // Properties:
  7987. /* (readonly) */
  7988. bool empty;
  7989. /* (readonly) */
  7990. XMLElement firstResult;
  7991. /* (readonly) */
  7992. uint size;
  7993. };
  7994. class Zone
  7995. {
  7996. // Methods:
  7997. void ApplyAttributes();
  7998. void DrawDebugGeometry(DebugRenderer, bool);
  7999. Variant GetAttribute(const String&) const;
  8000. Variant GetAttributeDefault(const String&) const;
  8001. bool Load(File, bool = false);
  8002. bool LoadXML(const XMLElement&, bool = false);
  8003. void MarkNetworkUpdate() const;
  8004. void Remove();
  8005. void RemoveInstanceDefault();
  8006. void ResetToDefault();
  8007. bool Save(File) const;
  8008. bool SaveXML(XMLElement&) const;
  8009. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8010. bool SetAttribute(const String&, const Variant&);
  8011. // Properties:
  8012. Color ambientColor;
  8013. /* (readonly) */
  8014. Color ambientEndColor;
  8015. bool ambientGradient;
  8016. /* (readonly) */
  8017. Color ambientStartColor;
  8018. /* (readonly) */
  8019. Array<Variant> attributeDefaults;
  8020. /* (readonly) */
  8021. Array<AttributeInfo> attributeInfos;
  8022. Array<Variant> attributes;
  8023. /* (readonly) */
  8024. ShortStringHash baseType;
  8025. BoundingBox boundingBox;
  8026. bool castShadows;
  8027. /* (readonly) */
  8028. String category;
  8029. float drawDistance;
  8030. bool enabled;
  8031. /* (readonly) */
  8032. bool enabledEffective;
  8033. Color fogColor;
  8034. float fogEnd;
  8035. float fogHeight;
  8036. float fogHeightScale;
  8037. float fogStart;
  8038. bool heightFog;
  8039. /* (readonly) */
  8040. uint id;
  8041. /* (readonly) */
  8042. bool inView;
  8043. /* (readonly) */
  8044. Matrix3x4 inverseWorldTransform;
  8045. uint lightMask;
  8046. float lodBias;
  8047. uint maxLights;
  8048. /* (readonly) */
  8049. Node node;
  8050. /* (readonly) */
  8051. uint numAttributes;
  8052. bool occludee;
  8053. bool occluder;
  8054. bool override;
  8055. int priority;
  8056. /* (readonly) */
  8057. int refs;
  8058. float shadowDistance;
  8059. uint shadowMask;
  8060. bool temporary;
  8061. /* (readonly) */
  8062. ShortStringHash type;
  8063. /* (readonly) */
  8064. String typeName;
  8065. uint viewMask;
  8066. /* (readonly) */
  8067. int weakRefs;
  8068. /* (readonly) */
  8069. BoundingBox worldBoundingBox;
  8070. uint zoneMask;
  8071. };
  8072. // Enumerations
  8073. enum BlendMode
  8074. {
  8075. BLEND_REPLACE,
  8076. BLEND_ADD,
  8077. BLEND_MULTIPLY,
  8078. BLEND_ALPHA,
  8079. BLEND_ADDALPHA,
  8080. BLEND_PREMULALPHA,
  8081. BLEND_INVDESTALPHA,
  8082. };
  8083. enum CollisionEventMode
  8084. {
  8085. COLLISION_NEVER,
  8086. COLLISION_ACTIVE,
  8087. COLLISION_ALWAYS,
  8088. };
  8089. enum CompareMode
  8090. {
  8091. CMP_ALWAYS,
  8092. CMP_EQUAL,
  8093. CMP_NOTEQUAL,
  8094. CMP_LESS,
  8095. CMP_LESSEQUAL,
  8096. CMP_GREATER,
  8097. CMP_GREATEREQUAL,
  8098. };
  8099. enum ConstraintType
  8100. {
  8101. CONSTRAINT_POINT,
  8102. CONSTRAINT_HINGE,
  8103. CONSTRAINT_SLIDER,
  8104. CONSTRAINT_CONETWIST,
  8105. };
  8106. enum Corner
  8107. {
  8108. C_TOPLEFT,
  8109. C_TOPRIGHT,
  8110. C_BOTTOMLEFT,
  8111. C_BOTTOMRIGHT,
  8112. };
  8113. enum CreateMode
  8114. {
  8115. REPLICATED,
  8116. LOCAL,
  8117. };
  8118. enum CubeMapFace
  8119. {
  8120. FACE_POSITIVE_X,
  8121. FACE_NEGATIVE_X,
  8122. FACE_POSITIVE_Y,
  8123. FACE_NEGATIVE_Y,
  8124. FACE_POSITIVE_Z,
  8125. FACE_NEGATIVE_Z,
  8126. };
  8127. enum CullMode
  8128. {
  8129. CULL_NONE,
  8130. CULL_CCW,
  8131. CULL_CW,
  8132. };
  8133. enum CursorShape
  8134. {
  8135. CS_NORMAL,
  8136. CS_RESIZEVERTICAL,
  8137. CS_RESIZEDIAGONAL_TOPRIGHT,
  8138. CS_RESIZEHORIZONTAL,
  8139. CS_RESIZEDIAGONAL_TOPLEFT,
  8140. CS_ACCEPTDROP,
  8141. CS_REJECTDROP,
  8142. CS_BUSY,
  8143. };
  8144. enum DumpMode
  8145. {
  8146. DOXYGEN,
  8147. C_HEADER,
  8148. };
  8149. enum EmitterType
  8150. {
  8151. EMITTER_SPHERE,
  8152. EMITTER_BOX,
  8153. };
  8154. enum FileMode
  8155. {
  8156. FILE_READ,
  8157. FILE_WRITE,
  8158. FILE_READWRITE,
  8159. };
  8160. enum FillMode
  8161. {
  8162. FILL_SOLID,
  8163. FILL_WIREFRAME,
  8164. FILL_POINT,
  8165. };
  8166. enum FocusMode
  8167. {
  8168. FM_NOTFOCUSABLE,
  8169. FM_RESETFOCUS,
  8170. FM_FOCUSABLE,
  8171. FM_FOCUSABLE_DEFOCUSABLE,
  8172. };
  8173. enum HighlightMode
  8174. {
  8175. HM_NEVER,
  8176. HM_FOCUS,
  8177. HM_ALWAYS,
  8178. };
  8179. enum HorizontalAlignment
  8180. {
  8181. HA_LEFT,
  8182. HA_CENTER,
  8183. HA_RIGHT,
  8184. };
  8185. enum HttpRequestState
  8186. {
  8187. HTTP_INITIALIZING,
  8188. HTTP_ERROR,
  8189. HTTP_OPEN,
  8190. HTTP_CLOSED,
  8191. };
  8192. enum InterpolationMode
  8193. {
  8194. BEZIER_CURVE,
  8195. };
  8196. enum Intersection
  8197. {
  8198. OUTSIDE,
  8199. INTERSECTS,
  8200. INSIDE,
  8201. };
  8202. enum LayoutMode
  8203. {
  8204. LM_FREE,
  8205. LM_HORIZONTAL,
  8206. LM_VERTICAL,
  8207. };
  8208. enum LightType
  8209. {
  8210. LIGHT_DIRECTIONAL,
  8211. LIGHT_SPOT,
  8212. LIGHT_POINT,
  8213. };
  8214. enum Orientation
  8215. {
  8216. O_HORIZONTAL,
  8217. O_VERTICAL,
  8218. };
  8219. enum PassLightingMode
  8220. {
  8221. LIGHTING_UNLIT,
  8222. LIGHTING_PERVERTEX,
  8223. LIGHTING_PERPIXEL,
  8224. };
  8225. enum PrimitiveType
  8226. {
  8227. TRIANGLE_LIST,
  8228. LINE_LIST,
  8229. };
  8230. enum RayQueryLevel
  8231. {
  8232. RAY_AABB,
  8233. RAY_OBB,
  8234. RAY_TRIANGLE,
  8235. };
  8236. enum RenderCommandSortMode
  8237. {
  8238. SORT_FRONTTOBACK,
  8239. SORT_BACKTOFRONT,
  8240. };
  8241. enum RenderCommandType
  8242. {
  8243. CMD_NONE,
  8244. CMD_CLEAR,
  8245. CMD_SCENEPASS,
  8246. CMD_QUAD,
  8247. CMD_FORWARDLIGHTS,
  8248. CMD_LIGHTVOLUMES,
  8249. };
  8250. enum RenderSurfaceUpdateMode
  8251. {
  8252. SURFACE_MANUALUPDATE,
  8253. SURFACE_UPDATEVISIBLE,
  8254. SURFACE_UPDATEALWAYS,
  8255. };
  8256. enum RenderTargetSizeMode
  8257. {
  8258. SIZE_ABSOLUTE,
  8259. SIZE_RENDERTARGETDIVISOR,
  8260. SIZE_VIEWPORTDIVISOR,
  8261. };
  8262. enum ShapeType
  8263. {
  8264. SHAPE_BOX,
  8265. SHAPE_SPHERE,
  8266. SHAPE_STATICPLANE,
  8267. SHAPE_CYLINDER,
  8268. SHAPE_CAPSULE,
  8269. SHAPE_CONE,
  8270. SHAPE_TRIANGLEMESH,
  8271. SHAPE_CONVEXHULL,
  8272. SHAPE_TERRAIN,
  8273. };
  8274. enum SoundType
  8275. {
  8276. SOUND_EFFECT,
  8277. SOUND_AMBIENT,
  8278. SOUND_VOICE,
  8279. SOUND_MUSIC,
  8280. SOUND_MASTER,
  8281. };
  8282. enum TextEffect
  8283. {
  8284. TE_NONE,
  8285. TE_SHADOW,
  8286. TE_STROKE,
  8287. };
  8288. enum TextureAddressMode
  8289. {
  8290. ADDRESS_WRAP,
  8291. ADDRESS_MIRROR,
  8292. ADDRESS_CLAMP,
  8293. ADDRESS_BORDER,
  8294. };
  8295. enum TextureCoordinate
  8296. {
  8297. COORD_U,
  8298. COORD_V,
  8299. COORD_W,
  8300. };
  8301. enum TextureFilterMode
  8302. {
  8303. FILTER_NEAREST,
  8304. FILTER_BILINEAR,
  8305. FILTER_TRILINEAR,
  8306. FILTER_ANISOTROPIC,
  8307. FILTER_DEFAULT,
  8308. };
  8309. enum TextureUnit
  8310. {
  8311. TU_DIFFUSE,
  8312. TU_NORMAL,
  8313. TU_SPECULAR,
  8314. TU_EMISSIVE,
  8315. TU_ENVIRONMENT,
  8316. TU_LIGHTRAMP,
  8317. TU_LIGHTSHAPE,
  8318. TU_SHADOWMAP,
  8319. TU_FACESELECT,
  8320. TU_INDIRECTION,
  8321. TU_ALBEDOBUFFER,
  8322. TU_NORMALBUFFER,
  8323. TU_DEPTHBUFFER,
  8324. TU_LIGHTBUFFER,
  8325. TU_VOLUMEMAP,
  8326. MAX_MATERIAL_TEXTURE_UNITS,
  8327. MAX_TEXTURE_UNITS,
  8328. };
  8329. enum TextureUsage
  8330. {
  8331. TEXTURE_STATIC,
  8332. TEXTURE_DYNAMIC,
  8333. TEXTURE_RENDERTARGET,
  8334. TEXTURE_DEPTHSTENCIL,
  8335. };
  8336. enum TraversalMode
  8337. {
  8338. TM_BREADTH_FIRST,
  8339. TM_DEPTH_FIRST,
  8340. };
  8341. enum VariantType
  8342. {
  8343. VAR_NONE,
  8344. VAR_INT,
  8345. VAR_BOOL,
  8346. VAR_FLOAT,
  8347. VAR_VECTOR2,
  8348. VAR_VECTOR3,
  8349. VAR_VECTOR4,
  8350. VAR_QUATERNION,
  8351. VAR_COLOR,
  8352. VAR_STRING,
  8353. VAR_BUFFER,
  8354. VAR_PTR,
  8355. VAR_RESOURCEREF,
  8356. VAR_RESOURCEREFLIST,
  8357. VAR_VARIANTVECTOR,
  8358. VAR_VARIANTMAP,
  8359. VAR_INTRECT,
  8360. VAR_INTVECTOR2,
  8361. };
  8362. enum VerticalAlignment
  8363. {
  8364. VA_TOP,
  8365. VA_CENTER,
  8366. VA_BOTTOM,
  8367. };
  8368. // Global functions
  8369. float Abs(float);
  8370. float Acos(float);
  8371. String AddTrailingSlash(const String&);
  8372. float Asin(float);
  8373. float Atan(float);
  8374. float Atan2(float, float);
  8375. float Ceil(float);
  8376. float Clamp(float, float, float);
  8377. int Clamp(int, int, int);
  8378. void ClearDelayedExecute(const String& = String ( ));
  8379. float Cos(float);
  8380. void DelayedExecute(float, bool, const String&);
  8381. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  8382. bool Equals(float, float);
  8383. void ErrorDialog(const String&, const String&);
  8384. float Floor(float);
  8385. uint GetAlphaFormat();
  8386. Array<String> GetArguments();
  8387. String GetConsoleInput();
  8388. uint GetDepthStencilFormat();
  8389. Object GetEventSender();
  8390. String GetExtension(const String&, bool = true);
  8391. String GetFileName(const String&);
  8392. String GetFileNameAndExtension(const String&, bool = false);
  8393. uint GetFloat16Format();
  8394. uint GetFloat32Format();
  8395. uint GetFormat(const String&);
  8396. String GetInternalPath(const String&);
  8397. uint GetLuminanceAlphaFormat();
  8398. uint GetLuminanceFormat();
  8399. uint GetNumLogicalCPUs();
  8400. uint GetNumPhysicalCPUs();
  8401. Array<String> GetObjectCategories();
  8402. Array<String> GetObjectsByCategory(const String&);
  8403. String GetParentPath(const String&);
  8404. String GetPath(const String&);
  8405. String GetPlatform();
  8406. uint GetRG16Format();
  8407. uint GetRGBA16Format();
  8408. uint GetRGBAFloat16Format();
  8409. uint GetRGBAFloat32Format();
  8410. uint GetRGBAFormat();
  8411. uint GetRGBFormat();
  8412. uint GetRGFloat16Format();
  8413. uint GetRGFloat32Format();
  8414. uint GetRandomSeed();
  8415. String GetTextureUnitName(TextureUnit);
  8416. bool IsAbsolutePath(const String&);
  8417. bool IsAlpha(uint);
  8418. bool IsDigit(uint);
  8419. String Join(Array<String>&, const String&);
  8420. float Lerp(float, float, float);
  8421. void MarkNetworkUpdate();
  8422. float Max(float, float);
  8423. int Max(int, int);
  8424. float Min(float, float);
  8425. int Min(int, int);
  8426. float Mod(float, float);
  8427. void OpenConsoleWindow();
  8428. float Pow(float, float);
  8429. void Print(bool, bool = false);
  8430. void Print(const String&, bool = false);
  8431. void Print(const Variant&, bool = false);
  8432. void Print(float, bool = false);
  8433. void Print(int, bool = false);
  8434. void Print(uint, bool = false);
  8435. void PrintCallStack(bool = false);
  8436. float Random();
  8437. float Random(float);
  8438. float Random(float, float);
  8439. int RandomInt();
  8440. int RandomInt(int);
  8441. int RandomInt(int, int);
  8442. void Remove();
  8443. String RemoveTrailingSlash(const String&);
  8444. String ReplaceExtension(const String&, const String&);
  8445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8446. void SetRandomSeed(uint);
  8447. float Sign(float);
  8448. float Sin(float);
  8449. float SmoothStep(float, float, float);
  8450. float Sqrt(float);
  8451. const String& GetTypeName(ShortStringHash);
  8452. void SubscribeToEvent(Object, const String&, const String&);
  8453. void SubscribeToEvent(const String&, const String&);
  8454. float Tan(float);
  8455. uint ToLower(uint);
  8456. String ToStringHex(int);
  8457. uint ToUpper(uint);
  8458. void UnsubscribeFromAllEvents();
  8459. void UnsubscribeFromAllEventsExcept(Array<String>);
  8460. void UnsubscribeFromEvent(Object, const String&);
  8461. void UnsubscribeFromEvent(const String&);
  8462. void UnsubscribeFromEvents(Object);
  8463. // Global properties
  8464. Audio audio;
  8465. ResourceCache cache;
  8466. Console console;
  8467. DebugHud debugHud;
  8468. DebugRenderer debugRenderer;
  8469. Engine engine;
  8470. FileSystem fileSystem;
  8471. Graphics graphics;
  8472. Input input;
  8473. Log log;
  8474. Network network;
  8475. Node node;
  8476. Octree octree;
  8477. PhysicsWorld physicsWorld;
  8478. Renderer renderer;
  8479. ResourceCache resourceCache;
  8480. Scene scene;
  8481. Script script;
  8482. ScriptFile scriptFile;
  8483. ScriptInstance self;
  8484. Time time;
  8485. UI ui;
  8486. // Global constants
  8487. uint AM_COMPONENTID;
  8488. uint AM_DEFAULT;
  8489. uint AM_FILE;
  8490. uint AM_LATESTDATA;
  8491. uint AM_NET;
  8492. uint AM_NODEID;
  8493. uint AM_NODEIDVECTOR;
  8494. uint AM_NOEDIT;
  8495. int CONTROLLER_AXIS_LEFTX;
  8496. int CONTROLLER_AXIS_LEFTY;
  8497. int CONTROLLER_AXIS_RIGHTX;
  8498. int CONTROLLER_AXIS_RIGHTY;
  8499. int CONTROLLER_AXIS_TRIGGERLEFT;
  8500. int CONTROLLER_AXIS_TRIGGERRIGHT;
  8501. int CONTROLLER_BUTTON_A;
  8502. int CONTROLLER_BUTTON_B;
  8503. int CONTROLLER_BUTTON_BACK;
  8504. int CONTROLLER_BUTTON_DPAD_DOWN;
  8505. int CONTROLLER_BUTTON_DPAD_LEFT;
  8506. int CONTROLLER_BUTTON_DPAD_RIGHT;
  8507. int CONTROLLER_BUTTON_DPAD_UP;
  8508. int CONTROLLER_BUTTON_GUIDE;
  8509. int CONTROLLER_BUTTON_LEFTSHOULDER;
  8510. int CONTROLLER_BUTTON_LEFTSTICK;
  8511. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  8512. int CONTROLLER_BUTTON_RIGHTSTICK;
  8513. int CONTROLLER_BUTTON_START;
  8514. int CONTROLLER_BUTTON_X;
  8515. int CONTROLLER_BUTTON_Y;
  8516. uint DD_DISABLED;
  8517. uint DD_SOURCE;
  8518. uint DD_SOURCE_AND_TARGET;
  8519. uint DD_TARGET;
  8520. uint DEBUGHUD_SHOW_ALL;
  8521. uint DEBUGHUD_SHOW_MODE;
  8522. uint DEBUGHUD_SHOW_NONE;
  8523. uint DEBUGHUD_SHOW_PROFILER;
  8524. uint DEBUGHUD_SHOW_STATS;
  8525. uint DEFAULT_LIGHTMASK;
  8526. uint DEFAULT_VIEWMASK;
  8527. uint DRAWABLE_ANY;
  8528. uint DRAWABLE_GEOMETRY;
  8529. uint DRAWABLE_LIGHT;
  8530. uint DRAWABLE_ZONE;
  8531. uint FIRST_LOCAL_ID;
  8532. uint FIRST_REPLICATED_ID;
  8533. int HAT_CENTER;
  8534. int HAT_DOWN;
  8535. int HAT_LEFT;
  8536. int HAT_RIGHT;
  8537. int HAT_UP;
  8538. int KEY_ADD;
  8539. int KEY_APPS;
  8540. int KEY_BACKSPACE;
  8541. int KEY_CAPSLOCK;
  8542. int KEY_DECIMAL;
  8543. int KEY_DELETE;
  8544. int KEY_DIVIDE;
  8545. int KEY_DOWN;
  8546. int KEY_END;
  8547. int KEY_ESC;
  8548. int KEY_F1;
  8549. int KEY_F10;
  8550. int KEY_F11;
  8551. int KEY_F12;
  8552. int KEY_F13;
  8553. int KEY_F14;
  8554. int KEY_F15;
  8555. int KEY_F16;
  8556. int KEY_F17;
  8557. int KEY_F18;
  8558. int KEY_F19;
  8559. int KEY_F2;
  8560. int KEY_F20;
  8561. int KEY_F21;
  8562. int KEY_F22;
  8563. int KEY_F23;
  8564. int KEY_F24;
  8565. int KEY_F3;
  8566. int KEY_F4;
  8567. int KEY_F5;
  8568. int KEY_F6;
  8569. int KEY_F7;
  8570. int KEY_F8;
  8571. int KEY_F9;
  8572. int KEY_HOME;
  8573. int KEY_INSERT;
  8574. int KEY_KP_ENTER;
  8575. int KEY_LALT;
  8576. int KEY_LCTRL;
  8577. int KEY_LEFT;
  8578. int KEY_LSHIFT;
  8579. int KEY_LWIN;
  8580. int KEY_MULTIPLY;
  8581. int KEY_NUMLOCK;
  8582. int KEY_NUMPAD0;
  8583. int KEY_NUMPAD1;
  8584. int KEY_NUMPAD2;
  8585. int KEY_NUMPAD3;
  8586. int KEY_NUMPAD4;
  8587. int KEY_NUMPAD5;
  8588. int KEY_NUMPAD6;
  8589. int KEY_NUMPAD7;
  8590. int KEY_NUMPAD8;
  8591. int KEY_NUMPAD9;
  8592. int KEY_PAGEDOWN;
  8593. int KEY_PAGEUP;
  8594. int KEY_PAUSE;
  8595. int KEY_RALT;
  8596. int KEY_RCTRL;
  8597. int KEY_RETURN;
  8598. int KEY_RETURN2;
  8599. int KEY_RIGHT;
  8600. int KEY_RSHIFT;
  8601. int KEY_RWIN;
  8602. int KEY_SCROLLLOCK;
  8603. int KEY_SPACE;
  8604. int KEY_SUBTRACT;
  8605. int KEY_TAB;
  8606. int KEY_UP;
  8607. uint LAST_LOCAL_ID;
  8608. uint LAST_REPLICATED_ID;
  8609. int LOG_DEBUG;
  8610. int LOG_ERROR;
  8611. int LOG_INFO;
  8612. int LOG_NONE;
  8613. int LOG_WARNING;
  8614. int MOUSEB_LEFT;
  8615. int MOUSEB_MIDDLE;
  8616. int MOUSEB_RIGHT;
  8617. float M_DEGTORAD;
  8618. float M_DEGTORAD_2;
  8619. float M_EPSILON;
  8620. float M_HALF_PI;
  8621. float M_INFINITY;
  8622. float M_LARGE_EPSILON;
  8623. float M_LARGE_VALUE;
  8624. int M_MAX_INT;
  8625. uint M_MAX_UNSIGNED;
  8626. int M_MIN_INT;
  8627. uint M_MIN_UNSIGNED;
  8628. float M_PI;
  8629. float M_RADTODEG;
  8630. int QUALITY_HIGH;
  8631. int QUALITY_LOW;
  8632. int QUALITY_MAX;
  8633. int QUALITY_MEDIUM;
  8634. int QUAL_ALT;
  8635. int QUAL_ANY;
  8636. int QUAL_CTRL;
  8637. int QUAL_SHIFT;
  8638. uint SCAN_DIRS;
  8639. uint SCAN_FILES;
  8640. uint SCAN_HIDDEN;
  8641. int SHADOWQUALITY_HIGH_16BIT;
  8642. int SHADOWQUALITY_HIGH_24BIT;
  8643. int SHADOWQUALITY_LOW_16BIT;
  8644. int SHADOWQUALITY_LOW_24BIT;
  8645. uint VO_DISABLE_OCCLUSION;
  8646. uint VO_DISABLE_SHADOWS;
  8647. uint VO_LOW_MATERIAL_QUALITY;
  8648. uint VO_NONE;