2
0

AngelScriptAPI.h 237 KB

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