AngelScriptAPI.h 192 KB

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