AngelScriptAPI.h 194 KB

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