AngelScriptAPI.h 203 KB

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