AngelScriptAPI.h 288 KB

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