AngelScriptAPI.h 288 KB

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