2
0

AngelScriptAPI.h 235 KB

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