AngelScriptAPI.h 186 KB

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