AngelScriptAPI.h 279 KB

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