AngelScriptAPI.h 236 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048
  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. uint ReadNetID();
  2913. Quaternion ReadPackedQuaternion();
  2914. Vector3 ReadPackedVector3(float);
  2915. Quaternion ReadQuaternion();
  2916. int16 ReadShort();
  2917. ShortStringHash ReadShortStringHash();
  2918. String ReadString();
  2919. StringHash ReadStringHash();
  2920. uint8 ReadUByte();
  2921. uint ReadUInt();
  2922. uint16 ReadUShort();
  2923. uint ReadVLE();
  2924. Variant ReadVariant();
  2925. VariantMap ReadVariantMap();
  2926. Vector2 ReadVector2();
  2927. Vector3 ReadVector3();
  2928. Vector4 ReadVector4();
  2929. uint Seek(uint);
  2930. // Properties:
  2931. /* readonly */
  2932. uint checksum;
  2933. /* readonly */
  2934. bool eof;
  2935. /* readonly */
  2936. String name;
  2937. /* readonly */
  2938. uint position;
  2939. /* readonly */
  2940. uint size;
  2941. };
  2942. class Dictionary
  2943. {
  2944. // Methods:
  2945. void Clear();
  2946. void Erase(const String&);
  2947. bool Exists(const String&) const;
  2948. bool Get(const String&, void*) const;
  2949. bool Get(const String&, double&) const;
  2950. bool Get(const String&, int64&) const;
  2951. void Set(const String&, void*);
  2952. void Set(const String&, double&);
  2953. void Set(const String&, int64&);
  2954. // Properties:
  2955. /* readonly */
  2956. bool empty;
  2957. /* readonly */
  2958. Array<String> keys;
  2959. /* readonly */
  2960. uint length;
  2961. };
  2962. class Drawable
  2963. {
  2964. // Methods:
  2965. void ApplyAttributes();
  2966. void DrawDebugGeometry(DebugRenderer, bool);
  2967. Variant GetAttribute(const String&) const;
  2968. Variant GetAttributeDefault(const String&) const;
  2969. bool IsInView(Camera) const;
  2970. bool Load(File, bool = false);
  2971. bool LoadXML(const XMLElement&, bool = false);
  2972. void MarkNetworkUpdate() const;
  2973. void Remove();
  2974. void RemoveInstanceDefault();
  2975. void ResetToDefault();
  2976. bool Save(File) const;
  2977. bool SaveXML(XMLElement&) const;
  2978. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2979. bool SetAttribute(const String&, const Variant&);
  2980. // Properties:
  2981. /* readonly */
  2982. Array<Variant> attributeDefaults;
  2983. /* readonly */
  2984. Array<AttributeInfo> attributeInfos;
  2985. Array<Variant> attributes;
  2986. /* readonly */
  2987. ShortStringHash baseType;
  2988. /* readonly */
  2989. BoundingBox boundingBox;
  2990. bool castShadows;
  2991. /* readonly */
  2992. String category;
  2993. float drawDistance;
  2994. bool enabled;
  2995. /* readonly */
  2996. bool enabledEffective;
  2997. /* readonly */
  2998. uint id;
  2999. /* readonly */
  3000. bool inView;
  3001. uint lightMask;
  3002. float lodBias;
  3003. uint maxLights;
  3004. /* readonly */
  3005. Node node;
  3006. /* readonly */
  3007. uint numAttributes;
  3008. bool occludee;
  3009. bool occluder;
  3010. /* readonly */
  3011. int refs;
  3012. float shadowDistance;
  3013. uint shadowMask;
  3014. bool temporary;
  3015. /* readonly */
  3016. ShortStringHash type;
  3017. /* readonly */
  3018. String typeName;
  3019. uint viewMask;
  3020. /* readonly */
  3021. int weakRefs;
  3022. /* readonly */
  3023. BoundingBox worldBoundingBox;
  3024. uint zoneMask;
  3025. };
  3026. class Drawable2D
  3027. {
  3028. // Methods:
  3029. void ApplyAttributes();
  3030. void DrawDebugGeometry(DebugRenderer, bool);
  3031. Variant GetAttribute(const String&) const;
  3032. Variant GetAttributeDefault(const String&) const;
  3033. bool IsInView(Camera) const;
  3034. bool Load(File, bool = false);
  3035. bool LoadXML(const XMLElement&, bool = false);
  3036. void MarkNetworkUpdate() const;
  3037. void Remove();
  3038. void RemoveInstanceDefault();
  3039. void ResetToDefault();
  3040. bool Save(File) const;
  3041. bool SaveXML(XMLElement&) const;
  3042. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3043. bool SetAttribute(const String&, const Variant&);
  3044. // Properties:
  3045. /* readonly */
  3046. Array<Variant> attributeDefaults;
  3047. /* readonly */
  3048. Array<AttributeInfo> attributeInfos;
  3049. Array<Variant> attributes;
  3050. /* readonly */
  3051. ShortStringHash baseType;
  3052. BlendMode blendMode;
  3053. /* readonly */
  3054. BoundingBox boundingBox;
  3055. bool castShadows;
  3056. /* readonly */
  3057. String category;
  3058. float drawDistance;
  3059. bool enabled;
  3060. /* readonly */
  3061. bool enabledEffective;
  3062. /* readonly */
  3063. uint id;
  3064. /* readonly */
  3065. bool inView;
  3066. int layer;
  3067. uint lightMask;
  3068. float lodBias;
  3069. Material material;
  3070. uint maxLights;
  3071. /* readonly */
  3072. Node node;
  3073. /* readonly */
  3074. uint numAttributes;
  3075. bool occludee;
  3076. bool occluder;
  3077. int orderInLayer;
  3078. /* readonly */
  3079. int refs;
  3080. float shadowDistance;
  3081. uint shadowMask;
  3082. Sprite2D sprite;
  3083. bool temporary;
  3084. /* readonly */
  3085. ShortStringHash type;
  3086. /* readonly */
  3087. String typeName;
  3088. uint viewMask;
  3089. /* readonly */
  3090. int weakRefs;
  3091. /* readonly */
  3092. BoundingBox worldBoundingBox;
  3093. uint zoneMask;
  3094. };
  3095. class DropDownList
  3096. {
  3097. // Methods:
  3098. void AddChild(UIElement);
  3099. void AddItem(UIElement);
  3100. void ApplyAttributes();
  3101. void BringToFront();
  3102. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3103. void DisableLayoutUpdate();
  3104. IntVector2 ElementToScreen(const IntVector2&);
  3105. void EnableLayoutUpdate();
  3106. uint FindChild(UIElement) const;
  3107. Variant GetAttribute(const String&) const;
  3108. Variant GetAttributeDefault(const String&) const;
  3109. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3110. UIElement GetChild(const String&, bool = false) const;
  3111. Array<UIElement> GetChildren(bool = false) const;
  3112. UIElement GetElementEventSender() const;
  3113. Array<UIElement> GetItems() const;
  3114. uint GetNumChildren(bool) const;
  3115. void InsertChild(uint, UIElement);
  3116. void InsertItem(uint, UIElement);
  3117. bool IsInside(IntVector2, bool);
  3118. bool IsInsideCombined(IntVector2, bool);
  3119. bool Load(File, bool = false);
  3120. bool LoadChildXML(XMLFile, XMLFile = null);
  3121. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3122. bool LoadXML(File);
  3123. bool LoadXML(XMLFile, XMLFile);
  3124. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3125. bool LoadXML(const XMLElement&, bool = false);
  3126. void Remove();
  3127. void RemoveAllChildren();
  3128. void RemoveAllItems();
  3129. void RemoveChild(UIElement, uint = 0);
  3130. void RemoveChild(uint);
  3131. void RemoveInstanceDefault();
  3132. void RemoveItem(UIElement);
  3133. void RemoveItem(uint);
  3134. void ResetToDefault();
  3135. bool Save(File) const;
  3136. bool SaveXML(File);
  3137. bool SaveXML(XMLElement&) const;
  3138. IntVector2 ScreenToElement(const IntVector2&);
  3139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3140. void SetAccelerator(int, int);
  3141. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3142. bool SetAttribute(const String&, const Variant&);
  3143. void SetFixedHeight(int);
  3144. void SetFixedSize(int, int);
  3145. void SetFixedWidth(int);
  3146. void SetFullImageRect();
  3147. void SetHoverOffset(int, int);
  3148. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3149. void SetMaxSize(int, int);
  3150. void SetMinSize(int, int);
  3151. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3152. void SetPosition(int, int);
  3153. void SetPressedChildOffset(int, int);
  3154. void SetPressedOffset(int, int);
  3155. void SetRepeat(float, float);
  3156. void SetSize(int, int);
  3157. bool SetStyle(const String&, XMLFile = null);
  3158. bool SetStyle(const XMLElement&);
  3159. bool SetStyleAuto(XMLFile = null);
  3160. void UpdateLayout();
  3161. const Variant& GetVar(const ShortStringHash&);
  3162. UIElement getPopup() const;
  3163. // Properties:
  3164. /* readonly */
  3165. int acceleratorKey;
  3166. /* readonly */
  3167. int acceleratorQualifiers;
  3168. /* readonly */
  3169. Array<Variant> attributeDefaults;
  3170. /* readonly */
  3171. Array<AttributeInfo> attributeInfos;
  3172. Array<Variant> attributes;
  3173. /* readonly */
  3174. ShortStringHash baseType;
  3175. BlendMode blendMode;
  3176. IntRect border;
  3177. bool bringToBack;
  3178. bool bringToFront;
  3179. /* readonly */
  3180. String category;
  3181. /* readonly */
  3182. IntVector2 childOffset;
  3183. /* readonly */
  3184. Array<UIElement> children;
  3185. IntRect clipBorder;
  3186. bool clipChildren;
  3187. /* writeonly */
  3188. Color color;
  3189. /* readonly */
  3190. bool colorGradient;
  3191. Array<Color> colors;
  3192. /* readonly */
  3193. IntRect combinedScreenRect;
  3194. XMLFile defaultStyle;
  3195. /* readonly */
  3196. float derivedOpacity;
  3197. uint dragDropMode;
  3198. bool editable;
  3199. bool elementEventSender;
  3200. bool enabled;
  3201. /* readonly */
  3202. bool fixedHeight;
  3203. /* readonly */
  3204. bool fixedSize;
  3205. /* readonly */
  3206. bool fixedWidth;
  3207. bool focus;
  3208. FocusMode focusMode;
  3209. int height;
  3210. HorizontalAlignment horizontalAlignment;
  3211. IntVector2 hoverOffset;
  3212. /* readonly */
  3213. bool hovering;
  3214. IntRect imageBorder;
  3215. IntRect imageRect;
  3216. int indent;
  3217. int indentSpacing;
  3218. /* readonly */
  3219. int indentWidth;
  3220. bool internal;
  3221. /* readonly */
  3222. Array<UIElement> items;
  3223. IntRect layoutBorder;
  3224. LayoutMode layoutMode;
  3225. int layoutSpacing;
  3226. /* readonly */
  3227. ListView listView;
  3228. int maxHeight;
  3229. IntVector2 maxSize;
  3230. int maxWidth;
  3231. int minHeight;
  3232. IntVector2 minSize;
  3233. int minWidth;
  3234. String name;
  3235. /* readonly */
  3236. uint numAllChildren;
  3237. /* readonly */
  3238. uint numAttributes;
  3239. /* readonly */
  3240. uint numChildren;
  3241. /* readonly */
  3242. uint numItems;
  3243. float opacity;
  3244. UIElement parent;
  3245. /* readonly */
  3246. UIElement placeholder;
  3247. String placeholderText;
  3248. IntVector2 position;
  3249. /* readonly */
  3250. bool pressed;
  3251. IntVector2 pressedChildOffset;
  3252. IntVector2 pressedOffset;
  3253. int priority;
  3254. /* readonly */
  3255. int refs;
  3256. float repeatDelay;
  3257. float repeatRate;
  3258. bool resizePopup;
  3259. /* readonly */
  3260. UIElement root;
  3261. /* readonly */
  3262. IntVector2 screenPosition;
  3263. bool selected;
  3264. /* readonly */
  3265. UIElement selectedItem;
  3266. uint selection;
  3267. bool showPopup;
  3268. IntVector2 size;
  3269. bool sortChildren;
  3270. String style;
  3271. bool temporary;
  3272. Texture texture;
  3273. bool tiled;
  3274. TraversalMode traversalMode;
  3275. /* readonly */
  3276. ShortStringHash type;
  3277. /* readonly */
  3278. String typeName;
  3279. bool useDerivedOpacity;
  3280. /* readonly */
  3281. VariantMap vars;
  3282. VerticalAlignment verticalAlignment;
  3283. bool visible;
  3284. /* readonly */
  3285. int weakRefs;
  3286. int width;
  3287. };
  3288. class Engine
  3289. {
  3290. // Methods:
  3291. Console CreateConsole();
  3292. DebugHud CreateDebugHud();
  3293. void DumpMemory();
  3294. void DumpProfiler();
  3295. void DumpResources();
  3296. void Exit();
  3297. void RunFrame();
  3298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3299. // Properties:
  3300. bool autoExit;
  3301. /* readonly */
  3302. ShortStringHash baseType;
  3303. /* readonly */
  3304. String category;
  3305. /* readonly */
  3306. bool exiting;
  3307. /* readonly */
  3308. bool headless;
  3309. /* readonly */
  3310. bool initialized;
  3311. int maxFps;
  3312. int maxInactiveFps;
  3313. int minFps;
  3314. bool pauseMinimized;
  3315. /* readonly */
  3316. int refs;
  3317. int timeStepSmoothing;
  3318. /* readonly */
  3319. ShortStringHash type;
  3320. /* readonly */
  3321. String typeName;
  3322. /* readonly */
  3323. int weakRefs;
  3324. };
  3325. class File
  3326. {
  3327. // Methods:
  3328. void Close();
  3329. bool Open(const String&, FileMode = FILE_READ);
  3330. Array<uint8> Read(uint);
  3331. bool ReadBool();
  3332. BoundingBox ReadBoundingBox();
  3333. int8 ReadByte();
  3334. Color ReadColor();
  3335. String ReadFileID();
  3336. float ReadFloat();
  3337. int ReadInt();
  3338. IntRect ReadIntRect();
  3339. IntVector2 ReadIntVector2();
  3340. String ReadLine();
  3341. uint ReadNetID();
  3342. Quaternion ReadPackedQuaternion();
  3343. Vector3 ReadPackedVector3(float);
  3344. Quaternion ReadQuaternion();
  3345. int16 ReadShort();
  3346. ShortStringHash ReadShortStringHash();
  3347. String ReadString();
  3348. StringHash ReadStringHash();
  3349. uint8 ReadUByte();
  3350. uint ReadUInt();
  3351. uint16 ReadUShort();
  3352. uint ReadVLE();
  3353. Variant ReadVariant();
  3354. VariantMap ReadVariantMap();
  3355. Vector2 ReadVector2();
  3356. Vector3 ReadVector3();
  3357. Vector4 ReadVector4();
  3358. uint Seek(uint);
  3359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3360. uint Write(Array<uint8>);
  3361. bool WriteBool(bool);
  3362. bool WriteBoundingBox(const BoundingBox&);
  3363. bool WriteByte(int8);
  3364. bool WriteColor(const Color&);
  3365. bool WriteFileID(const String&);
  3366. bool WriteFloat(float);
  3367. bool WriteInt(int);
  3368. bool WriteIntRect(const IntRect&);
  3369. bool WriteIntVector2(const IntVector2&);
  3370. bool WriteLine(const String&);
  3371. bool WriteNetID(uint);
  3372. bool WritePackedQuaternion(const Quaternion&);
  3373. bool WritePackedVector3(const Vector3&, float);
  3374. bool WriteQuaternion(const Quaternion&);
  3375. bool WriteShort(int16);
  3376. bool WriteShortStringHash(const ShortStringHash&);
  3377. bool WriteString(const String&);
  3378. bool WriteStringHash(const StringHash&);
  3379. bool WriteUByte(uint8);
  3380. bool WriteUInt(uint);
  3381. bool WriteUShort(uint16);
  3382. bool WriteVLE(uint);
  3383. bool WriteVariant(const Variant&);
  3384. bool WriteVariantMap(const VariantMap&);
  3385. bool WriteVector2(const Vector2&);
  3386. bool WriteVector3(const Vector3&);
  3387. bool WriteVector4(const Vector4&);
  3388. // Properties:
  3389. /* readonly */
  3390. ShortStringHash baseType;
  3391. /* readonly */
  3392. String category;
  3393. /* readonly */
  3394. uint checksum;
  3395. /* readonly */
  3396. bool eof;
  3397. /* readonly */
  3398. FileMode mode;
  3399. /* readonly */
  3400. String name;
  3401. /* readonly */
  3402. bool open;
  3403. /* readonly */
  3404. bool packaged;
  3405. /* readonly */
  3406. uint position;
  3407. /* readonly */
  3408. int refs;
  3409. /* readonly */
  3410. uint size;
  3411. /* readonly */
  3412. ShortStringHash type;
  3413. /* readonly */
  3414. String typeName;
  3415. /* readonly */
  3416. int weakRefs;
  3417. };
  3418. class FileSelector
  3419. {
  3420. // Methods:
  3421. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3422. void SetButtonTexts(const String&, const String&);
  3423. void SetFilters(Array<String>, uint);
  3424. void UpdateElements();
  3425. // Properties:
  3426. /* readonly */
  3427. ShortStringHash baseType;
  3428. /* readonly */
  3429. Button cancelButton;
  3430. /* readonly */
  3431. String category;
  3432. XMLFile defaultStyle;
  3433. bool directoryMode;
  3434. /* readonly */
  3435. ListView fileList;
  3436. String fileName;
  3437. /* readonly */
  3438. LineEdit fileNameEdit;
  3439. /* readonly */
  3440. String filter;
  3441. /* readonly */
  3442. uint filterIndex;
  3443. /* readonly */
  3444. DropDownList filterList;
  3445. /* readonly */
  3446. Button okButton;
  3447. String path;
  3448. /* readonly */
  3449. LineEdit pathEdit;
  3450. /* readonly */
  3451. int refs;
  3452. String title;
  3453. /* readonly */
  3454. Text titleText;
  3455. /* readonly */
  3456. ShortStringHash type;
  3457. /* readonly */
  3458. String typeName;
  3459. /* readonly */
  3460. int weakRefs;
  3461. /* readonly */
  3462. Window window;
  3463. };
  3464. class FileSystem
  3465. {
  3466. // Methods:
  3467. bool Copy(const String&, const String&);
  3468. bool CreateDir(const String&);
  3469. bool Delete(const String&);
  3470. bool DirExists(const String&) const;
  3471. bool FileExists(const String&) const;
  3472. uint GetLastModifiedTime(const String&) const;
  3473. bool Rename(const String&, const String&);
  3474. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  3475. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3476. int SystemCommand(const String&);
  3477. bool SystemOpen(const String&, const String&);
  3478. int SystemRun(const String&, Array<String>);
  3479. // Properties:
  3480. /* readonly */
  3481. ShortStringHash baseType;
  3482. /* readonly */
  3483. String category;
  3484. String currentDir;
  3485. /* readonly */
  3486. String programDir;
  3487. /* readonly */
  3488. int refs;
  3489. /* readonly */
  3490. ShortStringHash type;
  3491. /* readonly */
  3492. String typeName;
  3493. /* readonly */
  3494. String userDocumentsDir;
  3495. /* readonly */
  3496. int weakRefs;
  3497. };
  3498. class FocusParameters
  3499. {
  3500. // Properties:
  3501. bool autoSize;
  3502. bool focus;
  3503. float minView;
  3504. bool nonUniform;
  3505. float quantize;
  3506. };
  3507. class Font
  3508. {
  3509. // Methods:
  3510. bool Load(File);
  3511. bool Save(File) const;
  3512. bool SaveXML(File, int, bool = false);
  3513. bool SaveXML(const String&, int, bool = false);
  3514. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3515. // Properties:
  3516. /* readonly */
  3517. ShortStringHash baseType;
  3518. /* readonly */
  3519. String category;
  3520. /* readonly */
  3521. uint memoryUse;
  3522. String name;
  3523. /* readonly */
  3524. int refs;
  3525. /* readonly */
  3526. ShortStringHash type;
  3527. /* readonly */
  3528. String typeName;
  3529. /* readonly */
  3530. uint useTimer;
  3531. /* readonly */
  3532. int weakRefs;
  3533. };
  3534. class Frustum
  3535. {
  3536. // Methods:
  3537. void Define(const BoundingBox&, const Matrix3x4&);
  3538. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  3539. void Define(float, float, float, float, float, const Matrix3x4&);
  3540. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  3541. float Distance(const Vector3&) const;
  3542. Intersection IsInside(const BoundingBox&);
  3543. Intersection IsInside(const Sphere&);
  3544. Intersection IsInside(const Vector3&);
  3545. void Transform(const Matrix3&);
  3546. void Transform(const Matrix3x4&);
  3547. Frustum Transformed(const Matrix3&) const;
  3548. Frustum Transformed(const Matrix3x4&) const;
  3549. // Properties:
  3550. /* readonly */
  3551. Array<Vector3> vertices;
  3552. };
  3553. class Graphics
  3554. {
  3555. // Methods:
  3556. void BeginDumpShaders(const String&);
  3557. void Close();
  3558. void EndDumpShaders();
  3559. void Maximize();
  3560. void Minimize();
  3561. void PrecacheShaders(File);
  3562. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3563. bool SetMode(int, int);
  3564. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  3565. void SetWindowPosition(int, int);
  3566. bool TakeScreenShot(Image);
  3567. bool ToggleFullscreen();
  3568. // Properties:
  3569. /* readonly */
  3570. ShortStringHash baseType;
  3571. /* readonly */
  3572. bool borderless;
  3573. /* readonly */
  3574. String category;
  3575. /* readonly */
  3576. bool deferredSupport;
  3577. /* readonly */
  3578. IntVector2 desktopResolution;
  3579. /* readonly */
  3580. bool deviceLost;
  3581. bool flushGPU;
  3582. bool forceSM2;
  3583. /* readonly */
  3584. bool fullscreen;
  3585. /* readonly */
  3586. bool hardwareShadowSupport;
  3587. /* readonly */
  3588. int height;
  3589. /* readonly */
  3590. bool initialized;
  3591. /* readonly */
  3592. bool instancingSupport;
  3593. /* readonly */
  3594. bool lightPrepassSupport;
  3595. /* readonly */
  3596. int multiSample;
  3597. /* readonly */
  3598. Array<int> multiSampleLevels;
  3599. /* readonly */
  3600. uint numBatches;
  3601. /* readonly */
  3602. uint numPrimitives;
  3603. String orientations;
  3604. /* readonly */
  3605. int refs;
  3606. /* readonly */
  3607. bool resizable;
  3608. /* readonly */
  3609. Array<IntVector2> resolutions;
  3610. bool sRGB;
  3611. /* readonly */
  3612. bool sRGBSupport;
  3613. /* readonly */
  3614. bool sRGBWriteSupport;
  3615. /* readonly */
  3616. bool sm3Support;
  3617. /* readonly */
  3618. bool tripleBuffer;
  3619. /* readonly */
  3620. ShortStringHash type;
  3621. /* readonly */
  3622. String typeName;
  3623. /* readonly */
  3624. bool vsync;
  3625. /* readonly */
  3626. int weakRefs;
  3627. /* readonly */
  3628. int width;
  3629. /* writeonly */
  3630. Image windowIcon;
  3631. IntVector2 windowPosition;
  3632. String windowTitle;
  3633. };
  3634. class HttpRequest
  3635. {
  3636. // Methods:
  3637. Array<uint8> Read(uint);
  3638. bool ReadBool();
  3639. BoundingBox ReadBoundingBox();
  3640. int8 ReadByte();
  3641. Color ReadColor();
  3642. String ReadFileID();
  3643. float ReadFloat();
  3644. int ReadInt();
  3645. IntRect ReadIntRect();
  3646. IntVector2 ReadIntVector2();
  3647. String ReadLine();
  3648. uint ReadNetID();
  3649. Quaternion ReadPackedQuaternion();
  3650. Vector3 ReadPackedVector3(float);
  3651. Quaternion ReadQuaternion();
  3652. int16 ReadShort();
  3653. ShortStringHash ReadShortStringHash();
  3654. String ReadString();
  3655. StringHash ReadStringHash();
  3656. uint8 ReadUByte();
  3657. uint ReadUInt();
  3658. uint16 ReadUShort();
  3659. uint ReadVLE();
  3660. Variant ReadVariant();
  3661. VariantMap ReadVariantMap();
  3662. Vector2 ReadVector2();
  3663. Vector3 ReadVector3();
  3664. Vector4 ReadVector4();
  3665. uint Seek(uint);
  3666. // Properties:
  3667. /* readonly */
  3668. uint availableSize;
  3669. /* readonly */
  3670. uint checksum;
  3671. /* readonly */
  3672. bool eof;
  3673. /* readonly */
  3674. String error;
  3675. /* readonly */
  3676. String name;
  3677. /* readonly */
  3678. bool open;
  3679. /* readonly */
  3680. uint position;
  3681. /* readonly */
  3682. int refs;
  3683. /* readonly */
  3684. uint size;
  3685. /* readonly */
  3686. HttpRequestState state;
  3687. /* readonly */
  3688. String url;
  3689. /* readonly */
  3690. String verb;
  3691. /* readonly */
  3692. int weakRefs;
  3693. };
  3694. class Image
  3695. {
  3696. // Methods:
  3697. void Clear(const Color&);
  3698. void FlipVertical();
  3699. Color GetPixel(int, int) const;
  3700. Color GetPixel(int, int, int) const;
  3701. Color GetPixelBilinear(float, float) const;
  3702. Color GetPixelTrilinear(float, float, float) const;
  3703. bool Load(File);
  3704. bool LoadColorLUT(File);
  3705. void Resize(int, int);
  3706. bool Save(File) const;
  3707. void SaveBMP(const String&) const;
  3708. void SaveJPG(const String&, int) const;
  3709. void SavePNG(const String&) const;
  3710. void SaveTGA(const String&) const;
  3711. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3712. void SetPixel(int, int, const Color&);
  3713. void SetPixel(int, int, int, const Color&);
  3714. bool SetSize(int, int, int, uint);
  3715. bool SetSize(int, int, uint);
  3716. // Properties:
  3717. /* readonly */
  3718. ShortStringHash baseType;
  3719. /* readonly */
  3720. String category;
  3721. /* readonly */
  3722. uint components;
  3723. /* readonly */
  3724. bool compressed;
  3725. /* readonly */
  3726. int depth;
  3727. /* readonly */
  3728. int height;
  3729. /* readonly */
  3730. uint memoryUse;
  3731. String name;
  3732. /* readonly */
  3733. int refs;
  3734. /* readonly */
  3735. ShortStringHash type;
  3736. /* readonly */
  3737. String typeName;
  3738. /* readonly */
  3739. uint useTimer;
  3740. /* readonly */
  3741. int weakRefs;
  3742. /* readonly */
  3743. int width;
  3744. };
  3745. class Input
  3746. {
  3747. // Methods:
  3748. void CloseJoystick(uint);
  3749. bool DetectJoysticks();
  3750. int GetKeyFromName(const String&) const;
  3751. int GetKeyFromScancode(int) const;
  3752. String GetKeyName(int) const;
  3753. int GetScancodeFromKey(int) const;
  3754. int GetScancodeFromName(const String&) const;
  3755. String GetScancodeName(int) const;
  3756. bool OpenJoystick(uint);
  3757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3758. // Properties:
  3759. /* readonly */
  3760. ShortStringHash baseType;
  3761. /* readonly */
  3762. String category;
  3763. /* readonly */
  3764. bool focus;
  3765. /* readonly */
  3766. Array<String> joystickNames;
  3767. /* readonly */
  3768. Array<JoystickState> joysticks;
  3769. /* readonly */
  3770. Array<bool> keyDown;
  3771. /* readonly */
  3772. Array<bool> keyPress;
  3773. /* readonly */
  3774. bool minimized;
  3775. /* readonly */
  3776. Array<bool> mouseButtonDown;
  3777. /* readonly */
  3778. Array<bool> mouseButtonPress;
  3779. /* readonly */
  3780. IntVector2 mouseMove;
  3781. /* readonly */
  3782. int mouseMoveWheel;
  3783. /* readonly */
  3784. int mouseMoveX;
  3785. /* readonly */
  3786. int mouseMoveY;
  3787. /* readonly */
  3788. IntVector2 mousePosition;
  3789. bool mouseVisible;
  3790. /* readonly */
  3791. uint numJoysticks;
  3792. /* readonly */
  3793. uint numTouches;
  3794. /* readonly */
  3795. Array<bool> qualifierDown;
  3796. /* readonly */
  3797. Array<bool> qualifierPress;
  3798. /* readonly */
  3799. int qualifiers;
  3800. /* readonly */
  3801. int refs;
  3802. /* readonly */
  3803. Array<bool> scancodeDown;
  3804. /* readonly */
  3805. Array<bool> scancodePress;
  3806. /* readonly */
  3807. bool screenKeyboardSupport;
  3808. bool screenKeyboardVisible;
  3809. bool toggleFullscreen;
  3810. /* readonly */
  3811. Array<TouchState> touches;
  3812. /* readonly */
  3813. ShortStringHash type;
  3814. /* readonly */
  3815. String typeName;
  3816. /* readonly */
  3817. int weakRefs;
  3818. };
  3819. class IntRect
  3820. {
  3821. // Methods:
  3822. Intersection IsInside(const IntVector2&) const;
  3823. // Properties:
  3824. int bottom;
  3825. /* readonly */
  3826. Array<int> data;
  3827. /* readonly */
  3828. int height;
  3829. int left;
  3830. int right;
  3831. /* readonly */
  3832. IntVector2 size;
  3833. int top;
  3834. /* readonly */
  3835. int width;
  3836. };
  3837. class IntVector2
  3838. {
  3839. // Methods:
  3840. String ToString() const;
  3841. // Properties:
  3842. /* readonly */
  3843. Array<int> data;
  3844. int x;
  3845. int y;
  3846. };
  3847. class JoystickState
  3848. {
  3849. // Properties:
  3850. /* readonly */
  3851. Array<float> axisPosition;
  3852. /* readonly */
  3853. Array<bool> buttonDown;
  3854. /* readonly */
  3855. Array<bool> buttonPress;
  3856. /* readonly */
  3857. Array<int> hatPosition;
  3858. String name;
  3859. /* readonly */
  3860. uint numAxes;
  3861. /* readonly */
  3862. uint numButtons;
  3863. /* readonly */
  3864. uint numHats;
  3865. };
  3866. class Light
  3867. {
  3868. // Methods:
  3869. void ApplyAttributes();
  3870. void DrawDebugGeometry(DebugRenderer, bool);
  3871. Variant GetAttribute(const String&) const;
  3872. Variant GetAttributeDefault(const String&) const;
  3873. bool IsInView(Camera) const;
  3874. bool Load(File, bool = false);
  3875. bool LoadXML(const XMLElement&, bool = false);
  3876. void MarkNetworkUpdate() const;
  3877. void Remove();
  3878. void RemoveInstanceDefault();
  3879. void ResetToDefault();
  3880. bool Save(File) const;
  3881. bool SaveXML(XMLElement&) const;
  3882. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3883. bool SetAttribute(const String&, const Variant&);
  3884. // Properties:
  3885. float aspectRatio;
  3886. /* readonly */
  3887. Array<Variant> attributeDefaults;
  3888. /* readonly */
  3889. Array<AttributeInfo> attributeInfos;
  3890. Array<Variant> attributes;
  3891. /* readonly */
  3892. ShortStringHash baseType;
  3893. /* readonly */
  3894. BoundingBox boundingBox;
  3895. float brightness;
  3896. bool castShadows;
  3897. /* readonly */
  3898. String category;
  3899. Color color;
  3900. float drawDistance;
  3901. /* readonly */
  3902. Color effectiveColor;
  3903. /* readonly */
  3904. float effectiveSpecularIntensity;
  3905. bool enabled;
  3906. /* readonly */
  3907. bool enabledEffective;
  3908. float fadeDistance;
  3909. float fov;
  3910. /* readonly */
  3911. Frustum frustum;
  3912. /* readonly */
  3913. uint id;
  3914. /* readonly */
  3915. bool inView;
  3916. uint lightMask;
  3917. LightType lightType;
  3918. float lodBias;
  3919. uint maxLights;
  3920. /* readonly */
  3921. bool negative;
  3922. /* readonly */
  3923. Node node;
  3924. /* readonly */
  3925. uint numAttributes;
  3926. /* readonly */
  3927. int numShadowSplits;
  3928. bool occludee;
  3929. bool occluder;
  3930. bool perVertex;
  3931. Texture rampTexture;
  3932. float range;
  3933. /* readonly */
  3934. int refs;
  3935. BiasParameters shadowBias;
  3936. CascadeParameters shadowCascade;
  3937. float shadowDistance;
  3938. float shadowFadeDistance;
  3939. FocusParameters shadowFocus;
  3940. float shadowIntensity;
  3941. uint shadowMask;
  3942. float shadowNearFarRatio;
  3943. float shadowResolution;
  3944. Texture shapeTexture;
  3945. float specularIntensity;
  3946. bool temporary;
  3947. /* readonly */
  3948. ShortStringHash type;
  3949. /* readonly */
  3950. String typeName;
  3951. uint viewMask;
  3952. /* readonly */
  3953. int weakRefs;
  3954. /* readonly */
  3955. BoundingBox worldBoundingBox;
  3956. uint zoneMask;
  3957. };
  3958. class LineEdit
  3959. {
  3960. // Methods:
  3961. void AddChild(UIElement);
  3962. void ApplyAttributes();
  3963. void BringToFront();
  3964. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3965. void DisableLayoutUpdate();
  3966. IntVector2 ElementToScreen(const IntVector2&);
  3967. void EnableLayoutUpdate();
  3968. uint FindChild(UIElement) const;
  3969. Variant GetAttribute(const String&) const;
  3970. Variant GetAttributeDefault(const String&) const;
  3971. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  3972. UIElement GetChild(const String&, bool = false) const;
  3973. Array<UIElement> GetChildren(bool = false) const;
  3974. UIElement GetElementEventSender() const;
  3975. uint GetNumChildren(bool) const;
  3976. void InsertChild(uint, UIElement);
  3977. bool IsInside(IntVector2, bool);
  3978. bool IsInsideCombined(IntVector2, bool);
  3979. bool Load(File, bool = false);
  3980. bool LoadChildXML(XMLFile, XMLFile = null);
  3981. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3982. bool LoadXML(File);
  3983. bool LoadXML(XMLFile, XMLFile);
  3984. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3985. bool LoadXML(const XMLElement&, bool = false);
  3986. void Remove();
  3987. void RemoveAllChildren();
  3988. void RemoveChild(UIElement, uint = 0);
  3989. void RemoveChild(uint);
  3990. void RemoveInstanceDefault();
  3991. void ResetToDefault();
  3992. bool Save(File) const;
  3993. bool SaveXML(File);
  3994. bool SaveXML(XMLElement&) const;
  3995. IntVector2 ScreenToElement(const IntVector2&);
  3996. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3997. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3998. bool SetAttribute(const String&, const Variant&);
  3999. void SetFixedHeight(int);
  4000. void SetFixedSize(int, int);
  4001. void SetFixedWidth(int);
  4002. void SetFullImageRect();
  4003. void SetHoverOffset(int, int);
  4004. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4005. void SetMaxSize(int, int);
  4006. void SetMinSize(int, int);
  4007. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4008. void SetPosition(int, int);
  4009. void SetSize(int, int);
  4010. bool SetStyle(const String&, XMLFile = null);
  4011. bool SetStyle(const XMLElement&);
  4012. bool SetStyleAuto(XMLFile = null);
  4013. void UpdateLayout();
  4014. const Variant& GetVar(const ShortStringHash&);
  4015. // Properties:
  4016. /* readonly */
  4017. Array<Variant> attributeDefaults;
  4018. /* readonly */
  4019. Array<AttributeInfo> attributeInfos;
  4020. Array<Variant> attributes;
  4021. /* readonly */
  4022. ShortStringHash baseType;
  4023. BlendMode blendMode;
  4024. IntRect border;
  4025. bool bringToBack;
  4026. bool bringToFront;
  4027. /* readonly */
  4028. String category;
  4029. /* readonly */
  4030. IntVector2 childOffset;
  4031. /* readonly */
  4032. Array<UIElement> children;
  4033. IntRect clipBorder;
  4034. bool clipChildren;
  4035. /* writeonly */
  4036. Color color;
  4037. /* readonly */
  4038. bool colorGradient;
  4039. Array<Color> colors;
  4040. /* readonly */
  4041. IntRect combinedScreenRect;
  4042. /* readonly */
  4043. BorderImage cursor;
  4044. float cursorBlinkRate;
  4045. bool cursorMovable;
  4046. uint cursorPosition;
  4047. XMLFile defaultStyle;
  4048. /* readonly */
  4049. float derivedOpacity;
  4050. uint dragDropMode;
  4051. uint echoCharacter;
  4052. bool editable;
  4053. bool elementEventSender;
  4054. bool enabled;
  4055. /* readonly */
  4056. bool fixedHeight;
  4057. /* readonly */
  4058. bool fixedSize;
  4059. /* readonly */
  4060. bool fixedWidth;
  4061. bool focus;
  4062. FocusMode focusMode;
  4063. int height;
  4064. HorizontalAlignment horizontalAlignment;
  4065. IntVector2 hoverOffset;
  4066. /* readonly */
  4067. bool hovering;
  4068. IntRect imageBorder;
  4069. IntRect imageRect;
  4070. int indent;
  4071. int indentSpacing;
  4072. /* readonly */
  4073. int indentWidth;
  4074. bool internal;
  4075. IntRect layoutBorder;
  4076. LayoutMode layoutMode;
  4077. int layoutSpacing;
  4078. int maxHeight;
  4079. uint maxLength;
  4080. IntVector2 maxSize;
  4081. int maxWidth;
  4082. int minHeight;
  4083. IntVector2 minSize;
  4084. int minWidth;
  4085. String name;
  4086. /* readonly */
  4087. uint numAllChildren;
  4088. /* readonly */
  4089. uint numAttributes;
  4090. /* readonly */
  4091. uint numChildren;
  4092. float opacity;
  4093. UIElement parent;
  4094. IntVector2 position;
  4095. int priority;
  4096. /* readonly */
  4097. int refs;
  4098. /* readonly */
  4099. UIElement root;
  4100. /* readonly */
  4101. IntVector2 screenPosition;
  4102. bool selected;
  4103. IntVector2 size;
  4104. bool sortChildren;
  4105. String style;
  4106. bool temporary;
  4107. String text;
  4108. bool textCopyable;
  4109. /* readonly */
  4110. Text textElement;
  4111. bool textSelectable;
  4112. Texture texture;
  4113. bool tiled;
  4114. TraversalMode traversalMode;
  4115. /* readonly */
  4116. ShortStringHash type;
  4117. /* readonly */
  4118. String typeName;
  4119. bool useDerivedOpacity;
  4120. /* readonly */
  4121. VariantMap vars;
  4122. VerticalAlignment verticalAlignment;
  4123. bool visible;
  4124. /* readonly */
  4125. int weakRefs;
  4126. int width;
  4127. };
  4128. class ListView
  4129. {
  4130. // Methods:
  4131. void AddChild(UIElement);
  4132. void AddItem(UIElement);
  4133. void AddSelection(uint);
  4134. void ApplyAttributes();
  4135. void BringToFront();
  4136. void ChangeSelection(int, bool);
  4137. void ClearSelection();
  4138. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4139. void DisableLayoutUpdate();
  4140. IntVector2 ElementToScreen(const IntVector2&);
  4141. void EnableLayoutUpdate();
  4142. void Expand(uint, bool, bool = false);
  4143. uint FindChild(UIElement) const;
  4144. uint FindItem(UIElement);
  4145. Variant GetAttribute(const String&) const;
  4146. Variant GetAttributeDefault(const String&) const;
  4147. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4148. UIElement GetChild(const String&, bool = false) const;
  4149. Array<UIElement> GetChildren(bool = false) const;
  4150. UIElement GetElementEventSender() const;
  4151. Array<UIElement> GetItems() const;
  4152. uint GetNumChildren(bool) const;
  4153. void InsertChild(uint, UIElement);
  4154. void InsertItem(uint, UIElement, UIElement = null);
  4155. bool IsExpanded(uint) const;
  4156. bool IsInside(IntVector2, bool);
  4157. bool IsInsideCombined(IntVector2, bool);
  4158. bool IsSelected(uint) const;
  4159. bool Load(File, bool = false);
  4160. bool LoadChildXML(XMLFile, XMLFile = null);
  4161. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4162. bool LoadXML(File);
  4163. bool LoadXML(XMLFile, XMLFile);
  4164. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4165. bool LoadXML(const XMLElement&, bool = false);
  4166. void Remove();
  4167. void RemoveAllChildren();
  4168. void RemoveAllItems();
  4169. void RemoveChild(UIElement, uint = 0);
  4170. void RemoveChild(uint);
  4171. void RemoveInstanceDefault();
  4172. void RemoveItem(UIElement, uint = 0);
  4173. void RemoveItem(uint);
  4174. void RemoveSelection(uint);
  4175. void ResetToDefault();
  4176. bool Save(File) const;
  4177. bool SaveXML(File);
  4178. bool SaveXML(XMLElement&) const;
  4179. IntVector2 ScreenToElement(const IntVector2&);
  4180. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4181. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4182. bool SetAttribute(const String&, const Variant&);
  4183. void SetFixedHeight(int);
  4184. void SetFixedSize(int, int);
  4185. void SetFixedWidth(int);
  4186. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4187. void SetMaxSize(int, int);
  4188. void SetMinSize(int, int);
  4189. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4190. void SetPosition(int, int);
  4191. void SetScrollBarsVisible(bool, bool);
  4192. void SetSelections(Array<uint>);
  4193. void SetSize(int, int);
  4194. bool SetStyle(const String&, XMLFile = null);
  4195. bool SetStyle(const XMLElement&);
  4196. bool SetStyleAuto(XMLFile = null);
  4197. void SetViewPosition(int, int);
  4198. void ToggleExpand(uint, bool = false);
  4199. void ToggleSelection(uint);
  4200. void UpdateLayout();
  4201. const Variant& GetVar(const ShortStringHash&);
  4202. // Properties:
  4203. /* readonly */
  4204. Array<Variant> attributeDefaults;
  4205. /* readonly */
  4206. Array<AttributeInfo> attributeInfos;
  4207. Array<Variant> attributes;
  4208. int baseIndent;
  4209. /* readonly */
  4210. ShortStringHash baseType;
  4211. bool bringToBack;
  4212. bool bringToFront;
  4213. /* readonly */
  4214. String category;
  4215. /* readonly */
  4216. IntVector2 childOffset;
  4217. /* readonly */
  4218. Array<UIElement> children;
  4219. bool clearSelectionOnDefocus;
  4220. IntRect clipBorder;
  4221. bool clipChildren;
  4222. /* writeonly */
  4223. Color color;
  4224. /* readonly */
  4225. bool colorGradient;
  4226. Array<Color> colors;
  4227. /* readonly */
  4228. IntRect combinedScreenRect;
  4229. /* readonly */
  4230. UIElement contentElement;
  4231. XMLFile defaultStyle;
  4232. /* readonly */
  4233. float derivedOpacity;
  4234. uint dragDropMode;
  4235. bool editable;
  4236. bool elementEventSender;
  4237. bool enabled;
  4238. /* readonly */
  4239. bool fixedHeight;
  4240. /* readonly */
  4241. bool fixedSize;
  4242. /* readonly */
  4243. bool fixedWidth;
  4244. bool focus;
  4245. FocusMode focusMode;
  4246. int height;
  4247. bool hierarchyMode;
  4248. HighlightMode highlightMode;
  4249. HorizontalAlignment horizontalAlignment;
  4250. /* readonly */
  4251. ScrollBar horizontalScrollBar;
  4252. /* readonly */
  4253. bool hovering;
  4254. int indent;
  4255. int indentSpacing;
  4256. /* readonly */
  4257. int indentWidth;
  4258. bool internal;
  4259. /* readonly */
  4260. Array<UIElement> items;
  4261. IntRect layoutBorder;
  4262. LayoutMode layoutMode;
  4263. int layoutSpacing;
  4264. int maxHeight;
  4265. IntVector2 maxSize;
  4266. int maxWidth;
  4267. int minHeight;
  4268. IntVector2 minSize;
  4269. int minWidth;
  4270. bool multiselect;
  4271. String name;
  4272. /* readonly */
  4273. uint numAllChildren;
  4274. /* readonly */
  4275. uint numAttributes;
  4276. /* readonly */
  4277. uint numChildren;
  4278. /* readonly */
  4279. uint numItems;
  4280. float opacity;
  4281. float pageStep;
  4282. UIElement parent;
  4283. IntVector2 position;
  4284. int priority;
  4285. /* readonly */
  4286. int refs;
  4287. /* readonly */
  4288. UIElement root;
  4289. /* readonly */
  4290. IntVector2 screenPosition;
  4291. bool scrollBarsAutoVisible;
  4292. /* readonly */
  4293. BorderImage scrollPanel;
  4294. float scrollStep;
  4295. bool selected;
  4296. /* readonly */
  4297. UIElement selectedItem;
  4298. /* readonly */
  4299. Array<UIElement> selectedItems;
  4300. uint selection;
  4301. /* readonly */
  4302. Array<uint> selections;
  4303. IntVector2 size;
  4304. bool sortChildren;
  4305. String style;
  4306. bool temporary;
  4307. TraversalMode traversalMode;
  4308. /* readonly */
  4309. ShortStringHash type;
  4310. /* readonly */
  4311. String typeName;
  4312. bool useDerivedOpacity;
  4313. /* readonly */
  4314. VariantMap vars;
  4315. VerticalAlignment verticalAlignment;
  4316. /* readonly */
  4317. ScrollBar verticalScrollBar;
  4318. IntVector2 viewPosition;
  4319. bool visible;
  4320. /* readonly */
  4321. int weakRefs;
  4322. int width;
  4323. };
  4324. class Log
  4325. {
  4326. // Methods:
  4327. void Close();
  4328. void Debug(const String&);
  4329. void Error(const String&);
  4330. void Info(const String&);
  4331. void Open(const String&);
  4332. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4333. void Warning(const String&);
  4334. void Write(const String&, bool = false);
  4335. // Properties:
  4336. /* readonly */
  4337. ShortStringHash baseType;
  4338. /* readonly */
  4339. String category;
  4340. /* readonly */
  4341. String lastMessage;
  4342. int level;
  4343. bool quiet;
  4344. /* readonly */
  4345. int refs;
  4346. bool timeStamp;
  4347. /* readonly */
  4348. ShortStringHash type;
  4349. /* readonly */
  4350. String typeName;
  4351. /* readonly */
  4352. int weakRefs;
  4353. };
  4354. class Material
  4355. {
  4356. // Methods:
  4357. Material Clone(const String& = String ( )) const;
  4358. bool Load(File);
  4359. bool Load(const XMLElement&);
  4360. void RemoveShaderParameter(const String&);
  4361. bool Save(File) const;
  4362. bool Save(XMLElement&) const;
  4363. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4364. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  4365. void SetUVTransform(const Vector2&, float, const Vector2&);
  4366. void SetUVTransform(const Vector2&, float, float);
  4367. void SortTechniques();
  4368. // Properties:
  4369. /* readonly */
  4370. ShortStringHash baseType;
  4371. /* readonly */
  4372. String category;
  4373. CullMode cullMode;
  4374. BiasParameters depthBias;
  4375. /* readonly */
  4376. uint memoryUse;
  4377. String name;
  4378. uint numTechniques;
  4379. /* readonly */
  4380. bool occlusion;
  4381. /* readonly */
  4382. int refs;
  4383. /* readonly */
  4384. Array<String> shaderParameterNames;
  4385. Array<Variant> shaderParameters;
  4386. CullMode shadowCullMode;
  4387. /* readonly */
  4388. Array<TechniqueEntry> techniqueEntries;
  4389. /* readonly */
  4390. Array<Technique> techniques;
  4391. Array<Texture> textures;
  4392. /* readonly */
  4393. ShortStringHash type;
  4394. /* readonly */
  4395. String typeName;
  4396. /* readonly */
  4397. uint useTimer;
  4398. /* readonly */
  4399. int weakRefs;
  4400. };
  4401. class Matrix3
  4402. {
  4403. // Methods:
  4404. bool Equals(const Matrix3&) const;
  4405. Matrix3 Inverse() const;
  4406. Vector3 Scale() const;
  4407. Matrix3 Scaled(const Vector3&) const;
  4408. void SetScale(const Vector3&);
  4409. void SetScale(float);
  4410. String ToString() const;
  4411. Matrix3 Transpose() const;
  4412. // Properties:
  4413. float m00;
  4414. float m01;
  4415. float m02;
  4416. float m10;
  4417. float m11;
  4418. float m12;
  4419. float m20;
  4420. float m21;
  4421. float m22;
  4422. };
  4423. class Matrix3x4
  4424. {
  4425. // Methods:
  4426. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  4427. bool Equals(const Matrix3x4&) const;
  4428. Matrix3x4 Inverse() const;
  4429. Quaternion Rotation() const;
  4430. Matrix3 RotationMatrix() const;
  4431. Vector3 Scale() const;
  4432. void SetRotation(const Matrix3&);
  4433. void SetScale(const Vector3&);
  4434. void SetScale(float);
  4435. void SetTranslation(const Vector3&);
  4436. Matrix3 ToMatrix3() const;
  4437. Matrix4 ToMatrix4() const;
  4438. String ToString() const;
  4439. Vector3 Translation() const;
  4440. // Properties:
  4441. float m00;
  4442. float m01;
  4443. float m02;
  4444. float m03;
  4445. float m10;
  4446. float m11;
  4447. float m12;
  4448. float m13;
  4449. float m20;
  4450. float m21;
  4451. float m22;
  4452. float m23;
  4453. };
  4454. class Matrix4
  4455. {
  4456. // Methods:
  4457. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  4458. bool Equals(const Matrix4&) const;
  4459. Matrix4 Inverse() const;
  4460. Quaternion Rotation() const;
  4461. Matrix3 RotationMatrix() const;
  4462. Vector3 Scale() const;
  4463. void SetRotation(const Matrix3&);
  4464. void SetScale(const Vector3&);
  4465. void SetScale(float);
  4466. void SetTranslation(const Vector3&);
  4467. Matrix3 ToMatrix3() const;
  4468. String ToString() const;
  4469. Vector3 Translation() const;
  4470. Matrix4 Transpose() const;
  4471. // Properties:
  4472. float m00;
  4473. float m01;
  4474. float m02;
  4475. float m03;
  4476. float m10;
  4477. float m11;
  4478. float m12;
  4479. float m13;
  4480. float m20;
  4481. float m21;
  4482. float m22;
  4483. float m23;
  4484. float m30;
  4485. float m31;
  4486. float m32;
  4487. float m33;
  4488. };
  4489. class Menu
  4490. {
  4491. // Methods:
  4492. void AddChild(UIElement);
  4493. void ApplyAttributes();
  4494. void BringToFront();
  4495. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4496. void DisableLayoutUpdate();
  4497. IntVector2 ElementToScreen(const IntVector2&);
  4498. void EnableLayoutUpdate();
  4499. uint FindChild(UIElement) const;
  4500. Variant GetAttribute(const String&) const;
  4501. Variant GetAttributeDefault(const String&) const;
  4502. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  4503. UIElement GetChild(const String&, bool = false) const;
  4504. Array<UIElement> GetChildren(bool = false) const;
  4505. UIElement GetElementEventSender() const;
  4506. uint GetNumChildren(bool) const;
  4507. void InsertChild(uint, UIElement);
  4508. bool IsInside(IntVector2, bool);
  4509. bool IsInsideCombined(IntVector2, bool);
  4510. bool Load(File, bool = false);
  4511. bool LoadChildXML(XMLFile, XMLFile = null);
  4512. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4513. bool LoadXML(File);
  4514. bool LoadXML(XMLFile, XMLFile);
  4515. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4516. bool LoadXML(const XMLElement&, bool = false);
  4517. void Remove();
  4518. void RemoveAllChildren();
  4519. void RemoveChild(UIElement, uint = 0);
  4520. void RemoveChild(uint);
  4521. void RemoveInstanceDefault();
  4522. void ResetToDefault();
  4523. bool Save(File) const;
  4524. bool SaveXML(File);
  4525. bool SaveXML(XMLElement&) const;
  4526. IntVector2 ScreenToElement(const IntVector2&);
  4527. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4528. void SetAccelerator(int, int);
  4529. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4530. bool SetAttribute(const String&, const Variant&);
  4531. void SetFixedHeight(int);
  4532. void SetFixedSize(int, int);
  4533. void SetFixedWidth(int);
  4534. void SetFullImageRect();
  4535. void SetHoverOffset(int, int);
  4536. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4537. void SetMaxSize(int, int);
  4538. void SetMinSize(int, int);
  4539. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4540. void SetPopupOffset(int, int);
  4541. void SetPosition(int, int);
  4542. void SetPressedChildOffset(int, int);
  4543. void SetPressedOffset(int, int);
  4544. void SetRepeat(float, float);
  4545. void SetSize(int, int);
  4546. bool SetStyle(const String&, XMLFile = null);
  4547. bool SetStyle(const XMLElement&);
  4548. bool SetStyleAuto(XMLFile = null);
  4549. void UpdateLayout();
  4550. const Variant& GetVar(const ShortStringHash&);
  4551. // Properties:
  4552. /* readonly */
  4553. int acceleratorKey;
  4554. /* readonly */
  4555. int acceleratorQualifiers;
  4556. /* readonly */
  4557. Array<Variant> attributeDefaults;
  4558. /* readonly */
  4559. Array<AttributeInfo> attributeInfos;
  4560. Array<Variant> attributes;
  4561. /* readonly */
  4562. ShortStringHash baseType;
  4563. BlendMode blendMode;
  4564. IntRect border;
  4565. bool bringToBack;
  4566. bool bringToFront;
  4567. /* readonly */
  4568. String category;
  4569. /* readonly */
  4570. IntVector2 childOffset;
  4571. /* readonly */
  4572. Array<UIElement> children;
  4573. IntRect clipBorder;
  4574. bool clipChildren;
  4575. /* writeonly */
  4576. Color color;
  4577. /* readonly */
  4578. bool colorGradient;
  4579. Array<Color> colors;
  4580. /* readonly */
  4581. IntRect combinedScreenRect;
  4582. XMLFile defaultStyle;
  4583. /* readonly */
  4584. float derivedOpacity;
  4585. uint dragDropMode;
  4586. bool editable;
  4587. bool elementEventSender;
  4588. bool enabled;
  4589. /* readonly */
  4590. bool fixedHeight;
  4591. /* readonly */
  4592. bool fixedSize;
  4593. /* readonly */
  4594. bool fixedWidth;
  4595. bool focus;
  4596. FocusMode focusMode;
  4597. int height;
  4598. HorizontalAlignment horizontalAlignment;
  4599. IntVector2 hoverOffset;
  4600. /* readonly */
  4601. bool hovering;
  4602. IntRect imageBorder;
  4603. IntRect imageRect;
  4604. int indent;
  4605. int indentSpacing;
  4606. /* readonly */
  4607. int indentWidth;
  4608. bool internal;
  4609. IntRect layoutBorder;
  4610. LayoutMode layoutMode;
  4611. int layoutSpacing;
  4612. int maxHeight;
  4613. IntVector2 maxSize;
  4614. int maxWidth;
  4615. int minHeight;
  4616. IntVector2 minSize;
  4617. int minWidth;
  4618. String name;
  4619. /* readonly */
  4620. uint numAllChildren;
  4621. /* readonly */
  4622. uint numAttributes;
  4623. /* readonly */
  4624. uint numChildren;
  4625. float opacity;
  4626. UIElement parent;
  4627. UIElement popup;
  4628. IntVector2 popupOffset;
  4629. IntVector2 position;
  4630. /* readonly */
  4631. bool pressed;
  4632. IntVector2 pressedChildOffset;
  4633. IntVector2 pressedOffset;
  4634. int priority;
  4635. /* readonly */
  4636. int refs;
  4637. float repeatDelay;
  4638. float repeatRate;
  4639. /* readonly */
  4640. UIElement root;
  4641. /* readonly */
  4642. IntVector2 screenPosition;
  4643. bool selected;
  4644. bool showPopup;
  4645. IntVector2 size;
  4646. bool sortChildren;
  4647. String style;
  4648. bool temporary;
  4649. Texture texture;
  4650. bool tiled;
  4651. TraversalMode traversalMode;
  4652. /* readonly */
  4653. ShortStringHash type;
  4654. /* readonly */
  4655. String typeName;
  4656. bool useDerivedOpacity;
  4657. /* readonly */
  4658. VariantMap vars;
  4659. VerticalAlignment verticalAlignment;
  4660. bool visible;
  4661. /* readonly */
  4662. int weakRefs;
  4663. int width;
  4664. };
  4665. class MessageBox
  4666. {
  4667. // Methods:
  4668. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4669. // Properties:
  4670. /* readonly */
  4671. ShortStringHash baseType;
  4672. /* readonly */
  4673. String category;
  4674. String message;
  4675. /* readonly */
  4676. int refs;
  4677. String title;
  4678. /* readonly */
  4679. ShortStringHash type;
  4680. /* readonly */
  4681. String typeName;
  4682. /* readonly */
  4683. int weakRefs;
  4684. /* readonly */
  4685. UIElement window;
  4686. };
  4687. class Model
  4688. {
  4689. // Methods:
  4690. bool Load(File);
  4691. bool Save(File) const;
  4692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4693. // Properties:
  4694. /* readonly */
  4695. ShortStringHash baseType;
  4696. /* readonly */
  4697. BoundingBox boundingBox;
  4698. /* readonly */
  4699. String category;
  4700. /* readonly */
  4701. uint memoryUse;
  4702. String name;
  4703. /* readonly */
  4704. uint numGeometries;
  4705. /* readonly */
  4706. Array<uint> numGeometryLodLevels;
  4707. /* readonly */
  4708. uint numMorphs;
  4709. /* readonly */
  4710. int refs;
  4711. /* readonly */
  4712. Skeleton skeleton;
  4713. /* readonly */
  4714. ShortStringHash type;
  4715. /* readonly */
  4716. String typeName;
  4717. /* readonly */
  4718. uint useTimer;
  4719. /* readonly */
  4720. int weakRefs;
  4721. };
  4722. class Navigable
  4723. {
  4724. // Methods:
  4725. void ApplyAttributes();
  4726. void DrawDebugGeometry(DebugRenderer, bool);
  4727. Variant GetAttribute(const String&) const;
  4728. Variant GetAttributeDefault(const String&) const;
  4729. bool Load(File, bool = false);
  4730. bool LoadXML(const XMLElement&, bool = false);
  4731. void MarkNetworkUpdate() const;
  4732. void Remove();
  4733. void RemoveInstanceDefault();
  4734. void ResetToDefault();
  4735. bool Save(File) const;
  4736. bool SaveXML(XMLElement&) const;
  4737. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4738. bool SetAttribute(const String&, const Variant&);
  4739. // Properties:
  4740. /* readonly */
  4741. Array<Variant> attributeDefaults;
  4742. /* readonly */
  4743. Array<AttributeInfo> attributeInfos;
  4744. Array<Variant> attributes;
  4745. /* readonly */
  4746. ShortStringHash baseType;
  4747. /* readonly */
  4748. String category;
  4749. bool enabled;
  4750. /* readonly */
  4751. bool enabledEffective;
  4752. /* readonly */
  4753. uint id;
  4754. /* readonly */
  4755. Node node;
  4756. /* readonly */
  4757. uint numAttributes;
  4758. bool recursive;
  4759. /* readonly */
  4760. int refs;
  4761. bool temporary;
  4762. /* readonly */
  4763. ShortStringHash type;
  4764. /* readonly */
  4765. String typeName;
  4766. /* readonly */
  4767. int weakRefs;
  4768. };
  4769. class NavigationMesh
  4770. {
  4771. // Methods:
  4772. void ApplyAttributes();
  4773. bool Build();
  4774. bool Build(const BoundingBox&);
  4775. void DrawDebugGeometry(DebugRenderer, bool);
  4776. void DrawDebugGeometry(bool);
  4777. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4778. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4779. Variant GetAttribute(const String&) const;
  4780. Variant GetAttributeDefault(const String&) const;
  4781. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4782. Vector3 GetRandomPoint();
  4783. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4784. bool Load(File, bool = false);
  4785. bool LoadXML(const XMLElement&, bool = false);
  4786. void MarkNetworkUpdate() const;
  4787. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  4788. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  4789. void Remove();
  4790. void RemoveInstanceDefault();
  4791. void ResetToDefault();
  4792. bool Save(File) const;
  4793. bool SaveXML(XMLElement&) const;
  4794. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4795. bool SetAttribute(const String&, const Variant&);
  4796. // Properties:
  4797. float agentHeight;
  4798. float agentMaxClimb;
  4799. float agentMaxSlope;
  4800. float agentRadius;
  4801. /* readonly */
  4802. Array<Variant> attributeDefaults;
  4803. /* readonly */
  4804. Array<AttributeInfo> attributeInfos;
  4805. Array<Variant> attributes;
  4806. /* readonly */
  4807. ShortStringHash baseType;
  4808. /* readonly */
  4809. BoundingBox boundingBox;
  4810. /* readonly */
  4811. String category;
  4812. float cellHeight;
  4813. float cellSize;
  4814. float detailSampleDistance;
  4815. float detailSampleMaxError;
  4816. float edgeMaxError;
  4817. float edgeMaxLength;
  4818. bool enabled;
  4819. /* readonly */
  4820. bool enabledEffective;
  4821. /* readonly */
  4822. uint id;
  4823. /* readonly */
  4824. bool initialized;
  4825. /* readonly */
  4826. Node node;
  4827. /* readonly */
  4828. uint numAttributes;
  4829. /* readonly */
  4830. IntVector2 numTiles;
  4831. Vector3 padding;
  4832. /* readonly */
  4833. int refs;
  4834. float regionMergeSize;
  4835. float regionMinSize;
  4836. bool temporary;
  4837. int tileSize;
  4838. /* readonly */
  4839. ShortStringHash type;
  4840. /* readonly */
  4841. String typeName;
  4842. /* readonly */
  4843. int weakRefs;
  4844. /* readonly */
  4845. BoundingBox worldBoundingBox;
  4846. };
  4847. class Network
  4848. {
  4849. // Methods:
  4850. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  4851. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  4852. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  4853. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  4854. bool CheckRemoteEvent(const String&) const;
  4855. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  4856. void Disconnect(int = 0);
  4857. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  4858. void RegisterRemoteEvent(const String&) const;
  4859. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4860. bool StartServer(uint16);
  4861. void StopServer();
  4862. void UnregisterAllRemoteEvents();
  4863. void UnregisterRemoteEvent(const String&) const;
  4864. // Properties:
  4865. /* readonly */
  4866. ShortStringHash baseType;
  4867. /* readonly */
  4868. String category;
  4869. /* readonly */
  4870. Array<Connection> clientConnections;
  4871. String packageCacheDir;
  4872. /* readonly */
  4873. int refs;
  4874. /* readonly */
  4875. Connection serverConnection;
  4876. /* readonly */
  4877. bool serverRunning;
  4878. /* readonly */
  4879. ShortStringHash type;
  4880. /* readonly */
  4881. String typeName;
  4882. int updateFps;
  4883. /* readonly */
  4884. int weakRefs;
  4885. };
  4886. class NetworkPriority
  4887. {
  4888. // Methods:
  4889. void ApplyAttributes();
  4890. void DrawDebugGeometry(DebugRenderer, bool);
  4891. Variant GetAttribute(const String&) const;
  4892. Variant GetAttributeDefault(const String&) const;
  4893. bool Load(File, bool = false);
  4894. bool LoadXML(const XMLElement&, bool = false);
  4895. void MarkNetworkUpdate() const;
  4896. void Remove();
  4897. void RemoveInstanceDefault();
  4898. void ResetToDefault();
  4899. bool Save(File) const;
  4900. bool SaveXML(XMLElement&) const;
  4901. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4902. bool SetAttribute(const String&, const Variant&);
  4903. // Properties:
  4904. bool alwaysUpdateOwner;
  4905. /* readonly */
  4906. Array<Variant> attributeDefaults;
  4907. /* readonly */
  4908. Array<AttributeInfo> attributeInfos;
  4909. Array<Variant> attributes;
  4910. float basePriority;
  4911. /* readonly */
  4912. ShortStringHash baseType;
  4913. /* readonly */
  4914. String category;
  4915. float distanceFactor;
  4916. bool enabled;
  4917. /* readonly */
  4918. bool enabledEffective;
  4919. /* readonly */
  4920. uint id;
  4921. float minPriority;
  4922. /* readonly */
  4923. Node node;
  4924. /* readonly */
  4925. uint numAttributes;
  4926. /* readonly */
  4927. int refs;
  4928. bool temporary;
  4929. /* readonly */
  4930. ShortStringHash type;
  4931. /* readonly */
  4932. String typeName;
  4933. /* readonly */
  4934. int weakRefs;
  4935. };
  4936. class Node
  4937. {
  4938. // Methods:
  4939. void AddChild(Node, uint = M_MAX_UNSIGNED);
  4940. void ApplyAttributes();
  4941. Node Clone(CreateMode = REPLICATED);
  4942. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  4943. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4944. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  4945. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  4946. Variant GetAttribute(const String&) const;
  4947. Variant GetAttributeDefault(const String&) const;
  4948. Node GetChild(const String&, bool = false) const;
  4949. Array<Node> GetChildren(bool = false) const;
  4950. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  4951. Array<Node> GetChildrenWithScript(bool = false) const;
  4952. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  4953. Component GetComponent(const String&) const;
  4954. Array<Component> GetComponents() const;
  4955. Array<Component> GetComponents(const String&, bool = false) const;
  4956. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  4957. ScriptObject GetScriptObject() const;
  4958. ScriptObject GetScriptObject(const String&) const;
  4959. bool HasComponent(const String&) const;
  4960. bool Load(File, bool = false);
  4961. bool LoadXML(const XMLElement&, bool = false);
  4962. Vector3 LocalToWorld(const Vector3&) const;
  4963. Vector3 LocalToWorld(const Vector4&) const;
  4964. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  4965. void Pitch(float, bool = false);
  4966. void Remove();
  4967. void RemoveAllChildren();
  4968. void RemoveAllComponents();
  4969. void RemoveChild(Node);
  4970. void RemoveChildren(bool, bool, bool);
  4971. void RemoveComponent(Component);
  4972. void RemoveComponent(const String&);
  4973. void RemoveComponents(bool, bool);
  4974. void RemoveInstanceDefault();
  4975. void ResetToDefault();
  4976. void Roll(float, bool = false);
  4977. void Rotate(const Quaternion&, bool = false);
  4978. bool Save(File) const;
  4979. bool SaveXML(File);
  4980. bool SaveXML(XMLElement&) const;
  4981. void Scale(const Vector3&);
  4982. void Scale(float);
  4983. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4984. bool SetAttribute(const String&, const Variant&);
  4985. void SetEnabled(bool, bool);
  4986. void SetScale(float);
  4987. void SetTransform(const Vector3&, const Quaternion&);
  4988. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  4989. void SetTransform(const Vector3&, const Quaternion&, float);
  4990. void SetWorldTransform(const Vector3&, const Quaternion&);
  4991. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  4992. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  4993. void Translate(const Vector3&);
  4994. void TranslateRelative(const Vector3&);
  4995. Vector3 WorldToLocal(const Vector3&) const;
  4996. Vector3 WorldToLocal(const Vector4&) const;
  4997. void Yaw(float, bool = false);
  4998. // Properties:
  4999. /* readonly */
  5000. Array<Variant> attributeDefaults;
  5001. /* readonly */
  5002. Array<AttributeInfo> attributeInfos;
  5003. Array<Variant> attributes;
  5004. /* readonly */
  5005. ShortStringHash baseType;
  5006. /* readonly */
  5007. String category;
  5008. /* readonly */
  5009. Array<Node> children;
  5010. /* readonly */
  5011. Array<Component> components;
  5012. Vector3 direction;
  5013. bool enabled;
  5014. /* readonly */
  5015. uint id;
  5016. String name;
  5017. /* readonly */
  5018. uint numAllChildren;
  5019. /* readonly */
  5020. uint numAttributes;
  5021. /* readonly */
  5022. uint numChildren;
  5023. /* readonly */
  5024. uint numComponents;
  5025. Connection owner;
  5026. Node parent;
  5027. Vector3 position;
  5028. /* readonly */
  5029. int refs;
  5030. /* readonly */
  5031. Vector3 right;
  5032. Quaternion rotation;
  5033. Vector3 scale;
  5034. /* readonly */
  5035. Scene scene;
  5036. /* readonly */
  5037. ScriptObject scriptObject;
  5038. bool temporary;
  5039. /* readonly */
  5040. Matrix3x4 transform;
  5041. /* readonly */
  5042. ShortStringHash type;
  5043. /* readonly */
  5044. String typeName;
  5045. /* readonly */
  5046. Vector3 up;
  5047. /* readonly */
  5048. VariantMap vars;
  5049. /* readonly */
  5050. int weakRefs;
  5051. Vector3 worldDirection;
  5052. Vector3 worldPosition;
  5053. /* readonly */
  5054. Vector3 worldRight;
  5055. Quaternion worldRotation;
  5056. Vector3 worldScale;
  5057. /* readonly */
  5058. Matrix3x4 worldTransform;
  5059. /* readonly */
  5060. Vector3 worldUp;
  5061. };
  5062. class Object
  5063. {
  5064. // Methods:
  5065. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5066. // Properties:
  5067. /* readonly */
  5068. ShortStringHash baseType;
  5069. /* readonly */
  5070. String category;
  5071. /* readonly */
  5072. int refs;
  5073. /* readonly */
  5074. ShortStringHash type;
  5075. /* readonly */
  5076. String typeName;
  5077. /* readonly */
  5078. int weakRefs;
  5079. };
  5080. class Octree
  5081. {
  5082. // Methods:
  5083. void AddManualDrawable(Drawable);
  5084. void ApplyAttributes();
  5085. void DrawDebugGeometry(DebugRenderer, bool);
  5086. void DrawDebugGeometry(bool) const;
  5087. Variant GetAttribute(const String&) const;
  5088. Variant GetAttributeDefault(const String&) const;
  5089. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5090. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5091. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5092. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5093. bool Load(File, bool = false);
  5094. bool LoadXML(const XMLElement&, bool = false);
  5095. void MarkNetworkUpdate() const;
  5096. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5097. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5098. void Remove();
  5099. void RemoveInstanceDefault();
  5100. void RemoveManualDrawable(Drawable);
  5101. void ResetToDefault();
  5102. bool Save(File) const;
  5103. bool SaveXML(XMLElement&) const;
  5104. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5105. bool SetAttribute(const String&, const Variant&);
  5106. void SetSize(const BoundingBox&, uint);
  5107. // Properties:
  5108. /* readonly */
  5109. Array<Variant> attributeDefaults;
  5110. /* readonly */
  5111. Array<AttributeInfo> attributeInfos;
  5112. Array<Variant> attributes;
  5113. /* readonly */
  5114. ShortStringHash baseType;
  5115. /* readonly */
  5116. String category;
  5117. bool enabled;
  5118. /* readonly */
  5119. bool enabledEffective;
  5120. /* readonly */
  5121. uint id;
  5122. /* readonly */
  5123. Node node;
  5124. /* readonly */
  5125. uint numAttributes;
  5126. /* readonly */
  5127. uint numLevels;
  5128. /* readonly */
  5129. int refs;
  5130. bool temporary;
  5131. /* readonly */
  5132. ShortStringHash type;
  5133. /* readonly */
  5134. String typeName;
  5135. /* readonly */
  5136. int weakRefs;
  5137. /* readonly */
  5138. BoundingBox worldBoundingBox;
  5139. };
  5140. class OffMeshConnection
  5141. {
  5142. // Methods:
  5143. void ApplyAttributes();
  5144. void DrawDebugGeometry(DebugRenderer, bool);
  5145. Variant GetAttribute(const String&) const;
  5146. Variant GetAttributeDefault(const String&) const;
  5147. bool Load(File, bool = false);
  5148. bool LoadXML(const XMLElement&, bool = false);
  5149. void MarkNetworkUpdate() const;
  5150. void Remove();
  5151. void RemoveInstanceDefault();
  5152. void ResetToDefault();
  5153. bool Save(File) const;
  5154. bool SaveXML(XMLElement&) const;
  5155. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5156. bool SetAttribute(const String&, const Variant&);
  5157. // Properties:
  5158. /* readonly */
  5159. Array<Variant> attributeDefaults;
  5160. /* readonly */
  5161. Array<AttributeInfo> attributeInfos;
  5162. Array<Variant> attributes;
  5163. /* readonly */
  5164. ShortStringHash baseType;
  5165. bool bidirectional;
  5166. /* readonly */
  5167. String category;
  5168. bool enabled;
  5169. /* readonly */
  5170. bool enabledEffective;
  5171. Node endPoint;
  5172. /* readonly */
  5173. uint id;
  5174. /* readonly */
  5175. Node node;
  5176. /* readonly */
  5177. uint numAttributes;
  5178. float radius;
  5179. /* readonly */
  5180. int refs;
  5181. bool temporary;
  5182. /* readonly */
  5183. ShortStringHash type;
  5184. /* readonly */
  5185. String typeName;
  5186. /* readonly */
  5187. int weakRefs;
  5188. };
  5189. class PackageFile
  5190. {
  5191. // Methods:
  5192. bool Exists(const String&) const;
  5193. bool Open(const String&, uint = 0) const;
  5194. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5195. bool compressed() const;
  5196. // Properties:
  5197. /* readonly */
  5198. ShortStringHash baseType;
  5199. /* readonly */
  5200. String category;
  5201. /* readonly */
  5202. uint checksum;
  5203. /* readonly */
  5204. String name;
  5205. /* readonly */
  5206. uint numFiles;
  5207. /* readonly */
  5208. int refs;
  5209. /* readonly */
  5210. uint totalSize;
  5211. /* readonly */
  5212. ShortStringHash type;
  5213. /* readonly */
  5214. String typeName;
  5215. /* readonly */
  5216. int weakRefs;
  5217. };
  5218. class ParticleEffect2D
  5219. {
  5220. // Methods:
  5221. bool Load(File);
  5222. bool Save(File) const;
  5223. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5224. // Properties:
  5225. /* readonly */
  5226. ShortStringHash baseType;
  5227. /* readonly */
  5228. String category;
  5229. /* readonly */
  5230. uint memoryUse;
  5231. String name;
  5232. /* readonly */
  5233. int refs;
  5234. /* readonly */
  5235. ShortStringHash type;
  5236. /* readonly */
  5237. String typeName;
  5238. /* readonly */
  5239. uint useTimer;
  5240. /* readonly */
  5241. int weakRefs;
  5242. };
  5243. class ParticleEmitter
  5244. {
  5245. // Methods:
  5246. void ApplyAttributes();
  5247. void DrawDebugGeometry(DebugRenderer, bool);
  5248. Variant GetAttribute(const String&) const;
  5249. Variant GetAttributeDefault(const String&) const;
  5250. bool IsInView(Camera) const;
  5251. bool Load(File, bool = false);
  5252. bool Load(XMLFile);
  5253. bool LoadXML(const XMLElement&, bool = false);
  5254. void MarkNetworkUpdate() const;
  5255. void Remove();
  5256. void RemoveInstanceDefault();
  5257. void ResetToDefault();
  5258. bool Save(File) const;
  5259. bool Save(XMLFile);
  5260. bool SaveXML(XMLElement&) const;
  5261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5262. bool SetAttribute(const String&, const Variant&);
  5263. void SetColor(const Color&);
  5264. void SetEmitting(bool, bool);
  5265. // Properties:
  5266. float activeTime;
  5267. float animationLodBias;
  5268. /* readonly */
  5269. Array<Variant> attributeDefaults;
  5270. /* readonly */
  5271. Array<AttributeInfo> attributeInfos;
  5272. Array<Variant> attributes;
  5273. /* readonly */
  5274. ShortStringHash baseType;
  5275. /* readonly */
  5276. BoundingBox boundingBox;
  5277. bool castShadows;
  5278. /* readonly */
  5279. String category;
  5280. /* readonly */
  5281. Array<ColorFrame> colors;
  5282. Vector3 constantForce;
  5283. float dampingForce;
  5284. float drawDistance;
  5285. /* writeonly */
  5286. float emissionRate;
  5287. Vector3 emitterSize;
  5288. EmitterType emitterType;
  5289. bool emitting;
  5290. bool enabled;
  5291. /* readonly */
  5292. bool enabledEffective;
  5293. /* readonly */
  5294. uint id;
  5295. /* readonly */
  5296. bool inView;
  5297. float inactiveTime;
  5298. uint lightMask;
  5299. float lodBias;
  5300. Material material;
  5301. Vector3 maxDirection;
  5302. float maxEmissionRate;
  5303. uint maxLights;
  5304. Vector3 maxParticleSize;
  5305. float maxRotation;
  5306. float maxRotationSpeed;
  5307. float maxTimeToLive;
  5308. float maxVelocity;
  5309. Vector3 minDirection;
  5310. float minEmissionRate;
  5311. Vector2 minParticleSize;
  5312. float minRotation;
  5313. float minRotationSpeed;
  5314. float minTimeToLive;
  5315. float minVelocity;
  5316. /* readonly */
  5317. Node node;
  5318. /* readonly */
  5319. uint numAttributes;
  5320. uint numColors;
  5321. uint numParticles;
  5322. uint numTextureFrames;
  5323. bool occludee;
  5324. bool occluder;
  5325. /* writeonly */
  5326. Vector2 particleSize;
  5327. /* readonly */
  5328. int refs;
  5329. bool relative;
  5330. /* writeonly */
  5331. float rotation;
  5332. /* writeonly */
  5333. float rotationSpeed;
  5334. bool scaled;
  5335. float shadowDistance;
  5336. uint shadowMask;
  5337. float sizeAdd;
  5338. float sizeMul;
  5339. bool sorted;
  5340. bool temporary;
  5341. /* readonly */
  5342. Array<TextureFrame> textureFrames;
  5343. /* writeonly */
  5344. float timeToLive;
  5345. /* readonly */
  5346. ShortStringHash type;
  5347. /* readonly */
  5348. String typeName;
  5349. bool updateInvisible;
  5350. /* writeonly */
  5351. float velocity;
  5352. uint viewMask;
  5353. /* readonly */
  5354. int weakRefs;
  5355. /* readonly */
  5356. BoundingBox worldBoundingBox;
  5357. /* readonly */
  5358. Zone zone;
  5359. uint zoneMask;
  5360. };
  5361. class ParticleEmitter2D
  5362. {
  5363. // Methods:
  5364. void ApplyAttributes();
  5365. void DrawDebugGeometry(DebugRenderer, bool);
  5366. Variant GetAttribute(const String&) const;
  5367. Variant GetAttributeDefault(const String&) const;
  5368. bool IsInView(Camera) const;
  5369. bool Load(File, bool = false);
  5370. bool LoadXML(const XMLElement&, bool = false);
  5371. void MarkNetworkUpdate() const;
  5372. void Remove();
  5373. void RemoveInstanceDefault();
  5374. void ResetToDefault();
  5375. bool Save(File) const;
  5376. bool SaveXML(XMLElement&) const;
  5377. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5378. bool SetAttribute(const String&, const Variant&);
  5379. // Properties:
  5380. /* readonly */
  5381. Array<Variant> attributeDefaults;
  5382. /* readonly */
  5383. Array<AttributeInfo> attributeInfos;
  5384. Array<Variant> attributes;
  5385. /* readonly */
  5386. ShortStringHash baseType;
  5387. BlendMode blendMode;
  5388. /* readonly */
  5389. BoundingBox boundingBox;
  5390. bool castShadows;
  5391. /* readonly */
  5392. String category;
  5393. float drawDistance;
  5394. ParticleEffect2D effect;
  5395. bool enabled;
  5396. /* readonly */
  5397. bool enabledEffective;
  5398. /* readonly */
  5399. uint id;
  5400. /* readonly */
  5401. bool inView;
  5402. int layer;
  5403. uint lightMask;
  5404. float lodBias;
  5405. Material material;
  5406. uint maxLights;
  5407. /* readonly */
  5408. Node node;
  5409. /* readonly */
  5410. uint numAttributes;
  5411. bool occludee;
  5412. bool occluder;
  5413. int orderInLayer;
  5414. /* readonly */
  5415. int refs;
  5416. float shadowDistance;
  5417. uint shadowMask;
  5418. Sprite2D sprite;
  5419. bool temporary;
  5420. /* readonly */
  5421. ShortStringHash type;
  5422. /* readonly */
  5423. String typeName;
  5424. uint viewMask;
  5425. /* readonly */
  5426. int weakRefs;
  5427. /* readonly */
  5428. BoundingBox worldBoundingBox;
  5429. uint zoneMask;
  5430. };
  5431. class Pass
  5432. {
  5433. // Properties:
  5434. bool alphaMask;
  5435. BlendMode blendMode;
  5436. CompareMode depthTestMode;
  5437. bool depthWrite;
  5438. PassLightingMode lightingMode;
  5439. String pixelShader;
  5440. String pixelShaderDefines;
  5441. /* readonly */
  5442. int refs;
  5443. bool sm3;
  5444. String vertexShader;
  5445. String vertexShaderDefines;
  5446. /* readonly */
  5447. int weakRefs;
  5448. };
  5449. class PhysicsRaycastResult
  5450. {
  5451. // Properties:
  5452. /* readonly */
  5453. RigidBody body;
  5454. float distance;
  5455. Vector3 normal;
  5456. Vector3 position;
  5457. };
  5458. class PhysicsRaycastResult2D
  5459. {
  5460. // Properties:
  5461. /* readonly */
  5462. RigidBody2D body;
  5463. float distance;
  5464. Vector2 normal;
  5465. Vector2 position;
  5466. };
  5467. class PhysicsWorld
  5468. {
  5469. // Methods:
  5470. void ApplyAttributes();
  5471. void DrawDebugGeometry(DebugRenderer, bool);
  5472. void DrawDebugGeometry(bool);
  5473. Variant GetAttribute(const String&) const;
  5474. Variant GetAttributeDefault(const String&) const;
  5475. Array<RigidBody> GetRigidBodies(RigidBody);
  5476. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  5477. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  5478. bool Load(File, bool = false);
  5479. bool LoadXML(const XMLElement&, bool = false);
  5480. void MarkNetworkUpdate() const;
  5481. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  5482. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  5483. void Remove();
  5484. void RemoveCachedGeometry(Model);
  5485. void RemoveInstanceDefault();
  5486. void ResetToDefault();
  5487. bool Save(File) const;
  5488. bool SaveXML(XMLElement&) const;
  5489. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5490. bool SetAttribute(const String&, const Variant&);
  5491. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  5492. void Update(float);
  5493. void UpdateCollisions();
  5494. // Properties:
  5495. /* readonly */
  5496. Array<Variant> attributeDefaults;
  5497. /* readonly */
  5498. Array<AttributeInfo> attributeInfos;
  5499. Array<Variant> attributes;
  5500. /* readonly */
  5501. ShortStringHash baseType;
  5502. /* readonly */
  5503. String category;
  5504. bool enabled;
  5505. /* readonly */
  5506. bool enabledEffective;
  5507. int fps;
  5508. Vector3 gravity;
  5509. /* readonly */
  5510. uint id;
  5511. bool internalEdge;
  5512. bool interpolation;
  5513. /* readonly */
  5514. Node node;
  5515. /* readonly */
  5516. uint numAttributes;
  5517. int numIterations;
  5518. /* readonly */
  5519. int refs;
  5520. bool splitImpulse;
  5521. bool temporary;
  5522. /* readonly */
  5523. ShortStringHash type;
  5524. /* readonly */
  5525. String typeName;
  5526. /* readonly */
  5527. int weakRefs;
  5528. };
  5529. class PhysicsWorld2D
  5530. {
  5531. // Methods:
  5532. void ApplyAttributes();
  5533. void DrawDebugGeometry() const;
  5534. void DrawDebugGeometry(DebugRenderer, bool);
  5535. Variant GetAttribute(const String&) const;
  5536. Variant GetAttributeDefault(const String&) const;
  5537. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  5538. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  5539. bool Load(File, bool = false);
  5540. bool LoadXML(const XMLElement&, bool = false);
  5541. void MarkNetworkUpdate() const;
  5542. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  5543. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  5544. void Remove();
  5545. void RemoveInstanceDefault();
  5546. void ResetToDefault();
  5547. bool Save(File) const;
  5548. bool SaveXML(XMLElement&) const;
  5549. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5550. bool SetAttribute(const String&, const Variant&);
  5551. // Properties:
  5552. bool allowSleeping;
  5553. /* readonly */
  5554. Array<Variant> attributeDefaults;
  5555. /* readonly */
  5556. Array<AttributeInfo> attributeInfos;
  5557. Array<Variant> attributes;
  5558. bool autoClearForces;
  5559. /* readonly */
  5560. ShortStringHash baseType;
  5561. /* readonly */
  5562. String category;
  5563. bool continuousPhysics;
  5564. bool drawAabb;
  5565. bool drawCenterOfMass;
  5566. bool drawJoint;
  5567. bool drawPair;
  5568. bool drawShape;
  5569. bool enabled;
  5570. /* readonly */
  5571. bool enabledEffective;
  5572. Vector2 gravity;
  5573. /* readonly */
  5574. uint id;
  5575. /* readonly */
  5576. Node node;
  5577. /* readonly */
  5578. uint numAttributes;
  5579. uint positionIterations;
  5580. /* readonly */
  5581. int refs;
  5582. bool subStepping;
  5583. bool temporary;
  5584. /* readonly */
  5585. ShortStringHash type;
  5586. /* readonly */
  5587. String typeName;
  5588. uint velocityIterations;
  5589. bool warmStarting;
  5590. /* readonly */
  5591. int weakRefs;
  5592. };
  5593. class Plane
  5594. {
  5595. // Methods:
  5596. void Define(const Vector3&, const Vector3&);
  5597. void Define(const Vector3&, const Vector3&, const Vector3&);
  5598. void Define(const Vector4&);
  5599. float Distance(const Vector3&) const;
  5600. Vector3 Reflect(const Vector3&) const;
  5601. Vector4 ToVector4() const;
  5602. void Transform(const Matrix3&);
  5603. void Transform(const Matrix3x4&);
  5604. void Transform(const Matrix4&);
  5605. Plane Transformed(const Matrix3&) const;
  5606. Plane Transformed(const Matrix3x4&) const;
  5607. Plane Transformed(const Matrix4&) const;
  5608. // Properties:
  5609. Vector3 absNormal;
  5610. float d;
  5611. Vector3 normal;
  5612. /* readonly */
  5613. Matrix3x4 reflectionMatrix;
  5614. };
  5615. class Polyhedron
  5616. {
  5617. // Methods:
  5618. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  5619. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  5620. void AddFace(const Array<Vector3>);
  5621. void Clear();
  5622. void Clip(const BoundingBox&);
  5623. void Clip(const Frustum&);
  5624. void Define(const BoundingBox&);
  5625. void Define(const Frustum&);
  5626. void Transform(const Matrix3&);
  5627. void Transform(const Matrix3x4&);
  5628. Polyhedron Transformed(const Matrix3&) const;
  5629. Polyhedron Transformed(const Matrix3x4&) const;
  5630. // Properties:
  5631. /* readonly */
  5632. Array<Array<Vector3>> face;
  5633. /* readonly */
  5634. uint numFaces;
  5635. };
  5636. class Quaternion
  5637. {
  5638. // Methods:
  5639. float DotProduct(const Quaternion&) const;
  5640. bool Equals(const Quaternion&) const;
  5641. void FromAngleAxis(float, const Vector3&);
  5642. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  5643. void FromEulerAngles(float, float, float);
  5644. void FromLookRotation(const Vector3&, const Vector3&);
  5645. void FromRotationTo(const Vector3&, const Vector3&);
  5646. Quaternion Inverse() const;
  5647. bool IsNaN() const;
  5648. Quaternion Nlerp(Quaternion, float, bool) const;
  5649. void Normalize();
  5650. Quaternion Normalized() const;
  5651. Quaternion Slerp(Quaternion, float) const;
  5652. String ToString() const;
  5653. // Properties:
  5654. /* readonly */
  5655. Vector3 eulerAngles;
  5656. /* readonly */
  5657. float pitch;
  5658. /* readonly */
  5659. float roll;
  5660. float w;
  5661. float x;
  5662. float y;
  5663. /* readonly */
  5664. float yaw;
  5665. float z;
  5666. };
  5667. class Ray
  5668. {
  5669. // Methods:
  5670. Vector3 ClosestPoint(const Ray&) const;
  5671. void Define(const Vector3&, const Vector3&);
  5672. float Distance(const Vector3&) const;
  5673. float HitDistance(const BoundingBox&) const;
  5674. float HitDistance(const Frustum&, bool = true) const;
  5675. float HitDistance(const Sphere&) const;
  5676. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  5677. Vector3 Project(const Vector3&) const;
  5678. Ray Transformed(const Matrix3x4&) const;
  5679. // Properties:
  5680. Vector3 direction;
  5681. Vector3 origin;
  5682. };
  5683. class RayQueryResult
  5684. {
  5685. // Properties:
  5686. float distance;
  5687. /* readonly */
  5688. Drawable drawable;
  5689. /* readonly */
  5690. Node node;
  5691. Vector3 normal;
  5692. Vector3 position;
  5693. uint subObject;
  5694. };
  5695. class Rect
  5696. {
  5697. // Methods:
  5698. void Clear();
  5699. void Clip(const Rect&);
  5700. void Define(const Vector2&);
  5701. void Define(const Vector2&, const Vector2&);
  5702. bool Equals(const Rect&) const;
  5703. Intersection IsInside(const Vector2&) const;
  5704. void Merge(const Rect&);
  5705. void Merge(const Vector2&);
  5706. Vector4 ToVector4() const;
  5707. // Properties:
  5708. float bottom;
  5709. /* readonly */
  5710. Vector2 center;
  5711. bool defined;
  5712. /* readonly */
  5713. Vector2 halfSize;
  5714. float left;
  5715. Vector2 max;
  5716. Vector2 min;
  5717. float right;
  5718. /* readonly */
  5719. Vector2 size;
  5720. float top;
  5721. };
  5722. class RefCounted
  5723. {
  5724. // Properties:
  5725. /* readonly */
  5726. int refs;
  5727. /* readonly */
  5728. int weakRefs;
  5729. };
  5730. class RenderPath
  5731. {
  5732. // Methods:
  5733. void AddCommand(const RenderPathCommand&);
  5734. void AddRenderTarget(const RenderTargetInfo&);
  5735. bool Append(XMLFile);
  5736. RenderPath Clone();
  5737. void InsertCommand(uint, const RenderPathCommand&);
  5738. bool Load(XMLFile);
  5739. void RemoveCommand(uint);
  5740. void RemoveCommands(const String&);
  5741. void RemoveRenderTarget(const String&);
  5742. void RemoveRenderTarget(uint);
  5743. void RemoveRenderTargts(const String&);
  5744. void SetEnabled(const String&, bool);
  5745. void ToggleEnabled(const String&);
  5746. // Properties:
  5747. Array<RenderPathCommand> commands;
  5748. /* readonly */
  5749. uint numCommands;
  5750. /* readonly */
  5751. uint numRenderTargets;
  5752. /* readonly */
  5753. int refs;
  5754. Array<RenderTargetInfo> renderTargets;
  5755. Array<Variant> shaderParameters;
  5756. /* readonly */
  5757. int weakRefs;
  5758. };
  5759. class RenderPathCommand
  5760. {
  5761. // Methods:
  5762. void RemoveShaderParameter(const String&);
  5763. // Properties:
  5764. Color clearColor;
  5765. float clearDepth;
  5766. uint clearFlags;
  5767. uint clearStencil;
  5768. bool enabled;
  5769. bool markToStencil;
  5770. String metadata;
  5771. uint numOutputs;
  5772. Array<String> outputNames;
  5773. String pass;
  5774. String pixelShaderDefines;
  5775. String pixelShaderName;
  5776. Array<Variant> shaderParameters;
  5777. RenderCommandSortMode sortMode;
  5778. String tag;
  5779. Array<String> textureNames;
  5780. RenderCommandType type;
  5781. bool useFogColor;
  5782. bool useLitBase;
  5783. bool vertexLights;
  5784. String vertexShaderDefines;
  5785. String vertexShaderName;
  5786. };
  5787. class RenderSurface
  5788. {
  5789. // Methods:
  5790. void QueueUpdate();
  5791. // Properties:
  5792. /* readonly */
  5793. int height;
  5794. RenderSurface linkedDepthStencil;
  5795. RenderSurface linkedRenderTarget;
  5796. uint numViewports;
  5797. /* readonly */
  5798. Texture parentTexture;
  5799. RenderSurfaceUpdateMode updateMode;
  5800. /* readonly */
  5801. TextureUsage usage;
  5802. Array<Viewport> viewports;
  5803. /* readonly */
  5804. int width;
  5805. };
  5806. class RenderTargetInfo
  5807. {
  5808. // Properties:
  5809. bool enabled;
  5810. bool filtered;
  5811. uint format;
  5812. String name;
  5813. bool persistent;
  5814. bool sRGB;
  5815. IntVector2 size;
  5816. RenderTargetSizeMode sizeMode;
  5817. String tag;
  5818. };
  5819. class Renderer
  5820. {
  5821. // Methods:
  5822. void DrawDebugGeometry(bool) const;
  5823. void ReloadShaders() const;
  5824. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5825. void SetDefaultRenderPath(XMLFile);
  5826. // Properties:
  5827. /* readonly */
  5828. ShortStringHash baseType;
  5829. /* readonly */
  5830. String category;
  5831. /* readonly */
  5832. Material defaultLightRamp;
  5833. /* readonly */
  5834. Material defaultLightSpot;
  5835. /* readonly */
  5836. Material defaultMaterial;
  5837. RenderPath defaultRenderPath;
  5838. /* readonly */
  5839. Zone defaultZone;
  5840. bool drawShadows;
  5841. bool dynamicInstancing;
  5842. bool hdrRendering;
  5843. int materialQuality;
  5844. int maxInstanceTriangles;
  5845. int maxOccluderTriangles;
  5846. int maxShadowMaps;
  5847. int maxSortedInstances;
  5848. int minInstances;
  5849. /* readonly */
  5850. uint numBatches;
  5851. /* readonly */
  5852. Array<uint> numGeometries;
  5853. /* readonly */
  5854. Array<uint> numLights;
  5855. /* readonly */
  5856. Array<uint> numOccluders;
  5857. /* readonly */
  5858. uint numPrimitives;
  5859. /* readonly */
  5860. Array<uint> numShadowMaps;
  5861. uint numViewports;
  5862. /* readonly */
  5863. uint numViews;
  5864. float occluderSizeThreshold;
  5865. int occlusionBufferSize;
  5866. /* readonly */
  5867. int refs;
  5868. bool reuseShadowMaps;
  5869. int shadowMapSize;
  5870. int shadowQuality;
  5871. bool specularLighting;
  5872. int textureAnisotropy;
  5873. TextureFilterMode textureFilterMode;
  5874. int textureQuality;
  5875. /* readonly */
  5876. ShortStringHash type;
  5877. /* readonly */
  5878. String typeName;
  5879. Array<Viewport> viewports;
  5880. /* readonly */
  5881. int weakRefs;
  5882. };
  5883. class Resource
  5884. {
  5885. // Methods:
  5886. bool Load(File);
  5887. bool Save(File) const;
  5888. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5889. // Properties:
  5890. /* readonly */
  5891. ShortStringHash baseType;
  5892. /* readonly */
  5893. String category;
  5894. /* readonly */
  5895. uint memoryUse;
  5896. String name;
  5897. /* readonly */
  5898. int refs;
  5899. /* readonly */
  5900. ShortStringHash type;
  5901. /* readonly */
  5902. String typeName;
  5903. /* readonly */
  5904. uint useTimer;
  5905. /* readonly */
  5906. int weakRefs;
  5907. };
  5908. class ResourceCache
  5909. {
  5910. // Methods:
  5911. bool AddManualResource(Resource);
  5912. void AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  5913. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  5914. bool Exists(const String&) const;
  5915. File GetFile(const String&);
  5916. String GetPreferredResourceDir(const String&) const;
  5917. Resource GetResource(ShortStringHash, const String&, bool = true);
  5918. Resource GetResource(const String&, const String&, bool = true);
  5919. String GetResourceFileName(const String&) const;
  5920. void ReleaseAllResources(bool = false);
  5921. void ReleaseResource(const String&, const String&, bool = false);
  5922. void ReleaseResources(ShortStringHash, bool = false);
  5923. void ReleaseResources(const String&, bool = false);
  5924. void ReleaseResources(const String&, const String&, bool = false);
  5925. bool ReloadResource(Resource);
  5926. void RemovePackageFile(PackageFile, bool = true, bool = false);
  5927. void RemovePackageFile(const String&, bool = true, bool = false);
  5928. void RemoveResourceDir(const String&);
  5929. String SanitateResourceDirName(const String&) const;
  5930. String SanitateResourceName(const String&) const;
  5931. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5932. // Properties:
  5933. bool autoReloadResources;
  5934. /* readonly */
  5935. ShortStringHash baseType;
  5936. /* readonly */
  5937. String category;
  5938. Array<uint> memoryBudget;
  5939. /* readonly */
  5940. Array<uint> memoryUse;
  5941. /* readonly */
  5942. Array<PackageFile> packageFiles;
  5943. /* readonly */
  5944. int refs;
  5945. /* readonly */
  5946. Array<String> resourceDirs;
  5947. bool returnFailedResources;
  5948. /* readonly */
  5949. bool seachPackagesFirst;
  5950. /* writeonly */
  5951. bool searchPackagesFirst;
  5952. /* readonly */
  5953. uint totalMemoryUse;
  5954. /* readonly */
  5955. ShortStringHash type;
  5956. /* readonly */
  5957. String typeName;
  5958. /* readonly */
  5959. int weakRefs;
  5960. };
  5961. class ResourceRef
  5962. {
  5963. // Properties:
  5964. String name;
  5965. ShortStringHash type;
  5966. };
  5967. class ResourceRefList
  5968. {
  5969. // Methods:
  5970. void Resize(uint);
  5971. // Properties:
  5972. /* readonly */
  5973. bool empty;
  5974. /* readonly */
  5975. uint length;
  5976. Array<String> names;
  5977. ShortStringHash type;
  5978. };
  5979. class RigidBody
  5980. {
  5981. // Methods:
  5982. void Activate();
  5983. void ApplyAttributes();
  5984. void ApplyForce(const Vector3&);
  5985. void ApplyForce(const Vector3&, const Vector3&);
  5986. void ApplyImpulse(const Vector3&);
  5987. void ApplyImpulse(const Vector3&, const Vector3&);
  5988. void ApplyTorque(const Vector3&);
  5989. void ApplyTorqueImpulse(const Vector3&);
  5990. void DrawDebugGeometry(DebugRenderer, bool);
  5991. Variant GetAttribute(const String&) const;
  5992. Variant GetAttributeDefault(const String&) const;
  5993. Vector3 GetVelocityAtPoint(const Vector3&) const;
  5994. bool Load(File, bool = false);
  5995. bool LoadXML(const XMLElement&, bool = false);
  5996. void MarkNetworkUpdate() const;
  5997. void ReAddBodyToWorld();
  5998. void Remove();
  5999. void RemoveInstanceDefault();
  6000. void ResetForces();
  6001. void ResetToDefault();
  6002. bool Save(File) const;
  6003. bool SaveXML(XMLElement&) const;
  6004. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6005. bool SetAttribute(const String&, const Variant&);
  6006. void SetCollisionLayerAndMask(uint, uint);
  6007. void SetTransform(const Vector3&, const Quaternion&);
  6008. // Properties:
  6009. /* readonly */
  6010. bool active;
  6011. float angularDamping;
  6012. Vector3 angularFactor;
  6013. float angularRestThreshold;
  6014. Vector3 angularVelocity;
  6015. Vector3 anisotropicFriction;
  6016. /* readonly */
  6017. Array<Variant> attributeDefaults;
  6018. /* readonly */
  6019. Array<AttributeInfo> attributeInfos;
  6020. Array<Variant> attributes;
  6021. /* readonly */
  6022. ShortStringHash baseType;
  6023. /* readonly */
  6024. String category;
  6025. float ccdMotionThreshold;
  6026. float ccdRadius;
  6027. /* readonly */
  6028. Vector3 centerOfMass;
  6029. /* readonly */
  6030. Array<RigidBody> collidingBodies;
  6031. CollisionEventMode collisionEventMode;
  6032. uint collisionLayer;
  6033. uint collisionMask;
  6034. float contactProcessingThreshold;
  6035. bool enabled;
  6036. /* readonly */
  6037. bool enabledEffective;
  6038. float friction;
  6039. Vector3 gravityOverride;
  6040. /* readonly */
  6041. uint id;
  6042. bool kinematic;
  6043. float linearDamping;
  6044. Vector3 linearFactor;
  6045. float linearRestThreshold;
  6046. Vector3 linearVelocity;
  6047. float mass;
  6048. /* readonly */
  6049. Node node;
  6050. /* readonly */
  6051. uint numAttributes;
  6052. Vector3 position;
  6053. /* readonly */
  6054. int refs;
  6055. float restitution;
  6056. float rollingFriction;
  6057. Quaternion rotation;
  6058. bool temporary;
  6059. bool trigger;
  6060. /* readonly */
  6061. ShortStringHash type;
  6062. /* readonly */
  6063. String typeName;
  6064. bool useGravity;
  6065. /* readonly */
  6066. int weakRefs;
  6067. };
  6068. class RigidBody2D
  6069. {
  6070. // Methods:
  6071. void ApplyAngularImpulse(float, bool);
  6072. void ApplyAttributes();
  6073. void ApplyForce(const Vector2&, const Vector2&, bool);
  6074. void ApplyForceToCenter(const Vector2&, bool);
  6075. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  6076. void ApplyTorque(float, bool);
  6077. void DrawDebugGeometry(DebugRenderer, bool);
  6078. Variant GetAttribute(const String&) const;
  6079. Variant GetAttributeDefault(const String&) const;
  6080. bool Load(File, bool = false);
  6081. bool LoadXML(const XMLElement&, bool = false);
  6082. void MarkNetworkUpdate() const;
  6083. void Remove();
  6084. void RemoveInstanceDefault();
  6085. void ResetToDefault();
  6086. bool Save(File) const;
  6087. bool SaveXML(XMLElement&) const;
  6088. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6089. bool SetAttribute(const String&, const Variant&);
  6090. // Properties:
  6091. bool allowSleep;
  6092. float angularDamping;
  6093. /* readonly */
  6094. Array<Variant> attributeDefaults;
  6095. /* readonly */
  6096. Array<AttributeInfo> attributeInfos;
  6097. Array<Variant> attributes;
  6098. bool awake;
  6099. /* readonly */
  6100. ShortStringHash baseType;
  6101. BodyType2D bodyType;
  6102. bool bullet;
  6103. /* readonly */
  6104. String category;
  6105. bool enabled;
  6106. /* readonly */
  6107. bool enabledEffective;
  6108. bool fixedRotation;
  6109. float gravityScale;
  6110. /* readonly */
  6111. uint id;
  6112. float inertia;
  6113. float linearDamping;
  6114. Vector2 linearVelocity;
  6115. float mass;
  6116. Vector2 massCenter;
  6117. /* readonly */
  6118. Node node;
  6119. /* readonly */
  6120. uint numAttributes;
  6121. /* readonly */
  6122. int refs;
  6123. bool temporary;
  6124. /* readonly */
  6125. ShortStringHash type;
  6126. /* readonly */
  6127. String typeName;
  6128. bool useFixtureMass;
  6129. /* readonly */
  6130. int weakRefs;
  6131. };
  6132. class Scene
  6133. {
  6134. // Methods:
  6135. void AddChild(Node, uint = M_MAX_UNSIGNED);
  6136. void AddRequiredPackageFile(PackageFile);
  6137. void ApplyAttributes();
  6138. void Clear(bool = true, bool = true);
  6139. void ClearRequiredPackageFiles();
  6140. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  6141. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6142. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  6143. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  6144. Variant GetAttribute(const String&) const;
  6145. Variant GetAttributeDefault(const String&) const;
  6146. Node GetChild(const String&, bool = false) const;
  6147. Array<Node> GetChildren(bool = false) const;
  6148. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  6149. Array<Node> GetChildrenWithScript(bool = false) const;
  6150. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  6151. Component GetComponent(const String&) const;
  6152. Component GetComponent(uint);
  6153. Array<Component> GetComponents() const;
  6154. Array<Component> GetComponents(const String&, bool = false) const;
  6155. Node GetNode(uint);
  6156. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  6157. ScriptObject GetScriptObject() const;
  6158. ScriptObject GetScriptObject(const String&) const;
  6159. bool HasComponent(const String&) const;
  6160. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6161. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6162. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6163. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  6164. bool Load(File, bool = false);
  6165. bool LoadAsync(File);
  6166. bool LoadAsyncXML(File);
  6167. bool LoadXML(File);
  6168. bool LoadXML(const XMLElement&, bool = false);
  6169. Vector3 LocalToWorld(const Vector3&) const;
  6170. Vector3 LocalToWorld(const Vector4&) const;
  6171. void LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ));
  6172. void Pitch(float, bool = false);
  6173. void RegisterVar(const String&);
  6174. void Remove();
  6175. void RemoveAllChildren();
  6176. void RemoveAllComponents();
  6177. void RemoveChild(Node);
  6178. void RemoveChildren(bool, bool, bool);
  6179. void RemoveComponent(Component);
  6180. void RemoveComponent(const String&);
  6181. void RemoveComponents(bool, bool);
  6182. void RemoveInstanceDefault();
  6183. void ResetToDefault();
  6184. void Roll(float, bool = false);
  6185. void Rotate(const Quaternion&, bool = false);
  6186. bool Save(File) const;
  6187. bool SaveXML(File);
  6188. bool SaveXML(XMLElement&) const;
  6189. void Scale(const Vector3&);
  6190. void Scale(float);
  6191. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6192. bool SetAttribute(const String&, const Variant&);
  6193. void SetScale(float);
  6194. void SetTransform(const Vector3&, const Quaternion&);
  6195. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  6196. void SetTransform(const Vector3&, const Quaternion&, float);
  6197. void SetWorldTransform(const Vector3&, const Quaternion&);
  6198. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  6199. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  6200. void StopAsyncLoading();
  6201. const String& GetVarName(ShortStringHash) const;
  6202. void Translate(const Vector3&);
  6203. void TranslateRelative(const Vector3&);
  6204. void UnregisterAllVars(const String&);
  6205. void UnregisterVar(const String&);
  6206. void Update(float);
  6207. Vector3 WorldToLocal(const Vector3&) const;
  6208. Vector3 WorldToLocal(const Vector4&) const;
  6209. void Yaw(float, bool = false);
  6210. // Properties:
  6211. /* readonly */
  6212. bool asyncLoading;
  6213. /* readonly */
  6214. float asyncProgress;
  6215. /* readonly */
  6216. Array<Variant> attributeDefaults;
  6217. /* readonly */
  6218. Array<AttributeInfo> attributeInfos;
  6219. Array<Variant> attributes;
  6220. /* readonly */
  6221. ShortStringHash baseType;
  6222. /* readonly */
  6223. String category;
  6224. /* readonly */
  6225. uint checksum;
  6226. /* readonly */
  6227. Array<Node> children;
  6228. /* readonly */
  6229. Array<Component> components;
  6230. /* readonly */
  6231. DebugRenderer debugRenderer;
  6232. Vector3 direction;
  6233. float elapsedTime;
  6234. /* readonly */
  6235. String fileName;
  6236. /* readonly */
  6237. uint id;
  6238. String name;
  6239. /* readonly */
  6240. uint numAllChildren;
  6241. /* readonly */
  6242. uint numAttributes;
  6243. /* readonly */
  6244. uint numChildren;
  6245. /* readonly */
  6246. uint numComponents;
  6247. /* readonly */
  6248. Octree octree;
  6249. Node parent;
  6250. /* readonly */
  6251. PhysicsWorld physicsWorld;
  6252. /* readonly */
  6253. PhysicsWorld2D physicsWorld2D;
  6254. Vector3 position;
  6255. /* readonly */
  6256. int refs;
  6257. /* readonly */
  6258. Array<PackageFile> requiredPackageFiles;
  6259. /* readonly */
  6260. Vector3 right;
  6261. Quaternion rotation;
  6262. Vector3 scale;
  6263. /* readonly */
  6264. ScriptObject scriptObject;
  6265. float smoothingConstant;
  6266. float snapThreshold;
  6267. bool temporary;
  6268. float timeScale;
  6269. /* readonly */
  6270. Matrix3x4 transform;
  6271. /* readonly */
  6272. ShortStringHash type;
  6273. /* readonly */
  6274. String typeName;
  6275. /* readonly */
  6276. Vector3 up;
  6277. bool updateEnabled;
  6278. /* readonly */
  6279. VariantMap vars;
  6280. /* readonly */
  6281. int weakRefs;
  6282. Vector3 worldDirection;
  6283. Vector3 worldPosition;
  6284. /* readonly */
  6285. Vector3 worldRight;
  6286. Quaternion worldRotation;
  6287. Vector3 worldScale;
  6288. /* readonly */
  6289. Matrix3x4 worldTransform;
  6290. /* readonly */
  6291. Vector3 worldUp;
  6292. };
  6293. class Script
  6294. {
  6295. // Methods:
  6296. void DumpAPI(DumpMode = DOXYGEN);
  6297. bool Execute(const String&);
  6298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6299. // Properties:
  6300. /* readonly */
  6301. ShortStringHash baseType;
  6302. /* readonly */
  6303. String category;
  6304. Scene defaultScene;
  6305. ScriptFile defaultScriptFile;
  6306. bool executeConsoleCommands;
  6307. /* readonly */
  6308. int refs;
  6309. /* readonly */
  6310. ShortStringHash type;
  6311. /* readonly */
  6312. String typeName;
  6313. /* readonly */
  6314. int weakRefs;
  6315. };
  6316. class ScriptFile
  6317. {
  6318. // Methods:
  6319. void ClearDelayedExecute(const String& = String ( ));
  6320. void DelayedExecute(float, bool, const String&);
  6321. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  6322. bool Execute(const String&, const Array<Variant>);
  6323. bool Load(File);
  6324. bool Save(File) const;
  6325. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6326. // Properties:
  6327. /* readonly */
  6328. ShortStringHash baseType;
  6329. /* readonly */
  6330. String category;
  6331. /* readonly */
  6332. bool compiled;
  6333. /* readonly */
  6334. uint memoryUse;
  6335. String name;
  6336. /* readonly */
  6337. int refs;
  6338. /* readonly */
  6339. ShortStringHash type;
  6340. /* readonly */
  6341. String typeName;
  6342. /* readonly */
  6343. uint useTimer;
  6344. /* readonly */
  6345. int weakRefs;
  6346. };
  6347. class ScriptInstance
  6348. {
  6349. // Methods:
  6350. void ApplyAttributes();
  6351. void ClearDelayedExecute(const String& = String ( ));
  6352. bool CreateObject(ScriptFile, const String&);
  6353. void DelayedExecute(float, bool, const String&);
  6354. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  6355. void DrawDebugGeometry(DebugRenderer, bool);
  6356. bool Execute(const String&);
  6357. bool Execute(const String&, const Array<Variant>);
  6358. Variant GetAttribute(const String&) const;
  6359. Variant GetAttributeDefault(const String&) const;
  6360. bool Load(File, bool = false);
  6361. bool LoadXML(const XMLElement&, bool = false);
  6362. void MarkNetworkUpdate() const;
  6363. void Remove();
  6364. void RemoveInstanceDefault();
  6365. void ResetToDefault();
  6366. bool Save(File) const;
  6367. bool SaveXML(XMLElement&) const;
  6368. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6369. bool SetAttribute(const String&, const Variant&);
  6370. // Properties:
  6371. /* readonly */
  6372. Array<Variant> attributeDefaults;
  6373. /* readonly */
  6374. Array<AttributeInfo> attributeInfos;
  6375. Array<Variant> attributes;
  6376. /* readonly */
  6377. ShortStringHash baseType;
  6378. /* readonly */
  6379. String category;
  6380. String className;
  6381. bool enabled;
  6382. /* readonly */
  6383. bool enabledEffective;
  6384. /* readonly */
  6385. uint id;
  6386. /* readonly */
  6387. Node node;
  6388. /* readonly */
  6389. uint numAttributes;
  6390. /* readonly */
  6391. ScriptObject object;
  6392. /* readonly */
  6393. int refs;
  6394. ScriptFile scriptFile;
  6395. bool temporary;
  6396. /* readonly */
  6397. ShortStringHash type;
  6398. /* readonly */
  6399. String typeName;
  6400. /* readonly */
  6401. int weakRefs;
  6402. };
  6403. class ScriptObject
  6404. {
  6405. };
  6406. class ScrollBar
  6407. {
  6408. // Methods:
  6409. void AddChild(UIElement);
  6410. void ApplyAttributes();
  6411. void BringToFront();
  6412. void ChangeValue(float);
  6413. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6414. void DisableLayoutUpdate();
  6415. IntVector2 ElementToScreen(const IntVector2&);
  6416. void EnableLayoutUpdate();
  6417. uint FindChild(UIElement) const;
  6418. Variant GetAttribute(const String&) const;
  6419. Variant GetAttributeDefault(const String&) const;
  6420. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6421. UIElement GetChild(const String&, bool = false) const;
  6422. Array<UIElement> GetChildren(bool = false) const;
  6423. UIElement GetElementEventSender() const;
  6424. uint GetNumChildren(bool) const;
  6425. void InsertChild(uint, UIElement);
  6426. bool IsInside(IntVector2, bool);
  6427. bool IsInsideCombined(IntVector2, bool);
  6428. bool Load(File, bool = false);
  6429. bool LoadChildXML(XMLFile, XMLFile = null);
  6430. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6431. bool LoadXML(File);
  6432. bool LoadXML(XMLFile, XMLFile);
  6433. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6434. bool LoadXML(const XMLElement&, bool = false);
  6435. void Remove();
  6436. void RemoveAllChildren();
  6437. void RemoveChild(UIElement, uint = 0);
  6438. void RemoveChild(uint);
  6439. void RemoveInstanceDefault();
  6440. void ResetToDefault();
  6441. bool Save(File) const;
  6442. bool SaveXML(File);
  6443. bool SaveXML(XMLElement&) const;
  6444. IntVector2 ScreenToElement(const IntVector2&);
  6445. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6446. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6447. bool SetAttribute(const String&, const Variant&);
  6448. void SetFixedHeight(int);
  6449. void SetFixedSize(int, int);
  6450. void SetFixedWidth(int);
  6451. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6452. void SetMaxSize(int, int);
  6453. void SetMinSize(int, int);
  6454. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6455. void SetPosition(int, int);
  6456. void SetSize(int, int);
  6457. bool SetStyle(const String&, XMLFile = null);
  6458. bool SetStyle(const XMLElement&);
  6459. bool SetStyleAuto(XMLFile = null);
  6460. void StepBack();
  6461. void StepForward();
  6462. void UpdateLayout();
  6463. const Variant& GetVar(const ShortStringHash&);
  6464. // Properties:
  6465. /* readonly */
  6466. Array<Variant> attributeDefaults;
  6467. /* readonly */
  6468. Array<AttributeInfo> attributeInfos;
  6469. Array<Variant> attributes;
  6470. /* readonly */
  6471. Button backButton;
  6472. /* readonly */
  6473. ShortStringHash baseType;
  6474. bool bringToBack;
  6475. bool bringToFront;
  6476. /* readonly */
  6477. String category;
  6478. /* readonly */
  6479. IntVector2 childOffset;
  6480. /* readonly */
  6481. Array<UIElement> children;
  6482. IntRect clipBorder;
  6483. bool clipChildren;
  6484. /* writeonly */
  6485. Color color;
  6486. /* readonly */
  6487. bool colorGradient;
  6488. Array<Color> colors;
  6489. /* readonly */
  6490. IntRect combinedScreenRect;
  6491. XMLFile defaultStyle;
  6492. /* readonly */
  6493. float derivedOpacity;
  6494. uint dragDropMode;
  6495. bool editable;
  6496. /* readonly */
  6497. float effectiveScrollStep;
  6498. bool elementEventSender;
  6499. bool enabled;
  6500. /* readonly */
  6501. bool fixedHeight;
  6502. /* readonly */
  6503. bool fixedSize;
  6504. /* readonly */
  6505. bool fixedWidth;
  6506. bool focus;
  6507. FocusMode focusMode;
  6508. /* readonly */
  6509. Button forwardButton;
  6510. int height;
  6511. HorizontalAlignment horizontalAlignment;
  6512. /* readonly */
  6513. bool hovering;
  6514. int indent;
  6515. int indentSpacing;
  6516. /* readonly */
  6517. int indentWidth;
  6518. bool internal;
  6519. IntRect layoutBorder;
  6520. LayoutMode layoutMode;
  6521. int layoutSpacing;
  6522. int maxHeight;
  6523. IntVector2 maxSize;
  6524. int maxWidth;
  6525. int minHeight;
  6526. IntVector2 minSize;
  6527. int minWidth;
  6528. String name;
  6529. /* readonly */
  6530. uint numAllChildren;
  6531. /* readonly */
  6532. uint numAttributes;
  6533. /* readonly */
  6534. uint numChildren;
  6535. float opacity;
  6536. Orientation orientation;
  6537. UIElement parent;
  6538. IntVector2 position;
  6539. int priority;
  6540. float range;
  6541. /* readonly */
  6542. int refs;
  6543. /* readonly */
  6544. UIElement root;
  6545. /* readonly */
  6546. IntVector2 screenPosition;
  6547. float scrollStep;
  6548. bool selected;
  6549. IntVector2 size;
  6550. /* readonly */
  6551. Slider slider;
  6552. bool sortChildren;
  6553. float stepFactor;
  6554. String style;
  6555. bool temporary;
  6556. TraversalMode traversalMode;
  6557. /* readonly */
  6558. ShortStringHash type;
  6559. /* readonly */
  6560. String typeName;
  6561. bool useDerivedOpacity;
  6562. float value;
  6563. /* readonly */
  6564. VariantMap vars;
  6565. VerticalAlignment verticalAlignment;
  6566. bool visible;
  6567. /* readonly */
  6568. int weakRefs;
  6569. int width;
  6570. };
  6571. class ScrollView
  6572. {
  6573. // Methods:
  6574. void AddChild(UIElement);
  6575. void ApplyAttributes();
  6576. void BringToFront();
  6577. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6578. void DisableLayoutUpdate();
  6579. IntVector2 ElementToScreen(const IntVector2&);
  6580. void EnableLayoutUpdate();
  6581. uint FindChild(UIElement) const;
  6582. Variant GetAttribute(const String&) const;
  6583. Variant GetAttributeDefault(const String&) const;
  6584. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6585. UIElement GetChild(const String&, bool = false) const;
  6586. Array<UIElement> GetChildren(bool = false) const;
  6587. UIElement GetElementEventSender() const;
  6588. uint GetNumChildren(bool) const;
  6589. void InsertChild(uint, UIElement);
  6590. bool IsInside(IntVector2, bool);
  6591. bool IsInsideCombined(IntVector2, bool);
  6592. bool Load(File, bool = false);
  6593. bool LoadChildXML(XMLFile, XMLFile = null);
  6594. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6595. bool LoadXML(File);
  6596. bool LoadXML(XMLFile, XMLFile);
  6597. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6598. bool LoadXML(const XMLElement&, bool = false);
  6599. void Remove();
  6600. void RemoveAllChildren();
  6601. void RemoveChild(UIElement, uint = 0);
  6602. void RemoveChild(uint);
  6603. void RemoveInstanceDefault();
  6604. void ResetToDefault();
  6605. bool Save(File) const;
  6606. bool SaveXML(File);
  6607. bool SaveXML(XMLElement&) const;
  6608. IntVector2 ScreenToElement(const IntVector2&);
  6609. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6610. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6611. bool SetAttribute(const String&, const Variant&);
  6612. void SetFixedHeight(int);
  6613. void SetFixedSize(int, int);
  6614. void SetFixedWidth(int);
  6615. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6616. void SetMaxSize(int, int);
  6617. void SetMinSize(int, int);
  6618. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6619. void SetPosition(int, int);
  6620. void SetScrollBarsVisible(bool, bool);
  6621. void SetSize(int, int);
  6622. bool SetStyle(const String&, XMLFile = null);
  6623. bool SetStyle(const XMLElement&);
  6624. bool SetStyleAuto(XMLFile = null);
  6625. void SetViewPosition(int, int);
  6626. void UpdateLayout();
  6627. const Variant& GetVar(const ShortStringHash&);
  6628. // Properties:
  6629. /* readonly */
  6630. Array<Variant> attributeDefaults;
  6631. /* readonly */
  6632. Array<AttributeInfo> attributeInfos;
  6633. Array<Variant> attributes;
  6634. /* readonly */
  6635. ShortStringHash baseType;
  6636. bool bringToBack;
  6637. bool bringToFront;
  6638. /* readonly */
  6639. String category;
  6640. /* readonly */
  6641. IntVector2 childOffset;
  6642. /* readonly */
  6643. Array<UIElement> children;
  6644. IntRect clipBorder;
  6645. bool clipChildren;
  6646. /* writeonly */
  6647. Color color;
  6648. /* readonly */
  6649. bool colorGradient;
  6650. Array<Color> colors;
  6651. /* readonly */
  6652. IntRect combinedScreenRect;
  6653. UIElement contentElement;
  6654. XMLFile defaultStyle;
  6655. /* readonly */
  6656. float derivedOpacity;
  6657. uint dragDropMode;
  6658. bool editable;
  6659. bool elementEventSender;
  6660. bool enabled;
  6661. /* readonly */
  6662. bool fixedHeight;
  6663. /* readonly */
  6664. bool fixedSize;
  6665. /* readonly */
  6666. bool fixedWidth;
  6667. bool focus;
  6668. FocusMode focusMode;
  6669. int height;
  6670. HorizontalAlignment horizontalAlignment;
  6671. /* readonly */
  6672. ScrollBar horizontalScrollBar;
  6673. /* readonly */
  6674. bool hovering;
  6675. int indent;
  6676. int indentSpacing;
  6677. /* readonly */
  6678. int indentWidth;
  6679. bool internal;
  6680. IntRect layoutBorder;
  6681. LayoutMode layoutMode;
  6682. int layoutSpacing;
  6683. int maxHeight;
  6684. IntVector2 maxSize;
  6685. int maxWidth;
  6686. int minHeight;
  6687. IntVector2 minSize;
  6688. int minWidth;
  6689. String name;
  6690. /* readonly */
  6691. uint numAllChildren;
  6692. /* readonly */
  6693. uint numAttributes;
  6694. /* readonly */
  6695. uint numChildren;
  6696. float opacity;
  6697. float pageStep;
  6698. UIElement parent;
  6699. IntVector2 position;
  6700. int priority;
  6701. /* readonly */
  6702. int refs;
  6703. /* readonly */
  6704. UIElement root;
  6705. /* readonly */
  6706. IntVector2 screenPosition;
  6707. bool scrollBarsAutoVisible;
  6708. /* readonly */
  6709. BorderImage scrollPanel;
  6710. float scrollStep;
  6711. bool selected;
  6712. IntVector2 size;
  6713. bool sortChildren;
  6714. String style;
  6715. bool temporary;
  6716. TraversalMode traversalMode;
  6717. /* readonly */
  6718. ShortStringHash type;
  6719. /* readonly */
  6720. String typeName;
  6721. bool useDerivedOpacity;
  6722. /* readonly */
  6723. VariantMap vars;
  6724. VerticalAlignment verticalAlignment;
  6725. /* readonly */
  6726. ScrollBar verticalScrollBar;
  6727. IntVector2 viewPosition;
  6728. bool visible;
  6729. /* readonly */
  6730. int weakRefs;
  6731. int width;
  6732. };
  6733. class Serializable
  6734. {
  6735. // Methods:
  6736. void ApplyAttributes();
  6737. Variant GetAttribute(const String&) const;
  6738. Variant GetAttributeDefault(const String&) const;
  6739. bool Load(File, bool = false);
  6740. bool LoadXML(const XMLElement&, bool = false);
  6741. void RemoveInstanceDefault();
  6742. void ResetToDefault();
  6743. bool Save(File) const;
  6744. bool SaveXML(XMLElement&) const;
  6745. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6746. bool SetAttribute(const String&, const Variant&);
  6747. // Properties:
  6748. /* readonly */
  6749. Array<Variant> attributeDefaults;
  6750. /* readonly */
  6751. Array<AttributeInfo> attributeInfos;
  6752. Array<Variant> attributes;
  6753. /* readonly */
  6754. ShortStringHash baseType;
  6755. /* readonly */
  6756. String category;
  6757. /* readonly */
  6758. uint numAttributes;
  6759. /* readonly */
  6760. int refs;
  6761. bool temporary;
  6762. /* readonly */
  6763. ShortStringHash type;
  6764. /* readonly */
  6765. String typeName;
  6766. /* readonly */
  6767. int weakRefs;
  6768. };
  6769. class Serializer
  6770. {
  6771. // Methods:
  6772. uint Write(Array<uint8>);
  6773. bool WriteBool(bool);
  6774. bool WriteBoundingBox(const BoundingBox&);
  6775. bool WriteByte(int8);
  6776. bool WriteColor(const Color&);
  6777. bool WriteFileID(const String&);
  6778. bool WriteFloat(float);
  6779. bool WriteInt(int);
  6780. bool WriteIntRect(const IntRect&);
  6781. bool WriteIntVector2(const IntVector2&);
  6782. bool WriteLine(const String&);
  6783. bool WriteNetID(uint);
  6784. bool WritePackedQuaternion(const Quaternion&);
  6785. bool WritePackedVector3(const Vector3&, float);
  6786. bool WriteQuaternion(const Quaternion&);
  6787. bool WriteShort(int16);
  6788. bool WriteShortStringHash(const ShortStringHash&);
  6789. bool WriteString(const String&);
  6790. bool WriteStringHash(const StringHash&);
  6791. bool WriteUByte(uint8);
  6792. bool WriteUInt(uint);
  6793. bool WriteUShort(uint16);
  6794. bool WriteVLE(uint);
  6795. bool WriteVariant(const Variant&);
  6796. bool WriteVariantMap(const VariantMap&);
  6797. bool WriteVector2(const Vector2&);
  6798. bool WriteVector3(const Vector3&);
  6799. bool WriteVector4(const Vector4&);
  6800. };
  6801. class ShortStringHash
  6802. {
  6803. // Methods:
  6804. String ToString() const;
  6805. // Properties:
  6806. /* readonly */
  6807. uint16 value;
  6808. };
  6809. class Skeleton
  6810. {
  6811. // Methods:
  6812. Bone GetBone(const String&) const;
  6813. void Reset();
  6814. // Properties:
  6815. /* readonly */
  6816. Array<Bone> bones;
  6817. /* readonly */
  6818. uint numBones;
  6819. /* readonly */
  6820. Bone rootBone;
  6821. };
  6822. class Skybox
  6823. {
  6824. // Methods:
  6825. void ApplyAttributes();
  6826. void ApplyMaterialList(const String& = String ( ));
  6827. void DrawDebugGeometry(DebugRenderer, bool);
  6828. Variant GetAttribute(const String&) const;
  6829. Variant GetAttributeDefault(const String&) const;
  6830. bool IsInView(Camera) const;
  6831. bool Load(File, bool = false);
  6832. bool LoadXML(const XMLElement&, bool = false);
  6833. void MarkNetworkUpdate() const;
  6834. void Remove();
  6835. void RemoveInstanceDefault();
  6836. void ResetToDefault();
  6837. bool Save(File) const;
  6838. bool SaveXML(XMLElement&) const;
  6839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6840. bool SetAttribute(const String&, const Variant&);
  6841. // Properties:
  6842. /* readonly */
  6843. Array<Variant> attributeDefaults;
  6844. /* readonly */
  6845. Array<AttributeInfo> attributeInfos;
  6846. Array<Variant> attributes;
  6847. /* readonly */
  6848. ShortStringHash baseType;
  6849. /* readonly */
  6850. BoundingBox boundingBox;
  6851. bool castShadows;
  6852. /* readonly */
  6853. String category;
  6854. float drawDistance;
  6855. bool enabled;
  6856. /* readonly */
  6857. bool enabledEffective;
  6858. /* readonly */
  6859. uint id;
  6860. /* readonly */
  6861. bool inView;
  6862. uint lightMask;
  6863. float lodBias;
  6864. /* writeonly */
  6865. Material material;
  6866. Array<Material> materials;
  6867. uint maxLights;
  6868. Model model;
  6869. /* readonly */
  6870. Node node;
  6871. /* readonly */
  6872. uint numAttributes;
  6873. /* readonly */
  6874. uint numGeometries;
  6875. bool occludee;
  6876. bool occluder;
  6877. /* readonly */
  6878. int refs;
  6879. float shadowDistance;
  6880. uint shadowMask;
  6881. bool temporary;
  6882. /* readonly */
  6883. ShortStringHash type;
  6884. /* readonly */
  6885. String typeName;
  6886. uint viewMask;
  6887. /* readonly */
  6888. int weakRefs;
  6889. /* readonly */
  6890. BoundingBox worldBoundingBox;
  6891. /* readonly */
  6892. Zone zone;
  6893. uint zoneMask;
  6894. };
  6895. class Slider
  6896. {
  6897. // Methods:
  6898. void AddChild(UIElement);
  6899. void ApplyAttributes();
  6900. void BringToFront();
  6901. void ChangeValue(float);
  6902. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  6903. void DisableLayoutUpdate();
  6904. IntVector2 ElementToScreen(const IntVector2&);
  6905. void EnableLayoutUpdate();
  6906. uint FindChild(UIElement) const;
  6907. Variant GetAttribute(const String&) const;
  6908. Variant GetAttributeDefault(const String&) const;
  6909. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  6910. UIElement GetChild(const String&, bool = false) const;
  6911. Array<UIElement> GetChildren(bool = false) const;
  6912. UIElement GetElementEventSender() const;
  6913. uint GetNumChildren(bool) const;
  6914. void InsertChild(uint, UIElement);
  6915. bool IsInside(IntVector2, bool);
  6916. bool IsInsideCombined(IntVector2, bool);
  6917. bool Load(File, bool = false);
  6918. bool LoadChildXML(XMLFile, XMLFile = null);
  6919. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  6920. bool LoadXML(File);
  6921. bool LoadXML(XMLFile, XMLFile);
  6922. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  6923. bool LoadXML(const XMLElement&, bool = false);
  6924. void Remove();
  6925. void RemoveAllChildren();
  6926. void RemoveChild(UIElement, uint = 0);
  6927. void RemoveChild(uint);
  6928. void RemoveInstanceDefault();
  6929. void ResetToDefault();
  6930. bool Save(File) const;
  6931. bool SaveXML(File);
  6932. bool SaveXML(XMLElement&) const;
  6933. IntVector2 ScreenToElement(const IntVector2&);
  6934. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6935. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  6936. bool SetAttribute(const String&, const Variant&);
  6937. void SetFixedHeight(int);
  6938. void SetFixedSize(int, int);
  6939. void SetFixedWidth(int);
  6940. void SetFullImageRect();
  6941. void SetHoverOffset(int, int);
  6942. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  6943. void SetMaxSize(int, int);
  6944. void SetMinSize(int, int);
  6945. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  6946. void SetPosition(int, int);
  6947. void SetSize(int, int);
  6948. bool SetStyle(const String&, XMLFile = null);
  6949. bool SetStyle(const XMLElement&);
  6950. bool SetStyleAuto(XMLFile = null);
  6951. void UpdateLayout();
  6952. const Variant& GetVar(const ShortStringHash&);
  6953. // Properties:
  6954. /* readonly */
  6955. Array<Variant> attributeDefaults;
  6956. /* readonly */
  6957. Array<AttributeInfo> attributeInfos;
  6958. Array<Variant> attributes;
  6959. /* readonly */
  6960. ShortStringHash baseType;
  6961. BlendMode blendMode;
  6962. IntRect border;
  6963. bool bringToBack;
  6964. bool bringToFront;
  6965. /* readonly */
  6966. String category;
  6967. /* readonly */
  6968. IntVector2 childOffset;
  6969. /* readonly */
  6970. Array<UIElement> children;
  6971. IntRect clipBorder;
  6972. bool clipChildren;
  6973. /* writeonly */
  6974. Color color;
  6975. /* readonly */
  6976. bool colorGradient;
  6977. Array<Color> colors;
  6978. /* readonly */
  6979. IntRect combinedScreenRect;
  6980. XMLFile defaultStyle;
  6981. /* readonly */
  6982. float derivedOpacity;
  6983. uint dragDropMode;
  6984. bool editable;
  6985. bool elementEventSender;
  6986. bool enabled;
  6987. /* readonly */
  6988. bool fixedHeight;
  6989. /* readonly */
  6990. bool fixedSize;
  6991. /* readonly */
  6992. bool fixedWidth;
  6993. bool focus;
  6994. FocusMode focusMode;
  6995. int height;
  6996. HorizontalAlignment horizontalAlignment;
  6997. IntVector2 hoverOffset;
  6998. /* readonly */
  6999. bool hovering;
  7000. IntRect imageBorder;
  7001. IntRect imageRect;
  7002. int indent;
  7003. int indentSpacing;
  7004. /* readonly */
  7005. int indentWidth;
  7006. bool internal;
  7007. /* readonly */
  7008. BorderImage knob;
  7009. IntRect layoutBorder;
  7010. LayoutMode layoutMode;
  7011. int layoutSpacing;
  7012. int maxHeight;
  7013. IntVector2 maxSize;
  7014. int maxWidth;
  7015. int minHeight;
  7016. IntVector2 minSize;
  7017. int minWidth;
  7018. String name;
  7019. /* readonly */
  7020. uint numAllChildren;
  7021. /* readonly */
  7022. uint numAttributes;
  7023. /* readonly */
  7024. uint numChildren;
  7025. float opacity;
  7026. Orientation orientation;
  7027. UIElement parent;
  7028. IntVector2 position;
  7029. int priority;
  7030. float range;
  7031. /* readonly */
  7032. int refs;
  7033. float repeatRate;
  7034. /* readonly */
  7035. UIElement root;
  7036. /* readonly */
  7037. IntVector2 screenPosition;
  7038. bool selected;
  7039. IntVector2 size;
  7040. bool sortChildren;
  7041. String style;
  7042. bool temporary;
  7043. Texture texture;
  7044. bool tiled;
  7045. TraversalMode traversalMode;
  7046. /* readonly */
  7047. ShortStringHash type;
  7048. /* readonly */
  7049. String typeName;
  7050. bool useDerivedOpacity;
  7051. float value;
  7052. /* readonly */
  7053. VariantMap vars;
  7054. VerticalAlignment verticalAlignment;
  7055. bool visible;
  7056. /* readonly */
  7057. int weakRefs;
  7058. int width;
  7059. };
  7060. class SmoothedTransform
  7061. {
  7062. // Methods:
  7063. void ApplyAttributes();
  7064. void DrawDebugGeometry(DebugRenderer, bool);
  7065. Variant GetAttribute(const String&) const;
  7066. Variant GetAttributeDefault(const String&) const;
  7067. bool Load(File, bool = false);
  7068. bool LoadXML(const XMLElement&, bool = false);
  7069. void MarkNetworkUpdate() const;
  7070. void Remove();
  7071. void RemoveInstanceDefault();
  7072. void ResetToDefault();
  7073. bool Save(File) const;
  7074. bool SaveXML(XMLElement&) const;
  7075. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7076. bool SetAttribute(const String&, const Variant&);
  7077. void Update(float, float);
  7078. // Properties:
  7079. /* readonly */
  7080. Array<Variant> attributeDefaults;
  7081. /* readonly */
  7082. Array<AttributeInfo> attributeInfos;
  7083. Array<Variant> attributes;
  7084. /* readonly */
  7085. ShortStringHash baseType;
  7086. /* readonly */
  7087. String category;
  7088. bool enabled;
  7089. /* readonly */
  7090. bool enabledEffective;
  7091. /* readonly */
  7092. uint id;
  7093. /* readonly */
  7094. bool inProgress;
  7095. /* readonly */
  7096. Node node;
  7097. /* readonly */
  7098. uint numAttributes;
  7099. /* readonly */
  7100. int refs;
  7101. Vector3 targetPosition;
  7102. Quaternion targetRotation;
  7103. Vector3 targetWorldPosition;
  7104. Quaternion targetWorldRotation;
  7105. bool temporary;
  7106. /* readonly */
  7107. ShortStringHash type;
  7108. /* readonly */
  7109. String typeName;
  7110. /* readonly */
  7111. int weakRefs;
  7112. };
  7113. class Sound
  7114. {
  7115. // Methods:
  7116. bool Load(File);
  7117. bool Save(File) const;
  7118. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7119. // Properties:
  7120. /* readonly */
  7121. ShortStringHash baseType;
  7122. /* readonly */
  7123. String category;
  7124. /* readonly */
  7125. bool compressed;
  7126. /* readonly */
  7127. float frequency;
  7128. /* readonly */
  7129. float length;
  7130. bool looped;
  7131. /* readonly */
  7132. uint memoryUse;
  7133. String name;
  7134. /* readonly */
  7135. int refs;
  7136. /* readonly */
  7137. uint sampleSize;
  7138. /* readonly */
  7139. bool sixteenBit;
  7140. /* readonly */
  7141. bool stereo;
  7142. /* readonly */
  7143. ShortStringHash type;
  7144. /* readonly */
  7145. String typeName;
  7146. /* readonly */
  7147. uint useTimer;
  7148. /* readonly */
  7149. int weakRefs;
  7150. };
  7151. class SoundListener
  7152. {
  7153. // Methods:
  7154. void ApplyAttributes();
  7155. void DrawDebugGeometry(DebugRenderer, bool);
  7156. Variant GetAttribute(const String&) const;
  7157. Variant GetAttributeDefault(const String&) const;
  7158. bool Load(File, bool = false);
  7159. bool LoadXML(const XMLElement&, bool = false);
  7160. void MarkNetworkUpdate() const;
  7161. void Remove();
  7162. void RemoveInstanceDefault();
  7163. void ResetToDefault();
  7164. bool Save(File) const;
  7165. bool SaveXML(XMLElement&) const;
  7166. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7167. bool SetAttribute(const String&, const Variant&);
  7168. // Properties:
  7169. /* readonly */
  7170. Array<Variant> attributeDefaults;
  7171. /* readonly */
  7172. Array<AttributeInfo> attributeInfos;
  7173. Array<Variant> attributes;
  7174. /* readonly */
  7175. ShortStringHash baseType;
  7176. /* readonly */
  7177. String category;
  7178. bool enabled;
  7179. /* readonly */
  7180. bool enabledEffective;
  7181. /* readonly */
  7182. uint id;
  7183. /* readonly */
  7184. Node node;
  7185. /* readonly */
  7186. uint numAttributes;
  7187. /* readonly */
  7188. int refs;
  7189. bool temporary;
  7190. /* readonly */
  7191. ShortStringHash type;
  7192. /* readonly */
  7193. String typeName;
  7194. /* readonly */
  7195. int weakRefs;
  7196. };
  7197. class SoundSource
  7198. {
  7199. // Methods:
  7200. void ApplyAttributes();
  7201. void DrawDebugGeometry(DebugRenderer, bool);
  7202. Variant GetAttribute(const String&) const;
  7203. Variant GetAttributeDefault(const String&) const;
  7204. bool Load(File, bool = false);
  7205. bool LoadXML(const XMLElement&, bool = false);
  7206. void MarkNetworkUpdate() const;
  7207. void Play(Sound);
  7208. void Play(Sound, float);
  7209. void Play(Sound, float, float);
  7210. void Play(Sound, float, float, float);
  7211. void Remove();
  7212. void RemoveInstanceDefault();
  7213. void ResetToDefault();
  7214. bool Save(File) const;
  7215. bool SaveXML(XMLElement&) const;
  7216. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7217. bool SetAttribute(const String&, const Variant&);
  7218. void Stop();
  7219. // Properties:
  7220. /* readonly */
  7221. float attenuation;
  7222. /* readonly */
  7223. Array<Variant> attributeDefaults;
  7224. /* readonly */
  7225. Array<AttributeInfo> attributeInfos;
  7226. Array<Variant> attributes;
  7227. bool autoRemove;
  7228. /* readonly */
  7229. ShortStringHash baseType;
  7230. /* readonly */
  7231. String category;
  7232. bool enabled;
  7233. /* readonly */
  7234. bool enabledEffective;
  7235. float frequency;
  7236. float gain;
  7237. /* readonly */
  7238. uint id;
  7239. /* readonly */
  7240. Node node;
  7241. /* readonly */
  7242. uint numAttributes;
  7243. float panning;
  7244. /* readonly */
  7245. bool playing;
  7246. /* readonly */
  7247. int refs;
  7248. /* readonly */
  7249. Sound sound;
  7250. SoundType soundType;
  7251. bool temporary;
  7252. /* readonly */
  7253. float timePosition;
  7254. /* readonly */
  7255. ShortStringHash type;
  7256. /* readonly */
  7257. String typeName;
  7258. /* readonly */
  7259. int weakRefs;
  7260. };
  7261. class SoundSource3D
  7262. {
  7263. // Methods:
  7264. void ApplyAttributes();
  7265. void DrawDebugGeometry(DebugRenderer, bool);
  7266. Variant GetAttribute(const String&) const;
  7267. Variant GetAttributeDefault(const String&) const;
  7268. bool Load(File, bool = false);
  7269. bool LoadXML(const XMLElement&, bool = false);
  7270. void MarkNetworkUpdate() const;
  7271. void Play(Sound);
  7272. void Play(Sound, float);
  7273. void Play(Sound, float, float);
  7274. void Play(Sound, float, float, float);
  7275. void Remove();
  7276. void RemoveInstanceDefault();
  7277. void ResetToDefault();
  7278. bool Save(File) const;
  7279. bool SaveXML(XMLElement&) const;
  7280. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7281. void SetAngleAttenuation(float, float);
  7282. bool SetAttribute(const String&, const Variant&);
  7283. void SetDistanceAttenuation(float, float, float);
  7284. void Stop();
  7285. // Properties:
  7286. /* readonly */
  7287. float attenuation;
  7288. /* readonly */
  7289. Array<Variant> attributeDefaults;
  7290. /* readonly */
  7291. Array<AttributeInfo> attributeInfos;
  7292. Array<Variant> attributes;
  7293. bool autoRemove;
  7294. /* readonly */
  7295. ShortStringHash baseType;
  7296. /* readonly */
  7297. String category;
  7298. bool enabled;
  7299. /* readonly */
  7300. bool enabledEffective;
  7301. float farDistance;
  7302. float frequency;
  7303. float gain;
  7304. /* readonly */
  7305. uint id;
  7306. float innerAngle;
  7307. float nearDistance;
  7308. /* readonly */
  7309. Node node;
  7310. /* readonly */
  7311. uint numAttributes;
  7312. float outerAngle;
  7313. float panning;
  7314. /* readonly */
  7315. bool playing;
  7316. /* readonly */
  7317. int refs;
  7318. float rolloffFactor;
  7319. /* readonly */
  7320. Sound sound;
  7321. SoundType soundType;
  7322. bool temporary;
  7323. /* readonly */
  7324. float timePosition;
  7325. /* readonly */
  7326. ShortStringHash type;
  7327. /* readonly */
  7328. String typeName;
  7329. /* readonly */
  7330. int weakRefs;
  7331. };
  7332. class Sphere
  7333. {
  7334. // Methods:
  7335. void Clear();
  7336. void Define(const BoundingBox&);
  7337. void Define(const Frustum&);
  7338. void Define(const Polyhedron&);
  7339. void Define(const Sphere&);
  7340. void Define(const Vector3&, float);
  7341. float Distance(const Vector3&) const;
  7342. Intersection IsInside(const BoundingBox&) const;
  7343. Intersection IsInside(const Sphere&) const;
  7344. Intersection IsInside(const Vector3&) const;
  7345. void Merge(const BoundingBox&);
  7346. void Merge(const Frustum&);
  7347. void Merge(const Sphere&);
  7348. void Merge(const Vector3&);
  7349. // Properties:
  7350. Vector3 center;
  7351. bool defined;
  7352. float radius;
  7353. };
  7354. class Spline
  7355. {
  7356. // Methods:
  7357. void AddKnot(const Variant&);
  7358. void AddKnot(const Variant&, uint);
  7359. void Clear();
  7360. Variant GetPoint(float);
  7361. void RemoveKnot();
  7362. void RemoveKnot(uint);
  7363. // Properties:
  7364. InterpolationMode interpolationMode;
  7365. Array<Variant> knot;
  7366. Array<Variant> knots;
  7367. };
  7368. class SplinePath
  7369. {
  7370. // Methods:
  7371. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  7372. void ApplyAttributes();
  7373. void ClearControlPoints();
  7374. void DrawDebugGeometry(DebugRenderer, bool);
  7375. Variant GetAttribute(const String&) const;
  7376. Variant GetAttributeDefault(const String&) const;
  7377. Vector3 GetPoint(float) const;
  7378. bool Load(File, bool = false);
  7379. bool LoadXML(const XMLElement&, bool = false);
  7380. void MarkNetworkUpdate() const;
  7381. void Move(float);
  7382. void Remove();
  7383. void RemoveControlPoint(Node);
  7384. void RemoveInstanceDefault();
  7385. void Reset();
  7386. void ResetToDefault();
  7387. bool Save(File) const;
  7388. bool SaveXML(XMLElement&) const;
  7389. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7390. bool SetAttribute(const String&, const Variant&);
  7391. // Properties:
  7392. /* readonly */
  7393. Array<Variant> attributeDefaults;
  7394. /* readonly */
  7395. Array<AttributeInfo> attributeInfos;
  7396. Array<Variant> attributes;
  7397. /* readonly */
  7398. ShortStringHash baseType;
  7399. /* readonly */
  7400. String category;
  7401. Node controlledNode;
  7402. bool enabled;
  7403. /* readonly */
  7404. bool enabledEffective;
  7405. /* readonly */
  7406. uint id;
  7407. InterpolationMode interpolationMode;
  7408. /* readonly */
  7409. bool isFinished;
  7410. /* readonly */
  7411. Node node;
  7412. /* readonly */
  7413. uint numAttributes;
  7414. Vector3 position;
  7415. /* readonly */
  7416. int refs;
  7417. float speed;
  7418. bool temporary;
  7419. /* readonly */
  7420. ShortStringHash type;
  7421. /* readonly */
  7422. String typeName;
  7423. /* readonly */
  7424. int weakRefs;
  7425. };
  7426. class Sprite
  7427. {
  7428. // Methods:
  7429. void AddChild(UIElement);
  7430. void ApplyAttributes();
  7431. void BringToFront();
  7432. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7433. uint FindChild(UIElement) const;
  7434. Variant GetAttribute(const String&) const;
  7435. Variant GetAttributeDefault(const String&) const;
  7436. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  7437. UIElement GetChild(const String&, bool = false) const;
  7438. Array<UIElement> GetChildren(bool = false) const;
  7439. UIElement GetElementEventSender() const;
  7440. uint GetNumChildren(bool) const;
  7441. void InsertChild(uint, UIElement);
  7442. bool Load(File, bool = false);
  7443. bool LoadChildXML(XMLFile, XMLFile = null);
  7444. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7445. bool LoadXML(File);
  7446. bool LoadXML(XMLFile, XMLFile);
  7447. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7448. bool LoadXML(const XMLElement&, bool = false);
  7449. void Remove();
  7450. void RemoveAllChildren();
  7451. void RemoveChild(UIElement, uint = 0);
  7452. void RemoveChild(uint);
  7453. void RemoveInstanceDefault();
  7454. void ResetToDefault();
  7455. bool Save(File) const;
  7456. bool SaveXML(File);
  7457. bool SaveXML(XMLElement&) const;
  7458. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7460. bool SetAttribute(const String&, const Variant&);
  7461. void SetFixedHeight(int);
  7462. void SetFixedSize(int, int);
  7463. void SetFixedWidth(int);
  7464. void SetFullImageRect();
  7465. void SetHotSpot(int, int);
  7466. void SetMaxSize(int, int);
  7467. void SetMinSize(int, int);
  7468. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7469. void SetPosition(float, float);
  7470. void SetScale(float);
  7471. void SetScale(float, float);
  7472. void SetSize(int, int);
  7473. bool SetStyle(const String&, XMLFile = null);
  7474. bool SetStyle(const XMLElement&);
  7475. bool SetStyleAuto(XMLFile = null);
  7476. const Variant& GetVar(const ShortStringHash&);
  7477. // Properties:
  7478. /* readonly */
  7479. Array<Variant> attributeDefaults;
  7480. /* readonly */
  7481. Array<AttributeInfo> attributeInfos;
  7482. Array<Variant> attributes;
  7483. /* readonly */
  7484. ShortStringHash baseType;
  7485. BlendMode blendMode;
  7486. bool bringToBack;
  7487. bool bringToFront;
  7488. /* readonly */
  7489. String category;
  7490. /* readonly */
  7491. Array<UIElement> children;
  7492. /* writeonly */
  7493. Color color;
  7494. /* readonly */
  7495. bool colorGradient;
  7496. Array<Color> colors;
  7497. XMLFile defaultStyle;
  7498. /* readonly */
  7499. float derivedOpacity;
  7500. bool elementEventSender;
  7501. int height;
  7502. HorizontalAlignment horizontalAlignment;
  7503. IntVector2 hotSpot;
  7504. IntRect imageRect;
  7505. String name;
  7506. /* readonly */
  7507. uint numAllChildren;
  7508. /* readonly */
  7509. uint numAttributes;
  7510. /* readonly */
  7511. uint numChildren;
  7512. float opacity;
  7513. UIElement parent;
  7514. Vector2 position;
  7515. int priority;
  7516. /* readonly */
  7517. int refs;
  7518. /* readonly */
  7519. UIElement root;
  7520. float rotation;
  7521. Vector2 scale;
  7522. IntVector2 size;
  7523. bool sortChildren;
  7524. String style;
  7525. bool temporary;
  7526. Texture texture;
  7527. /* readonly */
  7528. ShortStringHash type;
  7529. /* readonly */
  7530. String typeName;
  7531. bool useDerivedOpacity;
  7532. /* readonly */
  7533. VariantMap vars;
  7534. VerticalAlignment verticalAlignment;
  7535. bool visible;
  7536. /* readonly */
  7537. int weakRefs;
  7538. int width;
  7539. };
  7540. class Sprite2D
  7541. {
  7542. // Methods:
  7543. bool Load(File);
  7544. bool Save(File) const;
  7545. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7546. // Properties:
  7547. /* readonly */
  7548. ShortStringHash baseType;
  7549. /* readonly */
  7550. String category;
  7551. Vector2 hotSpot;
  7552. /* readonly */
  7553. uint memoryUse;
  7554. String name;
  7555. IntRect rectangle;
  7556. /* readonly */
  7557. int refs;
  7558. Texture2D texture;
  7559. /* readonly */
  7560. ShortStringHash type;
  7561. /* readonly */
  7562. String typeName;
  7563. /* readonly */
  7564. uint useTimer;
  7565. /* readonly */
  7566. int weakRefs;
  7567. };
  7568. class SpriteSheet2D
  7569. {
  7570. // Methods:
  7571. void DefineSprite(const String&, const IntRect&, const Vector2&);
  7572. Sprite2D GetSprite(const String&);
  7573. bool Load(File);
  7574. bool Save(File) const;
  7575. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7576. void UpdateSprite(const String&, const IntRect&, const Vector2&);
  7577. // Properties:
  7578. /* readonly */
  7579. ShortStringHash baseType;
  7580. /* readonly */
  7581. String category;
  7582. /* readonly */
  7583. uint memoryUse;
  7584. String name;
  7585. /* readonly */
  7586. int refs;
  7587. /* readonly */
  7588. Texture2D texture;
  7589. /* readonly */
  7590. ShortStringHash type;
  7591. /* readonly */
  7592. String typeName;
  7593. /* readonly */
  7594. uint useTimer;
  7595. /* readonly */
  7596. int weakRefs;
  7597. };
  7598. class StaticModel
  7599. {
  7600. // Methods:
  7601. void ApplyAttributes();
  7602. void ApplyMaterialList(const String& = String ( ));
  7603. void DrawDebugGeometry(DebugRenderer, bool);
  7604. Variant GetAttribute(const String&) const;
  7605. Variant GetAttributeDefault(const String&) const;
  7606. bool IsInView(Camera) const;
  7607. bool IsInside(const Vector3&) const;
  7608. bool IsInsideLocal(const Vector3&) const;
  7609. bool Load(File, bool = false);
  7610. bool LoadXML(const XMLElement&, bool = false);
  7611. void MarkNetworkUpdate() const;
  7612. void Remove();
  7613. void RemoveInstanceDefault();
  7614. void ResetToDefault();
  7615. bool Save(File) const;
  7616. bool SaveXML(XMLElement&) const;
  7617. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7618. bool SetAttribute(const String&, const Variant&);
  7619. // Properties:
  7620. /* readonly */
  7621. Array<Variant> attributeDefaults;
  7622. /* readonly */
  7623. Array<AttributeInfo> attributeInfos;
  7624. Array<Variant> attributes;
  7625. /* readonly */
  7626. ShortStringHash baseType;
  7627. /* readonly */
  7628. BoundingBox boundingBox;
  7629. bool castShadows;
  7630. /* readonly */
  7631. String category;
  7632. float drawDistance;
  7633. bool enabled;
  7634. /* readonly */
  7635. bool enabledEffective;
  7636. /* readonly */
  7637. uint id;
  7638. /* readonly */
  7639. bool inView;
  7640. uint lightMask;
  7641. float lodBias;
  7642. /* writeonly */
  7643. Material material;
  7644. Array<Material> materials;
  7645. uint maxLights;
  7646. Model model;
  7647. /* readonly */
  7648. Node node;
  7649. /* readonly */
  7650. uint numAttributes;
  7651. /* readonly */
  7652. uint numGeometries;
  7653. bool occludee;
  7654. bool occluder;
  7655. uint occlusionLodLevel;
  7656. /* readonly */
  7657. int refs;
  7658. float shadowDistance;
  7659. uint shadowMask;
  7660. bool temporary;
  7661. /* readonly */
  7662. ShortStringHash type;
  7663. /* readonly */
  7664. String typeName;
  7665. uint viewMask;
  7666. /* readonly */
  7667. int weakRefs;
  7668. /* readonly */
  7669. BoundingBox worldBoundingBox;
  7670. uint zoneMask;
  7671. };
  7672. class StaticModelGroup
  7673. {
  7674. // Methods:
  7675. void AddInstanceNode(Node);
  7676. void ApplyAttributes();
  7677. void ApplyMaterialList(const String& = String ( ));
  7678. void DrawDebugGeometry(DebugRenderer, bool);
  7679. Variant GetAttribute(const String&) const;
  7680. Variant GetAttributeDefault(const String&) const;
  7681. bool IsInView(Camera) const;
  7682. bool Load(File, bool = false);
  7683. bool LoadXML(const XMLElement&, bool = false);
  7684. void MarkNetworkUpdate() const;
  7685. void Remove();
  7686. void RemoveAllInstanceNodes();
  7687. void RemoveInstanceDefault();
  7688. void RemoveInstanceNode(Node);
  7689. void ResetToDefault();
  7690. bool Save(File) const;
  7691. bool SaveXML(XMLElement&) const;
  7692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7693. bool SetAttribute(const String&, const Variant&);
  7694. // Properties:
  7695. /* readonly */
  7696. Array<Variant> attributeDefaults;
  7697. /* readonly */
  7698. Array<AttributeInfo> attributeInfos;
  7699. Array<Variant> attributes;
  7700. /* readonly */
  7701. ShortStringHash baseType;
  7702. /* readonly */
  7703. BoundingBox boundingBox;
  7704. bool castShadows;
  7705. /* readonly */
  7706. String category;
  7707. float drawDistance;
  7708. bool enabled;
  7709. /* readonly */
  7710. bool enabledEffective;
  7711. /* readonly */
  7712. uint id;
  7713. /* readonly */
  7714. bool inView;
  7715. /* readonly */
  7716. Array<Node> instanceNodes;
  7717. uint lightMask;
  7718. float lodBias;
  7719. /* writeonly */
  7720. Material material;
  7721. Array<Material> materials;
  7722. uint maxLights;
  7723. Model model;
  7724. /* readonly */
  7725. Node node;
  7726. /* readonly */
  7727. uint numAttributes;
  7728. /* readonly */
  7729. uint numGeometries;
  7730. /* readonly */
  7731. uint numInstanceNodes;
  7732. bool occludee;
  7733. bool occluder;
  7734. uint occlusionLodLevel;
  7735. /* readonly */
  7736. int refs;
  7737. float shadowDistance;
  7738. uint shadowMask;
  7739. bool temporary;
  7740. /* readonly */
  7741. ShortStringHash type;
  7742. /* readonly */
  7743. String typeName;
  7744. uint viewMask;
  7745. /* readonly */
  7746. int weakRefs;
  7747. /* readonly */
  7748. BoundingBox worldBoundingBox;
  7749. /* readonly */
  7750. Zone zone;
  7751. uint zoneMask;
  7752. };
  7753. class StaticSprite2D
  7754. {
  7755. // Methods:
  7756. void ApplyAttributes();
  7757. void DrawDebugGeometry(DebugRenderer, bool);
  7758. Variant GetAttribute(const String&) const;
  7759. Variant GetAttributeDefault(const String&) const;
  7760. bool IsInView(Camera) const;
  7761. bool Load(File, bool = false);
  7762. bool LoadXML(const XMLElement&, bool = false);
  7763. void MarkNetworkUpdate() const;
  7764. void Remove();
  7765. void RemoveInstanceDefault();
  7766. void ResetToDefault();
  7767. bool Save(File) const;
  7768. bool SaveXML(XMLElement&) const;
  7769. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7770. bool SetAttribute(const String&, const Variant&);
  7771. void SetFlip(bool, bool);
  7772. // Properties:
  7773. /* readonly */
  7774. Array<Variant> attributeDefaults;
  7775. /* readonly */
  7776. Array<AttributeInfo> attributeInfos;
  7777. Array<Variant> attributes;
  7778. /* readonly */
  7779. ShortStringHash baseType;
  7780. BlendMode blendMode;
  7781. /* readonly */
  7782. BoundingBox boundingBox;
  7783. bool castShadows;
  7784. /* readonly */
  7785. String category;
  7786. Color color;
  7787. float drawDistance;
  7788. bool enabled;
  7789. /* readonly */
  7790. bool enabledEffective;
  7791. bool flipX;
  7792. bool flipY;
  7793. /* readonly */
  7794. uint id;
  7795. /* readonly */
  7796. bool inView;
  7797. int layer;
  7798. uint lightMask;
  7799. float lodBias;
  7800. Material material;
  7801. uint maxLights;
  7802. /* readonly */
  7803. Node node;
  7804. /* readonly */
  7805. uint numAttributes;
  7806. bool occludee;
  7807. bool occluder;
  7808. int orderInLayer;
  7809. /* readonly */
  7810. int refs;
  7811. float shadowDistance;
  7812. uint shadowMask;
  7813. Sprite2D sprite;
  7814. bool temporary;
  7815. /* readonly */
  7816. ShortStringHash type;
  7817. /* readonly */
  7818. String typeName;
  7819. uint viewMask;
  7820. /* readonly */
  7821. int weakRefs;
  7822. /* readonly */
  7823. BoundingBox worldBoundingBox;
  7824. uint zoneMask;
  7825. };
  7826. class String
  7827. {
  7828. // Methods:
  7829. void AppendUTF8(uint);
  7830. uint AtUTF8(uint) const;
  7831. uint ByteOffsetUTF8(uint) const;
  7832. void Clear();
  7833. int Compare(const String&, bool = true) const;
  7834. bool Contains(const String&, bool = true) const;
  7835. bool Contains(uint8, bool = true) const;
  7836. bool EndsWith(const String&, bool = true) const;
  7837. uint Find(const String&, uint = 0, bool = true) const;
  7838. uint Find(uint8, uint = 0, bool = true) const;
  7839. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  7840. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  7841. void Join(Array<String>&, const String&);
  7842. uint NextUTF8Char(uint&) const;
  7843. void Replace(const String&, const String&, bool = true);
  7844. void Replace(uint8, uint8, bool = true);
  7845. void ReplaceUTF8(uint, uint);
  7846. String Replaced(const String&, const String&, bool = true) const;
  7847. String Replaced(uint8, uint8, bool = true) const;
  7848. void Resize(uint);
  7849. void SetUTF8FromLatin1(const String&);
  7850. Array<String> Split(uint8) const;
  7851. bool StartsWith(const String&, bool = true) const;
  7852. String Substring(uint) const;
  7853. String Substring(uint, uint) const;
  7854. String SubstringUTF8(uint) const;
  7855. String SubstringUTF8(uint, uint) const;
  7856. bool ToBool() const;
  7857. Color ToColor() const;
  7858. float ToFloat() const;
  7859. int ToInt() const;
  7860. IntRect ToIntRect() const;
  7861. IntVector2 ToIntVector2() const;
  7862. String ToLower() const;
  7863. Matrix3 ToMatrix3() const;
  7864. Matrix3x4 ToMatrix3x4() const;
  7865. Matrix4 ToMatrix4() const;
  7866. Quaternion ToQuaternion() const;
  7867. uint ToUInt() const;
  7868. String ToUpper() const;
  7869. Vector2 ToVector2() const;
  7870. Vector3 ToVector3() const;
  7871. Vector4 ToVector4(bool = false) const;
  7872. Variant ToVectorVariant() const;
  7873. String Trimmed() const;
  7874. // Properties:
  7875. /* readonly */
  7876. bool empty;
  7877. /* readonly */
  7878. uint length;
  7879. /* readonly */
  7880. uint utf8Length;
  7881. };
  7882. class StringHash
  7883. {
  7884. // Methods:
  7885. String ToString() const;
  7886. // Properties:
  7887. /* readonly */
  7888. uint value;
  7889. };
  7890. class Technique
  7891. {
  7892. // Methods:
  7893. Pass CreatePass(StringHash);
  7894. bool HasPass(StringHash) const;
  7895. bool Load(File);
  7896. void RemovePass(StringHash);
  7897. bool Save(File) const;
  7898. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7899. // Properties:
  7900. /* readonly */
  7901. ShortStringHash baseType;
  7902. /* readonly */
  7903. String category;
  7904. /* readonly */
  7905. uint memoryUse;
  7906. String name;
  7907. /* readonly */
  7908. Array<Pass> passes;
  7909. /* readonly */
  7910. int refs;
  7911. bool sm3;
  7912. /* readonly */
  7913. ShortStringHash type;
  7914. /* readonly */
  7915. String typeName;
  7916. /* readonly */
  7917. uint useTimer;
  7918. /* readonly */
  7919. int weakRefs;
  7920. };
  7921. class TechniqueEntry
  7922. {
  7923. // Properties:
  7924. float lodDistance;
  7925. int qualityLevel;
  7926. Technique technique;
  7927. };
  7928. class Terrain
  7929. {
  7930. // Methods:
  7931. void ApplyAttributes();
  7932. void DrawDebugGeometry(DebugRenderer, bool);
  7933. Variant GetAttribute(const String&) const;
  7934. Variant GetAttributeDefault(const String&) const;
  7935. float GetHeight(const Vector3&) const;
  7936. Vector3 GetNormal(const Vector3&) const;
  7937. TerrainPatch GetPatch(int, int) const;
  7938. bool Load(File, bool = false);
  7939. bool LoadXML(const XMLElement&, bool = false);
  7940. void MarkNetworkUpdate() const;
  7941. void Remove();
  7942. void RemoveInstanceDefault();
  7943. void ResetToDefault();
  7944. bool Save(File) const;
  7945. bool SaveXML(XMLElement&) const;
  7946. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7947. bool SetAttribute(const String&, const Variant&);
  7948. // Properties:
  7949. /* readonly */
  7950. Array<Variant> attributeDefaults;
  7951. /* readonly */
  7952. Array<AttributeInfo> attributeInfos;
  7953. Array<Variant> attributes;
  7954. /* readonly */
  7955. ShortStringHash baseType;
  7956. bool castShadows;
  7957. /* readonly */
  7958. String category;
  7959. float drawDistance;
  7960. bool enabled;
  7961. /* readonly */
  7962. bool enabledEffective;
  7963. Image heightMap;
  7964. /* readonly */
  7965. uint id;
  7966. uint lightMask;
  7967. float lodBias;
  7968. Material material;
  7969. uint maxLights;
  7970. /* readonly */
  7971. Node node;
  7972. /* readonly */
  7973. uint numAttributes;
  7974. /* readonly */
  7975. IntVector2 numPatches;
  7976. /* readonly */
  7977. IntVector2 numVertices;
  7978. bool occludee;
  7979. bool occluder;
  7980. int patchSize;
  7981. /* readonly */
  7982. Array<TerrainPatch> patches;
  7983. /* readonly */
  7984. int refs;
  7985. float shadowDistance;
  7986. uint shadowMask;
  7987. bool smoothing;
  7988. Vector3 spacing;
  7989. bool temporary;
  7990. /* readonly */
  7991. ShortStringHash type;
  7992. /* readonly */
  7993. String typeName;
  7994. uint viewMask;
  7995. /* readonly */
  7996. int weakRefs;
  7997. uint zoneMask;
  7998. };
  7999. class TerrainPatch
  8000. {
  8001. // Methods:
  8002. void ApplyAttributes();
  8003. void DrawDebugGeometry(DebugRenderer, bool);
  8004. Variant GetAttribute(const String&) const;
  8005. Variant GetAttributeDefault(const String&) const;
  8006. bool IsInView(Camera) const;
  8007. bool Load(File, bool = false);
  8008. bool LoadXML(const XMLElement&, bool = false);
  8009. void MarkNetworkUpdate() const;
  8010. void Remove();
  8011. void RemoveInstanceDefault();
  8012. void ResetToDefault();
  8013. bool Save(File) const;
  8014. bool SaveXML(XMLElement&) const;
  8015. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8016. bool SetAttribute(const String&, const Variant&);
  8017. // Properties:
  8018. /* readonly */
  8019. Array<Variant> attributeDefaults;
  8020. /* readonly */
  8021. Array<AttributeInfo> attributeInfos;
  8022. Array<Variant> attributes;
  8023. /* readonly */
  8024. ShortStringHash baseType;
  8025. /* readonly */
  8026. BoundingBox boundingBox;
  8027. bool castShadows;
  8028. /* readonly */
  8029. String category;
  8030. float drawDistance;
  8031. bool enabled;
  8032. /* readonly */
  8033. bool enabledEffective;
  8034. /* readonly */
  8035. uint id;
  8036. /* readonly */
  8037. bool inView;
  8038. uint lightMask;
  8039. float lodBias;
  8040. uint maxLights;
  8041. /* readonly */
  8042. Node node;
  8043. /* readonly */
  8044. uint numAttributes;
  8045. bool occludee;
  8046. bool occluder;
  8047. /* readonly */
  8048. int refs;
  8049. float shadowDistance;
  8050. uint shadowMask;
  8051. bool temporary;
  8052. /* readonly */
  8053. ShortStringHash type;
  8054. /* readonly */
  8055. String typeName;
  8056. uint viewMask;
  8057. /* readonly */
  8058. int weakRefs;
  8059. /* readonly */
  8060. BoundingBox worldBoundingBox;
  8061. uint zoneMask;
  8062. };
  8063. class Text
  8064. {
  8065. // Methods:
  8066. void AddChild(UIElement);
  8067. void ApplyAttributes();
  8068. void BringToFront();
  8069. void ClearSelection();
  8070. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8071. void DisableLayoutUpdate();
  8072. IntVector2 ElementToScreen(const IntVector2&);
  8073. void EnableLayoutUpdate();
  8074. uint FindChild(UIElement) const;
  8075. Variant GetAttribute(const String&) const;
  8076. Variant GetAttributeDefault(const String&) const;
  8077. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8078. UIElement GetChild(const String&, bool = false) const;
  8079. Array<UIElement> GetChildren(bool = false) const;
  8080. UIElement GetElementEventSender() const;
  8081. uint GetNumChildren(bool) const;
  8082. void InsertChild(uint, UIElement);
  8083. bool IsInside(IntVector2, bool);
  8084. bool IsInsideCombined(IntVector2, bool);
  8085. bool Load(File, bool = false);
  8086. bool LoadChildXML(XMLFile, XMLFile = null);
  8087. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8088. bool LoadXML(File);
  8089. bool LoadXML(XMLFile, XMLFile);
  8090. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8091. bool LoadXML(const XMLElement&, bool = false);
  8092. void Remove();
  8093. void RemoveAllChildren();
  8094. void RemoveChild(UIElement, uint = 0);
  8095. void RemoveChild(uint);
  8096. void RemoveInstanceDefault();
  8097. void ResetToDefault();
  8098. bool Save(File) const;
  8099. bool SaveXML(File);
  8100. bool SaveXML(XMLElement&) const;
  8101. IntVector2 ScreenToElement(const IntVector2&);
  8102. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8103. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8104. bool SetAttribute(const String&, const Variant&);
  8105. void SetFixedHeight(int);
  8106. void SetFixedSize(int, int);
  8107. void SetFixedWidth(int);
  8108. bool SetFont(Font, int);
  8109. bool SetFont(const String&, int);
  8110. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8111. void SetMaxSize(int, int);
  8112. void SetMinSize(int, int);
  8113. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8114. void SetPosition(int, int);
  8115. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  8116. void SetSize(int, int);
  8117. bool SetStyle(const String&, XMLFile = null);
  8118. bool SetStyle(const XMLElement&);
  8119. bool SetStyleAuto(XMLFile = null);
  8120. void UpdateLayout();
  8121. const Variant& GetVar(const ShortStringHash&);
  8122. // Properties:
  8123. /* readonly */
  8124. Array<Variant> attributeDefaults;
  8125. /* readonly */
  8126. Array<AttributeInfo> attributeInfos;
  8127. Array<Variant> attributes;
  8128. /* readonly */
  8129. ShortStringHash baseType;
  8130. bool bringToBack;
  8131. bool bringToFront;
  8132. /* readonly */
  8133. String category;
  8134. /* readonly */
  8135. Array<IntVector2> charPositions;
  8136. /* readonly */
  8137. Array<IntVector2> charSizes;
  8138. /* readonly */
  8139. IntVector2 childOffset;
  8140. /* readonly */
  8141. Array<UIElement> children;
  8142. IntRect clipBorder;
  8143. bool clipChildren;
  8144. /* writeonly */
  8145. Color color;
  8146. /* readonly */
  8147. bool colorGradient;
  8148. Array<Color> colors;
  8149. /* readonly */
  8150. IntRect combinedScreenRect;
  8151. XMLFile defaultStyle;
  8152. /* readonly */
  8153. float derivedOpacity;
  8154. uint dragDropMode;
  8155. bool editable;
  8156. Color effectColor;
  8157. bool elementEventSender;
  8158. bool enabled;
  8159. /* readonly */
  8160. bool fixedHeight;
  8161. /* readonly */
  8162. bool fixedSize;
  8163. /* readonly */
  8164. bool fixedWidth;
  8165. bool focus;
  8166. FocusMode focusMode;
  8167. /* readonly */
  8168. Font font;
  8169. /* readonly */
  8170. int fontSize;
  8171. int height;
  8172. HorizontalAlignment horizontalAlignment;
  8173. Color hoverColor;
  8174. /* readonly */
  8175. bool hovering;
  8176. int indent;
  8177. int indentSpacing;
  8178. /* readonly */
  8179. int indentWidth;
  8180. bool internal;
  8181. IntRect layoutBorder;
  8182. LayoutMode layoutMode;
  8183. int layoutSpacing;
  8184. int maxHeight;
  8185. IntVector2 maxSize;
  8186. int maxWidth;
  8187. int minHeight;
  8188. IntVector2 minSize;
  8189. int minWidth;
  8190. String name;
  8191. /* readonly */
  8192. uint numAllChildren;
  8193. /* readonly */
  8194. uint numAttributes;
  8195. /* readonly */
  8196. uint numChars;
  8197. /* readonly */
  8198. uint numChildren;
  8199. /* readonly */
  8200. uint numRows;
  8201. float opacity;
  8202. UIElement parent;
  8203. IntVector2 position;
  8204. int priority;
  8205. /* readonly */
  8206. int refs;
  8207. /* readonly */
  8208. UIElement root;
  8209. /* readonly */
  8210. int rowHeight;
  8211. float rowSpacing;
  8212. /* readonly */
  8213. Array<int> rowWidths;
  8214. /* readonly */
  8215. IntVector2 screenPosition;
  8216. bool selected;
  8217. Color selectionColor;
  8218. /* readonly */
  8219. uint selectionLength;
  8220. /* readonly */
  8221. uint selectionStart;
  8222. IntVector2 size;
  8223. bool sortChildren;
  8224. String style;
  8225. bool temporary;
  8226. String text;
  8227. HorizontalAlignment textAlignment;
  8228. TextEffect textEffect;
  8229. TraversalMode traversalMode;
  8230. /* readonly */
  8231. ShortStringHash type;
  8232. /* readonly */
  8233. String typeName;
  8234. bool useDerivedOpacity;
  8235. /* readonly */
  8236. VariantMap vars;
  8237. VerticalAlignment verticalAlignment;
  8238. bool visible;
  8239. /* readonly */
  8240. int weakRefs;
  8241. int width;
  8242. bool wordwrap;
  8243. };
  8244. class Text3D
  8245. {
  8246. // Methods:
  8247. void ApplyAttributes();
  8248. void DrawDebugGeometry(DebugRenderer, bool);
  8249. Variant GetAttribute(const String&) const;
  8250. Variant GetAttributeDefault(const String&) const;
  8251. bool IsInView(Camera) const;
  8252. bool Load(File, bool = false);
  8253. bool LoadXML(const XMLElement&, bool = false);
  8254. void MarkNetworkUpdate() const;
  8255. void Remove();
  8256. void RemoveInstanceDefault();
  8257. void ResetToDefault();
  8258. bool Save(File) const;
  8259. bool SaveXML(XMLElement&) const;
  8260. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8261. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8262. bool SetAttribute(const String&, const Variant&);
  8263. bool SetFont(Font, int);
  8264. bool SetFont(const String&, int);
  8265. // Properties:
  8266. /* readonly */
  8267. Array<Variant> attributeDefaults;
  8268. /* readonly */
  8269. Array<AttributeInfo> attributeInfos;
  8270. Array<Variant> attributes;
  8271. /* readonly */
  8272. ShortStringHash baseType;
  8273. /* readonly */
  8274. BoundingBox boundingBox;
  8275. bool castShadows;
  8276. /* readonly */
  8277. String category;
  8278. /* readonly */
  8279. Array<IntVector2> charPositions;
  8280. /* readonly */
  8281. Array<IntVector2> charSizes;
  8282. /* writeonly */
  8283. Color color;
  8284. Array<Color> colors;
  8285. float drawDistance;
  8286. Color effectColor;
  8287. float effectDepthBias;
  8288. bool enabled;
  8289. /* readonly */
  8290. bool enabledEffective;
  8291. bool faceCamera;
  8292. /* readonly */
  8293. Font font;
  8294. /* readonly */
  8295. int fontSize;
  8296. HorizontalAlignment horizontalAlignment;
  8297. /* readonly */
  8298. uint id;
  8299. /* readonly */
  8300. bool inView;
  8301. uint lightMask;
  8302. float lodBias;
  8303. Material material;
  8304. uint maxLights;
  8305. /* readonly */
  8306. Node node;
  8307. /* readonly */
  8308. uint numAttributes;
  8309. /* readonly */
  8310. uint numChars;
  8311. /* readonly */
  8312. uint numRows;
  8313. bool occludee;
  8314. bool occluder;
  8315. float opacity;
  8316. /* readonly */
  8317. int refs;
  8318. /* readonly */
  8319. int rowHeight;
  8320. float rowSpacing;
  8321. /* readonly */
  8322. Array<int> rowWidths;
  8323. float shadowDistance;
  8324. uint shadowMask;
  8325. bool temporary;
  8326. String text;
  8327. HorizontalAlignment textAlignment;
  8328. TextEffect textEffect;
  8329. /* readonly */
  8330. ShortStringHash type;
  8331. /* readonly */
  8332. String typeName;
  8333. VerticalAlignment verticalAlignment;
  8334. uint viewMask;
  8335. /* readonly */
  8336. int weakRefs;
  8337. int width;
  8338. bool wordwrap;
  8339. /* readonly */
  8340. BoundingBox worldBoundingBox;
  8341. uint zoneMask;
  8342. };
  8343. class Texture
  8344. {
  8345. // Methods:
  8346. void ClearDataLost();
  8347. bool Load(File);
  8348. bool Save(File) const;
  8349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8350. void SetNumLevels(uint);
  8351. // Properties:
  8352. Array<TextureAddressMode> addressMode;
  8353. Texture backupTexture;
  8354. /* readonly */
  8355. ShortStringHash baseType;
  8356. Color borderColor;
  8357. /* readonly */
  8358. String category;
  8359. /* readonly */
  8360. bool compressed;
  8361. /* readonly */
  8362. bool dataLost;
  8363. TextureFilterMode filterMode;
  8364. /* readonly */
  8365. uint format;
  8366. /* readonly */
  8367. int height;
  8368. /* readonly */
  8369. Array<int> levelHeight;
  8370. /* readonly */
  8371. Array<int> levelWidth;
  8372. /* readonly */
  8373. uint levels;
  8374. /* readonly */
  8375. uint memoryUse;
  8376. Array<int> mipsToSkip;
  8377. String name;
  8378. /* readonly */
  8379. int refs;
  8380. bool sRGB;
  8381. /* readonly */
  8382. ShortStringHash type;
  8383. /* readonly */
  8384. String typeName;
  8385. /* readonly */
  8386. TextureUsage usage;
  8387. /* readonly */
  8388. uint useTimer;
  8389. /* readonly */
  8390. int weakRefs;
  8391. /* readonly */
  8392. int width;
  8393. };
  8394. class Texture2D
  8395. {
  8396. // Methods:
  8397. void ClearDataLost();
  8398. bool Load(File);
  8399. bool Load(Image, bool = false);
  8400. bool Save(File) const;
  8401. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8402. void SetNumLevels(uint);
  8403. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  8404. // Properties:
  8405. Array<TextureAddressMode> addressMode;
  8406. Texture backupTexture;
  8407. /* readonly */
  8408. ShortStringHash baseType;
  8409. Color borderColor;
  8410. /* readonly */
  8411. String category;
  8412. /* readonly */
  8413. bool compressed;
  8414. /* readonly */
  8415. bool dataLost;
  8416. TextureFilterMode filterMode;
  8417. /* readonly */
  8418. uint format;
  8419. /* readonly */
  8420. int height;
  8421. /* readonly */
  8422. Array<int> levelHeight;
  8423. /* readonly */
  8424. Array<int> levelWidth;
  8425. /* readonly */
  8426. uint levels;
  8427. /* readonly */
  8428. uint memoryUse;
  8429. Array<int> mipsToSkip;
  8430. String name;
  8431. /* readonly */
  8432. int refs;
  8433. /* readonly */
  8434. RenderSurface renderSurface;
  8435. bool sRGB;
  8436. /* readonly */
  8437. ShortStringHash type;
  8438. /* readonly */
  8439. String typeName;
  8440. /* readonly */
  8441. TextureUsage usage;
  8442. /* readonly */
  8443. uint useTimer;
  8444. /* readonly */
  8445. int weakRefs;
  8446. /* readonly */
  8447. int width;
  8448. };
  8449. class Texture3D
  8450. {
  8451. // Methods:
  8452. void ClearDataLost();
  8453. bool Load(File);
  8454. bool Load(Image, bool = false);
  8455. bool Save(File) const;
  8456. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8457. void SetNumLevels(uint);
  8458. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  8459. // Properties:
  8460. Array<TextureAddressMode> addressMode;
  8461. Texture backupTexture;
  8462. /* readonly */
  8463. ShortStringHash baseType;
  8464. Color borderColor;
  8465. /* readonly */
  8466. String category;
  8467. /* readonly */
  8468. bool compressed;
  8469. /* readonly */
  8470. bool dataLost;
  8471. TextureFilterMode filterMode;
  8472. /* readonly */
  8473. uint format;
  8474. /* readonly */
  8475. int height;
  8476. /* readonly */
  8477. Array<int> levelHeight;
  8478. /* readonly */
  8479. Array<int> levelWidth;
  8480. /* readonly */
  8481. uint levels;
  8482. /* readonly */
  8483. uint memoryUse;
  8484. Array<int> mipsToSkip;
  8485. String name;
  8486. /* readonly */
  8487. int refs;
  8488. /* readonly */
  8489. RenderSurface renderSurface;
  8490. bool sRGB;
  8491. /* readonly */
  8492. ShortStringHash type;
  8493. /* readonly */
  8494. String typeName;
  8495. /* readonly */
  8496. TextureUsage usage;
  8497. /* readonly */
  8498. uint useTimer;
  8499. /* readonly */
  8500. int weakRefs;
  8501. /* readonly */
  8502. int width;
  8503. };
  8504. class TextureCube
  8505. {
  8506. // Methods:
  8507. void ClearDataLost();
  8508. bool Load(CubeMapFace, Image, bool = false);
  8509. bool Load(File);
  8510. bool Save(File) const;
  8511. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8512. void SetNumLevels(uint);
  8513. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  8514. // Properties:
  8515. Array<TextureAddressMode> addressMode;
  8516. Texture backupTexture;
  8517. /* readonly */
  8518. ShortStringHash baseType;
  8519. Color borderColor;
  8520. /* readonly */
  8521. String category;
  8522. /* readonly */
  8523. bool compressed;
  8524. /* readonly */
  8525. bool dataLost;
  8526. TextureFilterMode filterMode;
  8527. /* readonly */
  8528. uint format;
  8529. /* readonly */
  8530. int height;
  8531. /* readonly */
  8532. Array<int> levelHeight;
  8533. /* readonly */
  8534. Array<int> levelWidth;
  8535. /* readonly */
  8536. uint levels;
  8537. /* readonly */
  8538. uint memoryUse;
  8539. Array<int> mipsToSkip;
  8540. String name;
  8541. /* readonly */
  8542. int refs;
  8543. /* readonly */
  8544. Array<RenderSurface> renderSurfaces;
  8545. bool sRGB;
  8546. /* readonly */
  8547. ShortStringHash type;
  8548. /* readonly */
  8549. String typeName;
  8550. /* readonly */
  8551. TextureUsage usage;
  8552. /* readonly */
  8553. uint useTimer;
  8554. /* readonly */
  8555. int weakRefs;
  8556. /* readonly */
  8557. int width;
  8558. };
  8559. class TextureFrame
  8560. {
  8561. // Properties:
  8562. float time;
  8563. Rect uv;
  8564. };
  8565. class Time
  8566. {
  8567. // Methods:
  8568. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8569. // Properties:
  8570. /* readonly */
  8571. ShortStringHash baseType;
  8572. /* readonly */
  8573. String category;
  8574. /* readonly */
  8575. float elapsedTime;
  8576. /* readonly */
  8577. uint frameNumber;
  8578. /* readonly */
  8579. int refs;
  8580. /* readonly */
  8581. uint systemTime;
  8582. /* readonly */
  8583. String timeStamp;
  8584. /* readonly */
  8585. float timeStep;
  8586. /* readonly */
  8587. ShortStringHash type;
  8588. /* readonly */
  8589. String typeName;
  8590. /* readonly */
  8591. int weakRefs;
  8592. };
  8593. class Timer
  8594. {
  8595. // Methods:
  8596. uint GetMSec(bool);
  8597. void Reset();
  8598. };
  8599. class ToolTip
  8600. {
  8601. // Methods:
  8602. void AddChild(UIElement);
  8603. void ApplyAttributes();
  8604. void BringToFront();
  8605. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8606. void DisableLayoutUpdate();
  8607. IntVector2 ElementToScreen(const IntVector2&);
  8608. void EnableLayoutUpdate();
  8609. uint FindChild(UIElement) const;
  8610. Variant GetAttribute(const String&) const;
  8611. Variant GetAttributeDefault(const String&) const;
  8612. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8613. UIElement GetChild(const String&, bool = false) const;
  8614. Array<UIElement> GetChildren(bool = false) const;
  8615. UIElement GetElementEventSender() const;
  8616. uint GetNumChildren(bool) const;
  8617. void InsertChild(uint, UIElement);
  8618. bool IsInside(IntVector2, bool);
  8619. bool IsInsideCombined(IntVector2, bool);
  8620. bool Load(File, bool = false);
  8621. bool LoadChildXML(XMLFile, XMLFile = null);
  8622. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8623. bool LoadXML(File);
  8624. bool LoadXML(XMLFile, XMLFile);
  8625. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8626. bool LoadXML(const XMLElement&, bool = false);
  8627. void Remove();
  8628. void RemoveAllChildren();
  8629. void RemoveChild(UIElement, uint = 0);
  8630. void RemoveChild(uint);
  8631. void RemoveInstanceDefault();
  8632. void ResetToDefault();
  8633. bool Save(File) const;
  8634. bool SaveXML(File);
  8635. bool SaveXML(XMLElement&) const;
  8636. IntVector2 ScreenToElement(const IntVector2&);
  8637. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8638. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8639. bool SetAttribute(const String&, const Variant&);
  8640. void SetFixedHeight(int);
  8641. void SetFixedSize(int, int);
  8642. void SetFixedWidth(int);
  8643. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8644. void SetMaxSize(int, int);
  8645. void SetMinSize(int, int);
  8646. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8647. void SetPosition(int, int);
  8648. void SetSize(int, int);
  8649. bool SetStyle(const String&, XMLFile = null);
  8650. bool SetStyle(const XMLElement&);
  8651. bool SetStyleAuto(XMLFile = null);
  8652. void UpdateLayout();
  8653. const Variant& GetVar(const ShortStringHash&);
  8654. // Properties:
  8655. /* readonly */
  8656. Array<Variant> attributeDefaults;
  8657. /* readonly */
  8658. Array<AttributeInfo> attributeInfos;
  8659. Array<Variant> attributes;
  8660. /* readonly */
  8661. ShortStringHash baseType;
  8662. bool bringToBack;
  8663. bool bringToFront;
  8664. /* readonly */
  8665. String category;
  8666. /* readonly */
  8667. IntVector2 childOffset;
  8668. /* readonly */
  8669. Array<UIElement> children;
  8670. IntRect clipBorder;
  8671. bool clipChildren;
  8672. /* writeonly */
  8673. Color color;
  8674. /* readonly */
  8675. bool colorGradient;
  8676. Array<Color> colors;
  8677. /* readonly */
  8678. IntRect combinedScreenRect;
  8679. XMLFile defaultStyle;
  8680. float delay;
  8681. /* readonly */
  8682. float derivedOpacity;
  8683. uint dragDropMode;
  8684. bool editable;
  8685. bool elementEventSender;
  8686. bool enabled;
  8687. /* readonly */
  8688. bool fixedHeight;
  8689. /* readonly */
  8690. bool fixedSize;
  8691. /* readonly */
  8692. bool fixedWidth;
  8693. bool focus;
  8694. FocusMode focusMode;
  8695. int height;
  8696. HorizontalAlignment horizontalAlignment;
  8697. /* readonly */
  8698. bool hovering;
  8699. int indent;
  8700. int indentSpacing;
  8701. /* readonly */
  8702. int indentWidth;
  8703. bool internal;
  8704. IntRect layoutBorder;
  8705. LayoutMode layoutMode;
  8706. int layoutSpacing;
  8707. int maxHeight;
  8708. IntVector2 maxSize;
  8709. int maxWidth;
  8710. int minHeight;
  8711. IntVector2 minSize;
  8712. int minWidth;
  8713. String name;
  8714. /* readonly */
  8715. uint numAllChildren;
  8716. /* readonly */
  8717. uint numAttributes;
  8718. /* readonly */
  8719. uint numChildren;
  8720. float opacity;
  8721. UIElement parent;
  8722. IntVector2 position;
  8723. int priority;
  8724. /* readonly */
  8725. int refs;
  8726. /* readonly */
  8727. UIElement root;
  8728. /* readonly */
  8729. IntVector2 screenPosition;
  8730. bool selected;
  8731. IntVector2 size;
  8732. bool sortChildren;
  8733. String style;
  8734. bool temporary;
  8735. TraversalMode traversalMode;
  8736. /* readonly */
  8737. ShortStringHash type;
  8738. /* readonly */
  8739. String typeName;
  8740. bool useDerivedOpacity;
  8741. /* readonly */
  8742. VariantMap vars;
  8743. VerticalAlignment verticalAlignment;
  8744. bool visible;
  8745. /* readonly */
  8746. int weakRefs;
  8747. int width;
  8748. };
  8749. class TouchState
  8750. {
  8751. // Properties:
  8752. IntVector2 delta;
  8753. IntVector2 lastPosition;
  8754. IntVector2 position;
  8755. float pressure;
  8756. int touchID;
  8757. };
  8758. class UI
  8759. {
  8760. // Methods:
  8761. void Clear();
  8762. void DebugDraw(UIElement);
  8763. UIElement GetElementAt(const IntVector2&, bool = true);
  8764. UIElement GetElementAt(int, int, bool = true);
  8765. bool HasModalElement() const;
  8766. UIElement LoadLayout(File);
  8767. UIElement LoadLayout(File, XMLFile);
  8768. UIElement LoadLayout(XMLFile);
  8769. UIElement LoadLayout(XMLFile, XMLFile);
  8770. bool SaveLayout(File, UIElement);
  8771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8772. void SetFocusElement(UIElement, bool = false);
  8773. // Properties:
  8774. /* readonly */
  8775. ShortStringHash baseType;
  8776. /* readonly */
  8777. String category;
  8778. String clipBoardText;
  8779. Cursor cursor;
  8780. /* readonly */
  8781. IntVector2 cursorPosition;
  8782. float defaultToolTipDelay;
  8783. float doubleClickInterval;
  8784. int dragBeginDistance;
  8785. float dragBeginInterval;
  8786. /* readonly */
  8787. UIElement dragElement;
  8788. UIElement focusElement;
  8789. bool forceAutoHint;
  8790. /* readonly */
  8791. UIElement frontElement;
  8792. int maxFontTextureSize;
  8793. /* readonly */
  8794. UIElement modalRoot;
  8795. bool nonFocusedMouseWheel;
  8796. /* readonly */
  8797. int refs;
  8798. /* readonly */
  8799. UIElement root;
  8800. /* readonly */
  8801. ShortStringHash type;
  8802. /* readonly */
  8803. String typeName;
  8804. bool useMutableGlyphs;
  8805. bool useScreenKeyboard;
  8806. bool useSystemClipBoard;
  8807. /* readonly */
  8808. int weakRefs;
  8809. };
  8810. class UIElement
  8811. {
  8812. // Methods:
  8813. void AddChild(UIElement);
  8814. void ApplyAttributes();
  8815. void BringToFront();
  8816. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8817. void DisableLayoutUpdate();
  8818. IntVector2 ElementToScreen(const IntVector2&);
  8819. void EnableLayoutUpdate();
  8820. uint FindChild(UIElement) const;
  8821. Variant GetAttribute(const String&) const;
  8822. Variant GetAttributeDefault(const String&) const;
  8823. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  8824. UIElement GetChild(const String&, bool = false) const;
  8825. Array<UIElement> GetChildren(bool = false) const;
  8826. UIElement GetElementEventSender() const;
  8827. uint GetNumChildren(bool) const;
  8828. void InsertChild(uint, UIElement);
  8829. bool IsInside(IntVector2, bool);
  8830. bool IsInsideCombined(IntVector2, bool);
  8831. bool Load(File, bool = false);
  8832. bool LoadChildXML(XMLFile, XMLFile = null);
  8833. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8834. bool LoadXML(File);
  8835. bool LoadXML(XMLFile, XMLFile);
  8836. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8837. bool LoadXML(const XMLElement&, bool = false);
  8838. void Remove();
  8839. void RemoveAllChildren();
  8840. void RemoveChild(UIElement, uint = 0);
  8841. void RemoveChild(uint);
  8842. void RemoveInstanceDefault();
  8843. void ResetToDefault();
  8844. bool Save(File) const;
  8845. bool SaveXML(File);
  8846. bool SaveXML(XMLElement&) const;
  8847. IntVector2 ScreenToElement(const IntVector2&);
  8848. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8849. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8850. bool SetAttribute(const String&, const Variant&);
  8851. void SetFixedHeight(int);
  8852. void SetFixedSize(int, int);
  8853. void SetFixedWidth(int);
  8854. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  8855. void SetMaxSize(int, int);
  8856. void SetMinSize(int, int);
  8857. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8858. void SetPosition(int, int);
  8859. void SetSize(int, int);
  8860. bool SetStyle(const String&, XMLFile = null);
  8861. bool SetStyle(const XMLElement&);
  8862. bool SetStyleAuto(XMLFile = null);
  8863. void UpdateLayout();
  8864. const Variant& GetVar(const ShortStringHash&);
  8865. // Properties:
  8866. /* readonly */
  8867. Array<Variant> attributeDefaults;
  8868. /* readonly */
  8869. Array<AttributeInfo> attributeInfos;
  8870. Array<Variant> attributes;
  8871. /* readonly */
  8872. ShortStringHash baseType;
  8873. bool bringToBack;
  8874. bool bringToFront;
  8875. /* readonly */
  8876. String category;
  8877. /* readonly */
  8878. IntVector2 childOffset;
  8879. /* readonly */
  8880. Array<UIElement> children;
  8881. IntRect clipBorder;
  8882. bool clipChildren;
  8883. /* writeonly */
  8884. Color color;
  8885. /* readonly */
  8886. bool colorGradient;
  8887. Array<Color> colors;
  8888. /* readonly */
  8889. IntRect combinedScreenRect;
  8890. XMLFile defaultStyle;
  8891. /* readonly */
  8892. float derivedOpacity;
  8893. uint dragDropMode;
  8894. bool editable;
  8895. bool elementEventSender;
  8896. bool enabled;
  8897. /* readonly */
  8898. bool fixedHeight;
  8899. /* readonly */
  8900. bool fixedSize;
  8901. /* readonly */
  8902. bool fixedWidth;
  8903. bool focus;
  8904. FocusMode focusMode;
  8905. int height;
  8906. HorizontalAlignment horizontalAlignment;
  8907. /* readonly */
  8908. bool hovering;
  8909. int indent;
  8910. int indentSpacing;
  8911. /* readonly */
  8912. int indentWidth;
  8913. bool internal;
  8914. IntRect layoutBorder;
  8915. LayoutMode layoutMode;
  8916. int layoutSpacing;
  8917. int maxHeight;
  8918. IntVector2 maxSize;
  8919. int maxWidth;
  8920. int minHeight;
  8921. IntVector2 minSize;
  8922. int minWidth;
  8923. String name;
  8924. /* readonly */
  8925. uint numAllChildren;
  8926. /* readonly */
  8927. uint numAttributes;
  8928. /* readonly */
  8929. uint numChildren;
  8930. float opacity;
  8931. UIElement parent;
  8932. IntVector2 position;
  8933. int priority;
  8934. /* readonly */
  8935. int refs;
  8936. /* readonly */
  8937. UIElement root;
  8938. /* readonly */
  8939. IntVector2 screenPosition;
  8940. bool selected;
  8941. IntVector2 size;
  8942. bool sortChildren;
  8943. String style;
  8944. bool temporary;
  8945. TraversalMode traversalMode;
  8946. /* readonly */
  8947. ShortStringHash type;
  8948. /* readonly */
  8949. String typeName;
  8950. bool useDerivedOpacity;
  8951. /* readonly */
  8952. VariantMap vars;
  8953. VerticalAlignment verticalAlignment;
  8954. bool visible;
  8955. /* readonly */
  8956. int weakRefs;
  8957. int width;
  8958. };
  8959. class Variant
  8960. {
  8961. // Methods:
  8962. void Clear();
  8963. const Color& GetColor() const;
  8964. void FromString(VariantType, const String&);
  8965. void FromString(const String&, const String&);
  8966. bool GetBool() const;
  8967. VectorBuffer GetBuffer() const;
  8968. float GetFloat() const;
  8969. int GetInt() const;
  8970. RefCounted GetPtr() const;
  8971. ShortStringHash GetShortStringHash() const;
  8972. StringHash GetStringHash() const;
  8973. uint GetUInt() const;
  8974. Array<Variant> GetVariantVector() const;
  8975. const IntRect& GetIntRect() const;
  8976. const IntVector2& GetIntVector2() const;
  8977. const Matrix3& GetMatrix3() const;
  8978. const Matrix3x4& GetMatrix3x4() const;
  8979. const Matrix4& GetMatrix4() const;
  8980. const Quaternion& GetQuaternion() const;
  8981. const ResourceRef& GetResourceRef() const;
  8982. const ResourceRefList& GetResourceRefList() const;
  8983. const String& GetString() const;
  8984. String ToString() const;
  8985. const VariantMap& GetVariantMap() const;
  8986. const Vector2& GetVector2() const;
  8987. const Vector3& GetVector3() const;
  8988. const Vector4& GetVector4() const;
  8989. /* deprecated */
  8990. Camera GetCamera() const;
  8991. /* deprecated */
  8992. CollisionShape GetCollisionShape() const;
  8993. /* deprecated */
  8994. Component GetComponent() const;
  8995. /* deprecated */
  8996. Connection GetConnection() const;
  8997. /* deprecated */
  8998. Node GetNode() const;
  8999. /* deprecated */
  9000. PhysicsWorld GetPhysicsWorld() const;
  9001. /* deprecated */
  9002. RenderSurface GetRenderSurface() const;
  9003. /* deprecated */
  9004. RigidBody GetRigidBody() const;
  9005. /* deprecated */
  9006. Scene GetScene() const;
  9007. /* deprecated */
  9008. Serializable GetSerializable() const;
  9009. /* deprecated */
  9010. Texture GetTexture() const;
  9011. /* deprecated */
  9012. UIElement GetUIElement() const;
  9013. // Properties:
  9014. /* readonly */
  9015. bool empty;
  9016. /* readonly */
  9017. VariantType type;
  9018. /* readonly */
  9019. String typeName;
  9020. /* readonly */
  9021. bool zero;
  9022. };
  9023. class VariantMap
  9024. {
  9025. // Methods:
  9026. void Clear();
  9027. bool Contains(ShortStringHash) const;
  9028. bool Contains(const String&) const;
  9029. bool Erase(ShortStringHash);
  9030. bool Erase(const String&);
  9031. // Properties:
  9032. /* readonly */
  9033. Array<ShortStringHash> keys;
  9034. /* readonly */
  9035. uint length;
  9036. };
  9037. class Vector2
  9038. {
  9039. // Methods:
  9040. float AbsDotProduct(const Vector2&) const;
  9041. float DotProduct(const Vector2&) const;
  9042. bool Equals(const Vector2&) const;
  9043. bool IsNaN() const;
  9044. Vector2 Lerp(const Vector2&, float) const;
  9045. void Normalize();
  9046. Vector2 Normalized() const;
  9047. String ToString() const;
  9048. // Properties:
  9049. /* readonly */
  9050. Array<float> data;
  9051. /* readonly */
  9052. float length;
  9053. /* readonly */
  9054. float lengthSquared;
  9055. float x;
  9056. float y;
  9057. };
  9058. class Vector3
  9059. {
  9060. // Methods:
  9061. float AbsDotProduct(const Vector3&) const;
  9062. float Angle(const Vector3&) const;
  9063. Vector3 CrossProduct(const Vector3&) const;
  9064. float DotProduct(const Vector3&) const;
  9065. bool Equals(const Vector3&) const;
  9066. bool IsNaN() const;
  9067. Vector3 Lerp(const Vector3&, float) const;
  9068. void Normalize();
  9069. Vector3 Normalized() const;
  9070. String ToString() const;
  9071. // Properties:
  9072. /* readonly */
  9073. Array<float> data;
  9074. /* readonly */
  9075. float length;
  9076. /* readonly */
  9077. float lengthSquared;
  9078. float x;
  9079. float y;
  9080. float z;
  9081. };
  9082. class Vector4
  9083. {
  9084. // Methods:
  9085. float AbsDotProduct(const Vector4&) const;
  9086. float DotProduct(const Vector4&) const;
  9087. bool Equals(const Vector4&) const;
  9088. bool IsNaN() const;
  9089. Vector4 Lerp(const Vector4&, float) const;
  9090. String ToString() const;
  9091. // Properties:
  9092. /* readonly */
  9093. Array<float> data;
  9094. float w;
  9095. float x;
  9096. float y;
  9097. float z;
  9098. };
  9099. class VectorBuffer
  9100. {
  9101. // Methods:
  9102. void Clear();
  9103. Array<uint8> Read(uint);
  9104. bool ReadBool();
  9105. BoundingBox ReadBoundingBox();
  9106. int8 ReadByte();
  9107. Color ReadColor();
  9108. String ReadFileID();
  9109. float ReadFloat();
  9110. int ReadInt();
  9111. IntRect ReadIntRect();
  9112. IntVector2 ReadIntVector2();
  9113. String ReadLine();
  9114. uint ReadNetID();
  9115. Quaternion ReadPackedQuaternion();
  9116. Vector3 ReadPackedVector3(float);
  9117. Quaternion ReadQuaternion();
  9118. int16 ReadShort();
  9119. ShortStringHash ReadShortStringHash();
  9120. String ReadString();
  9121. StringHash ReadStringHash();
  9122. uint8 ReadUByte();
  9123. uint ReadUInt();
  9124. uint16 ReadUShort();
  9125. uint ReadVLE();
  9126. Variant ReadVariant();
  9127. VariantMap ReadVariantMap();
  9128. Vector2 ReadVector2();
  9129. Vector3 ReadVector3();
  9130. Vector4 ReadVector4();
  9131. void Resize(uint);
  9132. uint Seek(uint);
  9133. void SetData(Deserializer, uint);
  9134. uint Write(Array<uint8>);
  9135. bool WriteBool(bool);
  9136. bool WriteBoundingBox(const BoundingBox&);
  9137. bool WriteByte(int8);
  9138. bool WriteColor(const Color&);
  9139. bool WriteFileID(const String&);
  9140. bool WriteFloat(float);
  9141. bool WriteInt(int);
  9142. bool WriteIntRect(const IntRect&);
  9143. bool WriteIntVector2(const IntVector2&);
  9144. bool WriteLine(const String&);
  9145. bool WriteNetID(uint);
  9146. bool WritePackedQuaternion(const Quaternion&);
  9147. bool WritePackedVector3(const Vector3&, float);
  9148. bool WriteQuaternion(const Quaternion&);
  9149. bool WriteShort(int16);
  9150. bool WriteShortStringHash(const ShortStringHash&);
  9151. bool WriteString(const String&);
  9152. bool WriteStringHash(const StringHash&);
  9153. bool WriteUByte(uint8);
  9154. bool WriteUInt(uint);
  9155. bool WriteUShort(uint16);
  9156. bool WriteVLE(uint);
  9157. bool WriteVariant(const Variant&);
  9158. bool WriteVariantMap(const VariantMap&);
  9159. bool WriteVector2(const Vector2&);
  9160. bool WriteVector3(const Vector3&);
  9161. bool WriteVector4(const Vector4&);
  9162. // Properties:
  9163. /* readonly */
  9164. uint checksum;
  9165. /* readonly */
  9166. bool eof;
  9167. /* readonly */
  9168. String name;
  9169. /* readonly */
  9170. uint position;
  9171. /* readonly */
  9172. uint size;
  9173. };
  9174. class View3D
  9175. {
  9176. // Methods:
  9177. void AddChild(UIElement);
  9178. void ApplyAttributes();
  9179. void BringToFront();
  9180. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9181. void DisableLayoutUpdate();
  9182. IntVector2 ElementToScreen(const IntVector2&);
  9183. void EnableLayoutUpdate();
  9184. uint FindChild(UIElement) const;
  9185. Variant GetAttribute(const String&) const;
  9186. Variant GetAttributeDefault(const String&) const;
  9187. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  9188. UIElement GetChild(const String&, bool = false) const;
  9189. Array<UIElement> GetChildren(bool = false) const;
  9190. UIElement GetElementEventSender() const;
  9191. uint GetNumChildren(bool) const;
  9192. void InsertChild(uint, UIElement);
  9193. bool IsInside(IntVector2, bool);
  9194. bool IsInsideCombined(IntVector2, bool);
  9195. bool Load(File, bool = false);
  9196. bool LoadChildXML(XMLFile, XMLFile = null);
  9197. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9198. bool LoadXML(File);
  9199. bool LoadXML(XMLFile, XMLFile);
  9200. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9201. bool LoadXML(const XMLElement&, bool = false);
  9202. void QueueUpdate();
  9203. void Remove();
  9204. void RemoveAllChildren();
  9205. void RemoveChild(UIElement, uint = 0);
  9206. void RemoveChild(uint);
  9207. void RemoveInstanceDefault();
  9208. void ResetToDefault();
  9209. bool Save(File) const;
  9210. bool SaveXML(File);
  9211. bool SaveXML(XMLElement&) const;
  9212. IntVector2 ScreenToElement(const IntVector2&);
  9213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9214. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9215. bool SetAttribute(const String&, const Variant&);
  9216. void SetFixedHeight(int);
  9217. void SetFixedSize(int, int);
  9218. void SetFixedWidth(int);
  9219. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9220. void SetMaxSize(int, int);
  9221. void SetMinSize(int, int);
  9222. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9223. void SetPosition(int, int);
  9224. void SetSize(int, int);
  9225. bool SetStyle(const String&, XMLFile = null);
  9226. bool SetStyle(const XMLElement&);
  9227. bool SetStyleAuto(XMLFile = null);
  9228. void SetView(Scene, Camera);
  9229. void UpdateLayout();
  9230. const Variant& GetVar(const ShortStringHash&);
  9231. // Properties:
  9232. /* readonly */
  9233. Array<Variant> attributeDefaults;
  9234. /* readonly */
  9235. Array<AttributeInfo> attributeInfos;
  9236. Array<Variant> attributes;
  9237. bool autoUpdate;
  9238. /* readonly */
  9239. ShortStringHash baseType;
  9240. bool bringToBack;
  9241. bool bringToFront;
  9242. /* readonly */
  9243. Node cameraNode;
  9244. /* readonly */
  9245. String category;
  9246. /* readonly */
  9247. IntVector2 childOffset;
  9248. /* readonly */
  9249. Array<UIElement> children;
  9250. IntRect clipBorder;
  9251. bool clipChildren;
  9252. /* writeonly */
  9253. Color color;
  9254. /* readonly */
  9255. bool colorGradient;
  9256. Array<Color> colors;
  9257. /* readonly */
  9258. IntRect combinedScreenRect;
  9259. XMLFile defaultStyle;
  9260. /* readonly */
  9261. Texture2D depthTexture;
  9262. /* readonly */
  9263. float derivedOpacity;
  9264. uint dragDropMode;
  9265. bool editable;
  9266. bool elementEventSender;
  9267. bool enabled;
  9268. /* readonly */
  9269. bool fixedHeight;
  9270. bool fixedHeightResizing;
  9271. /* readonly */
  9272. bool fixedSize;
  9273. /* readonly */
  9274. bool fixedWidth;
  9275. bool fixedWidthResizing;
  9276. bool focus;
  9277. FocusMode focusMode;
  9278. uint format;
  9279. int height;
  9280. HorizontalAlignment horizontalAlignment;
  9281. /* readonly */
  9282. bool hovering;
  9283. int indent;
  9284. int indentSpacing;
  9285. /* readonly */
  9286. int indentWidth;
  9287. bool internal;
  9288. IntRect layoutBorder;
  9289. LayoutMode layoutMode;
  9290. int layoutSpacing;
  9291. int maxHeight;
  9292. IntVector2 maxSize;
  9293. int maxWidth;
  9294. int minHeight;
  9295. IntVector2 minSize;
  9296. int minWidth;
  9297. bool modal;
  9298. Color modalFrameColor;
  9299. IntVector2 modalFrameSize;
  9300. Color modalShadeColor;
  9301. bool movable;
  9302. String name;
  9303. /* readonly */
  9304. uint numAllChildren;
  9305. /* readonly */
  9306. uint numAttributes;
  9307. /* readonly */
  9308. uint numChildren;
  9309. float opacity;
  9310. UIElement parent;
  9311. IntVector2 position;
  9312. int priority;
  9313. /* readonly */
  9314. int refs;
  9315. /* readonly */
  9316. Texture2D renderTexture;
  9317. bool resizable;
  9318. IntRect resizeBorder;
  9319. /* readonly */
  9320. UIElement root;
  9321. /* readonly */
  9322. Scene scene;
  9323. /* readonly */
  9324. IntVector2 screenPosition;
  9325. bool selected;
  9326. IntVector2 size;
  9327. bool sortChildren;
  9328. String style;
  9329. bool temporary;
  9330. TraversalMode traversalMode;
  9331. /* readonly */
  9332. ShortStringHash type;
  9333. /* readonly */
  9334. String typeName;
  9335. bool useDerivedOpacity;
  9336. /* readonly */
  9337. VariantMap vars;
  9338. VerticalAlignment verticalAlignment;
  9339. /* readonly */
  9340. Viewport viewport;
  9341. bool visible;
  9342. /* readonly */
  9343. int weakRefs;
  9344. int width;
  9345. };
  9346. class Viewport
  9347. {
  9348. // Methods:
  9349. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9350. void SetRenderPath(XMLFile);
  9351. // Properties:
  9352. /* readonly */
  9353. ShortStringHash baseType;
  9354. Camera camera;
  9355. /* readonly */
  9356. String category;
  9357. IntRect rect;
  9358. /* readonly */
  9359. int refs;
  9360. RenderPath renderPath;
  9361. Scene scene;
  9362. /* readonly */
  9363. ShortStringHash type;
  9364. /* readonly */
  9365. String typeName;
  9366. /* readonly */
  9367. int weakRefs;
  9368. };
  9369. class WeakHandle
  9370. {
  9371. // Methods:
  9372. RefCounted Get() const;
  9373. // Properties:
  9374. /* readonly */
  9375. bool expired;
  9376. /* readonly */
  9377. int refs;
  9378. /* readonly */
  9379. int weakRefs;
  9380. };
  9381. class Window
  9382. {
  9383. // Methods:
  9384. void AddChild(UIElement);
  9385. void ApplyAttributes();
  9386. void BringToFront();
  9387. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9388. void DisableLayoutUpdate();
  9389. IntVector2 ElementToScreen(const IntVector2&);
  9390. void EnableLayoutUpdate();
  9391. uint FindChild(UIElement) const;
  9392. Variant GetAttribute(const String&) const;
  9393. Variant GetAttributeDefault(const String&) const;
  9394. UIElement GetChild(const ShortStringHash&, const Variant& = Variant ( ), bool = false) const;
  9395. UIElement GetChild(const String&, bool = false) const;
  9396. Array<UIElement> GetChildren(bool = false) const;
  9397. UIElement GetElementEventSender() const;
  9398. uint GetNumChildren(bool) const;
  9399. void InsertChild(uint, UIElement);
  9400. bool IsInside(IntVector2, bool);
  9401. bool IsInsideCombined(IntVector2, bool);
  9402. bool Load(File, bool = false);
  9403. bool LoadChildXML(XMLFile, XMLFile = null);
  9404. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9405. bool LoadXML(File);
  9406. bool LoadXML(XMLFile, XMLFile);
  9407. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9408. bool LoadXML(const XMLElement&, bool = false);
  9409. void Remove();
  9410. void RemoveAllChildren();
  9411. void RemoveChild(UIElement, uint = 0);
  9412. void RemoveChild(uint);
  9413. void RemoveInstanceDefault();
  9414. void ResetToDefault();
  9415. bool Save(File) const;
  9416. bool SaveXML(File);
  9417. bool SaveXML(XMLElement&) const;
  9418. IntVector2 ScreenToElement(const IntVector2&);
  9419. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9420. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9421. bool SetAttribute(const String&, const Variant&);
  9422. void SetFixedHeight(int);
  9423. void SetFixedSize(int, int);
  9424. void SetFixedWidth(int);
  9425. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9426. void SetMaxSize(int, int);
  9427. void SetMinSize(int, int);
  9428. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9429. void SetPosition(int, int);
  9430. void SetSize(int, int);
  9431. bool SetStyle(const String&, XMLFile = null);
  9432. bool SetStyle(const XMLElement&);
  9433. bool SetStyleAuto(XMLFile = null);
  9434. void UpdateLayout();
  9435. const Variant& GetVar(const ShortStringHash&);
  9436. // Properties:
  9437. /* readonly */
  9438. Array<Variant> attributeDefaults;
  9439. /* readonly */
  9440. Array<AttributeInfo> attributeInfos;
  9441. Array<Variant> attributes;
  9442. /* readonly */
  9443. ShortStringHash baseType;
  9444. bool bringToBack;
  9445. bool bringToFront;
  9446. /* readonly */
  9447. String category;
  9448. /* readonly */
  9449. IntVector2 childOffset;
  9450. /* readonly */
  9451. Array<UIElement> children;
  9452. IntRect clipBorder;
  9453. bool clipChildren;
  9454. /* writeonly */
  9455. Color color;
  9456. /* readonly */
  9457. bool colorGradient;
  9458. Array<Color> colors;
  9459. /* readonly */
  9460. IntRect combinedScreenRect;
  9461. XMLFile defaultStyle;
  9462. /* readonly */
  9463. float derivedOpacity;
  9464. uint dragDropMode;
  9465. bool editable;
  9466. bool elementEventSender;
  9467. bool enabled;
  9468. /* readonly */
  9469. bool fixedHeight;
  9470. bool fixedHeightResizing;
  9471. /* readonly */
  9472. bool fixedSize;
  9473. /* readonly */
  9474. bool fixedWidth;
  9475. bool fixedWidthResizing;
  9476. bool focus;
  9477. FocusMode focusMode;
  9478. int height;
  9479. HorizontalAlignment horizontalAlignment;
  9480. /* readonly */
  9481. bool hovering;
  9482. int indent;
  9483. int indentSpacing;
  9484. /* readonly */
  9485. int indentWidth;
  9486. bool internal;
  9487. IntRect layoutBorder;
  9488. LayoutMode layoutMode;
  9489. int layoutSpacing;
  9490. int maxHeight;
  9491. IntVector2 maxSize;
  9492. int maxWidth;
  9493. int minHeight;
  9494. IntVector2 minSize;
  9495. int minWidth;
  9496. bool modal;
  9497. Color modalFrameColor;
  9498. IntVector2 modalFrameSize;
  9499. Color modalShadeColor;
  9500. bool movable;
  9501. String name;
  9502. /* readonly */
  9503. uint numAllChildren;
  9504. /* readonly */
  9505. uint numAttributes;
  9506. /* readonly */
  9507. uint numChildren;
  9508. float opacity;
  9509. UIElement parent;
  9510. IntVector2 position;
  9511. int priority;
  9512. /* readonly */
  9513. int refs;
  9514. bool resizable;
  9515. IntRect resizeBorder;
  9516. /* readonly */
  9517. UIElement root;
  9518. /* readonly */
  9519. IntVector2 screenPosition;
  9520. bool selected;
  9521. IntVector2 size;
  9522. bool sortChildren;
  9523. String style;
  9524. bool temporary;
  9525. TraversalMode traversalMode;
  9526. /* readonly */
  9527. ShortStringHash type;
  9528. /* readonly */
  9529. String typeName;
  9530. bool useDerivedOpacity;
  9531. /* readonly */
  9532. VariantMap vars;
  9533. VerticalAlignment verticalAlignment;
  9534. bool visible;
  9535. /* readonly */
  9536. int weakRefs;
  9537. int width;
  9538. };
  9539. class XMLElement
  9540. {
  9541. // Methods:
  9542. XMLElement CreateChild(const String&);
  9543. String GetAttribute(const String& = String ( )) const;
  9544. String GetAttributeLower(const String&) const;
  9545. Array<String> GetAttributeNames() const;
  9546. String GetAttributeUpper(const String&) const;
  9547. bool GetBool(const String&) const;
  9548. BoundingBox GetBoundingBox() const;
  9549. XMLElement GetChild(const String& = String ( )) const;
  9550. Color GetColor(const String&) const;
  9551. float GetFloat(const String&) const;
  9552. int GetInt(const String&) const;
  9553. Matrix3 GetMatrix3(const String&) const;
  9554. Matrix3x4 GetMatrix3x4(const String&) const;
  9555. Matrix4 GetMatrix4(const String&) const;
  9556. XMLElement GetNext(const String& = String ( )) const;
  9557. Quaternion GetQuaternion(const String&) const;
  9558. ResourceRef GetResourceRef() const;
  9559. ResourceRefList GetResourceRefList() const;
  9560. uint GetUInt(const String&) const;
  9561. String GetValue() const;
  9562. Variant GetVariant() const;
  9563. VariantMap GetVariantMap() const;
  9564. Array<Variant> GetVariantVector() const;
  9565. Vector2 GetVector2(const String&) const;
  9566. Vector3 GetVector3(const String&) const;
  9567. Vector4 GetVector4(const String&) const;
  9568. Variant GetVectorVariant(const String&) const;
  9569. bool HasAttribute(const String&) const;
  9570. bool HasChild(const String&) const;
  9571. bool RemoveAttribute(const String& = String ( ));
  9572. bool RemoveChild(const String&);
  9573. bool RemoveChild(const XMLElement&);
  9574. bool RemoveChildren(const String& = String ( ));
  9575. XPathResultSet Select(const String&);
  9576. XPathResultSet SelectPrepared(const XPathQuery&);
  9577. XMLElement SelectSingle(const String&);
  9578. XMLElement SelectSinglePrepared(const XPathQuery&);
  9579. bool SetAttribute(const String&);
  9580. bool SetAttribute(const String&, const String&);
  9581. bool SetBool(const String&, bool);
  9582. bool SetBoundingBox(const BoundingBox&);
  9583. bool SetColor(const String&, const Color&);
  9584. bool SetFloat(const String&, float);
  9585. bool SetInt(const String&, int);
  9586. bool SetMatrix3(const String&, const Matrix3&);
  9587. bool SetMatrix3x4(const String&, const Matrix3x4&);
  9588. bool SetMatrix4(const String&, const Matrix4&);
  9589. bool SetQuaternion(const String&, const Quaternion&);
  9590. bool SetResourceRef(const String&, const ResourceRef&);
  9591. bool SetResourceRefList(const String&, const ResourceRefList&);
  9592. bool SetUInt(const String&, uint);
  9593. bool SetValue(const String&);
  9594. bool SetVariant(const Variant&);
  9595. bool SetVariantMap(const VariantMap&);
  9596. bool SetVariantVector(Array<Variant>);
  9597. bool SetVector2(const String&, const Vector2&);
  9598. bool SetVector3(const String&, const Vector3&);
  9599. bool SetVector4(const String&, const Vector4&);
  9600. bool SetVectorVariant(const String&, const Variant&);
  9601. // Properties:
  9602. /* readonly */
  9603. XMLFile file;
  9604. /* readonly */
  9605. bool isNull;
  9606. /* readonly */
  9607. String name;
  9608. /* readonly */
  9609. XMLElement nextResult;
  9610. /* readonly */
  9611. bool notNull;
  9612. /* readonly */
  9613. uint numAttributes;
  9614. /* readonly */
  9615. XMLElement parent;
  9616. String value;
  9617. };
  9618. class XMLFile
  9619. {
  9620. // Methods:
  9621. XMLElement CreateRoot(const String&);
  9622. XMLElement GetRoot(const String& = String ( ));
  9623. bool Load(File);
  9624. void Patch(XMLElement);
  9625. void Patch(XMLFile);
  9626. bool Save(File) const;
  9627. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9628. // Properties:
  9629. /* readonly */
  9630. ShortStringHash baseType;
  9631. /* readonly */
  9632. String category;
  9633. /* readonly */
  9634. uint memoryUse;
  9635. String name;
  9636. /* readonly */
  9637. int refs;
  9638. /* readonly */
  9639. XMLElement root;
  9640. /* readonly */
  9641. ShortStringHash type;
  9642. /* readonly */
  9643. String typeName;
  9644. /* readonly */
  9645. uint useTimer;
  9646. /* readonly */
  9647. int weakRefs;
  9648. };
  9649. class XPathQuery
  9650. {
  9651. // Methods:
  9652. void Bind();
  9653. void Clear();
  9654. XPathResultSet Evaluate(XMLElement);
  9655. bool EvaluateToBool(XMLElement);
  9656. float EvaluateToFloat(XMLElement);
  9657. String EvaluateToString(XMLElement);
  9658. bool SetQuery(const String&, const String& = String ( ), bool = true);
  9659. bool SetVariable(const String&, bool);
  9660. bool SetVariable(const String&, const String&);
  9661. bool SetVariable(const String&, const XPathResultSet&);
  9662. bool SetVariable(const String&, float);
  9663. // Properties:
  9664. String query;
  9665. };
  9666. class XPathResultSet
  9667. {
  9668. // Properties:
  9669. /* readonly */
  9670. bool empty;
  9671. /* readonly */
  9672. XMLElement firstResult;
  9673. /* readonly */
  9674. uint size;
  9675. };
  9676. class Zone
  9677. {
  9678. // Methods:
  9679. void ApplyAttributes();
  9680. void DrawDebugGeometry(DebugRenderer, bool);
  9681. Variant GetAttribute(const String&) const;
  9682. Variant GetAttributeDefault(const String&) const;
  9683. bool IsInView(Camera) const;
  9684. bool Load(File, bool = false);
  9685. bool LoadXML(const XMLElement&, bool = false);
  9686. void MarkNetworkUpdate() const;
  9687. void Remove();
  9688. void RemoveInstanceDefault();
  9689. void ResetToDefault();
  9690. bool Save(File) const;
  9691. bool SaveXML(XMLElement&) const;
  9692. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9693. bool SetAttribute(const String&, const Variant&);
  9694. // Properties:
  9695. Color ambientColor;
  9696. /* readonly */
  9697. Color ambientEndColor;
  9698. bool ambientGradient;
  9699. /* readonly */
  9700. Color ambientStartColor;
  9701. /* readonly */
  9702. Array<Variant> attributeDefaults;
  9703. /* readonly */
  9704. Array<AttributeInfo> attributeInfos;
  9705. Array<Variant> attributes;
  9706. /* readonly */
  9707. ShortStringHash baseType;
  9708. BoundingBox boundingBox;
  9709. bool castShadows;
  9710. /* readonly */
  9711. String category;
  9712. float drawDistance;
  9713. bool enabled;
  9714. /* readonly */
  9715. bool enabledEffective;
  9716. Color fogColor;
  9717. float fogEnd;
  9718. float fogHeight;
  9719. float fogHeightScale;
  9720. float fogStart;
  9721. bool heightFog;
  9722. /* readonly */
  9723. uint id;
  9724. /* readonly */
  9725. bool inView;
  9726. /* readonly */
  9727. Matrix3x4 inverseWorldTransform;
  9728. uint lightMask;
  9729. float lodBias;
  9730. uint maxLights;
  9731. /* readonly */
  9732. Node node;
  9733. /* readonly */
  9734. uint numAttributes;
  9735. bool occludee;
  9736. bool occluder;
  9737. bool override;
  9738. int priority;
  9739. /* readonly */
  9740. int refs;
  9741. float shadowDistance;
  9742. uint shadowMask;
  9743. bool temporary;
  9744. /* readonly */
  9745. ShortStringHash type;
  9746. /* readonly */
  9747. String typeName;
  9748. uint viewMask;
  9749. /* readonly */
  9750. int weakRefs;
  9751. /* readonly */
  9752. BoundingBox worldBoundingBox;
  9753. uint zoneMask;
  9754. };
  9755. // Enumerations
  9756. enum BlendMode
  9757. {
  9758. BLEND_REPLACE,
  9759. BLEND_ADD,
  9760. BLEND_MULTIPLY,
  9761. BLEND_ALPHA,
  9762. BLEND_ADDALPHA,
  9763. BLEND_PREMULALPHA,
  9764. BLEND_INVDESTALPHA,
  9765. BLEND_SUBTRACT,
  9766. BLEND_SUBTRACTALPHA,
  9767. };
  9768. enum BodyType2D
  9769. {
  9770. BT_STATIC,
  9771. BT_DYNAMIC,
  9772. BT_KINEMATIC,
  9773. };
  9774. enum CollisionEventMode
  9775. {
  9776. COLLISION_NEVER,
  9777. COLLISION_ACTIVE,
  9778. COLLISION_ALWAYS,
  9779. };
  9780. enum CompareMode
  9781. {
  9782. CMP_ALWAYS,
  9783. CMP_EQUAL,
  9784. CMP_NOTEQUAL,
  9785. CMP_LESS,
  9786. CMP_LESSEQUAL,
  9787. CMP_GREATER,
  9788. CMP_GREATEREQUAL,
  9789. };
  9790. enum ConstraintType
  9791. {
  9792. CONSTRAINT_POINT,
  9793. CONSTRAINT_HINGE,
  9794. CONSTRAINT_SLIDER,
  9795. CONSTRAINT_CONETWIST,
  9796. };
  9797. enum Corner
  9798. {
  9799. C_TOPLEFT,
  9800. C_TOPRIGHT,
  9801. C_BOTTOMLEFT,
  9802. C_BOTTOMRIGHT,
  9803. };
  9804. enum CreateMode
  9805. {
  9806. REPLICATED,
  9807. LOCAL,
  9808. };
  9809. enum CubeMapFace
  9810. {
  9811. FACE_POSITIVE_X,
  9812. FACE_NEGATIVE_X,
  9813. FACE_POSITIVE_Y,
  9814. FACE_NEGATIVE_Y,
  9815. FACE_POSITIVE_Z,
  9816. FACE_NEGATIVE_Z,
  9817. };
  9818. enum CullMode
  9819. {
  9820. CULL_NONE,
  9821. CULL_CCW,
  9822. CULL_CW,
  9823. };
  9824. enum CursorShape
  9825. {
  9826. CS_NORMAL,
  9827. CS_RESIZEVERTICAL,
  9828. CS_RESIZEDIAGONAL_TOPRIGHT,
  9829. CS_RESIZEHORIZONTAL,
  9830. CS_RESIZEDIAGONAL_TOPLEFT,
  9831. CS_ACCEPTDROP,
  9832. CS_REJECTDROP,
  9833. CS_BUSY,
  9834. };
  9835. enum CycleMode
  9836. {
  9837. CM_LOOP,
  9838. CM_CLAMP,
  9839. CM_PINGPONG,
  9840. };
  9841. enum DumpMode
  9842. {
  9843. DOXYGEN,
  9844. C_HEADER,
  9845. };
  9846. enum EmitterType
  9847. {
  9848. EMITTER_SPHERE,
  9849. EMITTER_BOX,
  9850. };
  9851. enum EmitterType2D
  9852. {
  9853. EMITTER_TYPE_GRAVITY,
  9854. EMITTER_TYPE_RADIAL,
  9855. };
  9856. enum FileMode
  9857. {
  9858. FILE_READ,
  9859. FILE_WRITE,
  9860. FILE_READWRITE,
  9861. };
  9862. enum FillMode
  9863. {
  9864. FILL_SOLID,
  9865. FILL_WIREFRAME,
  9866. FILL_POINT,
  9867. };
  9868. enum FocusMode
  9869. {
  9870. FM_NOTFOCUSABLE,
  9871. FM_RESETFOCUS,
  9872. FM_FOCUSABLE,
  9873. FM_FOCUSABLE_DEFOCUSABLE,
  9874. };
  9875. enum HighlightMode
  9876. {
  9877. HM_NEVER,
  9878. HM_FOCUS,
  9879. HM_ALWAYS,
  9880. };
  9881. enum HorizontalAlignment
  9882. {
  9883. HA_LEFT,
  9884. HA_CENTER,
  9885. HA_RIGHT,
  9886. };
  9887. enum HttpRequestState
  9888. {
  9889. HTTP_INITIALIZING,
  9890. HTTP_ERROR,
  9891. HTTP_OPEN,
  9892. HTTP_CLOSED,
  9893. };
  9894. enum InterpolationMode
  9895. {
  9896. BEZIER_CURVE,
  9897. };
  9898. enum Intersection
  9899. {
  9900. OUTSIDE,
  9901. INTERSECTS,
  9902. INSIDE,
  9903. };
  9904. enum LayoutMode
  9905. {
  9906. LM_FREE,
  9907. LM_HORIZONTAL,
  9908. LM_VERTICAL,
  9909. };
  9910. enum LightType
  9911. {
  9912. LIGHT_DIRECTIONAL,
  9913. LIGHT_SPOT,
  9914. LIGHT_POINT,
  9915. };
  9916. enum Orientation
  9917. {
  9918. O_HORIZONTAL,
  9919. O_VERTICAL,
  9920. };
  9921. enum PassLightingMode
  9922. {
  9923. LIGHTING_UNLIT,
  9924. LIGHTING_PERVERTEX,
  9925. LIGHTING_PERPIXEL,
  9926. };
  9927. enum PrimitiveType
  9928. {
  9929. TRIANGLE_LIST,
  9930. LINE_LIST,
  9931. };
  9932. enum RayQueryLevel
  9933. {
  9934. RAY_AABB,
  9935. RAY_OBB,
  9936. RAY_TRIANGLE,
  9937. };
  9938. enum RenderCommandSortMode
  9939. {
  9940. SORT_FRONTTOBACK,
  9941. SORT_BACKTOFRONT,
  9942. };
  9943. enum RenderCommandType
  9944. {
  9945. CMD_NONE,
  9946. CMD_CLEAR,
  9947. CMD_SCENEPASS,
  9948. CMD_QUAD,
  9949. CMD_FORWARDLIGHTS,
  9950. CMD_LIGHTVOLUMES,
  9951. };
  9952. enum RenderSurfaceUpdateMode
  9953. {
  9954. SURFACE_MANUALUPDATE,
  9955. SURFACE_UPDATEVISIBLE,
  9956. SURFACE_UPDATEALWAYS,
  9957. };
  9958. enum RenderTargetSizeMode
  9959. {
  9960. SIZE_ABSOLUTE,
  9961. SIZE_RENDERTARGETDIVISOR,
  9962. SIZE_VIEWPORTDIVISOR,
  9963. };
  9964. enum ShapeType
  9965. {
  9966. SHAPE_BOX,
  9967. SHAPE_SPHERE,
  9968. SHAPE_STATICPLANE,
  9969. SHAPE_CYLINDER,
  9970. SHAPE_CAPSULE,
  9971. SHAPE_CONE,
  9972. SHAPE_TRIANGLEMESH,
  9973. SHAPE_CONVEXHULL,
  9974. SHAPE_TERRAIN,
  9975. };
  9976. enum SoundType
  9977. {
  9978. SOUND_EFFECT,
  9979. SOUND_AMBIENT,
  9980. SOUND_VOICE,
  9981. SOUND_MUSIC,
  9982. SOUND_MASTER,
  9983. };
  9984. enum TextEffect
  9985. {
  9986. TE_NONE,
  9987. TE_SHADOW,
  9988. TE_STROKE,
  9989. };
  9990. enum TextureAddressMode
  9991. {
  9992. ADDRESS_WRAP,
  9993. ADDRESS_MIRROR,
  9994. ADDRESS_CLAMP,
  9995. ADDRESS_BORDER,
  9996. };
  9997. enum TextureCoordinate
  9998. {
  9999. COORD_U,
  10000. COORD_V,
  10001. COORD_W,
  10002. };
  10003. enum TextureFilterMode
  10004. {
  10005. FILTER_NEAREST,
  10006. FILTER_BILINEAR,
  10007. FILTER_TRILINEAR,
  10008. FILTER_ANISOTROPIC,
  10009. FILTER_DEFAULT,
  10010. };
  10011. enum TextureUnit
  10012. {
  10013. TU_DIFFUSE,
  10014. TU_NORMAL,
  10015. TU_SPECULAR,
  10016. TU_EMISSIVE,
  10017. TU_ENVIRONMENT,
  10018. TU_LIGHTRAMP,
  10019. TU_LIGHTSHAPE,
  10020. TU_SHADOWMAP,
  10021. TU_FACESELECT,
  10022. TU_INDIRECTION,
  10023. TU_ALBEDOBUFFER,
  10024. TU_NORMALBUFFER,
  10025. TU_DEPTHBUFFER,
  10026. TU_LIGHTBUFFER,
  10027. TU_VOLUMEMAP,
  10028. MAX_MATERIAL_TEXTURE_UNITS,
  10029. MAX_TEXTURE_UNITS,
  10030. };
  10031. enum TextureUsage
  10032. {
  10033. TEXTURE_STATIC,
  10034. TEXTURE_DYNAMIC,
  10035. TEXTURE_RENDERTARGET,
  10036. TEXTURE_DEPTHSTENCIL,
  10037. };
  10038. enum TraversalMode
  10039. {
  10040. TM_BREADTH_FIRST,
  10041. TM_DEPTH_FIRST,
  10042. };
  10043. enum VariantType
  10044. {
  10045. VAR_NONE,
  10046. VAR_INT,
  10047. VAR_BOOL,
  10048. VAR_FLOAT,
  10049. VAR_VECTOR2,
  10050. VAR_VECTOR3,
  10051. VAR_VECTOR4,
  10052. VAR_QUATERNION,
  10053. VAR_COLOR,
  10054. VAR_STRING,
  10055. VAR_BUFFER,
  10056. VAR_VOIDPTR,
  10057. VAR_RESOURCEREF,
  10058. VAR_RESOURCEREFLIST,
  10059. VAR_VARIANTVECTOR,
  10060. VAR_VARIANTMAP,
  10061. VAR_INTRECT,
  10062. VAR_INTVECTOR2,
  10063. VAR_PTR,
  10064. VAR_MATRIX3,
  10065. VAR_MATRIX3X4,
  10066. VAR_MATRIX4,
  10067. };
  10068. enum VerticalAlignment
  10069. {
  10070. VA_TOP,
  10071. VA_CENTER,
  10072. VA_BOTTOM,
  10073. };
  10074. // Global functions
  10075. float Abs(float);
  10076. float Acos(float);
  10077. String AddTrailingSlash(const String&);
  10078. float Asin(float);
  10079. float Atan(float);
  10080. float Atan2(float, float);
  10081. float Ceil(float);
  10082. float Clamp(float, float, float);
  10083. int Clamp(int, int, int);
  10084. void ClearDelayedExecute(const String& = String ( ));
  10085. float Cos(float);
  10086. void DelayedExecute(float, bool, const String&);
  10087. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  10088. bool Equals(float, float);
  10089. void ErrorDialog(const String&, const String&);
  10090. float Floor(float);
  10091. uint GetAlphaFormat();
  10092. Array<String> GetArguments();
  10093. String GetConsoleInput();
  10094. uint GetDepthStencilFormat();
  10095. Object GetEventSender();
  10096. String GetExtension(const String&, bool = true);
  10097. String GetFileName(const String&);
  10098. String GetFileNameAndExtension(const String&, bool = false);
  10099. uint GetFloat16Format();
  10100. uint GetFloat32Format();
  10101. uint GetFormat(const String&);
  10102. String GetInternalPath(const String&);
  10103. uint GetLuminanceAlphaFormat();
  10104. uint GetLuminanceFormat();
  10105. uint GetNumLogicalCPUs();
  10106. uint GetNumPhysicalCPUs();
  10107. Array<String> GetObjectCategories();
  10108. Array<String> GetObjectsByCategory(const String&);
  10109. String GetParentPath(const String&);
  10110. String GetPath(const String&);
  10111. String GetPlatform();
  10112. uint GetRG16Format();
  10113. uint GetRGBA16Format();
  10114. uint GetRGBAFloat16Format();
  10115. uint GetRGBAFloat32Format();
  10116. uint GetRGBAFormat();
  10117. uint GetRGBFormat();
  10118. uint GetRGFloat16Format();
  10119. uint GetRGFloat32Format();
  10120. uint GetRandomSeed();
  10121. String GetTextureUnitName(TextureUnit);
  10122. bool IsAbsolutePath(const String&);
  10123. bool IsAlpha(uint);
  10124. bool IsDigit(uint);
  10125. bool IsNaN(float);
  10126. bool IsPowerOfTwo(uint);
  10127. String Join(Array<String>&, const String&);
  10128. float Lerp(float, float, float);
  10129. void MarkNetworkUpdate();
  10130. float Max(float, float);
  10131. int Max(int, int);
  10132. float Min(float, float);
  10133. int Min(int, int);
  10134. float Mod(float, float);
  10135. uint NextPowerOfTwo(uint);
  10136. void OpenConsoleWindow();
  10137. float Pow(float, float);
  10138. void Print(bool, bool = false);
  10139. void Print(const String&, bool = false);
  10140. void Print(const Variant&, bool = false);
  10141. void Print(float, bool = false);
  10142. void Print(int, bool = false);
  10143. void Print(uint, bool = false);
  10144. void PrintCallStack(bool = false);
  10145. float Random();
  10146. float Random(float);
  10147. float Random(float, float);
  10148. int RandomInt();
  10149. int RandomInt(int);
  10150. int RandomInt(int, int);
  10151. float RandomNormal(float, float);
  10152. void Remove();
  10153. String RemoveTrailingSlash(const String&);
  10154. String ReplaceExtension(const String&, const String&);
  10155. uint SDBMHash(uint, uint8);
  10156. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10157. void SetRandomSeed(uint);
  10158. float Sign(float);
  10159. float Sin(float);
  10160. float SmoothStep(float, float, float);
  10161. float Sqrt(float);
  10162. const String& GetTypeName(ShortStringHash);
  10163. void SubscribeToEvent(Object, const String&, const String&);
  10164. void SubscribeToEvent(const String&, const String&);
  10165. float Tan(float);
  10166. uint ToLower(uint);
  10167. String ToStringHex(int);
  10168. uint ToUpper(uint);
  10169. void UnsubscribeFromAllEvents();
  10170. void UnsubscribeFromAllEventsExcept(Array<String>);
  10171. void UnsubscribeFromEvent(Object, const String&);
  10172. void UnsubscribeFromEvent(const String&);
  10173. void UnsubscribeFromEvents(Object);
  10174. // Global properties
  10175. Audio audio;
  10176. ResourceCache cache;
  10177. Console console;
  10178. DebugHud debugHud;
  10179. DebugRenderer debugRenderer;
  10180. Engine engine;
  10181. FileSystem fileSystem;
  10182. Graphics graphics;
  10183. Input input;
  10184. Log log;
  10185. Network network;
  10186. Node node;
  10187. Octree octree;
  10188. PhysicsWorld physicsWorld;
  10189. PhysicsWorld2D physicsWorld2D;
  10190. Renderer renderer;
  10191. ResourceCache resourceCache;
  10192. Scene scene;
  10193. Script script;
  10194. ScriptFile scriptFile;
  10195. ScriptInstance self;
  10196. Time time;
  10197. UI ui;
  10198. // Global constants
  10199. uint AM_COMPONENTID;
  10200. uint AM_DEFAULT;
  10201. uint AM_FILE;
  10202. uint AM_LATESTDATA;
  10203. uint AM_NET;
  10204. uint AM_NODEID;
  10205. uint AM_NODEIDVECTOR;
  10206. uint AM_NOEDIT;
  10207. int CONTROLLER_AXIS_LEFTX;
  10208. int CONTROLLER_AXIS_LEFTY;
  10209. int CONTROLLER_AXIS_RIGHTX;
  10210. int CONTROLLER_AXIS_RIGHTY;
  10211. int CONTROLLER_AXIS_TRIGGERLEFT;
  10212. int CONTROLLER_AXIS_TRIGGERRIGHT;
  10213. int CONTROLLER_BUTTON_A;
  10214. int CONTROLLER_BUTTON_B;
  10215. int CONTROLLER_BUTTON_BACK;
  10216. int CONTROLLER_BUTTON_DPAD_DOWN;
  10217. int CONTROLLER_BUTTON_DPAD_LEFT;
  10218. int CONTROLLER_BUTTON_DPAD_RIGHT;
  10219. int CONTROLLER_BUTTON_DPAD_UP;
  10220. int CONTROLLER_BUTTON_GUIDE;
  10221. int CONTROLLER_BUTTON_LEFTSHOULDER;
  10222. int CONTROLLER_BUTTON_LEFTSTICK;
  10223. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  10224. int CONTROLLER_BUTTON_RIGHTSTICK;
  10225. int CONTROLLER_BUTTON_START;
  10226. int CONTROLLER_BUTTON_X;
  10227. int CONTROLLER_BUTTON_Y;
  10228. uint DD_DISABLED;
  10229. uint DD_SOURCE;
  10230. uint DD_SOURCE_AND_TARGET;
  10231. uint DD_TARGET;
  10232. uint DEBUGHUD_SHOW_ALL;
  10233. uint DEBUGHUD_SHOW_MODE;
  10234. uint DEBUGHUD_SHOW_NONE;
  10235. uint DEBUGHUD_SHOW_PROFILER;
  10236. uint DEBUGHUD_SHOW_STATS;
  10237. uint DEFAULT_LIGHTMASK;
  10238. uint DEFAULT_VIEWMASK;
  10239. uint DRAWABLE_ANY;
  10240. uint DRAWABLE_GEOMETRY;
  10241. uint DRAWABLE_LIGHT;
  10242. uint DRAWABLE_ZONE;
  10243. uint FIRST_LOCAL_ID;
  10244. uint FIRST_REPLICATED_ID;
  10245. int HAT_CENTER;
  10246. int HAT_DOWN;
  10247. int HAT_LEFT;
  10248. int HAT_RIGHT;
  10249. int HAT_UP;
  10250. int KEY_0;
  10251. int KEY_1;
  10252. int KEY_2;
  10253. int KEY_3;
  10254. int KEY_4;
  10255. int KEY_5;
  10256. int KEY_6;
  10257. int KEY_7;
  10258. int KEY_8;
  10259. int KEY_9;
  10260. int KEY_A;
  10261. int KEY_ALT;
  10262. int KEY_APPLICATION;
  10263. int KEY_B;
  10264. int KEY_BACKSPACE;
  10265. int KEY_C;
  10266. int KEY_CAPSLOCK;
  10267. int KEY_CTRL;
  10268. int KEY_D;
  10269. int KEY_DELETE;
  10270. int KEY_DOWN;
  10271. int KEY_E;
  10272. int KEY_END;
  10273. int KEY_ESC;
  10274. int KEY_F;
  10275. int KEY_F1;
  10276. int KEY_F10;
  10277. int KEY_F11;
  10278. int KEY_F12;
  10279. int KEY_F13;
  10280. int KEY_F14;
  10281. int KEY_F15;
  10282. int KEY_F16;
  10283. int KEY_F17;
  10284. int KEY_F18;
  10285. int KEY_F19;
  10286. int KEY_F2;
  10287. int KEY_F20;
  10288. int KEY_F21;
  10289. int KEY_F22;
  10290. int KEY_F23;
  10291. int KEY_F24;
  10292. int KEY_F3;
  10293. int KEY_F4;
  10294. int KEY_F5;
  10295. int KEY_F6;
  10296. int KEY_F7;
  10297. int KEY_F8;
  10298. int KEY_F9;
  10299. int KEY_G;
  10300. int KEY_GUI;
  10301. int KEY_H;
  10302. int KEY_HOME;
  10303. int KEY_I;
  10304. int KEY_INSERT;
  10305. int KEY_J;
  10306. int KEY_K;
  10307. int KEY_KP_0;
  10308. int KEY_KP_1;
  10309. int KEY_KP_2;
  10310. int KEY_KP_3;
  10311. int KEY_KP_4;
  10312. int KEY_KP_5;
  10313. int KEY_KP_6;
  10314. int KEY_KP_7;
  10315. int KEY_KP_8;
  10316. int KEY_KP_9;
  10317. int KEY_KP_DIVIDE;
  10318. int KEY_KP_ENTER;
  10319. int KEY_KP_MINUS;
  10320. int KEY_KP_MULTIPLY;
  10321. int KEY_KP_PERIOD;
  10322. int KEY_KP_PLUS;
  10323. int KEY_L;
  10324. int KEY_LALT;
  10325. int KEY_LCTRL;
  10326. int KEY_LEFT;
  10327. int KEY_LGUI;
  10328. int KEY_LSHIFT;
  10329. int KEY_M;
  10330. int KEY_N;
  10331. int KEY_NUMLOCKCLEAR;
  10332. int KEY_O;
  10333. int KEY_P;
  10334. int KEY_PAGEDOWN;
  10335. int KEY_PAGEUP;
  10336. int KEY_PAUSE;
  10337. int KEY_PRINTSCREEN;
  10338. int KEY_Q;
  10339. int KEY_R;
  10340. int KEY_RALT;
  10341. int KEY_RCTRL;
  10342. int KEY_RETURN;
  10343. int KEY_RETURN2;
  10344. int KEY_RGUI;
  10345. int KEY_RIGHT;
  10346. int KEY_RSHIFT;
  10347. int KEY_S;
  10348. int KEY_SCROLLLOCK;
  10349. int KEY_SELECT;
  10350. int KEY_SHIFT;
  10351. int KEY_SPACE;
  10352. int KEY_T;
  10353. int KEY_TAB;
  10354. int KEY_U;
  10355. int KEY_UP;
  10356. int KEY_V;
  10357. int KEY_W;
  10358. int KEY_X;
  10359. int KEY_Y;
  10360. int KEY_Z;
  10361. uint LAST_LOCAL_ID;
  10362. uint LAST_REPLICATED_ID;
  10363. int LOG_DEBUG;
  10364. int LOG_ERROR;
  10365. int LOG_INFO;
  10366. int LOG_NONE;
  10367. int LOG_WARNING;
  10368. int MOUSEB_LEFT;
  10369. int MOUSEB_MIDDLE;
  10370. int MOUSEB_RIGHT;
  10371. float M_DEGTORAD;
  10372. float M_DEGTORAD_2;
  10373. float M_EPSILON;
  10374. float M_HALF_PI;
  10375. float M_INFINITY;
  10376. float M_LARGE_EPSILON;
  10377. float M_LARGE_VALUE;
  10378. int M_MAX_INT;
  10379. uint M_MAX_UNSIGNED;
  10380. int M_MIN_INT;
  10381. uint M_MIN_UNSIGNED;
  10382. float M_PI;
  10383. float M_RADTODEG;
  10384. float PIXEL_SIZE;
  10385. int QUALITY_HIGH;
  10386. int QUALITY_LOW;
  10387. int QUALITY_MAX;
  10388. int QUALITY_MEDIUM;
  10389. int QUAL_ALT;
  10390. int QUAL_ANY;
  10391. int QUAL_CTRL;
  10392. int QUAL_SHIFT;
  10393. int SCANCODE_0;
  10394. int SCANCODE_1;
  10395. int SCANCODE_2;
  10396. int SCANCODE_3;
  10397. int SCANCODE_4;
  10398. int SCANCODE_5;
  10399. int SCANCODE_6;
  10400. int SCANCODE_7;
  10401. int SCANCODE_8;
  10402. int SCANCODE_9;
  10403. int SCANCODE_A;
  10404. int SCANCODE_AC_BACK;
  10405. int SCANCODE_AC_BOOKMARKS;
  10406. int SCANCODE_AC_FORWARD;
  10407. int SCANCODE_AC_HOME;
  10408. int SCANCODE_AC_REFRESH;
  10409. int SCANCODE_AC_SEARCH;
  10410. int SCANCODE_AC_STOP;
  10411. int SCANCODE_AGAIN;
  10412. int SCANCODE_ALT;
  10413. int SCANCODE_ALTERASE;
  10414. int SCANCODE_APOSTROPHE;
  10415. int SCANCODE_APP1;
  10416. int SCANCODE_APP2;
  10417. int SCANCODE_APPLICATION;
  10418. int SCANCODE_AUDIOMUTE;
  10419. int SCANCODE_AUDIONEXT;
  10420. int SCANCODE_AUDIOPLAY;
  10421. int SCANCODE_AUDIOPREV;
  10422. int SCANCODE_AUDIOSTOP;
  10423. int SCANCODE_B;
  10424. int SCANCODE_BACKSLASH;
  10425. int SCANCODE_BACKSPACE;
  10426. int SCANCODE_BRIGHTNESSDOWN;
  10427. int SCANCODE_BRIGHTNESSUP;
  10428. int SCANCODE_C;
  10429. int SCANCODE_CALCULATOR;
  10430. int SCANCODE_CANCEL;
  10431. int SCANCODE_CAPSLOCK;
  10432. int SCANCODE_CLEAR;
  10433. int SCANCODE_CLEARAGAIN;
  10434. int SCANCODE_COMMA;
  10435. int SCANCODE_COMPUTER;
  10436. int SCANCODE_COPY;
  10437. int SCANCODE_CRSEL;
  10438. int SCANCODE_CTRL;
  10439. int SCANCODE_CURRENCYSUBUNIT;
  10440. int SCANCODE_CURRENCYUNIT;
  10441. int SCANCODE_CUT;
  10442. int SCANCODE_D;
  10443. int SCANCODE_DECIMALSEPARATOR;
  10444. int SCANCODE_DELETE;
  10445. int SCANCODE_DISPLAYSWITCH;
  10446. int SCANCODE_DOWN;
  10447. int SCANCODE_E;
  10448. int SCANCODE_EJECT;
  10449. int SCANCODE_END;
  10450. int SCANCODE_EQUALS;
  10451. int SCANCODE_ESCAPE;
  10452. int SCANCODE_EXECUTE;
  10453. int SCANCODE_EXSEL;
  10454. int SCANCODE_F;
  10455. int SCANCODE_F1;
  10456. int SCANCODE_F10;
  10457. int SCANCODE_F11;
  10458. int SCANCODE_F12;
  10459. int SCANCODE_F13;
  10460. int SCANCODE_F14;
  10461. int SCANCODE_F15;
  10462. int SCANCODE_F16;
  10463. int SCANCODE_F17;
  10464. int SCANCODE_F18;
  10465. int SCANCODE_F19;
  10466. int SCANCODE_F2;
  10467. int SCANCODE_F20;
  10468. int SCANCODE_F21;
  10469. int SCANCODE_F22;
  10470. int SCANCODE_F23;
  10471. int SCANCODE_F24;
  10472. int SCANCODE_F3;
  10473. int SCANCODE_F4;
  10474. int SCANCODE_F5;
  10475. int SCANCODE_F6;
  10476. int SCANCODE_F7;
  10477. int SCANCODE_F8;
  10478. int SCANCODE_F9;
  10479. int SCANCODE_FIND;
  10480. int SCANCODE_G;
  10481. int SCANCODE_GRAVE;
  10482. int SCANCODE_GUI;
  10483. int SCANCODE_H;
  10484. int SCANCODE_HELP;
  10485. int SCANCODE_HOME;
  10486. int SCANCODE_I;
  10487. int SCANCODE_INSERT;
  10488. int SCANCODE_INTERNATIONAL1;
  10489. int SCANCODE_INTERNATIONAL2;
  10490. int SCANCODE_INTERNATIONAL3;
  10491. int SCANCODE_INTERNATIONAL4;
  10492. int SCANCODE_INTERNATIONAL5;
  10493. int SCANCODE_INTERNATIONAL6;
  10494. int SCANCODE_INTERNATIONAL7;
  10495. int SCANCODE_INTERNATIONAL8;
  10496. int SCANCODE_INTERNATIONAL9;
  10497. int SCANCODE_J;
  10498. int SCANCODE_K;
  10499. int SCANCODE_KBDILLUMDOWN;
  10500. int SCANCODE_KBDILLUMTOGGLE;
  10501. int SCANCODE_KBDILLUMUP;
  10502. int SCANCODE_KP_0;
  10503. int SCANCODE_KP_00;
  10504. int SCANCODE_KP_000;
  10505. int SCANCODE_KP_1;
  10506. int SCANCODE_KP_2;
  10507. int SCANCODE_KP_3;
  10508. int SCANCODE_KP_4;
  10509. int SCANCODE_KP_5;
  10510. int SCANCODE_KP_6;
  10511. int SCANCODE_KP_7;
  10512. int SCANCODE_KP_8;
  10513. int SCANCODE_KP_9;
  10514. int SCANCODE_KP_A;
  10515. int SCANCODE_KP_AMPERSAND;
  10516. int SCANCODE_KP_AT;
  10517. int SCANCODE_KP_B;
  10518. int SCANCODE_KP_BACKSPACE;
  10519. int SCANCODE_KP_BINARY;
  10520. int SCANCODE_KP_C;
  10521. int SCANCODE_KP_CLEAR;
  10522. int SCANCODE_KP_CLEARENTRY;
  10523. int SCANCODE_KP_COLON;
  10524. int SCANCODE_KP_COMMA;
  10525. int SCANCODE_KP_D;
  10526. int SCANCODE_KP_DBLAMPERSAND;
  10527. int SCANCODE_KP_DBLVERTICALBAR;
  10528. int SCANCODE_KP_DECIMAL;
  10529. int SCANCODE_KP_DIVIDE;
  10530. int SCANCODE_KP_E;
  10531. int SCANCODE_KP_ENTER;
  10532. int SCANCODE_KP_EQUALS;
  10533. int SCANCODE_KP_EQUALSAS400;
  10534. int SCANCODE_KP_EXCLAM;
  10535. int SCANCODE_KP_F;
  10536. int SCANCODE_KP_GREATER;
  10537. int SCANCODE_KP_HASH;
  10538. int SCANCODE_KP_HEXADECIMAL;
  10539. int SCANCODE_KP_LEFTBRACE;
  10540. int SCANCODE_KP_LEFTPAREN;
  10541. int SCANCODE_KP_LESS;
  10542. int SCANCODE_KP_MEMADD;
  10543. int SCANCODE_KP_MEMCLEAR;
  10544. int SCANCODE_KP_MEMDIVIDE;
  10545. int SCANCODE_KP_MEMMULTIPLY;
  10546. int SCANCODE_KP_MEMRECALL;
  10547. int SCANCODE_KP_MEMSTORE;
  10548. int SCANCODE_KP_MEMSUBTRACT;
  10549. int SCANCODE_KP_MINUS;
  10550. int SCANCODE_KP_MULTIPLY;
  10551. int SCANCODE_KP_OCTAL;
  10552. int SCANCODE_KP_PERCENT;
  10553. int SCANCODE_KP_PERIOD;
  10554. int SCANCODE_KP_PLUS;
  10555. int SCANCODE_KP_PLUSMINUS;
  10556. int SCANCODE_KP_POWER;
  10557. int SCANCODE_KP_RIGHTBRACE;
  10558. int SCANCODE_KP_RIGHTPAREN;
  10559. int SCANCODE_KP_SPACE;
  10560. int SCANCODE_KP_TAB;
  10561. int SCANCODE_KP_VERTICALBAR;
  10562. int SCANCODE_KP_XOR;
  10563. int SCANCODE_L;
  10564. int SCANCODE_LALT;
  10565. int SCANCODE_LANG1;
  10566. int SCANCODE_LANG2;
  10567. int SCANCODE_LANG3;
  10568. int SCANCODE_LANG4;
  10569. int SCANCODE_LANG5;
  10570. int SCANCODE_LANG6;
  10571. int SCANCODE_LANG7;
  10572. int SCANCODE_LANG8;
  10573. int SCANCODE_LANG9;
  10574. int SCANCODE_LCTRL;
  10575. int SCANCODE_LEFT;
  10576. int SCANCODE_LEFTBRACKET;
  10577. int SCANCODE_LGUI;
  10578. int SCANCODE_LSHIFT;
  10579. int SCANCODE_M;
  10580. int SCANCODE_MAIL;
  10581. int SCANCODE_MEDIASELECT;
  10582. int SCANCODE_MENU;
  10583. int SCANCODE_MINUS;
  10584. int SCANCODE_MODE;
  10585. int SCANCODE_MUTE;
  10586. int SCANCODE_N;
  10587. int SCANCODE_NONUSBACKSLASH;
  10588. int SCANCODE_NONUSHASH;
  10589. int SCANCODE_NUMLOCKCLEAR;
  10590. int SCANCODE_O;
  10591. int SCANCODE_OPER;
  10592. int SCANCODE_OUT;
  10593. int SCANCODE_P;
  10594. int SCANCODE_PAGEDOWN;
  10595. int SCANCODE_PAGEUP;
  10596. int SCANCODE_PASTE;
  10597. int SCANCODE_PAUSE;
  10598. int SCANCODE_PERIOD;
  10599. int SCANCODE_POWER;
  10600. int SCANCODE_PRINTSCREEN;
  10601. int SCANCODE_PRIOR;
  10602. int SCANCODE_Q;
  10603. int SCANCODE_R;
  10604. int SCANCODE_RALT;
  10605. int SCANCODE_RCTRL;
  10606. int SCANCODE_RETURN;
  10607. int SCANCODE_RETURN2;
  10608. int SCANCODE_RGUI;
  10609. int SCANCODE_RIGHT;
  10610. int SCANCODE_RIGHTBRACKET;
  10611. int SCANCODE_RSHIFT;
  10612. int SCANCODE_S;
  10613. int SCANCODE_SCROLLLOCK;
  10614. int SCANCODE_SELECT;
  10615. int SCANCODE_SEMICOLON;
  10616. int SCANCODE_SEPARATOR;
  10617. int SCANCODE_SHIFT;
  10618. int SCANCODE_SLASH;
  10619. int SCANCODE_SLEEP;
  10620. int SCANCODE_SPACE;
  10621. int SCANCODE_STOP;
  10622. int SCANCODE_SYSREQ;
  10623. int SCANCODE_T;
  10624. int SCANCODE_TAB;
  10625. int SCANCODE_THOUSANDSSEPARATOR;
  10626. int SCANCODE_U;
  10627. int SCANCODE_UNDO;
  10628. int SCANCODE_UNKNOWN;
  10629. int SCANCODE_UP;
  10630. int SCANCODE_V;
  10631. int SCANCODE_VOLUMEDOWN;
  10632. int SCANCODE_VOLUMEUP;
  10633. int SCANCODE_W;
  10634. int SCANCODE_WWW;
  10635. int SCANCODE_X;
  10636. int SCANCODE_Y;
  10637. int SCANCODE_Z;
  10638. uint SCAN_DIRS;
  10639. uint SCAN_FILES;
  10640. uint SCAN_HIDDEN;
  10641. int SHADOWQUALITY_HIGH_16BIT;
  10642. int SHADOWQUALITY_HIGH_24BIT;
  10643. int SHADOWQUALITY_LOW_16BIT;
  10644. int SHADOWQUALITY_LOW_24BIT;
  10645. uint VO_DISABLE_OCCLUSION;
  10646. uint VO_DISABLE_SHADOWS;
  10647. uint VO_LOW_MATERIAL_QUALITY;
  10648. uint VO_NONE;