AngelScriptAPI.h 194 KB

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