AngelScriptAPI.h 273 KB

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