AngelScriptAPI.h 193 KB

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