AngelScriptAPI.h 200 KB

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