AngelScriptAPI.h 288 KB

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