AngelScriptAPI.h 203 KB

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