AngelScriptAPI.h 197 KB

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