AngelScriptAPI.h 192 KB

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