AngelScriptAPI.h 203 KB

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