AngelScriptAPI.h 186 KB

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