AngelScriptAPI.h 294 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655
  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 Animatable
  11. {
  12. // Methods:
  13. void ApplyAttributes();
  14. Variant GetAttribute(const String&) const;
  15. ValueAnimation GetAttributeAnimation(const String&) const;
  16. float GetAttributeAnimationSpeed(const String&) const;
  17. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18. Variant GetAttributeDefault(const String&) const;
  19. bool Load(File, bool = false);
  20. bool Load(VectorBuffer&, bool = false);
  21. bool LoadXML(const XMLElement&, bool = false);
  22. void MarkNetworkUpdate() const;
  23. void RemoveInstanceDefault();
  24. void ResetToDefault();
  25. bool Save(File) const;
  26. bool Save(VectorBuffer&) const;
  27. bool SaveXML(XMLElement&) const;
  28. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  29. bool SetAttribute(const String&, const Variant&);
  30. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31. void SetAttributeAnimationSpeed(const String&, float);
  32. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33. // Properties:
  34. bool animationEnabled;
  35. /* readonly */
  36. Array<Variant> attributeDefaults;
  37. /* readonly */
  38. Array<AttributeInfo> attributeInfos;
  39. Array<Variant> attributes;
  40. /* readonly */
  41. StringHash baseType;
  42. /* readonly */
  43. String category;
  44. /* readonly */
  45. uint numAttributes;
  46. ObjectAnimation objectAnimation;
  47. /* readonly */
  48. int refs;
  49. bool temporary;
  50. /* readonly */
  51. StringHash type;
  52. /* readonly */
  53. String typeName;
  54. /* readonly */
  55. int weakRefs;
  56. };
  57. class AnimatedModel
  58. {
  59. // Methods:
  60. AnimationState AddAnimationState(Animation);
  61. void ApplyAttributes();
  62. void ApplyMaterialList(const String& = String ( ));
  63. void DrawDebugGeometry(DebugRenderer, bool);
  64. AnimationState GetAnimationState(Animation) const;
  65. AnimationState GetAnimationState(uint) const;
  66. Variant GetAttribute(const String&) const;
  67. ValueAnimation GetAttributeAnimation(const String&) const;
  68. float GetAttributeAnimationSpeed(const String&) const;
  69. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  70. Variant GetAttributeDefault(const String&) const;
  71. float GetMorphWeight(uint) const;
  72. bool IsInView(Camera) const;
  73. bool Load(File, bool = false);
  74. bool Load(VectorBuffer&, bool = false);
  75. bool LoadXML(const XMLElement&, bool = false);
  76. void MarkNetworkUpdate() const;
  77. void Remove();
  78. void RemoveAllAnimationStates();
  79. void RemoveAnimationState(Animation);
  80. void RemoveAnimationState(AnimationState);
  81. void RemoveAnimationState(const String&);
  82. void RemoveAnimationState(uint);
  83. void RemoveInstanceDefault();
  84. void ResetMorphWeights();
  85. void ResetToDefault();
  86. bool Save(File) const;
  87. bool Save(VectorBuffer&) const;
  88. bool SaveXML(XMLElement&) const;
  89. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  90. bool SetAttribute(const String&, const Variant&);
  91. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  92. void SetAttributeAnimationSpeed(const String&, float);
  93. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  94. void SetMorphWeight(uint, float);
  95. // Properties:
  96. bool animationEnabled;
  97. float animationLodBias;
  98. /* readonly */
  99. Array<AnimationState> animationStates;
  100. /* readonly */
  101. Array<Variant> attributeDefaults;
  102. /* readonly */
  103. Array<AttributeInfo> attributeInfos;
  104. Array<Variant> attributes;
  105. /* readonly */
  106. StringHash baseType;
  107. /* readonly */
  108. BoundingBox boundingBox;
  109. bool castShadows;
  110. /* readonly */
  111. String category;
  112. float drawDistance;
  113. bool enabled;
  114. /* readonly */
  115. bool enabledEffective;
  116. /* readonly */
  117. uint id;
  118. /* readonly */
  119. bool inView;
  120. uint lightMask;
  121. float lodBias;
  122. /* writeonly */
  123. Material material;
  124. Array<Material> materials;
  125. uint maxLights;
  126. Model model;
  127. /* readonly */
  128. Array<String> morphNames;
  129. Array<float> morphWeights;
  130. /* readonly */
  131. Node node;
  132. /* readonly */
  133. uint numAnimationStates;
  134. /* readonly */
  135. uint numAttributes;
  136. /* readonly */
  137. uint numGeometries;
  138. /* readonly */
  139. uint numMorphs;
  140. ObjectAnimation objectAnimation;
  141. bool occludee;
  142. bool occluder;
  143. /* readonly */
  144. int refs;
  145. float shadowDistance;
  146. uint shadowMask;
  147. /* readonly */
  148. Skeleton skeleton;
  149. bool temporary;
  150. /* readonly */
  151. StringHash type;
  152. /* readonly */
  153. String typeName;
  154. bool updateInvisible;
  155. uint viewMask;
  156. /* readonly */
  157. int weakRefs;
  158. /* readonly */
  159. BoundingBox worldBoundingBox;
  160. /* readonly */
  161. Zone zone;
  162. uint zoneMask;
  163. };
  164. class AnimatedSprite2D
  165. {
  166. // Methods:
  167. void ApplyAttributes();
  168. void DrawDebugGeometry(DebugRenderer, bool);
  169. Variant GetAttribute(const String&) const;
  170. ValueAnimation GetAttributeAnimation(const String&) const;
  171. float GetAttributeAnimationSpeed(const String&) const;
  172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  173. Variant GetAttributeDefault(const String&) const;
  174. bool IsInView(Camera) const;
  175. bool Load(File, bool = false);
  176. bool Load(VectorBuffer&, bool = false);
  177. bool LoadXML(const XMLElement&, bool = false);
  178. void MarkNetworkUpdate() const;
  179. void Remove();
  180. void RemoveInstanceDefault();
  181. void ResetToDefault();
  182. bool Save(File) const;
  183. bool Save(VectorBuffer&) const;
  184. bool SaveXML(XMLElement&) const;
  185. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  186. void SetAnimation(AnimationSet2D, const String&, LoopMode2D = LM_DEFAULT);
  187. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  188. bool SetAttribute(const String&, const Variant&);
  189. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  190. void SetAttributeAnimationSpeed(const String&, float);
  191. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  192. void SetFlip(bool, bool);
  193. // Properties:
  194. String animation;
  195. bool animationEnabled;
  196. AnimationSet2D animationSet;
  197. /* readonly */
  198. Array<Variant> attributeDefaults;
  199. /* readonly */
  200. Array<AttributeInfo> attributeInfos;
  201. Array<Variant> attributes;
  202. /* readonly */
  203. StringHash baseType;
  204. BlendMode blendMode;
  205. /* readonly */
  206. BoundingBox boundingBox;
  207. bool castShadows;
  208. /* readonly */
  209. String category;
  210. Color color;
  211. float drawDistance;
  212. bool enabled;
  213. /* readonly */
  214. bool enabledEffective;
  215. bool flipX;
  216. bool flipY;
  217. /* readonly */
  218. uint id;
  219. /* readonly */
  220. bool inView;
  221. int layer;
  222. uint lightMask;
  223. float lodBias;
  224. LoopMode2D loopMode;
  225. uint maxLights;
  226. /* readonly */
  227. Node node;
  228. /* readonly */
  229. uint numAttributes;
  230. ObjectAnimation objectAnimation;
  231. bool occludee;
  232. bool occluder;
  233. int orderInLayer;
  234. /* readonly */
  235. int refs;
  236. float shadowDistance;
  237. uint shadowMask;
  238. float speed;
  239. bool temporary;
  240. /* readonly */
  241. StringHash type;
  242. /* readonly */
  243. String typeName;
  244. uint viewMask;
  245. /* readonly */
  246. int weakRefs;
  247. /* readonly */
  248. BoundingBox worldBoundingBox;
  249. uint zoneMask;
  250. };
  251. class Animation
  252. {
  253. // Methods:
  254. void AddTrigger(float, bool, const Variant&);
  255. bool Load(File);
  256. bool Load(VectorBuffer&);
  257. void RemoveAllTriggers();
  258. void RemoveTrigger(uint);
  259. bool Save(File) const;
  260. bool Save(VectorBuffer&) const;
  261. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  262. // Properties:
  263. /* readonly */
  264. String animationName;
  265. /* readonly */
  266. StringHash baseType;
  267. /* readonly */
  268. String category;
  269. /* readonly */
  270. float length;
  271. /* readonly */
  272. uint memoryUse;
  273. String name;
  274. /* readonly */
  275. uint numTracks;
  276. uint numTriggers;
  277. /* readonly */
  278. int refs;
  279. /* readonly */
  280. Array<AnimationTriggerPoint> triggers;
  281. /* readonly */
  282. StringHash type;
  283. /* readonly */
  284. String typeName;
  285. /* readonly */
  286. uint useTimer;
  287. /* readonly */
  288. int weakRefs;
  289. };
  290. class Animation2D
  291. {
  292. // Properties:
  293. /* readonly */
  294. float length;
  295. /* readonly */
  296. bool looped;
  297. /* readonly */
  298. String name;
  299. /* readonly */
  300. int refs;
  301. /* readonly */
  302. int weakRefs;
  303. };
  304. class AnimationController
  305. {
  306. // Methods:
  307. void ApplyAttributes();
  308. void DrawDebugGeometry(DebugRenderer, bool);
  309. bool Fade(const String&, float, float);
  310. bool FadeOthers(const String&, float, float);
  311. AnimationState GetAnimationState(StringHash) const;
  312. AnimationState GetAnimationState(const String&) const;
  313. Variant GetAttribute(const String&) const;
  314. ValueAnimation GetAttributeAnimation(const String&) const;
  315. float GetAttributeAnimationSpeed(const String&) const;
  316. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  317. Variant GetAttributeDefault(const String&) const;
  318. float GetAutoFade(const String&) const;
  319. float GetFadeTarget(const String&) const;
  320. uint8 GetLayer(const String&) const;
  321. float GetLength(const String&) const;
  322. bool GetLooped(const String&) const;
  323. float GetSpeed(const String&) const;
  324. float GetTime(const String&) const;
  325. float GetWeight(const String&) const;
  326. bool IsFadingIn(const String&) const;
  327. bool IsFadingOut(const String&) const;
  328. bool IsPlaying(const String&) const;
  329. bool Load(File, bool = false);
  330. bool Load(VectorBuffer&, bool = false);
  331. bool LoadXML(const XMLElement&, bool = false);
  332. void MarkNetworkUpdate() const;
  333. bool Play(const String&, uint8, bool, float = 0.0f);
  334. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  335. void Remove();
  336. void RemoveInstanceDefault();
  337. void ResetToDefault();
  338. bool Save(File) const;
  339. bool Save(VectorBuffer&) const;
  340. bool SaveXML(XMLElement&) const;
  341. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  342. bool SetAttribute(const String&, const Variant&);
  343. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  344. void SetAttributeAnimationSpeed(const String&, float);
  345. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  346. bool SetAutoFade(const String&, float);
  347. bool SetLayer(const String&, uint8);
  348. bool SetLooped(const String&, bool);
  349. bool SetSpeed(const String&, float);
  350. bool SetStartBone(const String&, const String&);
  351. bool SetTime(const String&, float);
  352. bool SetWeight(const String&, float);
  353. void Stop(const String&, float = 0.0f);
  354. void StopAll(float = 0.0f);
  355. void StopLayer(uint8, float = 0.0f);
  356. const String& GetStartBone(const String&) const;
  357. // Properties:
  358. bool animationEnabled;
  359. /* readonly */
  360. Array<Variant> attributeDefaults;
  361. /* readonly */
  362. Array<AttributeInfo> attributeInfos;
  363. Array<Variant> attributes;
  364. /* readonly */
  365. StringHash baseType;
  366. /* readonly */
  367. String category;
  368. bool enabled;
  369. /* readonly */
  370. bool enabledEffective;
  371. /* readonly */
  372. uint id;
  373. /* readonly */
  374. Node node;
  375. /* readonly */
  376. uint numAttributes;
  377. ObjectAnimation objectAnimation;
  378. /* readonly */
  379. int refs;
  380. bool temporary;
  381. /* readonly */
  382. StringHash type;
  383. /* readonly */
  384. String typeName;
  385. /* readonly */
  386. int weakRefs;
  387. };
  388. class AnimationSet2D
  389. {
  390. // Methods:
  391. Animation2D GetAnimation(const String&) const;
  392. Animation2D GetAnimation(uint) const;
  393. bool Load(File);
  394. bool Load(VectorBuffer&);
  395. bool Save(File) const;
  396. bool Save(VectorBuffer&) const;
  397. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  398. // Properties:
  399. /* readonly */
  400. StringHash baseType;
  401. /* readonly */
  402. String category;
  403. /* readonly */
  404. uint memoryUse;
  405. String name;
  406. /* readonly */
  407. uint numAnimations;
  408. /* readonly */
  409. int refs;
  410. /* readonly */
  411. StringHash type;
  412. /* readonly */
  413. String typeName;
  414. /* readonly */
  415. uint useTimer;
  416. /* readonly */
  417. int weakRefs;
  418. };
  419. class AnimationState
  420. {
  421. // Methods:
  422. void AddTime(float);
  423. void AddWeight(float);
  424. void Apply();
  425. float GetBoneWeight(StringHash) const;
  426. float GetBoneWeight(uint) const;
  427. uint GetTrackIndex(StringHash) const;
  428. uint GetTrackIndex(const String&) const;
  429. void SetBoneWeight(StringHash, float, bool = false);
  430. void SetBoneWeight(const String&, float, bool = false);
  431. void SetBoneWeight(uint, float, bool = false);
  432. // Properties:
  433. /* readonly */
  434. Animation animation;
  435. Array<float> boneWeights;
  436. /* readonly */
  437. bool enabled;
  438. uint8 layer;
  439. /* readonly */
  440. float length;
  441. bool looped;
  442. /* readonly */
  443. AnimatedModel model;
  444. /* readonly */
  445. Node node;
  446. /* readonly */
  447. int refs;
  448. Bone startBone;
  449. float time;
  450. /* readonly */
  451. int weakRefs;
  452. float weight;
  453. };
  454. class AnimationTriggerPoint
  455. {
  456. // Properties:
  457. Variant data;
  458. float time;
  459. };
  460. template <class T> class Array
  461. {
  462. // Methods:
  463. void Clear();
  464. void Erase(uint);
  465. int Find(const T&) const;
  466. int Find(uint, const T&) const;
  467. int FindByRef(const T&) const;
  468. int FindByRef(uint, const T&) const;
  469. void Insert(uint, const T&);
  470. void Pop();
  471. void Push(const T&);
  472. void Reserve(uint);
  473. void Resize(uint);
  474. void Reverse();
  475. void Sort();
  476. void Sort(uint, uint);
  477. void SortReverse();
  478. void SortReverse(uint, uint);
  479. // Properties:
  480. /* readonly */
  481. bool empty;
  482. uint length;
  483. };
  484. class AttributeInfo
  485. {
  486. // Properties:
  487. Variant defaultValue;
  488. /* readonly */
  489. Array<String> enumNames;
  490. uint mode;
  491. String name;
  492. VariantType type;
  493. };
  494. class Audio
  495. {
  496. // Methods:
  497. bool Play();
  498. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  499. void SetMode(int, int, bool, bool = true);
  500. void Stop();
  501. // Properties:
  502. /* readonly */
  503. StringHash baseType;
  504. /* readonly */
  505. String category;
  506. /* readonly */
  507. bool initialized;
  508. /* readonly */
  509. bool interpolation;
  510. SoundListener listener;
  511. Array<float> masterGain;
  512. /* readonly */
  513. int mixRate;
  514. /* readonly */
  515. bool playing;
  516. /* readonly */
  517. int refs;
  518. /* readonly */
  519. uint sampleSize;
  520. /* readonly */
  521. bool stereo;
  522. /* readonly */
  523. StringHash type;
  524. /* readonly */
  525. String typeName;
  526. /* readonly */
  527. int weakRefs;
  528. };
  529. class BiasParameters
  530. {
  531. // Properties:
  532. float constantBias;
  533. float slopeScaledBias;
  534. };
  535. class Billboard
  536. {
  537. // Properties:
  538. Color color;
  539. bool enabled;
  540. Vector3 position;
  541. float rotation;
  542. Vector2 size;
  543. Rect uv;
  544. };
  545. class BillboardSet
  546. {
  547. // Methods:
  548. void ApplyAttributes();
  549. void Commit();
  550. void DrawDebugGeometry(DebugRenderer, bool);
  551. Variant GetAttribute(const String&) const;
  552. ValueAnimation GetAttributeAnimation(const String&) const;
  553. float GetAttributeAnimationSpeed(const String&) const;
  554. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  555. Variant GetAttributeDefault(const String&) const;
  556. bool IsInView(Camera) const;
  557. bool Load(File, bool = false);
  558. bool Load(VectorBuffer&, bool = false);
  559. bool LoadXML(const XMLElement&, bool = false);
  560. void MarkNetworkUpdate() const;
  561. void Remove();
  562. void RemoveInstanceDefault();
  563. void ResetToDefault();
  564. bool Save(File) const;
  565. bool Save(VectorBuffer&) const;
  566. bool SaveXML(XMLElement&) const;
  567. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  568. bool SetAttribute(const String&, const Variant&);
  569. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  570. void SetAttributeAnimationSpeed(const String&, float);
  571. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  572. // Properties:
  573. bool animationEnabled;
  574. float animationLodBias;
  575. /* readonly */
  576. Array<Variant> attributeDefaults;
  577. /* readonly */
  578. Array<AttributeInfo> attributeInfos;
  579. Array<Variant> attributes;
  580. /* readonly */
  581. StringHash baseType;
  582. /* readonly */
  583. Array<Billboard> billboards;
  584. /* readonly */
  585. BoundingBox boundingBox;
  586. bool castShadows;
  587. /* readonly */
  588. String category;
  589. float drawDistance;
  590. bool enabled;
  591. /* readonly */
  592. bool enabledEffective;
  593. FaceCameraMode faceCameraMode;
  594. /* readonly */
  595. uint id;
  596. /* readonly */
  597. bool inView;
  598. uint lightMask;
  599. float lodBias;
  600. Material material;
  601. uint maxLights;
  602. /* readonly */
  603. Node node;
  604. /* readonly */
  605. uint numAttributes;
  606. uint numBillboards;
  607. ObjectAnimation objectAnimation;
  608. bool occludee;
  609. bool occluder;
  610. /* readonly */
  611. int refs;
  612. bool relative;
  613. bool scaled;
  614. float shadowDistance;
  615. uint shadowMask;
  616. bool sorted;
  617. bool temporary;
  618. /* readonly */
  619. StringHash type;
  620. /* readonly */
  621. String typeName;
  622. uint viewMask;
  623. /* readonly */
  624. int weakRefs;
  625. /* readonly */
  626. BoundingBox worldBoundingBox;
  627. /* readonly */
  628. Zone zone;
  629. uint zoneMask;
  630. };
  631. class Bone
  632. {
  633. // Properties:
  634. bool animated;
  635. BoundingBox boundingBox;
  636. Vector3 initialPosition;
  637. Quaternion initialRotation;
  638. Vector3 initialScale;
  639. String name;
  640. Node node;
  641. float radius;
  642. };
  643. class BorderImage
  644. {
  645. // Methods:
  646. void AddChild(UIElement);
  647. void ApplyAttributes();
  648. void BringToFront();
  649. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  650. void DisableLayoutUpdate();
  651. IntVector2 ElementToScreen(const IntVector2&);
  652. void EnableLayoutUpdate();
  653. uint FindChild(UIElement) const;
  654. Variant GetAttribute(const String&) const;
  655. ValueAnimation GetAttributeAnimation(const String&) const;
  656. float GetAttributeAnimationSpeed(const String&) const;
  657. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  658. Variant GetAttributeDefault(const String&) const;
  659. UIElement GetChild(const String&, bool = false) const;
  660. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  661. Array<UIElement> GetChildren(bool = false) const;
  662. UIElement GetElementEventSender() const;
  663. uint GetNumChildren(bool) const;
  664. void InsertChild(uint, UIElement);
  665. bool IsInside(IntVector2, bool);
  666. bool IsInsideCombined(IntVector2, bool);
  667. bool Load(File, bool = false);
  668. bool Load(VectorBuffer&, bool = false);
  669. bool LoadChildXML(XMLFile, XMLFile = null);
  670. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  671. bool LoadXML(File);
  672. bool LoadXML(VectorBuffer&);
  673. bool LoadXML(XMLFile, XMLFile);
  674. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  675. bool LoadXML(const XMLElement&, bool = false);
  676. void MarkNetworkUpdate() const;
  677. void Remove();
  678. void RemoveAllChildren();
  679. void RemoveChild(UIElement, uint = 0);
  680. void RemoveChild(uint);
  681. void RemoveInstanceDefault();
  682. void ResetToDefault();
  683. bool Save(File) const;
  684. bool Save(VectorBuffer&) const;
  685. bool SaveXML(File);
  686. bool SaveXML(VectorBuffer&);
  687. bool SaveXML(XMLElement&) const;
  688. IntVector2 ScreenToElement(const IntVector2&);
  689. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  690. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  691. bool SetAttribute(const String&, const Variant&);
  692. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  693. void SetAttributeAnimationSpeed(const String&, float);
  694. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  695. void SetFixedHeight(int);
  696. void SetFixedSize(int, int);
  697. void SetFixedWidth(int);
  698. void SetFullImageRect();
  699. void SetHoverOffset(int, int);
  700. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  701. void SetMaxSize(int, int);
  702. void SetMinSize(int, int);
  703. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  704. void SetPosition(int, int);
  705. void SetSize(int, int);
  706. bool SetStyle(const String&, XMLFile = null);
  707. bool SetStyle(const XMLElement&);
  708. bool SetStyleAuto(XMLFile = null);
  709. void UpdateLayout();
  710. const Variant& GetVar(const StringHash&);
  711. // Properties:
  712. bool animationEnabled;
  713. /* readonly */
  714. Array<Variant> attributeDefaults;
  715. /* readonly */
  716. Array<AttributeInfo> attributeInfos;
  717. Array<Variant> attributes;
  718. /* readonly */
  719. StringHash baseType;
  720. BlendMode blendMode;
  721. IntRect border;
  722. bool bringToBack;
  723. bool bringToFront;
  724. /* readonly */
  725. String category;
  726. /* readonly */
  727. IntVector2 childOffset;
  728. /* readonly */
  729. Array<UIElement> children;
  730. IntRect clipBorder;
  731. bool clipChildren;
  732. /* writeonly */
  733. Color color;
  734. /* readonly */
  735. bool colorGradient;
  736. Array<Color> colors;
  737. /* readonly */
  738. IntRect combinedScreenRect;
  739. XMLFile defaultStyle;
  740. /* readonly */
  741. float derivedOpacity;
  742. uint dragDropMode;
  743. bool editable;
  744. bool elementEventSender;
  745. bool enabled;
  746. /* readonly */
  747. bool fixedHeight;
  748. /* readonly */
  749. bool fixedSize;
  750. /* readonly */
  751. bool fixedWidth;
  752. bool focus;
  753. FocusMode focusMode;
  754. int height;
  755. HorizontalAlignment horizontalAlignment;
  756. IntVector2 hoverOffset;
  757. /* readonly */
  758. bool hovering;
  759. IntRect imageBorder;
  760. IntRect imageRect;
  761. int indent;
  762. int indentSpacing;
  763. /* readonly */
  764. int indentWidth;
  765. bool internal;
  766. IntRect layoutBorder;
  767. LayoutMode layoutMode;
  768. int layoutSpacing;
  769. int maxHeight;
  770. IntVector2 maxSize;
  771. int maxWidth;
  772. int minHeight;
  773. IntVector2 minSize;
  774. int minWidth;
  775. String name;
  776. /* readonly */
  777. uint numAllChildren;
  778. /* readonly */
  779. uint numAttributes;
  780. /* readonly */
  781. uint numChildren;
  782. ObjectAnimation objectAnimation;
  783. float opacity;
  784. UIElement parent;
  785. IntVector2 position;
  786. int priority;
  787. /* readonly */
  788. int refs;
  789. /* readonly */
  790. UIElement root;
  791. /* readonly */
  792. IntVector2 screenPosition;
  793. bool selected;
  794. IntVector2 size;
  795. bool sortChildren;
  796. String style;
  797. bool temporary;
  798. Texture texture;
  799. bool tiled;
  800. TraversalMode traversalMode;
  801. /* readonly */
  802. StringHash type;
  803. /* readonly */
  804. String typeName;
  805. bool useDerivedOpacity;
  806. /* readonly */
  807. VariantMap vars;
  808. VerticalAlignment verticalAlignment;
  809. bool visible;
  810. /* readonly */
  811. int weakRefs;
  812. int width;
  813. };
  814. class BoundingBox
  815. {
  816. // Methods:
  817. void Clear();
  818. void Clip(const BoundingBox&);
  819. void Define(const BoundingBox&);
  820. void Define(const Frustum&);
  821. void Define(const Polyhedron&);
  822. void Define(const Sphere&);
  823. void Define(const Vector3&);
  824. void Define(const Vector3&, const Vector3&);
  825. void Define(float, float);
  826. Intersection IsInside(const BoundingBox&) const;
  827. Intersection IsInside(const Sphere&) const;
  828. Intersection IsInside(const Vector3&) const;
  829. void Merge(const BoundingBox&);
  830. void Merge(const Frustum&);
  831. void Merge(const Polyhedron&);
  832. void Merge(const Sphere&);
  833. void Merge(const Vector3&);
  834. Rect Projected(const Matrix4&) const;
  835. String ToString() const;
  836. void Transform(const Matrix3&);
  837. void Transform(const Matrix3x4&);
  838. BoundingBox Transformed(const Matrix3&) const;
  839. BoundingBox Transformed(const Matrix3x4&) const;
  840. // Properties:
  841. /* readonly */
  842. Vector3 center;
  843. bool defined;
  844. /* readonly */
  845. Vector3 halfSize;
  846. Vector3 max;
  847. Vector3 min;
  848. /* readonly */
  849. Vector3 size;
  850. };
  851. class Button
  852. {
  853. // Methods:
  854. void AddChild(UIElement);
  855. void ApplyAttributes();
  856. void BringToFront();
  857. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  858. void DisableLayoutUpdate();
  859. IntVector2 ElementToScreen(const IntVector2&);
  860. void EnableLayoutUpdate();
  861. uint FindChild(UIElement) const;
  862. Variant GetAttribute(const String&) const;
  863. ValueAnimation GetAttributeAnimation(const String&) const;
  864. float GetAttributeAnimationSpeed(const String&) const;
  865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  866. Variant GetAttributeDefault(const String&) const;
  867. UIElement GetChild(const String&, bool = false) const;
  868. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  869. Array<UIElement> GetChildren(bool = false) const;
  870. UIElement GetElementEventSender() const;
  871. uint GetNumChildren(bool) const;
  872. void InsertChild(uint, UIElement);
  873. bool IsInside(IntVector2, bool);
  874. bool IsInsideCombined(IntVector2, bool);
  875. bool Load(File, bool = false);
  876. bool Load(VectorBuffer&, bool = false);
  877. bool LoadChildXML(XMLFile, XMLFile = null);
  878. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  879. bool LoadXML(File);
  880. bool LoadXML(VectorBuffer&);
  881. bool LoadXML(XMLFile, XMLFile);
  882. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  883. bool LoadXML(const XMLElement&, bool = false);
  884. void MarkNetworkUpdate() const;
  885. void Remove();
  886. void RemoveAllChildren();
  887. void RemoveChild(UIElement, uint = 0);
  888. void RemoveChild(uint);
  889. void RemoveInstanceDefault();
  890. void ResetToDefault();
  891. bool Save(File) const;
  892. bool Save(VectorBuffer&) const;
  893. bool SaveXML(File);
  894. bool SaveXML(VectorBuffer&);
  895. bool SaveXML(XMLElement&) const;
  896. IntVector2 ScreenToElement(const IntVector2&);
  897. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  898. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  899. bool SetAttribute(const String&, const Variant&);
  900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  901. void SetAttributeAnimationSpeed(const String&, float);
  902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  903. void SetFixedHeight(int);
  904. void SetFixedSize(int, int);
  905. void SetFixedWidth(int);
  906. void SetFullImageRect();
  907. void SetHoverOffset(int, int);
  908. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  909. void SetMaxSize(int, int);
  910. void SetMinSize(int, int);
  911. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  912. void SetPosition(int, int);
  913. void SetPressedChildOffset(int, int);
  914. void SetPressedOffset(int, int);
  915. void SetRepeat(float, float);
  916. void SetSize(int, int);
  917. bool SetStyle(const String&, XMLFile = null);
  918. bool SetStyle(const XMLElement&);
  919. bool SetStyleAuto(XMLFile = null);
  920. void UpdateLayout();
  921. const Variant& GetVar(const StringHash&);
  922. // Properties:
  923. bool animationEnabled;
  924. /* readonly */
  925. Array<Variant> attributeDefaults;
  926. /* readonly */
  927. Array<AttributeInfo> attributeInfos;
  928. Array<Variant> attributes;
  929. /* readonly */
  930. StringHash baseType;
  931. BlendMode blendMode;
  932. IntRect border;
  933. bool bringToBack;
  934. bool bringToFront;
  935. /* readonly */
  936. String category;
  937. /* readonly */
  938. IntVector2 childOffset;
  939. /* readonly */
  940. Array<UIElement> children;
  941. IntRect clipBorder;
  942. bool clipChildren;
  943. /* writeonly */
  944. Color color;
  945. /* readonly */
  946. bool colorGradient;
  947. Array<Color> colors;
  948. /* readonly */
  949. IntRect combinedScreenRect;
  950. XMLFile defaultStyle;
  951. /* readonly */
  952. float derivedOpacity;
  953. uint dragDropMode;
  954. bool editable;
  955. bool elementEventSender;
  956. bool enabled;
  957. /* readonly */
  958. bool fixedHeight;
  959. /* readonly */
  960. bool fixedSize;
  961. /* readonly */
  962. bool fixedWidth;
  963. bool focus;
  964. FocusMode focusMode;
  965. int height;
  966. HorizontalAlignment horizontalAlignment;
  967. IntVector2 hoverOffset;
  968. /* readonly */
  969. bool hovering;
  970. IntRect imageBorder;
  971. IntRect imageRect;
  972. int indent;
  973. int indentSpacing;
  974. /* readonly */
  975. int indentWidth;
  976. bool internal;
  977. IntRect layoutBorder;
  978. LayoutMode layoutMode;
  979. int layoutSpacing;
  980. int maxHeight;
  981. IntVector2 maxSize;
  982. int maxWidth;
  983. int minHeight;
  984. IntVector2 minSize;
  985. int minWidth;
  986. String name;
  987. /* readonly */
  988. uint numAllChildren;
  989. /* readonly */
  990. uint numAttributes;
  991. /* readonly */
  992. uint numChildren;
  993. ObjectAnimation objectAnimation;
  994. float opacity;
  995. UIElement parent;
  996. IntVector2 position;
  997. /* readonly */
  998. bool pressed;
  999. IntVector2 pressedChildOffset;
  1000. IntVector2 pressedOffset;
  1001. int priority;
  1002. /* readonly */
  1003. int refs;
  1004. float repeatDelay;
  1005. float repeatRate;
  1006. /* readonly */
  1007. UIElement root;
  1008. /* readonly */
  1009. IntVector2 screenPosition;
  1010. bool selected;
  1011. IntVector2 size;
  1012. bool sortChildren;
  1013. String style;
  1014. bool temporary;
  1015. Texture texture;
  1016. bool tiled;
  1017. TraversalMode traversalMode;
  1018. /* readonly */
  1019. StringHash type;
  1020. /* readonly */
  1021. String typeName;
  1022. bool useDerivedOpacity;
  1023. /* readonly */
  1024. VariantMap vars;
  1025. VerticalAlignment verticalAlignment;
  1026. bool visible;
  1027. /* readonly */
  1028. int weakRefs;
  1029. int width;
  1030. };
  1031. class Camera
  1032. {
  1033. // Methods:
  1034. void ApplyAttributes();
  1035. void DrawDebugGeometry(DebugRenderer, bool);
  1036. Variant GetAttribute(const String&) const;
  1037. ValueAnimation GetAttributeAnimation(const String&) const;
  1038. float GetAttributeAnimationSpeed(const String&) const;
  1039. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1040. Variant GetAttributeDefault(const String&) const;
  1041. float GetDistance(const Vector3&) const;
  1042. float GetDistanceSquared(const Vector3&) const;
  1043. Ray GetScreenRay(float, float) const;
  1044. Frustum GetSplitFrustum(float, float) const;
  1045. bool Load(File, bool = false);
  1046. bool Load(VectorBuffer&, 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 Save(VectorBuffer&) const;
  1054. bool SaveXML(XMLElement&) const;
  1055. Vector3 ScreenToWorldPoint(const Vector3&) const;
  1056. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1057. bool SetAttribute(const String&, const Variant&);
  1058. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1059. void SetAttributeAnimationSpeed(const String&, float);
  1060. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1061. void SetOrthoSize(const Vector2&);
  1062. Vector2 WorldToScreenPoint(const Vector3&) const;
  1063. // Properties:
  1064. bool animationEnabled;
  1065. float aspectRatio;
  1066. /* readonly */
  1067. Array<Variant> attributeDefaults;
  1068. /* readonly */
  1069. Array<AttributeInfo> attributeInfos;
  1070. Array<Variant> attributes;
  1071. bool autoAspectRatio;
  1072. /* readonly */
  1073. StringHash baseType;
  1074. /* readonly */
  1075. String category;
  1076. Plane clipPlane;
  1077. /* readonly */
  1078. Matrix3x4 effectiveWorldTransform;
  1079. bool enabled;
  1080. /* readonly */
  1081. bool enabledEffective;
  1082. float farClip;
  1083. FillMode fillMode;
  1084. float fov;
  1085. /* readonly */
  1086. Frustum frustum;
  1087. /* readonly */
  1088. float halfViewSize;
  1089. /* readonly */
  1090. uint id;
  1091. float lodBias;
  1092. float nearClip;
  1093. /* readonly */
  1094. Node node;
  1095. /* readonly */
  1096. uint numAttributes;
  1097. ObjectAnimation objectAnimation;
  1098. float orthoSize;
  1099. bool orthographic;
  1100. /* readonly */
  1101. Matrix4 projection;
  1102. Vector2 projectionOffset;
  1103. Plane reflectionPlane;
  1104. /* readonly */
  1105. int refs;
  1106. bool temporary;
  1107. /* readonly */
  1108. StringHash type;
  1109. /* readonly */
  1110. String typeName;
  1111. bool useClipping;
  1112. bool useReflection;
  1113. /* readonly */
  1114. Matrix3x4 view;
  1115. uint viewMask;
  1116. uint viewOverrideFlags;
  1117. /* readonly */
  1118. Frustum viewSpaceFrustum;
  1119. /* readonly */
  1120. int weakRefs;
  1121. float zoom;
  1122. };
  1123. class CascadeParameters
  1124. {
  1125. // Properties:
  1126. float biasAutoAdjust;
  1127. float fadeStart;
  1128. float split1;
  1129. float split2;
  1130. float split3;
  1131. float split4;
  1132. };
  1133. class CheckBox
  1134. {
  1135. // Methods:
  1136. void AddChild(UIElement);
  1137. void ApplyAttributes();
  1138. void BringToFront();
  1139. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  1140. void DisableLayoutUpdate();
  1141. IntVector2 ElementToScreen(const IntVector2&);
  1142. void EnableLayoutUpdate();
  1143. uint FindChild(UIElement) const;
  1144. Variant GetAttribute(const String&) const;
  1145. ValueAnimation GetAttributeAnimation(const String&) const;
  1146. float GetAttributeAnimationSpeed(const String&) const;
  1147. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1148. Variant GetAttributeDefault(const String&) const;
  1149. UIElement GetChild(const String&, bool = false) const;
  1150. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  1151. Array<UIElement> GetChildren(bool = false) const;
  1152. UIElement GetElementEventSender() const;
  1153. uint GetNumChildren(bool) const;
  1154. void InsertChild(uint, UIElement);
  1155. bool IsInside(IntVector2, bool);
  1156. bool IsInsideCombined(IntVector2, bool);
  1157. bool Load(File, bool = false);
  1158. bool Load(VectorBuffer&, bool = false);
  1159. bool LoadChildXML(XMLFile, XMLFile = null);
  1160. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  1161. bool LoadXML(File);
  1162. bool LoadXML(VectorBuffer&);
  1163. bool LoadXML(XMLFile, XMLFile);
  1164. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  1165. bool LoadXML(const XMLElement&, bool = false);
  1166. void MarkNetworkUpdate() const;
  1167. void Remove();
  1168. void RemoveAllChildren();
  1169. void RemoveChild(UIElement, uint = 0);
  1170. void RemoveChild(uint);
  1171. void RemoveInstanceDefault();
  1172. void ResetToDefault();
  1173. bool Save(File) const;
  1174. bool Save(VectorBuffer&) const;
  1175. bool SaveXML(File);
  1176. bool SaveXML(VectorBuffer&);
  1177. bool SaveXML(XMLElement&) const;
  1178. IntVector2 ScreenToElement(const IntVector2&);
  1179. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1180. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  1181. bool SetAttribute(const String&, const Variant&);
  1182. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1183. void SetAttributeAnimationSpeed(const String&, float);
  1184. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1185. void SetCheckedOffset(int, int);
  1186. void SetFixedHeight(int);
  1187. void SetFixedSize(int, int);
  1188. void SetFixedWidth(int);
  1189. void SetFullImageRect();
  1190. void SetHoverOffset(int, int);
  1191. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  1192. void SetMaxSize(int, int);
  1193. void SetMinSize(int, int);
  1194. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  1195. void SetPosition(int, int);
  1196. void SetSize(int, int);
  1197. bool SetStyle(const String&, XMLFile = null);
  1198. bool SetStyle(const XMLElement&);
  1199. bool SetStyleAuto(XMLFile = null);
  1200. void UpdateLayout();
  1201. const Variant& GetVar(const StringHash&);
  1202. // Properties:
  1203. bool animationEnabled;
  1204. /* readonly */
  1205. Array<Variant> attributeDefaults;
  1206. /* readonly */
  1207. Array<AttributeInfo> attributeInfos;
  1208. Array<Variant> attributes;
  1209. /* readonly */
  1210. StringHash baseType;
  1211. BlendMode blendMode;
  1212. IntRect border;
  1213. bool bringToBack;
  1214. bool bringToFront;
  1215. /* readonly */
  1216. String category;
  1217. bool checked;
  1218. IntVector2 checkedOffset;
  1219. /* readonly */
  1220. IntVector2 childOffset;
  1221. /* readonly */
  1222. Array<UIElement> children;
  1223. IntRect clipBorder;
  1224. bool clipChildren;
  1225. /* writeonly */
  1226. Color color;
  1227. /* readonly */
  1228. bool colorGradient;
  1229. Array<Color> colors;
  1230. /* readonly */
  1231. IntRect combinedScreenRect;
  1232. XMLFile defaultStyle;
  1233. /* readonly */
  1234. float derivedOpacity;
  1235. uint dragDropMode;
  1236. bool editable;
  1237. bool elementEventSender;
  1238. bool enabled;
  1239. /* readonly */
  1240. bool fixedHeight;
  1241. /* readonly */
  1242. bool fixedSize;
  1243. /* readonly */
  1244. bool fixedWidth;
  1245. bool focus;
  1246. FocusMode focusMode;
  1247. int height;
  1248. HorizontalAlignment horizontalAlignment;
  1249. IntVector2 hoverOffset;
  1250. /* readonly */
  1251. bool hovering;
  1252. IntRect imageBorder;
  1253. IntRect imageRect;
  1254. int indent;
  1255. int indentSpacing;
  1256. /* readonly */
  1257. int indentWidth;
  1258. bool internal;
  1259. IntRect layoutBorder;
  1260. LayoutMode layoutMode;
  1261. int layoutSpacing;
  1262. int maxHeight;
  1263. IntVector2 maxSize;
  1264. int maxWidth;
  1265. int minHeight;
  1266. IntVector2 minSize;
  1267. int minWidth;
  1268. String name;
  1269. /* readonly */
  1270. uint numAllChildren;
  1271. /* readonly */
  1272. uint numAttributes;
  1273. /* readonly */
  1274. uint numChildren;
  1275. ObjectAnimation objectAnimation;
  1276. float opacity;
  1277. UIElement parent;
  1278. IntVector2 position;
  1279. int priority;
  1280. /* readonly */
  1281. int refs;
  1282. /* readonly */
  1283. UIElement root;
  1284. /* readonly */
  1285. IntVector2 screenPosition;
  1286. bool selected;
  1287. IntVector2 size;
  1288. bool sortChildren;
  1289. String style;
  1290. bool temporary;
  1291. Texture texture;
  1292. bool tiled;
  1293. TraversalMode traversalMode;
  1294. /* readonly */
  1295. StringHash type;
  1296. /* readonly */
  1297. String typeName;
  1298. bool useDerivedOpacity;
  1299. /* readonly */
  1300. VariantMap vars;
  1301. VerticalAlignment verticalAlignment;
  1302. bool visible;
  1303. /* readonly */
  1304. int weakRefs;
  1305. int width;
  1306. };
  1307. class CollisionBox2D
  1308. {
  1309. // Methods:
  1310. void ApplyAttributes();
  1311. void DrawDebugGeometry(DebugRenderer, bool);
  1312. Variant GetAttribute(const String&) const;
  1313. ValueAnimation GetAttributeAnimation(const String&) const;
  1314. float GetAttributeAnimationSpeed(const String&) const;
  1315. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1316. Variant GetAttributeDefault(const String&) const;
  1317. bool Load(File, bool = false);
  1318. bool Load(VectorBuffer&, bool = false);
  1319. bool LoadXML(const XMLElement&, bool = false);
  1320. void MarkNetworkUpdate() const;
  1321. void Remove();
  1322. void RemoveInstanceDefault();
  1323. void ResetToDefault();
  1324. bool Save(File) const;
  1325. bool Save(VectorBuffer&) const;
  1326. bool SaveXML(XMLElement&) const;
  1327. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1328. bool SetAttribute(const String&, const Variant&);
  1329. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1330. void SetAttributeAnimationSpeed(const String&, float);
  1331. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1332. void SetCenter(float, float);
  1333. void SetSize(float, float);
  1334. // Properties:
  1335. float angle;
  1336. bool animationEnabled;
  1337. /* readonly */
  1338. Array<Variant> attributeDefaults;
  1339. /* readonly */
  1340. Array<AttributeInfo> attributeInfos;
  1341. Array<Variant> attributes;
  1342. /* readonly */
  1343. StringHash baseType;
  1344. /* readonly */
  1345. String category;
  1346. int categoryBits;
  1347. Vector2 center;
  1348. float density;
  1349. bool enabled;
  1350. /* readonly */
  1351. bool enabledEffective;
  1352. float friction;
  1353. int groupIndex;
  1354. /* readonly */
  1355. uint id;
  1356. /* readonly */
  1357. float inertia;
  1358. int maskBits;
  1359. /* readonly */
  1360. float mass;
  1361. /* readonly */
  1362. Vector2 massCenter;
  1363. /* readonly */
  1364. Node node;
  1365. /* readonly */
  1366. uint numAttributes;
  1367. ObjectAnimation objectAnimation;
  1368. /* readonly */
  1369. int refs;
  1370. float restitution;
  1371. Vector2 size;
  1372. bool temporary;
  1373. bool trigger;
  1374. /* readonly */
  1375. StringHash type;
  1376. /* readonly */
  1377. String typeName;
  1378. /* readonly */
  1379. int weakRefs;
  1380. };
  1381. class CollisionChain2D
  1382. {
  1383. // Methods:
  1384. void ApplyAttributes();
  1385. void DrawDebugGeometry(DebugRenderer, bool);
  1386. Variant GetAttribute(const String&) const;
  1387. ValueAnimation GetAttributeAnimation(const String&) const;
  1388. float GetAttributeAnimationSpeed(const String&) const;
  1389. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1390. Variant GetAttributeDefault(const String&) const;
  1391. Array<Vector2> GetVertices() const;
  1392. bool Load(File, bool = false);
  1393. bool Load(VectorBuffer&, bool = false);
  1394. bool LoadXML(const XMLElement&, bool = false);
  1395. void MarkNetworkUpdate() const;
  1396. void Remove();
  1397. void RemoveInstanceDefault();
  1398. void ResetToDefault();
  1399. bool Save(File) const;
  1400. bool Save(VectorBuffer&) const;
  1401. bool SaveXML(XMLElement&) const;
  1402. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1403. bool SetAttribute(const String&, const Variant&);
  1404. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1405. void SetAttributeAnimationSpeed(const String&, float);
  1406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1407. void SetVertex(uint, const Vector2&);
  1408. void SetVertices(Array<Vector2>);
  1409. const Vector2& GetVertex(uint) const;
  1410. // Properties:
  1411. bool animationEnabled;
  1412. /* readonly */
  1413. Array<Variant> attributeDefaults;
  1414. /* readonly */
  1415. Array<AttributeInfo> attributeInfos;
  1416. Array<Variant> attributes;
  1417. /* readonly */
  1418. StringHash baseType;
  1419. /* readonly */
  1420. String category;
  1421. int categoryBits;
  1422. float density;
  1423. bool enabled;
  1424. /* readonly */
  1425. bool enabledEffective;
  1426. float friction;
  1427. int groupIndex;
  1428. /* readonly */
  1429. uint id;
  1430. /* readonly */
  1431. float inertia;
  1432. bool loop;
  1433. int maskBits;
  1434. /* readonly */
  1435. float mass;
  1436. /* readonly */
  1437. Vector2 massCenter;
  1438. /* readonly */
  1439. Node node;
  1440. /* readonly */
  1441. uint numAttributes;
  1442. ObjectAnimation objectAnimation;
  1443. /* readonly */
  1444. int refs;
  1445. float restitution;
  1446. bool temporary;
  1447. bool trigger;
  1448. /* readonly */
  1449. StringHash type;
  1450. /* readonly */
  1451. String typeName;
  1452. uint vertexCount;
  1453. /* readonly */
  1454. int weakRefs;
  1455. };
  1456. class CollisionCircle2D
  1457. {
  1458. // Methods:
  1459. void ApplyAttributes();
  1460. void DrawDebugGeometry(DebugRenderer, bool);
  1461. Variant GetAttribute(const String&) const;
  1462. ValueAnimation GetAttributeAnimation(const String&) const;
  1463. float GetAttributeAnimationSpeed(const String&) const;
  1464. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1465. Variant GetAttributeDefault(const String&) const;
  1466. bool Load(File, bool = false);
  1467. bool Load(VectorBuffer&, bool = false);
  1468. bool LoadXML(const XMLElement&, bool = false);
  1469. void MarkNetworkUpdate() const;
  1470. void Remove();
  1471. void RemoveInstanceDefault();
  1472. void ResetToDefault();
  1473. bool Save(File) const;
  1474. bool Save(VectorBuffer&) const;
  1475. bool SaveXML(XMLElement&) const;
  1476. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1477. bool SetAttribute(const String&, const Variant&);
  1478. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1479. void SetAttributeAnimationSpeed(const String&, float);
  1480. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1481. void SetCenter(float, float);
  1482. // Properties:
  1483. bool animationEnabled;
  1484. /* readonly */
  1485. Array<Variant> attributeDefaults;
  1486. /* readonly */
  1487. Array<AttributeInfo> attributeInfos;
  1488. Array<Variant> attributes;
  1489. /* readonly */
  1490. StringHash baseType;
  1491. /* readonly */
  1492. String category;
  1493. int categoryBits;
  1494. Vector2 center;
  1495. float density;
  1496. bool enabled;
  1497. /* readonly */
  1498. bool enabledEffective;
  1499. float friction;
  1500. int groupIndex;
  1501. /* readonly */
  1502. uint id;
  1503. /* readonly */
  1504. float inertia;
  1505. int maskBits;
  1506. /* readonly */
  1507. float mass;
  1508. /* readonly */
  1509. Vector2 massCenter;
  1510. /* readonly */
  1511. Node node;
  1512. /* readonly */
  1513. uint numAttributes;
  1514. ObjectAnimation objectAnimation;
  1515. float radius;
  1516. /* readonly */
  1517. int refs;
  1518. float restitution;
  1519. bool temporary;
  1520. bool trigger;
  1521. /* readonly */
  1522. StringHash type;
  1523. /* readonly */
  1524. String typeName;
  1525. /* readonly */
  1526. int weakRefs;
  1527. };
  1528. class CollisionEdge2D
  1529. {
  1530. // Methods:
  1531. void ApplyAttributes();
  1532. void DrawDebugGeometry(DebugRenderer, bool);
  1533. Variant GetAttribute(const String&) const;
  1534. ValueAnimation GetAttributeAnimation(const String&) const;
  1535. float GetAttributeAnimationSpeed(const String&) const;
  1536. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1537. Variant GetAttributeDefault(const String&) const;
  1538. bool Load(File, bool = false);
  1539. bool Load(VectorBuffer&, bool = false);
  1540. bool LoadXML(const XMLElement&, bool = false);
  1541. void MarkNetworkUpdate() const;
  1542. void Remove();
  1543. void RemoveInstanceDefault();
  1544. void ResetToDefault();
  1545. bool Save(File) const;
  1546. bool Save(VectorBuffer&) const;
  1547. bool SaveXML(XMLElement&) const;
  1548. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1549. bool SetAttribute(const String&, const Variant&);
  1550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1551. void SetAttributeAnimationSpeed(const String&, float);
  1552. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1553. void SetVertices(const Vector2&, const Vector2&);
  1554. // Properties:
  1555. bool animationEnabled;
  1556. /* readonly */
  1557. Array<Variant> attributeDefaults;
  1558. /* readonly */
  1559. Array<AttributeInfo> attributeInfos;
  1560. Array<Variant> attributes;
  1561. /* readonly */
  1562. StringHash baseType;
  1563. /* readonly */
  1564. String category;
  1565. int categoryBits;
  1566. float density;
  1567. bool enabled;
  1568. /* readonly */
  1569. bool enabledEffective;
  1570. float friction;
  1571. int groupIndex;
  1572. /* readonly */
  1573. uint id;
  1574. /* readonly */
  1575. float inertia;
  1576. int maskBits;
  1577. /* readonly */
  1578. float mass;
  1579. /* readonly */
  1580. Vector2 massCenter;
  1581. /* readonly */
  1582. Node node;
  1583. /* readonly */
  1584. uint numAttributes;
  1585. ObjectAnimation objectAnimation;
  1586. /* readonly */
  1587. int refs;
  1588. float restitution;
  1589. bool temporary;
  1590. bool trigger;
  1591. /* readonly */
  1592. StringHash type;
  1593. /* readonly */
  1594. String typeName;
  1595. Vector2 vertex1;
  1596. Vector2 vertex2;
  1597. /* readonly */
  1598. int weakRefs;
  1599. };
  1600. class CollisionPolygon2D
  1601. {
  1602. // Methods:
  1603. void ApplyAttributes();
  1604. void DrawDebugGeometry(DebugRenderer, bool);
  1605. Variant GetAttribute(const String&) const;
  1606. ValueAnimation GetAttributeAnimation(const String&) const;
  1607. float GetAttributeAnimationSpeed(const String&) const;
  1608. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1609. Variant GetAttributeDefault(const String&) const;
  1610. Array<Vector2> GetVertices() const;
  1611. bool Load(File, bool = false);
  1612. bool Load(VectorBuffer&, bool = false);
  1613. bool LoadXML(const XMLElement&, bool = false);
  1614. void MarkNetworkUpdate() const;
  1615. void Remove();
  1616. void RemoveInstanceDefault();
  1617. void ResetToDefault();
  1618. bool Save(File) const;
  1619. bool Save(VectorBuffer&) const;
  1620. bool SaveXML(XMLElement&) const;
  1621. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1622. bool SetAttribute(const String&, const Variant&);
  1623. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1624. void SetAttributeAnimationSpeed(const String&, float);
  1625. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1626. void SetVertex(uint, const Vector2&);
  1627. void SetVertices(Array<Vector2>);
  1628. const Vector2& GetVertex(uint) const;
  1629. // Properties:
  1630. bool animationEnabled;
  1631. /* readonly */
  1632. Array<Variant> attributeDefaults;
  1633. /* readonly */
  1634. Array<AttributeInfo> attributeInfos;
  1635. Array<Variant> attributes;
  1636. /* readonly */
  1637. StringHash baseType;
  1638. /* readonly */
  1639. String category;
  1640. int categoryBits;
  1641. float density;
  1642. bool enabled;
  1643. /* readonly */
  1644. bool enabledEffective;
  1645. float friction;
  1646. int groupIndex;
  1647. /* readonly */
  1648. uint id;
  1649. /* readonly */
  1650. float inertia;
  1651. int maskBits;
  1652. /* readonly */
  1653. float mass;
  1654. /* readonly */
  1655. Vector2 massCenter;
  1656. /* readonly */
  1657. Node node;
  1658. /* readonly */
  1659. uint numAttributes;
  1660. ObjectAnimation objectAnimation;
  1661. /* readonly */
  1662. int refs;
  1663. float restitution;
  1664. bool temporary;
  1665. bool trigger;
  1666. /* readonly */
  1667. StringHash type;
  1668. /* readonly */
  1669. String typeName;
  1670. uint vertexCount;
  1671. /* readonly */
  1672. int weakRefs;
  1673. };
  1674. class CollisionShape
  1675. {
  1676. // Methods:
  1677. void ApplyAttributes();
  1678. void DrawDebugGeometry(DebugRenderer, bool);
  1679. Variant GetAttribute(const String&) const;
  1680. ValueAnimation GetAttributeAnimation(const String&) const;
  1681. float GetAttributeAnimationSpeed(const String&) const;
  1682. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1683. Variant GetAttributeDefault(const String&) const;
  1684. bool Load(File, bool = false);
  1685. bool Load(VectorBuffer&, bool = false);
  1686. bool LoadXML(const XMLElement&, bool = false);
  1687. void MarkNetworkUpdate() const;
  1688. void Remove();
  1689. void RemoveInstanceDefault();
  1690. void ResetToDefault();
  1691. bool Save(File) const;
  1692. bool Save(VectorBuffer&) const;
  1693. bool SaveXML(XMLElement&) const;
  1694. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1695. bool SetAttribute(const String&, const Variant&);
  1696. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1697. void SetAttributeAnimationSpeed(const String&, float);
  1698. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1699. void SetBox(const Vector3&, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1700. void SetCapsule(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1701. void SetCone(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1702. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1703. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1704. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1705. void SetCylinder(float, float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1706. void SetSphere(float, const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1707. void SetStaticPlane(const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1708. void SetTerrain();
  1709. void SetTransform(const Vector3&, const Quaternion&);
  1710. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 ( 1 , 1 , 1 ), const Vector3& = Vector3 ( ), const Quaternion& = Quaternion ( ));
  1711. // Properties:
  1712. bool animationEnabled;
  1713. /* readonly */
  1714. Array<Variant> attributeDefaults;
  1715. /* readonly */
  1716. Array<AttributeInfo> attributeInfos;
  1717. Array<Variant> attributes;
  1718. /* readonly */
  1719. StringHash baseType;
  1720. /* readonly */
  1721. String category;
  1722. bool enabled;
  1723. /* readonly */
  1724. bool enabledEffective;
  1725. /* readonly */
  1726. uint id;
  1727. uint lodLevel;
  1728. float margin;
  1729. Model model;
  1730. /* readonly */
  1731. Node node;
  1732. /* readonly */
  1733. uint numAttributes;
  1734. ObjectAnimation objectAnimation;
  1735. Vector3 position;
  1736. /* readonly */
  1737. int refs;
  1738. Quaternion rotation;
  1739. ShapeType shapeType;
  1740. Vector3 size;
  1741. bool temporary;
  1742. /* readonly */
  1743. StringHash type;
  1744. /* readonly */
  1745. String typeName;
  1746. /* readonly */
  1747. int weakRefs;
  1748. /* readonly */
  1749. BoundingBox worldBoundingBox;
  1750. };
  1751. class CollisionShape2D
  1752. {
  1753. // Methods:
  1754. void ApplyAttributes();
  1755. void DrawDebugGeometry(DebugRenderer, bool);
  1756. Variant GetAttribute(const String&) const;
  1757. ValueAnimation GetAttributeAnimation(const String&) const;
  1758. float GetAttributeAnimationSpeed(const String&) const;
  1759. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1760. Variant GetAttributeDefault(const String&) const;
  1761. bool Load(File, bool = false);
  1762. bool Load(VectorBuffer&, bool = false);
  1763. bool LoadXML(const XMLElement&, bool = false);
  1764. void MarkNetworkUpdate() const;
  1765. void Remove();
  1766. void RemoveInstanceDefault();
  1767. void ResetToDefault();
  1768. bool Save(File) const;
  1769. bool Save(VectorBuffer&) const;
  1770. bool SaveXML(XMLElement&) const;
  1771. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1772. bool SetAttribute(const String&, const Variant&);
  1773. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1774. void SetAttributeAnimationSpeed(const String&, float);
  1775. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1776. // Properties:
  1777. bool animationEnabled;
  1778. /* readonly */
  1779. Array<Variant> attributeDefaults;
  1780. /* readonly */
  1781. Array<AttributeInfo> attributeInfos;
  1782. Array<Variant> attributes;
  1783. /* readonly */
  1784. StringHash baseType;
  1785. /* readonly */
  1786. String category;
  1787. int categoryBits;
  1788. float density;
  1789. bool enabled;
  1790. /* readonly */
  1791. bool enabledEffective;
  1792. float friction;
  1793. int groupIndex;
  1794. /* readonly */
  1795. uint id;
  1796. /* readonly */
  1797. float inertia;
  1798. int maskBits;
  1799. /* readonly */
  1800. float mass;
  1801. /* readonly */
  1802. Vector2 massCenter;
  1803. /* readonly */
  1804. Node node;
  1805. /* readonly */
  1806. uint numAttributes;
  1807. ObjectAnimation objectAnimation;
  1808. /* readonly */
  1809. int refs;
  1810. float restitution;
  1811. bool temporary;
  1812. bool trigger;
  1813. /* readonly */
  1814. StringHash type;
  1815. /* readonly */
  1816. String typeName;
  1817. /* readonly */
  1818. int weakRefs;
  1819. };
  1820. class Color
  1821. {
  1822. // Methods:
  1823. Color Abs() const;
  1824. float Average() const;
  1825. float Chroma() const;
  1826. void Clip(bool);
  1827. bool Equals() const;
  1828. void FromHSL(float, float, float, float);
  1829. void FromHSV(float, float, float, float);
  1830. float Hue() const;
  1831. void Invert(bool);
  1832. Color Lerp(const Color&, float) const;
  1833. float Lightness() const;
  1834. float Luma() const;
  1835. float MaxRGB() const;
  1836. float MinRGB() const;
  1837. float Range() const;
  1838. float SaturationHSL() const;
  1839. float SaturationHSV() const;
  1840. float SumRGB() const;
  1841. Vector3 ToHSL() const;
  1842. Vector3 ToHSV() const;
  1843. String ToString() const;
  1844. uint ToUInt() const;
  1845. float Value() const;
  1846. // Properties:
  1847. float a;
  1848. float b;
  1849. /* readonly */
  1850. Array<float> data;
  1851. float g;
  1852. float r;
  1853. /* readonly */
  1854. Vector3 rgb;
  1855. /* readonly */
  1856. Vector4 rgba;
  1857. };
  1858. class ColorFrame
  1859. {
  1860. // Properties:
  1861. Color color;
  1862. float time;
  1863. };
  1864. class Component
  1865. {
  1866. // Methods:
  1867. void ApplyAttributes();
  1868. void DrawDebugGeometry(DebugRenderer, bool);
  1869. Variant GetAttribute(const String&) const;
  1870. ValueAnimation GetAttributeAnimation(const String&) const;
  1871. float GetAttributeAnimationSpeed(const String&) const;
  1872. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1873. Variant GetAttributeDefault(const String&) const;
  1874. bool Load(File, bool = false);
  1875. bool Load(VectorBuffer&, bool = false);
  1876. bool LoadXML(const XMLElement&, bool = false);
  1877. void MarkNetworkUpdate() const;
  1878. void Remove();
  1879. void RemoveInstanceDefault();
  1880. void ResetToDefault();
  1881. bool Save(File) const;
  1882. bool Save(VectorBuffer&) const;
  1883. bool SaveXML(XMLElement&) const;
  1884. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1885. bool SetAttribute(const String&, const Variant&);
  1886. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1887. void SetAttributeAnimationSpeed(const String&, float);
  1888. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1889. // Properties:
  1890. bool animationEnabled;
  1891. /* readonly */
  1892. Array<Variant> attributeDefaults;
  1893. /* readonly */
  1894. Array<AttributeInfo> attributeInfos;
  1895. Array<Variant> attributes;
  1896. /* readonly */
  1897. StringHash baseType;
  1898. /* readonly */
  1899. String category;
  1900. bool enabled;
  1901. /* readonly */
  1902. bool enabledEffective;
  1903. /* readonly */
  1904. uint id;
  1905. /* readonly */
  1906. Node node;
  1907. /* readonly */
  1908. uint numAttributes;
  1909. ObjectAnimation objectAnimation;
  1910. /* readonly */
  1911. int refs;
  1912. bool temporary;
  1913. /* readonly */
  1914. StringHash type;
  1915. /* readonly */
  1916. String typeName;
  1917. /* readonly */
  1918. int weakRefs;
  1919. };
  1920. class Connection
  1921. {
  1922. // Methods:
  1923. void Disconnect(int = 0);
  1924. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1925. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  1926. void SendRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  1927. void SendRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  1928. String ToString() const;
  1929. // Properties:
  1930. /* readonly */
  1931. String address;
  1932. /* readonly */
  1933. StringHash baseType;
  1934. /* readonly */
  1935. String category;
  1936. /* readonly */
  1937. bool client;
  1938. /* readonly */
  1939. bool connectPending;
  1940. /* readonly */
  1941. bool connected;
  1942. Controls controls;
  1943. /* readonly */
  1944. String downloadName;
  1945. /* readonly */
  1946. float downloadProgress;
  1947. VariantMap identity;
  1948. bool logStatistics;
  1949. /* readonly */
  1950. uint numDownloads;
  1951. /* readonly */
  1952. uint16 port;
  1953. Vector3 position;
  1954. /* readonly */
  1955. int refs;
  1956. Quaternion rotation;
  1957. Scene scene;
  1958. /* readonly */
  1959. bool sceneLoaded;
  1960. /* readonly */
  1961. StringHash type;
  1962. /* readonly */
  1963. String typeName;
  1964. /* readonly */
  1965. int weakRefs;
  1966. };
  1967. class Console
  1968. {
  1969. // Methods:
  1970. void CopySelectedRows() const;
  1971. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  1972. void Toggle();
  1973. void UpdateElements();
  1974. // Properties:
  1975. bool autoVisibleOnError;
  1976. /* readonly */
  1977. BorderImage background;
  1978. /* readonly */
  1979. StringHash baseType;
  1980. /* readonly */
  1981. String category;
  1982. /* readonly */
  1983. Button closeButton;
  1984. String commandInterpreter;
  1985. XMLFile defaultStyle;
  1986. bool focusOnShow;
  1987. /* readonly */
  1988. uint historyPosition;
  1989. /* readonly */
  1990. Array<String> historyRow;
  1991. /* readonly */
  1992. LineEdit lineEdit;
  1993. uint numBufferedRows;
  1994. uint numHistoryRows;
  1995. uint numRows;
  1996. /* readonly */
  1997. int refs;
  1998. /* readonly */
  1999. StringHash type;
  2000. /* readonly */
  2001. String typeName;
  2002. bool visible;
  2003. /* readonly */
  2004. int weakRefs;
  2005. };
  2006. class Constraint
  2007. {
  2008. // Methods:
  2009. void ApplyAttributes();
  2010. void DrawDebugGeometry(DebugRenderer, bool);
  2011. Variant GetAttribute(const String&) const;
  2012. ValueAnimation GetAttributeAnimation(const String&) const;
  2013. float GetAttributeAnimationSpeed(const String&) const;
  2014. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2015. Variant GetAttributeDefault(const String&) const;
  2016. bool Load(File, bool = false);
  2017. bool Load(VectorBuffer&, bool = false);
  2018. bool LoadXML(const XMLElement&, bool = false);
  2019. void MarkNetworkUpdate() const;
  2020. void Remove();
  2021. void RemoveInstanceDefault();
  2022. void ResetToDefault();
  2023. bool Save(File) const;
  2024. bool Save(VectorBuffer&) const;
  2025. bool SaveXML(XMLElement&) const;
  2026. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2027. bool SetAttribute(const String&, const Variant&);
  2028. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2029. void SetAttributeAnimationSpeed(const String&, float);
  2030. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2031. // Properties:
  2032. bool animationEnabled;
  2033. /* readonly */
  2034. Array<Variant> attributeDefaults;
  2035. /* readonly */
  2036. Array<AttributeInfo> attributeInfos;
  2037. Array<Variant> attributes;
  2038. /* writeonly */
  2039. Vector3 axis;
  2040. /* readonly */
  2041. StringHash baseType;
  2042. /* readonly */
  2043. String category;
  2044. float cfm;
  2045. ConstraintType constraintType;
  2046. bool disableCollision;
  2047. bool enabled;
  2048. /* readonly */
  2049. bool enabledEffective;
  2050. float erp;
  2051. Vector2 highLimit;
  2052. /* readonly */
  2053. uint id;
  2054. Vector2 lowLimit;
  2055. /* readonly */
  2056. Node node;
  2057. /* readonly */
  2058. uint numAttributes;
  2059. ObjectAnimation objectAnimation;
  2060. /* writeonly */
  2061. Vector3 otherAxis;
  2062. RigidBody otherBody;
  2063. Vector3 otherPosition;
  2064. Quaternion otherRotation;
  2065. /* readonly */
  2066. RigidBody ownBody;
  2067. Vector3 position;
  2068. /* readonly */
  2069. int refs;
  2070. Quaternion rotation;
  2071. bool temporary;
  2072. /* readonly */
  2073. StringHash type;
  2074. /* readonly */
  2075. String typeName;
  2076. /* readonly */
  2077. int weakRefs;
  2078. Vector3 worldPosition;
  2079. };
  2080. class Constraint2D
  2081. {
  2082. // Methods:
  2083. void ApplyAttributes();
  2084. void DrawDebugGeometry(DebugRenderer, bool);
  2085. Variant GetAttribute(const String&) const;
  2086. ValueAnimation GetAttributeAnimation(const String&) const;
  2087. float GetAttributeAnimationSpeed(const String&) const;
  2088. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2089. Variant GetAttributeDefault(const String&) const;
  2090. bool Load(File, bool = false);
  2091. bool Load(VectorBuffer&, bool = false);
  2092. bool LoadXML(const XMLElement&, bool = false);
  2093. void MarkNetworkUpdate() const;
  2094. void Remove();
  2095. void RemoveInstanceDefault();
  2096. void ResetToDefault();
  2097. bool Save(File) const;
  2098. bool Save(VectorBuffer&) const;
  2099. bool SaveXML(XMLElement&) const;
  2100. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2101. bool SetAttribute(const String&, const Variant&);
  2102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2103. void SetAttributeAnimationSpeed(const String&, float);
  2104. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2105. // Properties:
  2106. bool animationEnabled;
  2107. /* readonly */
  2108. Array<Variant> attributeDefaults;
  2109. /* readonly */
  2110. Array<AttributeInfo> attributeInfos;
  2111. Array<Variant> attributes;
  2112. /* readonly */
  2113. StringHash baseType;
  2114. /* readonly */
  2115. String category;
  2116. bool collideConnected;
  2117. bool enabled;
  2118. /* readonly */
  2119. bool enabledEffective;
  2120. /* readonly */
  2121. uint id;
  2122. /* readonly */
  2123. Node node;
  2124. /* readonly */
  2125. uint numAttributes;
  2126. ObjectAnimation objectAnimation;
  2127. RigidBody2D otherBody;
  2128. /* readonly */
  2129. RigidBody2D ownerBody;
  2130. /* readonly */
  2131. int refs;
  2132. bool temporary;
  2133. /* readonly */
  2134. StringHash type;
  2135. /* readonly */
  2136. String typeName;
  2137. /* readonly */
  2138. int weakRefs;
  2139. };
  2140. class ConstraintDistance2D
  2141. {
  2142. // Methods:
  2143. void ApplyAttributes();
  2144. void DrawDebugGeometry(DebugRenderer, bool);
  2145. Variant GetAttribute(const String&) const;
  2146. ValueAnimation GetAttributeAnimation(const String&) const;
  2147. float GetAttributeAnimationSpeed(const String&) const;
  2148. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2149. Variant GetAttributeDefault(const String&) const;
  2150. bool Load(File, bool = false);
  2151. bool Load(VectorBuffer&, bool = false);
  2152. bool LoadXML(const XMLElement&, bool = false);
  2153. void MarkNetworkUpdate() const;
  2154. void Remove();
  2155. void RemoveInstanceDefault();
  2156. void ResetToDefault();
  2157. bool Save(File) const;
  2158. bool Save(VectorBuffer&) const;
  2159. bool SaveXML(XMLElement&) const;
  2160. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2161. bool SetAttribute(const String&, const Variant&);
  2162. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2163. void SetAttributeAnimationSpeed(const String&, float);
  2164. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2165. // Properties:
  2166. bool animationEnabled;
  2167. /* readonly */
  2168. Array<Variant> attributeDefaults;
  2169. /* readonly */
  2170. Array<AttributeInfo> attributeInfos;
  2171. Array<Variant> attributes;
  2172. /* readonly */
  2173. StringHash baseType;
  2174. /* readonly */
  2175. String category;
  2176. bool collideConnected;
  2177. float dampingRatio;
  2178. bool enabled;
  2179. /* readonly */
  2180. bool enabledEffective;
  2181. float frequencyHz;
  2182. /* readonly */
  2183. uint id;
  2184. /* readonly */
  2185. Node node;
  2186. /* readonly */
  2187. uint numAttributes;
  2188. ObjectAnimation objectAnimation;
  2189. RigidBody2D otherBody;
  2190. Vector2 otherBodyAnchor;
  2191. /* readonly */
  2192. RigidBody2D ownerBody;
  2193. Vector2 ownerBodyAnchor;
  2194. /* readonly */
  2195. int refs;
  2196. bool temporary;
  2197. /* readonly */
  2198. StringHash type;
  2199. /* readonly */
  2200. String typeName;
  2201. /* readonly */
  2202. int weakRefs;
  2203. };
  2204. class ConstraintFriction2D
  2205. {
  2206. // Methods:
  2207. void ApplyAttributes();
  2208. void DrawDebugGeometry(DebugRenderer, bool);
  2209. Variant GetAttribute(const String&) const;
  2210. ValueAnimation GetAttributeAnimation(const String&) const;
  2211. float GetAttributeAnimationSpeed(const String&) const;
  2212. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2213. Variant GetAttributeDefault(const String&) const;
  2214. bool Load(File, bool = false);
  2215. bool Load(VectorBuffer&, bool = false);
  2216. bool LoadXML(const XMLElement&, bool = false);
  2217. void MarkNetworkUpdate() const;
  2218. void Remove();
  2219. void RemoveInstanceDefault();
  2220. void ResetToDefault();
  2221. bool Save(File) const;
  2222. bool Save(VectorBuffer&) const;
  2223. bool SaveXML(XMLElement&) const;
  2224. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2225. bool SetAttribute(const String&, const Variant&);
  2226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2227. void SetAttributeAnimationSpeed(const String&, float);
  2228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2229. // Properties:
  2230. Vector2 anchor;
  2231. bool animationEnabled;
  2232. /* readonly */
  2233. Array<Variant> attributeDefaults;
  2234. /* readonly */
  2235. Array<AttributeInfo> attributeInfos;
  2236. Array<Variant> attributes;
  2237. /* readonly */
  2238. StringHash baseType;
  2239. /* readonly */
  2240. String category;
  2241. bool collideConnected;
  2242. bool enabled;
  2243. /* readonly */
  2244. bool enabledEffective;
  2245. /* readonly */
  2246. uint id;
  2247. float maxForce;
  2248. float maxTorque;
  2249. /* readonly */
  2250. Node node;
  2251. /* readonly */
  2252. uint numAttributes;
  2253. ObjectAnimation objectAnimation;
  2254. RigidBody2D otherBody;
  2255. /* readonly */
  2256. RigidBody2D ownerBody;
  2257. /* readonly */
  2258. int refs;
  2259. bool temporary;
  2260. /* readonly */
  2261. StringHash type;
  2262. /* readonly */
  2263. String typeName;
  2264. /* readonly */
  2265. int weakRefs;
  2266. };
  2267. class ConstraintGear2D
  2268. {
  2269. // Methods:
  2270. void ApplyAttributes();
  2271. void DrawDebugGeometry(DebugRenderer, bool);
  2272. Variant GetAttribute(const String&) const;
  2273. ValueAnimation GetAttributeAnimation(const String&) const;
  2274. float GetAttributeAnimationSpeed(const String&) const;
  2275. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2276. Variant GetAttributeDefault(const String&) const;
  2277. bool Load(File, bool = false);
  2278. bool Load(VectorBuffer&, bool = false);
  2279. bool LoadXML(const XMLElement&, bool = false);
  2280. void MarkNetworkUpdate() const;
  2281. void Remove();
  2282. void RemoveInstanceDefault();
  2283. void ResetToDefault();
  2284. bool Save(File) const;
  2285. bool Save(VectorBuffer&) const;
  2286. bool SaveXML(XMLElement&) const;
  2287. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2288. bool SetAttribute(const String&, const Variant&);
  2289. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2290. void SetAttributeAnimationSpeed(const String&, float);
  2291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2292. // Properties:
  2293. bool animationEnabled;
  2294. /* readonly */
  2295. Array<Variant> attributeDefaults;
  2296. /* readonly */
  2297. Array<AttributeInfo> attributeInfos;
  2298. Array<Variant> attributes;
  2299. /* readonly */
  2300. StringHash baseType;
  2301. /* readonly */
  2302. String category;
  2303. bool collideConnected;
  2304. bool enabled;
  2305. /* readonly */
  2306. bool enabledEffective;
  2307. /* readonly */
  2308. uint id;
  2309. /* readonly */
  2310. Node node;
  2311. /* readonly */
  2312. uint numAttributes;
  2313. ObjectAnimation objectAnimation;
  2314. RigidBody2D otherBody;
  2315. Constraint2D otherConstraint;
  2316. /* readonly */
  2317. RigidBody2D ownerBody;
  2318. Constraint2D ownerConstraint;
  2319. float ratio;
  2320. /* readonly */
  2321. int refs;
  2322. bool temporary;
  2323. /* readonly */
  2324. StringHash type;
  2325. /* readonly */
  2326. String typeName;
  2327. /* readonly */
  2328. int weakRefs;
  2329. };
  2330. class ConstraintMotor2D
  2331. {
  2332. // Methods:
  2333. void ApplyAttributes();
  2334. void DrawDebugGeometry(DebugRenderer, bool);
  2335. Variant GetAttribute(const String&) const;
  2336. ValueAnimation GetAttributeAnimation(const String&) const;
  2337. float GetAttributeAnimationSpeed(const String&) const;
  2338. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2339. Variant GetAttributeDefault(const String&) const;
  2340. bool Load(File, bool = false);
  2341. bool Load(VectorBuffer&, bool = false);
  2342. bool LoadXML(const XMLElement&, bool = false);
  2343. void MarkNetworkUpdate() const;
  2344. void Remove();
  2345. void RemoveInstanceDefault();
  2346. void ResetToDefault();
  2347. bool Save(File) const;
  2348. bool Save(VectorBuffer&) const;
  2349. bool SaveXML(XMLElement&) const;
  2350. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2351. bool SetAttribute(const String&, const Variant&);
  2352. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2353. void SetAttributeAnimationSpeed(const String&, float);
  2354. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2355. // Properties:
  2356. float angularOffset;
  2357. bool animationEnabled;
  2358. /* readonly */
  2359. Array<Variant> attributeDefaults;
  2360. /* readonly */
  2361. Array<AttributeInfo> attributeInfos;
  2362. Array<Variant> attributes;
  2363. /* readonly */
  2364. StringHash baseType;
  2365. /* readonly */
  2366. String category;
  2367. bool collideConnected;
  2368. float correctionFactor;
  2369. bool enabled;
  2370. /* readonly */
  2371. bool enabledEffective;
  2372. /* readonly */
  2373. uint id;
  2374. Vector2 linearOffset;
  2375. float maxForce;
  2376. float maxTorque;
  2377. /* readonly */
  2378. Node node;
  2379. /* readonly */
  2380. uint numAttributes;
  2381. ObjectAnimation objectAnimation;
  2382. RigidBody2D otherBody;
  2383. /* readonly */
  2384. RigidBody2D ownerBody;
  2385. /* readonly */
  2386. int refs;
  2387. bool temporary;
  2388. /* readonly */
  2389. StringHash type;
  2390. /* readonly */
  2391. String typeName;
  2392. /* readonly */
  2393. int weakRefs;
  2394. };
  2395. class ConstraintMouse2D
  2396. {
  2397. // Methods:
  2398. void ApplyAttributes();
  2399. void DrawDebugGeometry(DebugRenderer, bool);
  2400. Variant GetAttribute(const String&) const;
  2401. ValueAnimation GetAttributeAnimation(const String&) const;
  2402. float GetAttributeAnimationSpeed(const String&) const;
  2403. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2404. Variant GetAttributeDefault(const String&) const;
  2405. bool Load(File, bool = false);
  2406. bool Load(VectorBuffer&, bool = false);
  2407. bool LoadXML(const XMLElement&, bool = false);
  2408. void MarkNetworkUpdate() const;
  2409. void Remove();
  2410. void RemoveInstanceDefault();
  2411. void ResetToDefault();
  2412. bool Save(File) const;
  2413. bool Save(VectorBuffer&) const;
  2414. bool SaveXML(XMLElement&) const;
  2415. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2416. bool SetAttribute(const String&, const Variant&);
  2417. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2418. void SetAttributeAnimationSpeed(const String&, float);
  2419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2420. // Properties:
  2421. bool animationEnabled;
  2422. /* readonly */
  2423. Array<Variant> attributeDefaults;
  2424. /* readonly */
  2425. Array<AttributeInfo> attributeInfos;
  2426. Array<Variant> attributes;
  2427. /* readonly */
  2428. StringHash baseType;
  2429. /* readonly */
  2430. String category;
  2431. bool collideConnected;
  2432. float dampingRatio;
  2433. bool enabled;
  2434. /* readonly */
  2435. bool enabledEffective;
  2436. float frequencyHz;
  2437. /* readonly */
  2438. uint id;
  2439. float maxForce;
  2440. /* readonly */
  2441. Node node;
  2442. /* readonly */
  2443. uint numAttributes;
  2444. ObjectAnimation objectAnimation;
  2445. RigidBody2D otherBody;
  2446. /* readonly */
  2447. RigidBody2D ownerBody;
  2448. /* readonly */
  2449. int refs;
  2450. Vector2 target;
  2451. bool temporary;
  2452. /* readonly */
  2453. StringHash type;
  2454. /* readonly */
  2455. String typeName;
  2456. /* readonly */
  2457. int weakRefs;
  2458. };
  2459. class ConstraintPrismatic2D
  2460. {
  2461. // Methods:
  2462. void ApplyAttributes();
  2463. void DrawDebugGeometry(DebugRenderer, bool);
  2464. Variant GetAttribute(const String&) const;
  2465. ValueAnimation GetAttributeAnimation(const String&) const;
  2466. float GetAttributeAnimationSpeed(const String&) const;
  2467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2468. Variant GetAttributeDefault(const String&) const;
  2469. bool Load(File, bool = false);
  2470. bool Load(VectorBuffer&, bool = false);
  2471. bool LoadXML(const XMLElement&, bool = false);
  2472. void MarkNetworkUpdate() const;
  2473. void Remove();
  2474. void RemoveInstanceDefault();
  2475. void ResetToDefault();
  2476. bool Save(File) const;
  2477. bool Save(VectorBuffer&) const;
  2478. bool SaveXML(XMLElement&) const;
  2479. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2480. bool SetAttribute(const String&, const Variant&);
  2481. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2482. void SetAttributeAnimationSpeed(const String&, float);
  2483. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2484. // Properties:
  2485. Vector2 anchor;
  2486. bool animationEnabled;
  2487. /* readonly */
  2488. Array<Variant> attributeDefaults;
  2489. /* readonly */
  2490. Array<AttributeInfo> attributeInfos;
  2491. Array<Variant> attributes;
  2492. Vector2 axis;
  2493. /* readonly */
  2494. StringHash baseType;
  2495. /* readonly */
  2496. String category;
  2497. bool collideConnected;
  2498. bool enableLimit;
  2499. bool enableMotor;
  2500. bool enabled;
  2501. /* readonly */
  2502. bool enabledEffective;
  2503. /* readonly */
  2504. uint id;
  2505. float lowerTranslation;
  2506. float maxMotorForce;
  2507. float motorSpeed;
  2508. /* readonly */
  2509. Node node;
  2510. /* readonly */
  2511. uint numAttributes;
  2512. ObjectAnimation objectAnimation;
  2513. RigidBody2D otherBody;
  2514. /* readonly */
  2515. RigidBody2D ownerBody;
  2516. /* readonly */
  2517. int refs;
  2518. bool temporary;
  2519. /* readonly */
  2520. StringHash type;
  2521. /* readonly */
  2522. String typeName;
  2523. float upperTranslation;
  2524. /* readonly */
  2525. int weakRefs;
  2526. };
  2527. class ConstraintPulley2D
  2528. {
  2529. // Methods:
  2530. void ApplyAttributes();
  2531. void DrawDebugGeometry(DebugRenderer, bool);
  2532. Variant GetAttribute(const String&) const;
  2533. ValueAnimation GetAttributeAnimation(const String&) const;
  2534. float GetAttributeAnimationSpeed(const String&) const;
  2535. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2536. Variant GetAttributeDefault(const String&) const;
  2537. bool Load(File, bool = false);
  2538. bool Load(VectorBuffer&, bool = false);
  2539. bool LoadXML(const XMLElement&, bool = false);
  2540. void MarkNetworkUpdate() const;
  2541. void Remove();
  2542. void RemoveInstanceDefault();
  2543. void ResetToDefault();
  2544. bool Save(File) const;
  2545. bool Save(VectorBuffer&) const;
  2546. bool SaveXML(XMLElement&) const;
  2547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2548. bool SetAttribute(const String&, const Variant&);
  2549. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2550. void SetAttributeAnimationSpeed(const String&, float);
  2551. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2552. // Properties:
  2553. bool animationEnabled;
  2554. /* readonly */
  2555. Array<Variant> attributeDefaults;
  2556. /* readonly */
  2557. Array<AttributeInfo> attributeInfos;
  2558. Array<Variant> attributes;
  2559. /* readonly */
  2560. StringHash baseType;
  2561. /* readonly */
  2562. String category;
  2563. bool collideConnected;
  2564. bool enabled;
  2565. /* readonly */
  2566. bool enabledEffective;
  2567. /* readonly */
  2568. uint id;
  2569. /* readonly */
  2570. Node node;
  2571. /* readonly */
  2572. uint numAttributes;
  2573. ObjectAnimation objectAnimation;
  2574. RigidBody2D otherBody;
  2575. Vector2 otherBodyAnchor;
  2576. Vector2 otherBodyGroundAnchor;
  2577. /* readonly */
  2578. RigidBody2D ownerBody;
  2579. Vector2 ownerBodyAnchor;
  2580. Vector2 ownerBodyGroundAnchor;
  2581. float ratio;
  2582. /* readonly */
  2583. int refs;
  2584. bool temporary;
  2585. /* readonly */
  2586. StringHash type;
  2587. /* readonly */
  2588. String typeName;
  2589. /* readonly */
  2590. int weakRefs;
  2591. };
  2592. class ConstraintRevolute2D
  2593. {
  2594. // Methods:
  2595. void ApplyAttributes();
  2596. void DrawDebugGeometry(DebugRenderer, bool);
  2597. Variant GetAttribute(const String&) const;
  2598. ValueAnimation GetAttributeAnimation(const String&) const;
  2599. float GetAttributeAnimationSpeed(const String&) const;
  2600. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2601. Variant GetAttributeDefault(const String&) const;
  2602. bool Load(File, bool = false);
  2603. bool Load(VectorBuffer&, bool = false);
  2604. bool LoadXML(const XMLElement&, bool = false);
  2605. void MarkNetworkUpdate() const;
  2606. void Remove();
  2607. void RemoveInstanceDefault();
  2608. void ResetToDefault();
  2609. bool Save(File) const;
  2610. bool Save(VectorBuffer&) const;
  2611. bool SaveXML(XMLElement&) const;
  2612. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2613. bool SetAttribute(const String&, const Variant&);
  2614. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2615. void SetAttributeAnimationSpeed(const String&, float);
  2616. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2617. // Properties:
  2618. Vector2 anchor;
  2619. bool animationEnabled;
  2620. /* readonly */
  2621. Array<Variant> attributeDefaults;
  2622. /* readonly */
  2623. Array<AttributeInfo> attributeInfos;
  2624. Array<Variant> attributes;
  2625. /* readonly */
  2626. StringHash baseType;
  2627. /* readonly */
  2628. String category;
  2629. bool collideConnected;
  2630. bool enableLimit;
  2631. bool enableMotor;
  2632. bool enabled;
  2633. /* readonly */
  2634. bool enabledEffective;
  2635. /* readonly */
  2636. uint id;
  2637. float lowerAngle;
  2638. float maxMotorTorque;
  2639. float motorSpeed;
  2640. /* readonly */
  2641. Node node;
  2642. /* readonly */
  2643. uint numAttributes;
  2644. ObjectAnimation objectAnimation;
  2645. RigidBody2D otherBody;
  2646. /* readonly */
  2647. RigidBody2D ownerBody;
  2648. /* readonly */
  2649. int refs;
  2650. bool temporary;
  2651. /* readonly */
  2652. StringHash type;
  2653. /* readonly */
  2654. String typeName;
  2655. float upperAngle;
  2656. /* readonly */
  2657. int weakRefs;
  2658. };
  2659. class ConstraintRope2D
  2660. {
  2661. // Methods:
  2662. void ApplyAttributes();
  2663. void DrawDebugGeometry(DebugRenderer, bool);
  2664. Variant GetAttribute(const String&) const;
  2665. ValueAnimation GetAttributeAnimation(const String&) const;
  2666. float GetAttributeAnimationSpeed(const String&) const;
  2667. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2668. Variant GetAttributeDefault(const String&) const;
  2669. bool Load(File, bool = false);
  2670. bool Load(VectorBuffer&, bool = false);
  2671. bool LoadXML(const XMLElement&, bool = false);
  2672. void MarkNetworkUpdate() const;
  2673. void Remove();
  2674. void RemoveInstanceDefault();
  2675. void ResetToDefault();
  2676. bool Save(File) const;
  2677. bool Save(VectorBuffer&) const;
  2678. bool SaveXML(XMLElement&) const;
  2679. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2680. bool SetAttribute(const String&, const Variant&);
  2681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2682. void SetAttributeAnimationSpeed(const String&, float);
  2683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2684. // Properties:
  2685. bool animationEnabled;
  2686. /* readonly */
  2687. Array<Variant> attributeDefaults;
  2688. /* readonly */
  2689. Array<AttributeInfo> attributeInfos;
  2690. Array<Variant> attributes;
  2691. /* readonly */
  2692. StringHash baseType;
  2693. /* readonly */
  2694. String category;
  2695. bool collideConnected;
  2696. bool enabled;
  2697. /* readonly */
  2698. bool enabledEffective;
  2699. /* readonly */
  2700. uint id;
  2701. float maxLength;
  2702. /* readonly */
  2703. Node node;
  2704. /* readonly */
  2705. uint numAttributes;
  2706. ObjectAnimation objectAnimation;
  2707. RigidBody2D otherBody;
  2708. Vector2 otherBodyAnchor;
  2709. /* readonly */
  2710. RigidBody2D ownerBody;
  2711. Vector2 ownerBodyAnchor;
  2712. /* readonly */
  2713. int refs;
  2714. bool temporary;
  2715. /* readonly */
  2716. StringHash type;
  2717. /* readonly */
  2718. String typeName;
  2719. /* readonly */
  2720. int weakRefs;
  2721. };
  2722. class ConstraintWeld2D
  2723. {
  2724. // Methods:
  2725. void ApplyAttributes();
  2726. void DrawDebugGeometry(DebugRenderer, bool);
  2727. Variant GetAttribute(const String&) const;
  2728. ValueAnimation GetAttributeAnimation(const String&) const;
  2729. float GetAttributeAnimationSpeed(const String&) const;
  2730. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2731. Variant GetAttributeDefault(const String&) const;
  2732. bool Load(File, bool = false);
  2733. bool Load(VectorBuffer&, bool = false);
  2734. bool LoadXML(const XMLElement&, bool = false);
  2735. void MarkNetworkUpdate() const;
  2736. void Remove();
  2737. void RemoveInstanceDefault();
  2738. void ResetToDefault();
  2739. bool Save(File) const;
  2740. bool Save(VectorBuffer&) const;
  2741. bool SaveXML(XMLElement&) const;
  2742. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2743. bool SetAttribute(const String&, const Variant&);
  2744. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2745. void SetAttributeAnimationSpeed(const String&, float);
  2746. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2747. // Properties:
  2748. Vector2 anchor;
  2749. bool animationEnabled;
  2750. /* readonly */
  2751. Array<Variant> attributeDefaults;
  2752. /* readonly */
  2753. Array<AttributeInfo> attributeInfos;
  2754. Array<Variant> attributes;
  2755. /* readonly */
  2756. StringHash baseType;
  2757. /* readonly */
  2758. String category;
  2759. bool collideConnected;
  2760. float dampingRatio;
  2761. bool enabled;
  2762. /* readonly */
  2763. bool enabledEffective;
  2764. float frequencyHz;
  2765. /* readonly */
  2766. uint id;
  2767. /* readonly */
  2768. Node node;
  2769. /* readonly */
  2770. uint numAttributes;
  2771. ObjectAnimation objectAnimation;
  2772. RigidBody2D otherBody;
  2773. /* readonly */
  2774. RigidBody2D ownerBody;
  2775. /* readonly */
  2776. int refs;
  2777. bool temporary;
  2778. /* readonly */
  2779. StringHash type;
  2780. /* readonly */
  2781. String typeName;
  2782. /* readonly */
  2783. int weakRefs;
  2784. };
  2785. class ConstraintWheel2D
  2786. {
  2787. // Methods:
  2788. void ApplyAttributes();
  2789. void DrawDebugGeometry(DebugRenderer, bool);
  2790. Variant GetAttribute(const String&) const;
  2791. ValueAnimation GetAttributeAnimation(const String&) const;
  2792. float GetAttributeAnimationSpeed(const String&) const;
  2793. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2794. Variant GetAttributeDefault(const String&) const;
  2795. bool Load(File, bool = false);
  2796. bool Load(VectorBuffer&, bool = false);
  2797. bool LoadXML(const XMLElement&, bool = false);
  2798. void MarkNetworkUpdate() const;
  2799. void Remove();
  2800. void RemoveInstanceDefault();
  2801. void ResetToDefault();
  2802. bool Save(File) const;
  2803. bool Save(VectorBuffer&) const;
  2804. bool SaveXML(XMLElement&) const;
  2805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2806. bool SetAttribute(const String&, const Variant&);
  2807. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2808. void SetAttributeAnimationSpeed(const String&, float);
  2809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2810. // Properties:
  2811. Vector2 anchor;
  2812. bool animationEnabled;
  2813. /* readonly */
  2814. Array<Variant> attributeDefaults;
  2815. /* readonly */
  2816. Array<AttributeInfo> attributeInfos;
  2817. Array<Variant> attributes;
  2818. Vector2 axis;
  2819. /* readonly */
  2820. StringHash baseType;
  2821. /* readonly */
  2822. String category;
  2823. bool collideConnected;
  2824. float dampingRatio;
  2825. bool enableMotor;
  2826. bool enabled;
  2827. /* readonly */
  2828. bool enabledEffective;
  2829. float frequencyHz;
  2830. /* readonly */
  2831. uint id;
  2832. float maxMotorTorque;
  2833. float motorSpeed;
  2834. /* readonly */
  2835. Node node;
  2836. /* readonly */
  2837. uint numAttributes;
  2838. ObjectAnimation objectAnimation;
  2839. RigidBody2D otherBody;
  2840. /* readonly */
  2841. RigidBody2D ownerBody;
  2842. /* readonly */
  2843. int refs;
  2844. bool temporary;
  2845. /* readonly */
  2846. StringHash type;
  2847. /* readonly */
  2848. String typeName;
  2849. /* readonly */
  2850. int weakRefs;
  2851. };
  2852. class Controls
  2853. {
  2854. // Methods:
  2855. bool IsDown(uint) const;
  2856. bool IsPressed(uint, const Controls&) const;
  2857. void Reset();
  2858. void Set(uint, bool);
  2859. // Properties:
  2860. uint buttons;
  2861. VariantMap extraData;
  2862. float pitch;
  2863. float yaw;
  2864. };
  2865. class Cursor
  2866. {
  2867. // Methods:
  2868. void AddChild(UIElement);
  2869. void ApplyAttributes();
  2870. void BringToFront();
  2871. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  2872. void DefineShape(CursorShape, Texture, const IntRect&, const IntVector2&);
  2873. void DisableLayoutUpdate();
  2874. IntVector2 ElementToScreen(const IntVector2&);
  2875. void EnableLayoutUpdate();
  2876. uint FindChild(UIElement) const;
  2877. Variant GetAttribute(const String&) const;
  2878. ValueAnimation GetAttributeAnimation(const String&) const;
  2879. float GetAttributeAnimationSpeed(const String&) const;
  2880. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2881. Variant GetAttributeDefault(const String&) const;
  2882. UIElement GetChild(const String&, bool = false) const;
  2883. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  2884. Array<UIElement> GetChildren(bool = false) const;
  2885. UIElement GetElementEventSender() const;
  2886. uint GetNumChildren(bool) const;
  2887. void InsertChild(uint, UIElement);
  2888. bool IsInside(IntVector2, bool);
  2889. bool IsInsideCombined(IntVector2, bool);
  2890. bool Load(File, bool = false);
  2891. bool Load(VectorBuffer&, bool = false);
  2892. bool LoadChildXML(XMLFile, XMLFile = null);
  2893. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  2894. bool LoadXML(File);
  2895. bool LoadXML(VectorBuffer&);
  2896. bool LoadXML(XMLFile, XMLFile);
  2897. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  2898. bool LoadXML(const XMLElement&, bool = false);
  2899. void MarkNetworkUpdate() const;
  2900. void Remove();
  2901. void RemoveAllChildren();
  2902. void RemoveChild(UIElement, uint = 0);
  2903. void RemoveChild(uint);
  2904. void RemoveInstanceDefault();
  2905. void ResetToDefault();
  2906. bool Save(File) const;
  2907. bool Save(VectorBuffer&) const;
  2908. bool SaveXML(File);
  2909. bool SaveXML(VectorBuffer&);
  2910. bool SaveXML(XMLElement&) const;
  2911. IntVector2 ScreenToElement(const IntVector2&);
  2912. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  2913. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2914. bool SetAttribute(const String&, const Variant&);
  2915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2916. void SetAttributeAnimationSpeed(const String&, float);
  2917. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2918. void SetFixedHeight(int);
  2919. void SetFixedSize(int, int);
  2920. void SetFixedWidth(int);
  2921. void SetFullImageRect();
  2922. void SetHoverOffset(int, int);
  2923. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  2924. void SetMaxSize(int, int);
  2925. void SetMinSize(int, int);
  2926. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2927. void SetPosition(int, int);
  2928. void SetSize(int, int);
  2929. bool SetStyle(const String&, XMLFile = null);
  2930. bool SetStyle(const XMLElement&);
  2931. bool SetStyleAuto(XMLFile = null);
  2932. void UpdateLayout();
  2933. const Variant& GetVar(const StringHash&);
  2934. // Properties:
  2935. bool animationEnabled;
  2936. /* readonly */
  2937. Array<Variant> attributeDefaults;
  2938. /* readonly */
  2939. Array<AttributeInfo> attributeInfos;
  2940. Array<Variant> attributes;
  2941. /* readonly */
  2942. StringHash baseType;
  2943. BlendMode blendMode;
  2944. IntRect border;
  2945. bool bringToBack;
  2946. bool bringToFront;
  2947. /* readonly */
  2948. String category;
  2949. /* readonly */
  2950. IntVector2 childOffset;
  2951. /* readonly */
  2952. Array<UIElement> children;
  2953. IntRect clipBorder;
  2954. bool clipChildren;
  2955. /* writeonly */
  2956. Color color;
  2957. /* readonly */
  2958. bool colorGradient;
  2959. Array<Color> colors;
  2960. /* readonly */
  2961. IntRect combinedScreenRect;
  2962. XMLFile defaultStyle;
  2963. /* readonly */
  2964. float derivedOpacity;
  2965. uint dragDropMode;
  2966. bool editable;
  2967. bool elementEventSender;
  2968. bool enabled;
  2969. /* readonly */
  2970. bool fixedHeight;
  2971. /* readonly */
  2972. bool fixedSize;
  2973. /* readonly */
  2974. bool fixedWidth;
  2975. bool focus;
  2976. FocusMode focusMode;
  2977. int height;
  2978. HorizontalAlignment horizontalAlignment;
  2979. IntVector2 hoverOffset;
  2980. /* readonly */
  2981. bool hovering;
  2982. IntRect imageBorder;
  2983. IntRect imageRect;
  2984. int indent;
  2985. int indentSpacing;
  2986. /* readonly */
  2987. int indentWidth;
  2988. bool internal;
  2989. IntRect layoutBorder;
  2990. LayoutMode layoutMode;
  2991. int layoutSpacing;
  2992. int maxHeight;
  2993. IntVector2 maxSize;
  2994. int maxWidth;
  2995. int minHeight;
  2996. IntVector2 minSize;
  2997. int minWidth;
  2998. String name;
  2999. /* readonly */
  3000. uint numAllChildren;
  3001. /* readonly */
  3002. uint numAttributes;
  3003. /* readonly */
  3004. uint numChildren;
  3005. ObjectAnimation objectAnimation;
  3006. float opacity;
  3007. UIElement parent;
  3008. IntVector2 position;
  3009. int priority;
  3010. /* readonly */
  3011. int refs;
  3012. /* readonly */
  3013. UIElement root;
  3014. /* readonly */
  3015. IntVector2 screenPosition;
  3016. bool selected;
  3017. CursorShape shape;
  3018. IntVector2 size;
  3019. bool sortChildren;
  3020. String style;
  3021. bool temporary;
  3022. Texture texture;
  3023. bool tiled;
  3024. TraversalMode traversalMode;
  3025. /* readonly */
  3026. StringHash type;
  3027. /* readonly */
  3028. String typeName;
  3029. bool useDerivedOpacity;
  3030. bool useSystemShapes;
  3031. /* readonly */
  3032. VariantMap vars;
  3033. VerticalAlignment verticalAlignment;
  3034. bool visible;
  3035. /* readonly */
  3036. int weakRefs;
  3037. int width;
  3038. };
  3039. class CustomGeometry
  3040. {
  3041. // Methods:
  3042. void ApplyAttributes();
  3043. void BeginGeometry(uint, PrimitiveType);
  3044. void Clear();
  3045. void Commit();
  3046. void DefineColor(const Color&);
  3047. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  3048. void DefineNormal(const Vector3&);
  3049. void DefineTangent(const Vector4&);
  3050. void DefineTexCoord(const Vector2&);
  3051. void DefineVertex(const Vector3&);
  3052. void DrawDebugGeometry(DebugRenderer, bool);
  3053. Variant GetAttribute(const String&) const;
  3054. ValueAnimation GetAttributeAnimation(const String&) const;
  3055. float GetAttributeAnimationSpeed(const String&) const;
  3056. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3057. Variant GetAttributeDefault(const String&) const;
  3058. CustomGeometryVertex GetVertex(uint, uint);
  3059. bool IsInView(Camera) const;
  3060. bool Load(File, bool = false);
  3061. bool Load(VectorBuffer&, bool = false);
  3062. bool LoadXML(const XMLElement&, bool = false);
  3063. void MarkNetworkUpdate() const;
  3064. void Remove();
  3065. void RemoveInstanceDefault();
  3066. void ResetToDefault();
  3067. bool Save(File) const;
  3068. bool Save(VectorBuffer&) const;
  3069. bool SaveXML(XMLElement&) const;
  3070. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3071. bool SetAttribute(const String&, const Variant&);
  3072. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3073. void SetAttributeAnimationSpeed(const String&, float);
  3074. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3075. // Properties:
  3076. bool animationEnabled;
  3077. /* readonly */
  3078. Array<Variant> attributeDefaults;
  3079. /* readonly */
  3080. Array<AttributeInfo> attributeInfos;
  3081. Array<Variant> attributes;
  3082. /* readonly */
  3083. StringHash baseType;
  3084. /* readonly */
  3085. BoundingBox boundingBox;
  3086. bool castShadows;
  3087. /* readonly */
  3088. String category;
  3089. float drawDistance;
  3090. bool dynamic;
  3091. bool enabled;
  3092. /* readonly */
  3093. bool enabledEffective;
  3094. /* readonly */
  3095. uint id;
  3096. /* readonly */
  3097. bool inView;
  3098. uint lightMask;
  3099. float lodBias;
  3100. /* writeonly */
  3101. Material material;
  3102. Array<Material> materials;
  3103. uint maxLights;
  3104. /* readonly */
  3105. Node node;
  3106. /* readonly */
  3107. uint numAttributes;
  3108. uint numGeometries;
  3109. /* readonly */
  3110. Array<uint> numVertices;
  3111. ObjectAnimation objectAnimation;
  3112. bool occludee;
  3113. bool occluder;
  3114. /* readonly */
  3115. int refs;
  3116. float shadowDistance;
  3117. uint shadowMask;
  3118. bool temporary;
  3119. /* readonly */
  3120. StringHash type;
  3121. /* readonly */
  3122. String typeName;
  3123. uint viewMask;
  3124. /* readonly */
  3125. int weakRefs;
  3126. /* readonly */
  3127. BoundingBox worldBoundingBox;
  3128. /* readonly */
  3129. Zone zone;
  3130. uint zoneMask;
  3131. };
  3132. class CustomGeometryVertex
  3133. {
  3134. // Properties:
  3135. uint color;
  3136. Vector3 normal;
  3137. Vector3 position;
  3138. Vector4 tangent;
  3139. Vector2 texCoord;
  3140. };
  3141. class DebugHud
  3142. {
  3143. // Methods:
  3144. void ClearAppStats();
  3145. void ResetAppStats(const String&);
  3146. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3147. void SetAppStats(const String&, const String&);
  3148. void SetAppStats(const String&, const Variant&);
  3149. void Toggle(uint);
  3150. void ToggleAll();
  3151. // Properties:
  3152. /* readonly */
  3153. StringHash baseType;
  3154. /* readonly */
  3155. String category;
  3156. XMLFile defaultStyle;
  3157. uint mode;
  3158. /* readonly */
  3159. Text modeText;
  3160. float profilerInterval;
  3161. uint profilerMaxDepth;
  3162. /* readonly */
  3163. Text profilerText;
  3164. /* readonly */
  3165. int refs;
  3166. /* readonly */
  3167. Text statsText;
  3168. /* readonly */
  3169. StringHash type;
  3170. /* readonly */
  3171. String typeName;
  3172. bool useRendererStats;
  3173. /* readonly */
  3174. int weakRefs;
  3175. };
  3176. class DebugRenderer
  3177. {
  3178. // Methods:
  3179. void AddBoundingBox(const BoundingBox&, const Color&, bool = true);
  3180. void AddFrustum(const Frustum&, const Color&, bool = true);
  3181. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  3182. void AddNode(Node, float = 1.0, bool = true);
  3183. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  3184. void AddSkeleton(Skeleton, const Color&, bool = true);
  3185. void AddSphere(const Sphere&, const Color&, bool = true);
  3186. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  3187. void ApplyAttributes();
  3188. void DrawDebugGeometry(DebugRenderer, bool);
  3189. Variant GetAttribute(const String&) const;
  3190. ValueAnimation GetAttributeAnimation(const String&) const;
  3191. float GetAttributeAnimationSpeed(const String&) const;
  3192. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3193. Variant GetAttributeDefault(const String&) const;
  3194. bool Load(File, bool = false);
  3195. bool Load(VectorBuffer&, bool = false);
  3196. bool LoadXML(const XMLElement&, bool = false);
  3197. void MarkNetworkUpdate() const;
  3198. void Remove();
  3199. void RemoveInstanceDefault();
  3200. void ResetToDefault();
  3201. bool Save(File) const;
  3202. bool Save(VectorBuffer&) const;
  3203. bool SaveXML(XMLElement&) const;
  3204. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3205. bool SetAttribute(const String&, const Variant&);
  3206. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3207. void SetAttributeAnimationSpeed(const String&, float);
  3208. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3209. // Properties:
  3210. bool animationEnabled;
  3211. /* readonly */
  3212. Array<Variant> attributeDefaults;
  3213. /* readonly */
  3214. Array<AttributeInfo> attributeInfos;
  3215. Array<Variant> attributes;
  3216. /* readonly */
  3217. StringHash baseType;
  3218. /* readonly */
  3219. String category;
  3220. bool enabled;
  3221. /* readonly */
  3222. bool enabledEffective;
  3223. /* readonly */
  3224. uint id;
  3225. /* readonly */
  3226. Node node;
  3227. /* readonly */
  3228. uint numAttributes;
  3229. ObjectAnimation objectAnimation;
  3230. /* readonly */
  3231. int refs;
  3232. bool temporary;
  3233. /* readonly */
  3234. StringHash type;
  3235. /* readonly */
  3236. String typeName;
  3237. /* readonly */
  3238. int weakRefs;
  3239. };
  3240. class DecalSet
  3241. {
  3242. // Methods:
  3243. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0, float = 0.1, uint = 0xffffffff);
  3244. void ApplyAttributes();
  3245. void DrawDebugGeometry(DebugRenderer, bool);
  3246. Variant GetAttribute(const String&) const;
  3247. ValueAnimation GetAttributeAnimation(const String&) const;
  3248. float GetAttributeAnimationSpeed(const String&) const;
  3249. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3250. Variant GetAttributeDefault(const String&) const;
  3251. bool IsInView(Camera) const;
  3252. bool Load(File, bool = false);
  3253. bool Load(VectorBuffer&, bool = false);
  3254. bool LoadXML(const XMLElement&, bool = false);
  3255. void MarkNetworkUpdate() const;
  3256. void Remove();
  3257. void RemoveAllDecals();
  3258. void RemoveDecals(uint);
  3259. void RemoveInstanceDefault();
  3260. void ResetToDefault();
  3261. bool Save(File) const;
  3262. bool Save(VectorBuffer&) const;
  3263. bool SaveXML(XMLElement&) const;
  3264. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3265. bool SetAttribute(const String&, const Variant&);
  3266. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3267. void SetAttributeAnimationSpeed(const String&, float);
  3268. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3269. // Properties:
  3270. bool animationEnabled;
  3271. /* readonly */
  3272. Array<Variant> attributeDefaults;
  3273. /* readonly */
  3274. Array<AttributeInfo> attributeInfos;
  3275. Array<Variant> attributes;
  3276. /* readonly */
  3277. StringHash baseType;
  3278. /* readonly */
  3279. BoundingBox boundingBox;
  3280. bool castShadows;
  3281. /* readonly */
  3282. String category;
  3283. float drawDistance;
  3284. bool enabled;
  3285. /* readonly */
  3286. bool enabledEffective;
  3287. /* readonly */
  3288. uint id;
  3289. /* readonly */
  3290. bool inView;
  3291. uint lightMask;
  3292. float lodBias;
  3293. Material material;
  3294. uint maxIndices;
  3295. uint maxLights;
  3296. uint maxVertices;
  3297. /* readonly */
  3298. Node node;
  3299. /* readonly */
  3300. uint numAttributes;
  3301. /* readonly */
  3302. uint numDecals;
  3303. /* readonly */
  3304. uint numIndices;
  3305. /* readonly */
  3306. uint numVertices;
  3307. ObjectAnimation objectAnimation;
  3308. bool occludee;
  3309. bool occluder;
  3310. /* readonly */
  3311. int refs;
  3312. float shadowDistance;
  3313. uint shadowMask;
  3314. bool temporary;
  3315. /* readonly */
  3316. StringHash type;
  3317. /* readonly */
  3318. String typeName;
  3319. uint viewMask;
  3320. /* readonly */
  3321. int weakRefs;
  3322. /* readonly */
  3323. BoundingBox worldBoundingBox;
  3324. /* readonly */
  3325. Zone zone;
  3326. uint zoneMask;
  3327. };
  3328. class Deserializer
  3329. {
  3330. // Methods:
  3331. Array<uint8> Read(uint);
  3332. bool ReadBool();
  3333. BoundingBox ReadBoundingBox();
  3334. int8 ReadByte();
  3335. Color ReadColor();
  3336. String ReadFileID();
  3337. float ReadFloat();
  3338. int ReadInt();
  3339. IntRect ReadIntRect();
  3340. IntVector2 ReadIntVector2();
  3341. String ReadLine();
  3342. Matrix3 ReadMatrix3();
  3343. Matrix3x4 ReadMatrix3x4();
  3344. Matrix4 ReadMatrix4();
  3345. uint ReadNetID();
  3346. Quaternion ReadPackedQuaternion();
  3347. Vector3 ReadPackedVector3(float);
  3348. Quaternion ReadQuaternion();
  3349. int16 ReadShort();
  3350. String ReadString();
  3351. StringHash ReadStringHash();
  3352. uint8 ReadUByte();
  3353. uint ReadUInt();
  3354. uint16 ReadUShort();
  3355. uint ReadVLE();
  3356. Variant ReadVariant();
  3357. VariantMap ReadVariantMap();
  3358. Vector2 ReadVector2();
  3359. Vector3 ReadVector3();
  3360. Vector4 ReadVector4();
  3361. uint Seek(uint);
  3362. // Properties:
  3363. /* readonly */
  3364. uint checksum;
  3365. /* readonly */
  3366. bool eof;
  3367. /* readonly */
  3368. String name;
  3369. /* readonly */
  3370. uint position;
  3371. /* readonly */
  3372. uint size;
  3373. };
  3374. class Dictionary
  3375. {
  3376. // Methods:
  3377. void Clear();
  3378. void Erase(const String&);
  3379. bool Exists(const String&) const;
  3380. bool Get(const String&, void*) const;
  3381. bool Get(const String&, double&) const;
  3382. bool Get(const String&, int64&) const;
  3383. void Set(const String&, const void*);
  3384. void Set(const String&, const double&);
  3385. void Set(const String&, const int64&);
  3386. // Properties:
  3387. /* readonly */
  3388. bool empty;
  3389. /* readonly */
  3390. Array<String> keys;
  3391. /* readonly */
  3392. uint length;
  3393. };
  3394. class DictionaryValue
  3395. {
  3396. };
  3397. class Drawable
  3398. {
  3399. // Methods:
  3400. void ApplyAttributes();
  3401. void DrawDebugGeometry(DebugRenderer, bool);
  3402. Variant GetAttribute(const String&) const;
  3403. ValueAnimation GetAttributeAnimation(const String&) const;
  3404. float GetAttributeAnimationSpeed(const String&) const;
  3405. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3406. Variant GetAttributeDefault(const String&) const;
  3407. bool IsInView(Camera) const;
  3408. bool Load(File, bool = false);
  3409. bool Load(VectorBuffer&, bool = false);
  3410. bool LoadXML(const XMLElement&, bool = false);
  3411. void MarkNetworkUpdate() const;
  3412. void Remove();
  3413. void RemoveInstanceDefault();
  3414. void ResetToDefault();
  3415. bool Save(File) const;
  3416. bool Save(VectorBuffer&) const;
  3417. bool SaveXML(XMLElement&) const;
  3418. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3419. bool SetAttribute(const String&, const Variant&);
  3420. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3421. void SetAttributeAnimationSpeed(const String&, float);
  3422. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3423. // Properties:
  3424. bool animationEnabled;
  3425. /* readonly */
  3426. Array<Variant> attributeDefaults;
  3427. /* readonly */
  3428. Array<AttributeInfo> attributeInfos;
  3429. Array<Variant> attributes;
  3430. /* readonly */
  3431. StringHash baseType;
  3432. /* readonly */
  3433. BoundingBox boundingBox;
  3434. bool castShadows;
  3435. /* readonly */
  3436. String category;
  3437. float drawDistance;
  3438. bool enabled;
  3439. /* readonly */
  3440. bool enabledEffective;
  3441. /* readonly */
  3442. uint id;
  3443. /* readonly */
  3444. bool inView;
  3445. uint lightMask;
  3446. float lodBias;
  3447. uint maxLights;
  3448. /* readonly */
  3449. Node node;
  3450. /* readonly */
  3451. uint numAttributes;
  3452. ObjectAnimation objectAnimation;
  3453. bool occludee;
  3454. bool occluder;
  3455. /* readonly */
  3456. int refs;
  3457. float shadowDistance;
  3458. uint shadowMask;
  3459. bool temporary;
  3460. /* readonly */
  3461. StringHash type;
  3462. /* readonly */
  3463. String typeName;
  3464. uint viewMask;
  3465. /* readonly */
  3466. int weakRefs;
  3467. /* readonly */
  3468. BoundingBox worldBoundingBox;
  3469. uint zoneMask;
  3470. };
  3471. class Drawable2D
  3472. {
  3473. // Methods:
  3474. void ApplyAttributes();
  3475. void DrawDebugGeometry(DebugRenderer, bool);
  3476. Variant GetAttribute(const String&) const;
  3477. ValueAnimation GetAttributeAnimation(const String&) const;
  3478. float GetAttributeAnimationSpeed(const String&) const;
  3479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3480. Variant GetAttributeDefault(const String&) const;
  3481. bool IsInView(Camera) const;
  3482. bool Load(File, bool = false);
  3483. bool Load(VectorBuffer&, bool = false);
  3484. bool LoadXML(const XMLElement&, bool = false);
  3485. void MarkNetworkUpdate() const;
  3486. void Remove();
  3487. void RemoveInstanceDefault();
  3488. void ResetToDefault();
  3489. bool Save(File) const;
  3490. bool Save(VectorBuffer&) const;
  3491. bool SaveXML(XMLElement&) const;
  3492. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3493. bool SetAttribute(const String&, const Variant&);
  3494. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3495. void SetAttributeAnimationSpeed(const String&, float);
  3496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3497. // Properties:
  3498. bool animationEnabled;
  3499. /* readonly */
  3500. Array<Variant> attributeDefaults;
  3501. /* readonly */
  3502. Array<AttributeInfo> attributeInfos;
  3503. Array<Variant> attributes;
  3504. /* readonly */
  3505. StringHash baseType;
  3506. BlendMode blendMode;
  3507. /* readonly */
  3508. BoundingBox boundingBox;
  3509. bool castShadows;
  3510. /* readonly */
  3511. String category;
  3512. float drawDistance;
  3513. bool enabled;
  3514. /* readonly */
  3515. bool enabledEffective;
  3516. /* readonly */
  3517. uint id;
  3518. /* readonly */
  3519. bool inView;
  3520. int layer;
  3521. uint lightMask;
  3522. float lodBias;
  3523. Material material;
  3524. uint maxLights;
  3525. /* readonly */
  3526. Node node;
  3527. /* readonly */
  3528. uint numAttributes;
  3529. ObjectAnimation objectAnimation;
  3530. bool occludee;
  3531. bool occluder;
  3532. int orderInLayer;
  3533. /* readonly */
  3534. int refs;
  3535. float shadowDistance;
  3536. uint shadowMask;
  3537. Sprite2D sprite;
  3538. bool temporary;
  3539. /* readonly */
  3540. StringHash type;
  3541. /* readonly */
  3542. String typeName;
  3543. uint viewMask;
  3544. /* readonly */
  3545. int weakRefs;
  3546. /* readonly */
  3547. BoundingBox worldBoundingBox;
  3548. uint zoneMask;
  3549. };
  3550. class DropDownList
  3551. {
  3552. // Methods:
  3553. void AddChild(UIElement);
  3554. void AddItem(UIElement);
  3555. void ApplyAttributes();
  3556. void BringToFront();
  3557. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  3558. void DisableLayoutUpdate();
  3559. IntVector2 ElementToScreen(const IntVector2&);
  3560. void EnableLayoutUpdate();
  3561. uint FindChild(UIElement) const;
  3562. Variant GetAttribute(const String&) const;
  3563. ValueAnimation GetAttributeAnimation(const String&) const;
  3564. float GetAttributeAnimationSpeed(const String&) const;
  3565. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3566. Variant GetAttributeDefault(const String&) const;
  3567. UIElement GetChild(const String&, bool = false) const;
  3568. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  3569. Array<UIElement> GetChildren(bool = false) const;
  3570. UIElement GetElementEventSender() const;
  3571. Array<UIElement> GetItems() const;
  3572. uint GetNumChildren(bool) const;
  3573. void InsertChild(uint, UIElement);
  3574. void InsertItem(uint, UIElement);
  3575. bool IsInside(IntVector2, bool);
  3576. bool IsInsideCombined(IntVector2, bool);
  3577. bool Load(File, bool = false);
  3578. bool Load(VectorBuffer&, bool = false);
  3579. bool LoadChildXML(XMLFile, XMLFile = null);
  3580. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  3581. bool LoadXML(File);
  3582. bool LoadXML(VectorBuffer&);
  3583. bool LoadXML(XMLFile, XMLFile);
  3584. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  3585. bool LoadXML(const XMLElement&, bool = false);
  3586. void MarkNetworkUpdate() const;
  3587. void Remove();
  3588. void RemoveAllChildren();
  3589. void RemoveAllItems();
  3590. void RemoveChild(UIElement, uint = 0);
  3591. void RemoveChild(uint);
  3592. void RemoveInstanceDefault();
  3593. void RemoveItem(UIElement);
  3594. void RemoveItem(uint);
  3595. void ResetToDefault();
  3596. bool Save(File) const;
  3597. bool Save(VectorBuffer&) const;
  3598. bool SaveXML(File);
  3599. bool SaveXML(VectorBuffer&);
  3600. bool SaveXML(XMLElement&) const;
  3601. IntVector2 ScreenToElement(const IntVector2&);
  3602. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3603. void SetAccelerator(int, int);
  3604. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3605. bool SetAttribute(const String&, const Variant&);
  3606. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3607. void SetAttributeAnimationSpeed(const String&, float);
  3608. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3609. void SetFixedHeight(int);
  3610. void SetFixedSize(int, int);
  3611. void SetFixedWidth(int);
  3612. void SetFullImageRect();
  3613. void SetHoverOffset(int, int);
  3614. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  3615. void SetMaxSize(int, int);
  3616. void SetMinSize(int, int);
  3617. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3618. void SetPosition(int, int);
  3619. void SetPressedChildOffset(int, int);
  3620. void SetPressedOffset(int, int);
  3621. void SetRepeat(float, float);
  3622. void SetSize(int, int);
  3623. bool SetStyle(const String&, XMLFile = null);
  3624. bool SetStyle(const XMLElement&);
  3625. bool SetStyleAuto(XMLFile = null);
  3626. void UpdateLayout();
  3627. const Variant& GetVar(const StringHash&);
  3628. UIElement getPopup() const;
  3629. // Properties:
  3630. /* readonly */
  3631. int acceleratorKey;
  3632. /* readonly */
  3633. int acceleratorQualifiers;
  3634. bool animationEnabled;
  3635. /* readonly */
  3636. Array<Variant> attributeDefaults;
  3637. /* readonly */
  3638. Array<AttributeInfo> attributeInfos;
  3639. Array<Variant> attributes;
  3640. /* readonly */
  3641. StringHash baseType;
  3642. BlendMode blendMode;
  3643. IntRect border;
  3644. bool bringToBack;
  3645. bool bringToFront;
  3646. /* readonly */
  3647. String category;
  3648. /* readonly */
  3649. IntVector2 childOffset;
  3650. /* readonly */
  3651. Array<UIElement> children;
  3652. IntRect clipBorder;
  3653. bool clipChildren;
  3654. /* writeonly */
  3655. Color color;
  3656. /* readonly */
  3657. bool colorGradient;
  3658. Array<Color> colors;
  3659. /* readonly */
  3660. IntRect combinedScreenRect;
  3661. XMLFile defaultStyle;
  3662. /* readonly */
  3663. float derivedOpacity;
  3664. uint dragDropMode;
  3665. bool editable;
  3666. bool elementEventSender;
  3667. bool enabled;
  3668. /* readonly */
  3669. bool fixedHeight;
  3670. /* readonly */
  3671. bool fixedSize;
  3672. /* readonly */
  3673. bool fixedWidth;
  3674. bool focus;
  3675. FocusMode focusMode;
  3676. int height;
  3677. HorizontalAlignment horizontalAlignment;
  3678. IntVector2 hoverOffset;
  3679. /* readonly */
  3680. bool hovering;
  3681. IntRect imageBorder;
  3682. IntRect imageRect;
  3683. int indent;
  3684. int indentSpacing;
  3685. /* readonly */
  3686. int indentWidth;
  3687. bool internal;
  3688. /* readonly */
  3689. Array<UIElement> items;
  3690. IntRect layoutBorder;
  3691. LayoutMode layoutMode;
  3692. int layoutSpacing;
  3693. /* readonly */
  3694. ListView listView;
  3695. int maxHeight;
  3696. IntVector2 maxSize;
  3697. int maxWidth;
  3698. int minHeight;
  3699. IntVector2 minSize;
  3700. int minWidth;
  3701. String name;
  3702. /* readonly */
  3703. uint numAllChildren;
  3704. /* readonly */
  3705. uint numAttributes;
  3706. /* readonly */
  3707. uint numChildren;
  3708. /* readonly */
  3709. uint numItems;
  3710. ObjectAnimation objectAnimation;
  3711. float opacity;
  3712. UIElement parent;
  3713. /* readonly */
  3714. UIElement placeholder;
  3715. String placeholderText;
  3716. IntVector2 position;
  3717. /* readonly */
  3718. bool pressed;
  3719. IntVector2 pressedChildOffset;
  3720. IntVector2 pressedOffset;
  3721. int priority;
  3722. /* readonly */
  3723. int refs;
  3724. float repeatDelay;
  3725. float repeatRate;
  3726. bool resizePopup;
  3727. /* readonly */
  3728. UIElement root;
  3729. /* readonly */
  3730. IntVector2 screenPosition;
  3731. bool selected;
  3732. /* readonly */
  3733. UIElement selectedItem;
  3734. uint selection;
  3735. bool showPopup;
  3736. IntVector2 size;
  3737. bool sortChildren;
  3738. String style;
  3739. bool temporary;
  3740. Texture texture;
  3741. bool tiled;
  3742. TraversalMode traversalMode;
  3743. /* readonly */
  3744. StringHash type;
  3745. /* readonly */
  3746. String typeName;
  3747. bool useDerivedOpacity;
  3748. /* readonly */
  3749. VariantMap vars;
  3750. VerticalAlignment verticalAlignment;
  3751. bool visible;
  3752. /* readonly */
  3753. int weakRefs;
  3754. int width;
  3755. };
  3756. class Engine
  3757. {
  3758. // Methods:
  3759. Console CreateConsole();
  3760. DebugHud CreateDebugHud();
  3761. void DumpMemory();
  3762. void DumpProfiler();
  3763. void DumpResources(bool = false);
  3764. void Exit();
  3765. void RunFrame();
  3766. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3767. // Properties:
  3768. bool autoExit;
  3769. /* readonly */
  3770. StringHash baseType;
  3771. /* readonly */
  3772. String category;
  3773. /* readonly */
  3774. bool exiting;
  3775. /* readonly */
  3776. bool headless;
  3777. /* readonly */
  3778. bool initialized;
  3779. int maxFps;
  3780. int maxInactiveFps;
  3781. int minFps;
  3782. bool pauseMinimized;
  3783. /* readonly */
  3784. int refs;
  3785. int timeStepSmoothing;
  3786. /* readonly */
  3787. StringHash type;
  3788. /* readonly */
  3789. String typeName;
  3790. /* readonly */
  3791. int weakRefs;
  3792. };
  3793. class File
  3794. {
  3795. // Methods:
  3796. void Close();
  3797. bool Open(const String&, FileMode = FILE_READ);
  3798. Array<uint8> Read(uint);
  3799. bool ReadBool();
  3800. BoundingBox ReadBoundingBox();
  3801. int8 ReadByte();
  3802. Color ReadColor();
  3803. String ReadFileID();
  3804. float ReadFloat();
  3805. int ReadInt();
  3806. IntRect ReadIntRect();
  3807. IntVector2 ReadIntVector2();
  3808. String ReadLine();
  3809. Matrix3 ReadMatrix3();
  3810. Matrix3x4 ReadMatrix3x4();
  3811. Matrix4 ReadMatrix4();
  3812. uint ReadNetID();
  3813. Quaternion ReadPackedQuaternion();
  3814. Vector3 ReadPackedVector3(float);
  3815. Quaternion ReadQuaternion();
  3816. int16 ReadShort();
  3817. String ReadString();
  3818. StringHash ReadStringHash();
  3819. uint8 ReadUByte();
  3820. uint ReadUInt();
  3821. uint16 ReadUShort();
  3822. uint ReadVLE();
  3823. Variant ReadVariant();
  3824. VariantMap ReadVariantMap();
  3825. Vector2 ReadVector2();
  3826. Vector3 ReadVector3();
  3827. Vector4 ReadVector4();
  3828. uint Seek(uint);
  3829. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3830. uint Write(Array<uint8>);
  3831. bool WriteBool(bool);
  3832. bool WriteBoundingBox(const BoundingBox&);
  3833. bool WriteByte(int8);
  3834. bool WriteColor(const Color&);
  3835. bool WriteFileID(const String&);
  3836. bool WriteFloat(float);
  3837. bool WriteInt(int);
  3838. bool WriteIntRect(const IntRect&);
  3839. bool WriteIntVector2(const IntVector2&);
  3840. bool WriteLine(const String&);
  3841. bool WriteMatrix3(const Matrix3&);
  3842. bool WriteMatrix3x4(const Matrix3x4&);
  3843. bool WriteMatrix4(const Matrix4&);
  3844. bool WriteNetID(uint);
  3845. bool WritePackedQuaternion(const Quaternion&);
  3846. bool WritePackedVector3(const Vector3&, float);
  3847. bool WriteQuaternion(const Quaternion&);
  3848. bool WriteShort(int16);
  3849. bool WriteString(const String&);
  3850. bool WriteStringHash(const StringHash&);
  3851. bool WriteUByte(uint8);
  3852. bool WriteUInt(uint);
  3853. bool WriteUShort(uint16);
  3854. bool WriteVLE(uint);
  3855. bool WriteVariant(const Variant&);
  3856. bool WriteVariantMap(const VariantMap&);
  3857. bool WriteVector2(const Vector2&);
  3858. bool WriteVector3(const Vector3&);
  3859. bool WriteVector4(const Vector4&);
  3860. // Properties:
  3861. /* readonly */
  3862. StringHash baseType;
  3863. /* readonly */
  3864. String category;
  3865. /* readonly */
  3866. uint checksum;
  3867. /* readonly */
  3868. bool eof;
  3869. /* readonly */
  3870. FileMode mode;
  3871. /* readonly */
  3872. String name;
  3873. /* readonly */
  3874. bool open;
  3875. /* readonly */
  3876. bool packaged;
  3877. /* readonly */
  3878. uint position;
  3879. /* readonly */
  3880. int refs;
  3881. /* readonly */
  3882. uint size;
  3883. /* readonly */
  3884. StringHash type;
  3885. /* readonly */
  3886. String typeName;
  3887. /* readonly */
  3888. int weakRefs;
  3889. };
  3890. class FileSelector
  3891. {
  3892. // Methods:
  3893. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3894. void SetButtonTexts(const String&, const String&);
  3895. void SetFilters(Array<String>, uint);
  3896. void UpdateElements();
  3897. // Properties:
  3898. /* readonly */
  3899. StringHash baseType;
  3900. /* readonly */
  3901. Button cancelButton;
  3902. /* readonly */
  3903. String category;
  3904. XMLFile defaultStyle;
  3905. bool directoryMode;
  3906. /* readonly */
  3907. ListView fileList;
  3908. String fileName;
  3909. /* readonly */
  3910. LineEdit fileNameEdit;
  3911. /* readonly */
  3912. String filter;
  3913. /* readonly */
  3914. uint filterIndex;
  3915. /* readonly */
  3916. DropDownList filterList;
  3917. /* readonly */
  3918. Button okButton;
  3919. String path;
  3920. /* readonly */
  3921. LineEdit pathEdit;
  3922. /* readonly */
  3923. int refs;
  3924. String title;
  3925. /* readonly */
  3926. Text titleText;
  3927. /* readonly */
  3928. StringHash type;
  3929. /* readonly */
  3930. String typeName;
  3931. /* readonly */
  3932. int weakRefs;
  3933. /* readonly */
  3934. Window window;
  3935. };
  3936. class FileSystem
  3937. {
  3938. // Methods:
  3939. bool Copy(const String&, const String&);
  3940. bool CreateDir(const String&);
  3941. bool Delete(const String&);
  3942. bool DirExists(const String&) const;
  3943. bool FileExists(const String&) const;
  3944. String GetAppPreferencesDir(const String&, const String&) const;
  3945. uint GetLastModifiedTime(const String&) const;
  3946. bool Rename(const String&, const String&);
  3947. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  3948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3949. int SystemCommand(const String&, bool = false);
  3950. uint SystemCommandAsync(const String&);
  3951. bool SystemOpen(const String&, const String&);
  3952. int SystemRun(const String&, Array<String>);
  3953. uint SystemRunAsync(const String&, Array<String>);
  3954. // Properties:
  3955. /* readonly */
  3956. StringHash baseType;
  3957. /* readonly */
  3958. String category;
  3959. String currentDir;
  3960. bool executeConsoleCommands;
  3961. /* readonly */
  3962. String programDir;
  3963. /* readonly */
  3964. int refs;
  3965. /* readonly */
  3966. StringHash type;
  3967. /* readonly */
  3968. String typeName;
  3969. /* readonly */
  3970. String userDocumentsDir;
  3971. /* readonly */
  3972. int weakRefs;
  3973. };
  3974. class FocusParameters
  3975. {
  3976. // Properties:
  3977. bool autoSize;
  3978. bool focus;
  3979. float minView;
  3980. bool nonUniform;
  3981. float quantize;
  3982. };
  3983. class Font
  3984. {
  3985. // Methods:
  3986. bool Load(File);
  3987. bool Load(VectorBuffer&);
  3988. bool Save(File) const;
  3989. bool Save(VectorBuffer&) const;
  3990. bool SaveXML(File, int, bool = false);
  3991. bool SaveXML(VectorBuffer&, int, bool = false);
  3992. bool SaveXML(const String&, int, bool = false);
  3993. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  3994. // Properties:
  3995. /* readonly */
  3996. StringHash baseType;
  3997. /* readonly */
  3998. String category;
  3999. /* readonly */
  4000. uint memoryUse;
  4001. String name;
  4002. /* readonly */
  4003. int refs;
  4004. /* readonly */
  4005. StringHash type;
  4006. /* readonly */
  4007. String typeName;
  4008. /* readonly */
  4009. uint useTimer;
  4010. /* readonly */
  4011. int weakRefs;
  4012. };
  4013. class Frustum
  4014. {
  4015. // Methods:
  4016. void Define(const BoundingBox&, const Matrix3x4&);
  4017. void Define(const Vector3&, const Vector3&, const Matrix3x4&);
  4018. void Define(float, float, float, float, float, const Matrix3x4&);
  4019. void DefineOrtho(float, float, float, float, float, const Matrix3x4&);
  4020. float Distance(const Vector3&) const;
  4021. Intersection IsInside(const BoundingBox&);
  4022. Intersection IsInside(const Sphere&);
  4023. Intersection IsInside(const Vector3&);
  4024. void Transform(const Matrix3&);
  4025. void Transform(const Matrix3x4&);
  4026. Frustum Transformed(const Matrix3&) const;
  4027. Frustum Transformed(const Matrix3x4&) const;
  4028. // Properties:
  4029. /* readonly */
  4030. Array<Vector3> vertices;
  4031. };
  4032. class Graphics
  4033. {
  4034. // Methods:
  4035. void BeginDumpShaders(const String&);
  4036. void Close();
  4037. void EndDumpShaders();
  4038. void Maximize();
  4039. void Minimize();
  4040. void PrecacheShaders(File);
  4041. void PrecacheShaders(VectorBuffer&);
  4042. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4043. bool SetMode(int, int);
  4044. bool SetMode(int, int, bool, bool, bool, bool, bool, int);
  4045. void SetWindowPosition(int, int);
  4046. bool TakeScreenShot(Image);
  4047. bool ToggleFullscreen();
  4048. // Properties:
  4049. /* readonly */
  4050. StringHash baseType;
  4051. /* readonly */
  4052. bool borderless;
  4053. /* readonly */
  4054. String category;
  4055. /* readonly */
  4056. bool deferredSupport;
  4057. /* readonly */
  4058. IntVector2 desktopResolution;
  4059. /* readonly */
  4060. bool deviceLost;
  4061. bool flushGPU;
  4062. bool forceSM2;
  4063. /* readonly */
  4064. bool fullscreen;
  4065. /* readonly */
  4066. bool hardwareShadowSupport;
  4067. /* readonly */
  4068. int height;
  4069. /* readonly */
  4070. bool initialized;
  4071. /* readonly */
  4072. bool instancingSupport;
  4073. /* readonly */
  4074. bool lightPrepassSupport;
  4075. /* readonly */
  4076. int multiSample;
  4077. /* readonly */
  4078. Array<int> multiSampleLevels;
  4079. /* readonly */
  4080. uint numBatches;
  4081. /* readonly */
  4082. uint numPrimitives;
  4083. String orientations;
  4084. /* readonly */
  4085. int refs;
  4086. /* readonly */
  4087. bool resizable;
  4088. /* readonly */
  4089. Array<IntVector2> resolutions;
  4090. bool sRGB;
  4091. /* readonly */
  4092. bool sRGBSupport;
  4093. /* readonly */
  4094. bool sRGBWriteSupport;
  4095. /* readonly */
  4096. bool sm3Support;
  4097. /* readonly */
  4098. bool tripleBuffer;
  4099. /* readonly */
  4100. StringHash type;
  4101. /* readonly */
  4102. String typeName;
  4103. /* readonly */
  4104. bool vsync;
  4105. /* readonly */
  4106. int weakRefs;
  4107. /* readonly */
  4108. int width;
  4109. /* writeonly */
  4110. Image windowIcon;
  4111. IntVector2 windowPosition;
  4112. String windowTitle;
  4113. };
  4114. class HttpRequest
  4115. {
  4116. // Methods:
  4117. Array<uint8> Read(uint);
  4118. bool ReadBool();
  4119. BoundingBox ReadBoundingBox();
  4120. int8 ReadByte();
  4121. Color ReadColor();
  4122. String ReadFileID();
  4123. float ReadFloat();
  4124. int ReadInt();
  4125. IntRect ReadIntRect();
  4126. IntVector2 ReadIntVector2();
  4127. String ReadLine();
  4128. Matrix3 ReadMatrix3();
  4129. Matrix3x4 ReadMatrix3x4();
  4130. Matrix4 ReadMatrix4();
  4131. uint ReadNetID();
  4132. Quaternion ReadPackedQuaternion();
  4133. Vector3 ReadPackedVector3(float);
  4134. Quaternion ReadQuaternion();
  4135. int16 ReadShort();
  4136. String ReadString();
  4137. StringHash ReadStringHash();
  4138. uint8 ReadUByte();
  4139. uint ReadUInt();
  4140. uint16 ReadUShort();
  4141. uint ReadVLE();
  4142. Variant ReadVariant();
  4143. VariantMap ReadVariantMap();
  4144. Vector2 ReadVector2();
  4145. Vector3 ReadVector3();
  4146. Vector4 ReadVector4();
  4147. uint Seek(uint);
  4148. // Properties:
  4149. /* readonly */
  4150. uint availableSize;
  4151. /* readonly */
  4152. uint checksum;
  4153. /* readonly */
  4154. bool eof;
  4155. /* readonly */
  4156. String error;
  4157. /* readonly */
  4158. String name;
  4159. /* readonly */
  4160. bool open;
  4161. /* readonly */
  4162. uint position;
  4163. /* readonly */
  4164. int refs;
  4165. /* readonly */
  4166. uint size;
  4167. /* readonly */
  4168. HttpRequestState state;
  4169. /* readonly */
  4170. String url;
  4171. /* readonly */
  4172. String verb;
  4173. /* readonly */
  4174. int weakRefs;
  4175. };
  4176. class Image
  4177. {
  4178. // Methods:
  4179. void Clear(const Color&);
  4180. void ClearInt(uint);
  4181. bool FlipHorizontal();
  4182. bool FlipVertical();
  4183. Color GetPixel(int, int) const;
  4184. Color GetPixel(int, int, int) const;
  4185. Color GetPixelBilinear(float, float) const;
  4186. uint GetPixelInt(int, int) const;
  4187. uint GetPixelInt(int, int, int) const;
  4188. Color GetPixelTrilinear(float, float, float) const;
  4189. Image GetSubimage(const IntRect&) const;
  4190. bool Load(File);
  4191. bool Load(VectorBuffer&);
  4192. bool LoadColorLUT(File);
  4193. bool LoadColorLUT(VectorBuffer&);
  4194. bool Resize(int, int);
  4195. bool Save(File) const;
  4196. bool Save(VectorBuffer&) const;
  4197. void SaveBMP(const String&) const;
  4198. void SaveJPG(const String&, int) const;
  4199. void SavePNG(const String&) const;
  4200. void SaveTGA(const String&) const;
  4201. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4202. void SetPixel(int, int, const Color&);
  4203. void SetPixel(int, int, int, const Color&);
  4204. void SetPixelInt(int, int, int, uint);
  4205. void SetPixelInt(int, int, uint);
  4206. bool SetSize(int, int, int, uint);
  4207. bool SetSize(int, int, uint);
  4208. // Properties:
  4209. /* readonly */
  4210. StringHash baseType;
  4211. /* readonly */
  4212. String category;
  4213. /* readonly */
  4214. uint components;
  4215. /* readonly */
  4216. bool compressed;
  4217. /* readonly */
  4218. int depth;
  4219. /* readonly */
  4220. int height;
  4221. /* readonly */
  4222. uint memoryUse;
  4223. String name;
  4224. /* readonly */
  4225. int refs;
  4226. /* readonly */
  4227. StringHash type;
  4228. /* readonly */
  4229. String typeName;
  4230. /* readonly */
  4231. uint useTimer;
  4232. /* readonly */
  4233. int weakRefs;
  4234. /* readonly */
  4235. int width;
  4236. };
  4237. class Input
  4238. {
  4239. // Methods:
  4240. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  4241. int GetKeyFromName(const String&) const;
  4242. int GetKeyFromScancode(int) const;
  4243. String GetKeyName(int) const;
  4244. int GetScancodeFromKey(int) const;
  4245. int GetScancodeFromName(const String&) const;
  4246. String GetScancodeName(int) const;
  4247. uint LoadGestures(File);
  4248. uint LoadGestures(VectorBuffer&);
  4249. bool RecordGesture();
  4250. void RemoveAllGestures();
  4251. bool RemoveGesture(uint);
  4252. bool RemoveScreenJoystick(int);
  4253. bool SaveGesture(File, uint);
  4254. bool SaveGesture(VectorBuffer&, uint);
  4255. bool SaveGestures(File);
  4256. bool SaveGestures(VectorBuffer&);
  4257. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4258. // Properties:
  4259. /* readonly */
  4260. StringHash baseType;
  4261. /* readonly */
  4262. String category;
  4263. /* readonly */
  4264. bool focus;
  4265. /* readonly */
  4266. Array<JoystickState> joysticks;
  4267. /* readonly */
  4268. Array<JoystickState> joysticksByIndex;
  4269. /* readonly */
  4270. Array<bool> keyDown;
  4271. /* readonly */
  4272. Array<bool> keyPress;
  4273. /* readonly */
  4274. bool minimized;
  4275. /* readonly */
  4276. Array<bool> mouseButtonDown;
  4277. /* readonly */
  4278. Array<bool> mouseButtonPress;
  4279. bool mouseGrabbed;
  4280. /* readonly */
  4281. IntVector2 mouseMove;
  4282. /* readonly */
  4283. int mouseMoveWheel;
  4284. /* readonly */
  4285. int mouseMoveX;
  4286. /* readonly */
  4287. int mouseMoveY;
  4288. /* readonly */
  4289. IntVector2 mousePosition;
  4290. bool mouseVisible;
  4291. /* readonly */
  4292. uint numJoysticks;
  4293. /* readonly */
  4294. uint numTouches;
  4295. /* readonly */
  4296. Array<bool> qualifierDown;
  4297. /* readonly */
  4298. Array<bool> qualifierPress;
  4299. /* readonly */
  4300. int qualifiers;
  4301. /* readonly */
  4302. int refs;
  4303. /* readonly */
  4304. Array<bool> scancodeDown;
  4305. /* readonly */
  4306. Array<bool> scancodePress;
  4307. Array<bool> screenJoystickVisible;
  4308. /* readonly */
  4309. bool screenKeyboardSupport;
  4310. bool screenKeyboardVisible;
  4311. bool toggleFullscreen;
  4312. bool touchEmulation;
  4313. /* readonly */
  4314. Array<TouchState> touches;
  4315. /* readonly */
  4316. StringHash type;
  4317. /* readonly */
  4318. String typeName;
  4319. /* readonly */
  4320. int weakRefs;
  4321. };
  4322. class IntRect
  4323. {
  4324. // Methods:
  4325. Intersection IsInside(const IntVector2&) const;
  4326. // Properties:
  4327. int bottom;
  4328. /* readonly */
  4329. Array<int> data;
  4330. /* readonly */
  4331. int height;
  4332. int left;
  4333. int right;
  4334. /* readonly */
  4335. IntVector2 size;
  4336. int top;
  4337. /* readonly */
  4338. int width;
  4339. };
  4340. class IntVector2
  4341. {
  4342. // Methods:
  4343. String ToString() const;
  4344. // Properties:
  4345. /* readonly */
  4346. Array<int> data;
  4347. int x;
  4348. int y;
  4349. };
  4350. class JSONFile
  4351. {
  4352. // Methods:
  4353. JSONValue CreateRoot(JSONValueType = JSON_ANY);
  4354. JSONValue GetRoot(JSONValueType = JSON_ANY);
  4355. bool Load(File);
  4356. bool Load(VectorBuffer&);
  4357. bool Save(File) const;
  4358. bool Save(VectorBuffer&) const;
  4359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4360. // Properties:
  4361. /* readonly */
  4362. StringHash baseType;
  4363. /* readonly */
  4364. String category;
  4365. /* readonly */
  4366. uint memoryUse;
  4367. String name;
  4368. /* readonly */
  4369. int refs;
  4370. /* readonly */
  4371. StringHash type;
  4372. /* readonly */
  4373. String typeName;
  4374. /* readonly */
  4375. uint useTimer;
  4376. /* readonly */
  4377. int weakRefs;
  4378. };
  4379. class JSONValue
  4380. {
  4381. // Methods:
  4382. void AddBool(bool);
  4383. void AddColor(const Color&);
  4384. void AddFloat(float);
  4385. void AddInt(int);
  4386. void AddIntRect(const IntRect&);
  4387. void AddIntVector2(const IntVector2&);
  4388. void AddMatrix3(const Matrix3&);
  4389. void AddMatrix3x4(const Matrix3x4&);
  4390. void AddMatrix4(const Matrix4&);
  4391. void AddQuaternion(const Quaternion&);
  4392. void AddResourceRef(const ResourceRef&);
  4393. void AddResourceRefList(const ResourceRefList&);
  4394. void AddString(const String);
  4395. void AddVariant(const Variant&);
  4396. void AddVariantValue(const Variant&);
  4397. void AddVector2(const Vector2&);
  4398. void AddVector3(const Vector3&);
  4399. void AddVector4(const Vector4&);
  4400. void AddVectorVariant(const Variant&);
  4401. JSONValue CreateChild(JSONValueType = JSON_OBJECT);
  4402. JSONValue CreateChild(const String&, JSONValueType = JSON_OBJECT);
  4403. bool GetBool(const String&) const;
  4404. bool GetBool(uint) const;
  4405. JSONValue GetChild(const String&, JSONValueType = JSON_ANY) const;
  4406. JSONValue GetChild(uint, JSONValueType = JSON_ANY) const;
  4407. Array<String> GetChildNames() const;
  4408. Color GetColor(const String&) const;
  4409. Color GetColor(uint) const;
  4410. float GetFloat(const String&) const;
  4411. float GetFloat(uint) const;
  4412. int GetInt(const String&) const;
  4413. int GetInt(uint) const;
  4414. IntRect GetIntRect(const String&) const;
  4415. IntRect GetIntRect(uint) const;
  4416. IntVector2 GetIntVector2(const String&) const;
  4417. IntVector2 GetIntVector2(uint) const;
  4418. Matrix3 GetMatrix3(const String&) const;
  4419. Matrix3 GetMatrix3(uint) const;
  4420. Matrix3x4 GetMatrix3x4(const String&) const;
  4421. Matrix3x4 GetMatrix3x4(uint) const;
  4422. Matrix4 GetMatrix4(const String&) const;
  4423. Matrix4 GetMatrix4(uint) const;
  4424. Quaternion GetQuaternion(const String&) const;
  4425. Quaternion GetQuaternion(uint) const;
  4426. ResourceRef GetResourceRef(const String&) const;
  4427. ResourceRef GetResourceRef(uint) const;
  4428. ResourceRefList GetResourceRefList(const String&) const;
  4429. ResourceRefList GetResourceRefList(uint) const;
  4430. String GetString(const String&) const;
  4431. String GetString(uint) const;
  4432. Array<String> GetValueNames() const;
  4433. Variant GetVariant(const String&) const;
  4434. Variant GetVariant(uint) const;
  4435. Variant GetVariantValue(const String&, VariantType) const;
  4436. Variant GetVariantValue(uint, VariantType) const;
  4437. Vector2 GetVector2(const String&) const;
  4438. Vector2 GetVector2(uint) const;
  4439. Vector3 GetVector3(const String&) const;
  4440. Vector3 GetVector3(uint) const;
  4441. Vector4 GetVector4(const String&) const;
  4442. Vector4 GetVector4(uint) const;
  4443. Variant GetVectorVariant(const String&) const;
  4444. Variant GetVectorVariant(uint) const;
  4445. void SetBool(const String&, bool);
  4446. void SetColor(const String&, const Color&);
  4447. void SetFloat(const String&, float);
  4448. void SetInt(const String&, int);
  4449. void SetIntRect(const String&, const IntRect&);
  4450. void SetIntVector2(const String&, const IntVector2&);
  4451. void SetMatrix3(const String&, const Matrix3&);
  4452. void SetMatrix3x4(const String&, const Matrix3x4&);
  4453. void SetMatrix4(const String&, const Matrix4&);
  4454. void SetQuaternion(const String&, const Quaternion&);
  4455. void SetResourceRef(const String&, const ResourceRef&);
  4456. void SetResourceRefList(const String&, const ResourceRefList&);
  4457. void SetString(const String&, const String);
  4458. void SetVariant(const String&, const Variant&);
  4459. void SetVariantValue(const String&, const Variant&);
  4460. void SetVector2(const String&, const Vector2&);
  4461. void SetVector3(const String&, const Vector3&);
  4462. void SetVector4(const String&, const Vector4&);
  4463. void SetVectorVariant(const String&, const Variant&);
  4464. // Properties:
  4465. /* readonly */
  4466. bool isArray;
  4467. /* readonly */
  4468. bool isNull;
  4469. /* readonly */
  4470. bool isObject;
  4471. /* readonly */
  4472. bool notNull;
  4473. /* readonly */
  4474. uint size;
  4475. };
  4476. class JoystickState
  4477. {
  4478. // Properties:
  4479. /* readonly */
  4480. Array<float> axisPosition;
  4481. /* readonly */
  4482. Array<bool> buttonDown;
  4483. /* readonly */
  4484. Array<bool> buttonPress;
  4485. /* readonly */
  4486. bool controller;
  4487. /* readonly */
  4488. Array<int> hatPosition;
  4489. int joystickID;
  4490. String name;
  4491. /* readonly */
  4492. uint numAxes;
  4493. /* readonly */
  4494. uint numButtons;
  4495. /* readonly */
  4496. uint numHats;
  4497. };
  4498. class Light
  4499. {
  4500. // Methods:
  4501. void ApplyAttributes();
  4502. void DrawDebugGeometry(DebugRenderer, bool);
  4503. Variant GetAttribute(const String&) const;
  4504. ValueAnimation GetAttributeAnimation(const String&) const;
  4505. float GetAttributeAnimationSpeed(const String&) const;
  4506. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4507. Variant GetAttributeDefault(const String&) const;
  4508. bool IsInView(Camera) const;
  4509. bool Load(File, bool = false);
  4510. bool Load(VectorBuffer&, bool = false);
  4511. bool LoadXML(const XMLElement&, bool = false);
  4512. void MarkNetworkUpdate() const;
  4513. void Remove();
  4514. void RemoveInstanceDefault();
  4515. void ResetToDefault();
  4516. bool Save(File) const;
  4517. bool Save(VectorBuffer&) const;
  4518. bool SaveXML(XMLElement&) const;
  4519. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4520. bool SetAttribute(const String&, const Variant&);
  4521. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4522. void SetAttributeAnimationSpeed(const String&, float);
  4523. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4524. // Properties:
  4525. bool animationEnabled;
  4526. float aspectRatio;
  4527. /* readonly */
  4528. Array<Variant> attributeDefaults;
  4529. /* readonly */
  4530. Array<AttributeInfo> attributeInfos;
  4531. Array<Variant> attributes;
  4532. /* readonly */
  4533. StringHash baseType;
  4534. /* readonly */
  4535. BoundingBox boundingBox;
  4536. float brightness;
  4537. bool castShadows;
  4538. /* readonly */
  4539. String category;
  4540. Color color;
  4541. float drawDistance;
  4542. /* readonly */
  4543. Color effectiveColor;
  4544. /* readonly */
  4545. float effectiveSpecularIntensity;
  4546. bool enabled;
  4547. /* readonly */
  4548. bool enabledEffective;
  4549. float fadeDistance;
  4550. float fov;
  4551. /* readonly */
  4552. Frustum frustum;
  4553. /* readonly */
  4554. uint id;
  4555. /* readonly */
  4556. bool inView;
  4557. uint lightMask;
  4558. LightType lightType;
  4559. float lodBias;
  4560. uint maxLights;
  4561. /* readonly */
  4562. bool negative;
  4563. /* readonly */
  4564. Node node;
  4565. /* readonly */
  4566. uint numAttributes;
  4567. /* readonly */
  4568. int numShadowSplits;
  4569. ObjectAnimation objectAnimation;
  4570. bool occludee;
  4571. bool occluder;
  4572. bool perVertex;
  4573. Texture rampTexture;
  4574. float range;
  4575. /* readonly */
  4576. int refs;
  4577. BiasParameters shadowBias;
  4578. CascadeParameters shadowCascade;
  4579. float shadowDistance;
  4580. float shadowFadeDistance;
  4581. FocusParameters shadowFocus;
  4582. float shadowIntensity;
  4583. uint shadowMask;
  4584. float shadowNearFarRatio;
  4585. float shadowResolution;
  4586. Texture shapeTexture;
  4587. float specularIntensity;
  4588. bool temporary;
  4589. /* readonly */
  4590. StringHash type;
  4591. /* readonly */
  4592. String typeName;
  4593. uint viewMask;
  4594. /* readonly */
  4595. int weakRefs;
  4596. /* readonly */
  4597. BoundingBox worldBoundingBox;
  4598. uint zoneMask;
  4599. };
  4600. class LineEdit
  4601. {
  4602. // Methods:
  4603. void AddChild(UIElement);
  4604. void ApplyAttributes();
  4605. void BringToFront();
  4606. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4607. void DisableLayoutUpdate();
  4608. IntVector2 ElementToScreen(const IntVector2&);
  4609. void EnableLayoutUpdate();
  4610. uint FindChild(UIElement) const;
  4611. Variant GetAttribute(const String&) const;
  4612. ValueAnimation GetAttributeAnimation(const String&) const;
  4613. float GetAttributeAnimationSpeed(const String&) const;
  4614. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4615. Variant GetAttributeDefault(const String&) const;
  4616. UIElement GetChild(const String&, bool = false) const;
  4617. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4618. Array<UIElement> GetChildren(bool = false) const;
  4619. UIElement GetElementEventSender() const;
  4620. uint GetNumChildren(bool) const;
  4621. void InsertChild(uint, UIElement);
  4622. bool IsInside(IntVector2, bool);
  4623. bool IsInsideCombined(IntVector2, bool);
  4624. bool Load(File, bool = false);
  4625. bool Load(VectorBuffer&, bool = false);
  4626. bool LoadChildXML(XMLFile, XMLFile = null);
  4627. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4628. bool LoadXML(File);
  4629. bool LoadXML(VectorBuffer&);
  4630. bool LoadXML(XMLFile, XMLFile);
  4631. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4632. bool LoadXML(const XMLElement&, bool = false);
  4633. void MarkNetworkUpdate() const;
  4634. void Remove();
  4635. void RemoveAllChildren();
  4636. void RemoveChild(UIElement, uint = 0);
  4637. void RemoveChild(uint);
  4638. void RemoveInstanceDefault();
  4639. void ResetToDefault();
  4640. bool Save(File) const;
  4641. bool Save(VectorBuffer&) const;
  4642. bool SaveXML(File);
  4643. bool SaveXML(VectorBuffer&);
  4644. bool SaveXML(XMLElement&) const;
  4645. IntVector2 ScreenToElement(const IntVector2&);
  4646. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4647. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4648. bool SetAttribute(const String&, const Variant&);
  4649. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4650. void SetAttributeAnimationSpeed(const String&, float);
  4651. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4652. void SetFixedHeight(int);
  4653. void SetFixedSize(int, int);
  4654. void SetFixedWidth(int);
  4655. void SetFullImageRect();
  4656. void SetHoverOffset(int, int);
  4657. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4658. void SetMaxSize(int, int);
  4659. void SetMinSize(int, int);
  4660. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4661. void SetPosition(int, int);
  4662. void SetSize(int, int);
  4663. bool SetStyle(const String&, XMLFile = null);
  4664. bool SetStyle(const XMLElement&);
  4665. bool SetStyleAuto(XMLFile = null);
  4666. void UpdateLayout();
  4667. const Variant& GetVar(const StringHash&);
  4668. // Properties:
  4669. bool animationEnabled;
  4670. /* readonly */
  4671. Array<Variant> attributeDefaults;
  4672. /* readonly */
  4673. Array<AttributeInfo> attributeInfos;
  4674. Array<Variant> attributes;
  4675. /* readonly */
  4676. StringHash baseType;
  4677. BlendMode blendMode;
  4678. IntRect border;
  4679. bool bringToBack;
  4680. bool bringToFront;
  4681. /* readonly */
  4682. String category;
  4683. /* readonly */
  4684. IntVector2 childOffset;
  4685. /* readonly */
  4686. Array<UIElement> children;
  4687. IntRect clipBorder;
  4688. bool clipChildren;
  4689. /* writeonly */
  4690. Color color;
  4691. /* readonly */
  4692. bool colorGradient;
  4693. Array<Color> colors;
  4694. /* readonly */
  4695. IntRect combinedScreenRect;
  4696. /* readonly */
  4697. BorderImage cursor;
  4698. float cursorBlinkRate;
  4699. bool cursorMovable;
  4700. uint cursorPosition;
  4701. XMLFile defaultStyle;
  4702. /* readonly */
  4703. float derivedOpacity;
  4704. uint dragDropMode;
  4705. uint echoCharacter;
  4706. bool editable;
  4707. bool elementEventSender;
  4708. bool enabled;
  4709. /* readonly */
  4710. bool fixedHeight;
  4711. /* readonly */
  4712. bool fixedSize;
  4713. /* readonly */
  4714. bool fixedWidth;
  4715. bool focus;
  4716. FocusMode focusMode;
  4717. int height;
  4718. HorizontalAlignment horizontalAlignment;
  4719. IntVector2 hoverOffset;
  4720. /* readonly */
  4721. bool hovering;
  4722. IntRect imageBorder;
  4723. IntRect imageRect;
  4724. int indent;
  4725. int indentSpacing;
  4726. /* readonly */
  4727. int indentWidth;
  4728. bool internal;
  4729. IntRect layoutBorder;
  4730. LayoutMode layoutMode;
  4731. int layoutSpacing;
  4732. int maxHeight;
  4733. uint maxLength;
  4734. IntVector2 maxSize;
  4735. int maxWidth;
  4736. int minHeight;
  4737. IntVector2 minSize;
  4738. int minWidth;
  4739. String name;
  4740. /* readonly */
  4741. uint numAllChildren;
  4742. /* readonly */
  4743. uint numAttributes;
  4744. /* readonly */
  4745. uint numChildren;
  4746. ObjectAnimation objectAnimation;
  4747. float opacity;
  4748. UIElement parent;
  4749. IntVector2 position;
  4750. int priority;
  4751. /* readonly */
  4752. int refs;
  4753. /* readonly */
  4754. UIElement root;
  4755. /* readonly */
  4756. IntVector2 screenPosition;
  4757. bool selected;
  4758. IntVector2 size;
  4759. bool sortChildren;
  4760. String style;
  4761. bool temporary;
  4762. String text;
  4763. bool textCopyable;
  4764. /* readonly */
  4765. Text textElement;
  4766. bool textSelectable;
  4767. Texture texture;
  4768. bool tiled;
  4769. TraversalMode traversalMode;
  4770. /* readonly */
  4771. StringHash type;
  4772. /* readonly */
  4773. String typeName;
  4774. bool useDerivedOpacity;
  4775. /* readonly */
  4776. VariantMap vars;
  4777. VerticalAlignment verticalAlignment;
  4778. bool visible;
  4779. /* readonly */
  4780. int weakRefs;
  4781. int width;
  4782. };
  4783. class ListView
  4784. {
  4785. // Methods:
  4786. void AddChild(UIElement);
  4787. void AddItem(UIElement);
  4788. void AddSelection(uint);
  4789. void ApplyAttributes();
  4790. void BringToFront();
  4791. void ChangeSelection(int, bool);
  4792. void ClearSelection();
  4793. void CopySelectedItemsToClipboard();
  4794. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  4795. void DisableLayoutUpdate();
  4796. IntVector2 ElementToScreen(const IntVector2&);
  4797. void EnableLayoutUpdate();
  4798. void Expand(uint, bool, bool = false);
  4799. uint FindChild(UIElement) const;
  4800. uint FindItem(UIElement);
  4801. Variant GetAttribute(const String&) const;
  4802. ValueAnimation GetAttributeAnimation(const String&) const;
  4803. float GetAttributeAnimationSpeed(const String&) const;
  4804. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4805. Variant GetAttributeDefault(const String&) const;
  4806. UIElement GetChild(const String&, bool = false) const;
  4807. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  4808. Array<UIElement> GetChildren(bool = false) const;
  4809. UIElement GetElementEventSender() const;
  4810. Array<UIElement> GetItems() const;
  4811. uint GetNumChildren(bool) const;
  4812. void InsertChild(uint, UIElement);
  4813. void InsertItem(uint, UIElement, UIElement = null);
  4814. bool IsExpanded(uint) const;
  4815. bool IsInside(IntVector2, bool);
  4816. bool IsInsideCombined(IntVector2, bool);
  4817. bool IsSelected(uint) const;
  4818. bool Load(File, bool = false);
  4819. bool Load(VectorBuffer&, bool = false);
  4820. bool LoadChildXML(XMLFile, XMLFile = null);
  4821. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  4822. bool LoadXML(File);
  4823. bool LoadXML(VectorBuffer&);
  4824. bool LoadXML(XMLFile, XMLFile);
  4825. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  4826. bool LoadXML(const XMLElement&, bool = false);
  4827. void MarkNetworkUpdate() const;
  4828. void Remove();
  4829. void RemoveAllChildren();
  4830. void RemoveAllItems();
  4831. void RemoveChild(UIElement, uint = 0);
  4832. void RemoveChild(uint);
  4833. void RemoveInstanceDefault();
  4834. void RemoveItem(UIElement, uint = 0);
  4835. void RemoveItem(uint);
  4836. void RemoveSelection(uint);
  4837. void ResetToDefault();
  4838. bool Save(File) const;
  4839. bool Save(VectorBuffer&) const;
  4840. bool SaveXML(File);
  4841. bool SaveXML(VectorBuffer&);
  4842. bool SaveXML(XMLElement&) const;
  4843. IntVector2 ScreenToElement(const IntVector2&);
  4844. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  4845. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  4846. bool SetAttribute(const String&, const Variant&);
  4847. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4848. void SetAttributeAnimationSpeed(const String&, float);
  4849. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4850. void SetFixedHeight(int);
  4851. void SetFixedSize(int, int);
  4852. void SetFixedWidth(int);
  4853. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  4854. void SetMaxSize(int, int);
  4855. void SetMinSize(int, int);
  4856. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  4857. void SetPosition(int, int);
  4858. void SetScrollBarsVisible(bool, bool);
  4859. void SetSelections(Array<uint>);
  4860. void SetSize(int, int);
  4861. bool SetStyle(const String&, XMLFile = null);
  4862. bool SetStyle(const XMLElement&);
  4863. bool SetStyleAuto(XMLFile = null);
  4864. void SetViewPosition(int, int);
  4865. void ToggleExpand(uint, bool = false);
  4866. void ToggleSelection(uint);
  4867. void UpdateLayout();
  4868. const Variant& GetVar(const StringHash&);
  4869. // Properties:
  4870. bool animationEnabled;
  4871. /* readonly */
  4872. Array<Variant> attributeDefaults;
  4873. /* readonly */
  4874. Array<AttributeInfo> attributeInfos;
  4875. Array<Variant> attributes;
  4876. int baseIndent;
  4877. /* readonly */
  4878. StringHash baseType;
  4879. bool bringToBack;
  4880. bool bringToFront;
  4881. /* readonly */
  4882. String category;
  4883. /* readonly */
  4884. IntVector2 childOffset;
  4885. /* readonly */
  4886. Array<UIElement> children;
  4887. bool clearSelectionOnDefocus;
  4888. IntRect clipBorder;
  4889. bool clipChildren;
  4890. /* writeonly */
  4891. Color color;
  4892. /* readonly */
  4893. bool colorGradient;
  4894. Array<Color> colors;
  4895. /* readonly */
  4896. IntRect combinedScreenRect;
  4897. /* readonly */
  4898. UIElement contentElement;
  4899. XMLFile defaultStyle;
  4900. /* readonly */
  4901. float derivedOpacity;
  4902. uint dragDropMode;
  4903. bool editable;
  4904. bool elementEventSender;
  4905. bool enabled;
  4906. /* readonly */
  4907. bool fixedHeight;
  4908. /* readonly */
  4909. bool fixedSize;
  4910. /* readonly */
  4911. bool fixedWidth;
  4912. bool focus;
  4913. FocusMode focusMode;
  4914. int height;
  4915. bool hierarchyMode;
  4916. HighlightMode highlightMode;
  4917. HorizontalAlignment horizontalAlignment;
  4918. /* readonly */
  4919. ScrollBar horizontalScrollBar;
  4920. /* readonly */
  4921. bool hovering;
  4922. int indent;
  4923. int indentSpacing;
  4924. /* readonly */
  4925. int indentWidth;
  4926. bool internal;
  4927. /* readonly */
  4928. Array<UIElement> items;
  4929. IntRect layoutBorder;
  4930. LayoutMode layoutMode;
  4931. int layoutSpacing;
  4932. int maxHeight;
  4933. IntVector2 maxSize;
  4934. int maxWidth;
  4935. int minHeight;
  4936. IntVector2 minSize;
  4937. int minWidth;
  4938. bool multiselect;
  4939. String name;
  4940. /* readonly */
  4941. uint numAllChildren;
  4942. /* readonly */
  4943. uint numAttributes;
  4944. /* readonly */
  4945. uint numChildren;
  4946. /* readonly */
  4947. uint numItems;
  4948. ObjectAnimation objectAnimation;
  4949. float opacity;
  4950. float pageStep;
  4951. UIElement parent;
  4952. IntVector2 position;
  4953. int priority;
  4954. /* readonly */
  4955. int refs;
  4956. /* readonly */
  4957. UIElement root;
  4958. /* readonly */
  4959. IntVector2 screenPosition;
  4960. bool scrollBarsAutoVisible;
  4961. /* readonly */
  4962. BorderImage scrollPanel;
  4963. float scrollStep;
  4964. bool selectOnClickEnd;
  4965. bool selected;
  4966. /* readonly */
  4967. UIElement selectedItem;
  4968. /* readonly */
  4969. Array<UIElement> selectedItems;
  4970. uint selection;
  4971. /* readonly */
  4972. Array<uint> selections;
  4973. IntVector2 size;
  4974. bool sortChildren;
  4975. String style;
  4976. bool temporary;
  4977. TraversalMode traversalMode;
  4978. /* readonly */
  4979. StringHash type;
  4980. /* readonly */
  4981. String typeName;
  4982. bool useDerivedOpacity;
  4983. /* readonly */
  4984. VariantMap vars;
  4985. VerticalAlignment verticalAlignment;
  4986. /* readonly */
  4987. ScrollBar verticalScrollBar;
  4988. IntVector2 viewPosition;
  4989. bool visible;
  4990. /* readonly */
  4991. int weakRefs;
  4992. int width;
  4993. };
  4994. class Log
  4995. {
  4996. // Methods:
  4997. void Close();
  4998. void Debug(const String&);
  4999. void Error(const String&);
  5000. void Info(const String&);
  5001. void Open(const String&);
  5002. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5003. void Warning(const String&);
  5004. void Write(const String&, bool = false);
  5005. // Properties:
  5006. /* readonly */
  5007. StringHash baseType;
  5008. /* readonly */
  5009. String category;
  5010. /* readonly */
  5011. String lastMessage;
  5012. int level;
  5013. bool quiet;
  5014. /* readonly */
  5015. int refs;
  5016. bool timeStamp;
  5017. /* readonly */
  5018. StringHash type;
  5019. /* readonly */
  5020. String typeName;
  5021. /* readonly */
  5022. int weakRefs;
  5023. };
  5024. class Material
  5025. {
  5026. // Methods:
  5027. Material Clone(const String& = String ( )) const;
  5028. ValueAnimation GetShaderParameterAnimation(const String&) const;
  5029. float GetShaderParameterAnimationSpeed(const String&) const;
  5030. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  5031. bool Load(File);
  5032. bool Load(VectorBuffer&);
  5033. bool Load(const XMLElement&);
  5034. void RemoveShaderParameter(const String&);
  5035. bool Save(File) const;
  5036. bool Save(VectorBuffer&) const;
  5037. bool Save(XMLElement&) const;
  5038. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5039. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5040. void SetShaderParameterAnimationSpeed(const String&, float);
  5041. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  5042. void SetTechnique(uint, Technique, uint = 0, float = 0.0);
  5043. void SetUVTransform(const Vector2&, float, const Vector2&);
  5044. void SetUVTransform(const Vector2&, float, float);
  5045. void SortTechniques();
  5046. // Properties:
  5047. /* readonly */
  5048. StringHash baseType;
  5049. /* readonly */
  5050. String category;
  5051. CullMode cullMode;
  5052. BiasParameters depthBias;
  5053. /* readonly */
  5054. uint memoryUse;
  5055. String name;
  5056. uint numTechniques;
  5057. /* readonly */
  5058. bool occlusion;
  5059. /* readonly */
  5060. int refs;
  5061. /* readonly */
  5062. Array<String> shaderParameterNames;
  5063. Array<Variant> shaderParameters;
  5064. CullMode shadowCullMode;
  5065. /* readonly */
  5066. Array<TechniqueEntry> techniqueEntries;
  5067. /* readonly */
  5068. Array<Technique> techniques;
  5069. Array<Texture> textures;
  5070. /* readonly */
  5071. StringHash type;
  5072. /* readonly */
  5073. String typeName;
  5074. /* readonly */
  5075. uint useTimer;
  5076. /* readonly */
  5077. int weakRefs;
  5078. };
  5079. class Matrix3
  5080. {
  5081. // Methods:
  5082. bool Equals(const Matrix3&) const;
  5083. Matrix3 Inverse() const;
  5084. Vector3 Scale() const;
  5085. Matrix3 Scaled(const Vector3&) const;
  5086. void SetScale(const Vector3&);
  5087. void SetScale(float);
  5088. String ToString() const;
  5089. Matrix3 Transpose() const;
  5090. // Properties:
  5091. float m00;
  5092. float m01;
  5093. float m02;
  5094. float m10;
  5095. float m11;
  5096. float m12;
  5097. float m20;
  5098. float m21;
  5099. float m22;
  5100. };
  5101. class Matrix3x4
  5102. {
  5103. // Methods:
  5104. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5105. bool Equals(const Matrix3x4&) const;
  5106. Matrix3x4 Inverse() const;
  5107. Quaternion Rotation() const;
  5108. Matrix3 RotationMatrix() const;
  5109. Vector3 Scale() const;
  5110. void SetRotation(const Matrix3&);
  5111. void SetScale(const Vector3&);
  5112. void SetScale(float);
  5113. void SetTranslation(const Vector3&);
  5114. Matrix3 ToMatrix3() const;
  5115. Matrix4 ToMatrix4() const;
  5116. String ToString() const;
  5117. Vector3 Translation() const;
  5118. // Properties:
  5119. float m00;
  5120. float m01;
  5121. float m02;
  5122. float m03;
  5123. float m10;
  5124. float m11;
  5125. float m12;
  5126. float m13;
  5127. float m20;
  5128. float m21;
  5129. float m22;
  5130. float m23;
  5131. };
  5132. class Matrix4
  5133. {
  5134. // Methods:
  5135. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  5136. bool Equals(const Matrix4&) const;
  5137. Matrix4 Inverse() const;
  5138. Quaternion Rotation() const;
  5139. Matrix3 RotationMatrix() const;
  5140. Vector3 Scale() const;
  5141. void SetRotation(const Matrix3&);
  5142. void SetScale(const Vector3&);
  5143. void SetScale(float);
  5144. void SetTranslation(const Vector3&);
  5145. Matrix3 ToMatrix3() const;
  5146. String ToString() const;
  5147. Vector3 Translation() const;
  5148. Matrix4 Transpose() const;
  5149. // Properties:
  5150. float m00;
  5151. float m01;
  5152. float m02;
  5153. float m03;
  5154. float m10;
  5155. float m11;
  5156. float m12;
  5157. float m13;
  5158. float m20;
  5159. float m21;
  5160. float m22;
  5161. float m23;
  5162. float m30;
  5163. float m31;
  5164. float m32;
  5165. float m33;
  5166. };
  5167. class Menu
  5168. {
  5169. // Methods:
  5170. void AddChild(UIElement);
  5171. void ApplyAttributes();
  5172. void BringToFront();
  5173. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  5174. void DisableLayoutUpdate();
  5175. IntVector2 ElementToScreen(const IntVector2&);
  5176. void EnableLayoutUpdate();
  5177. uint FindChild(UIElement) const;
  5178. Variant GetAttribute(const String&) const;
  5179. ValueAnimation GetAttributeAnimation(const String&) const;
  5180. float GetAttributeAnimationSpeed(const String&) const;
  5181. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5182. Variant GetAttributeDefault(const String&) const;
  5183. UIElement GetChild(const String&, bool = false) const;
  5184. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  5185. Array<UIElement> GetChildren(bool = false) const;
  5186. UIElement GetElementEventSender() const;
  5187. uint GetNumChildren(bool) const;
  5188. void InsertChild(uint, UIElement);
  5189. bool IsInside(IntVector2, bool);
  5190. bool IsInsideCombined(IntVector2, bool);
  5191. bool Load(File, bool = false);
  5192. bool Load(VectorBuffer&, bool = false);
  5193. bool LoadChildXML(XMLFile, XMLFile = null);
  5194. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  5195. bool LoadXML(File);
  5196. bool LoadXML(VectorBuffer&);
  5197. bool LoadXML(XMLFile, XMLFile);
  5198. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  5199. bool LoadXML(const XMLElement&, bool = false);
  5200. void MarkNetworkUpdate() const;
  5201. void Remove();
  5202. void RemoveAllChildren();
  5203. void RemoveChild(UIElement, uint = 0);
  5204. void RemoveChild(uint);
  5205. void RemoveInstanceDefault();
  5206. void ResetToDefault();
  5207. bool Save(File) const;
  5208. bool Save(VectorBuffer&) const;
  5209. bool SaveXML(File);
  5210. bool SaveXML(VectorBuffer&);
  5211. bool SaveXML(XMLElement&) const;
  5212. IntVector2 ScreenToElement(const IntVector2&);
  5213. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5214. void SetAccelerator(int, int);
  5215. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  5216. bool SetAttribute(const String&, const Variant&);
  5217. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5218. void SetAttributeAnimationSpeed(const String&, float);
  5219. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5220. void SetFixedHeight(int);
  5221. void SetFixedSize(int, int);
  5222. void SetFixedWidth(int);
  5223. void SetFullImageRect();
  5224. void SetHoverOffset(int, int);
  5225. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  5226. void SetMaxSize(int, int);
  5227. void SetMinSize(int, int);
  5228. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  5229. void SetPopupOffset(int, int);
  5230. void SetPosition(int, int);
  5231. void SetPressedChildOffset(int, int);
  5232. void SetPressedOffset(int, int);
  5233. void SetRepeat(float, float);
  5234. void SetSize(int, int);
  5235. bool SetStyle(const String&, XMLFile = null);
  5236. bool SetStyle(const XMLElement&);
  5237. bool SetStyleAuto(XMLFile = null);
  5238. void UpdateLayout();
  5239. const Variant& GetVar(const StringHash&);
  5240. // Properties:
  5241. /* readonly */
  5242. int acceleratorKey;
  5243. /* readonly */
  5244. int acceleratorQualifiers;
  5245. bool animationEnabled;
  5246. /* readonly */
  5247. Array<Variant> attributeDefaults;
  5248. /* readonly */
  5249. Array<AttributeInfo> attributeInfos;
  5250. Array<Variant> attributes;
  5251. /* readonly */
  5252. StringHash baseType;
  5253. BlendMode blendMode;
  5254. IntRect border;
  5255. bool bringToBack;
  5256. bool bringToFront;
  5257. /* readonly */
  5258. String category;
  5259. /* readonly */
  5260. IntVector2 childOffset;
  5261. /* readonly */
  5262. Array<UIElement> children;
  5263. IntRect clipBorder;
  5264. bool clipChildren;
  5265. /* writeonly */
  5266. Color color;
  5267. /* readonly */
  5268. bool colorGradient;
  5269. Array<Color> colors;
  5270. /* readonly */
  5271. IntRect combinedScreenRect;
  5272. XMLFile defaultStyle;
  5273. /* readonly */
  5274. float derivedOpacity;
  5275. uint dragDropMode;
  5276. bool editable;
  5277. bool elementEventSender;
  5278. bool enabled;
  5279. /* readonly */
  5280. bool fixedHeight;
  5281. /* readonly */
  5282. bool fixedSize;
  5283. /* readonly */
  5284. bool fixedWidth;
  5285. bool focus;
  5286. FocusMode focusMode;
  5287. int height;
  5288. HorizontalAlignment horizontalAlignment;
  5289. IntVector2 hoverOffset;
  5290. /* readonly */
  5291. bool hovering;
  5292. IntRect imageBorder;
  5293. IntRect imageRect;
  5294. int indent;
  5295. int indentSpacing;
  5296. /* readonly */
  5297. int indentWidth;
  5298. bool internal;
  5299. IntRect layoutBorder;
  5300. LayoutMode layoutMode;
  5301. int layoutSpacing;
  5302. int maxHeight;
  5303. IntVector2 maxSize;
  5304. int maxWidth;
  5305. int minHeight;
  5306. IntVector2 minSize;
  5307. int minWidth;
  5308. String name;
  5309. /* readonly */
  5310. uint numAllChildren;
  5311. /* readonly */
  5312. uint numAttributes;
  5313. /* readonly */
  5314. uint numChildren;
  5315. ObjectAnimation objectAnimation;
  5316. float opacity;
  5317. UIElement parent;
  5318. UIElement popup;
  5319. IntVector2 popupOffset;
  5320. IntVector2 position;
  5321. /* readonly */
  5322. bool pressed;
  5323. IntVector2 pressedChildOffset;
  5324. IntVector2 pressedOffset;
  5325. int priority;
  5326. /* readonly */
  5327. int refs;
  5328. float repeatDelay;
  5329. float repeatRate;
  5330. /* readonly */
  5331. UIElement root;
  5332. /* readonly */
  5333. IntVector2 screenPosition;
  5334. bool selected;
  5335. bool showPopup;
  5336. IntVector2 size;
  5337. bool sortChildren;
  5338. String style;
  5339. bool temporary;
  5340. Texture texture;
  5341. bool tiled;
  5342. TraversalMode traversalMode;
  5343. /* readonly */
  5344. StringHash type;
  5345. /* readonly */
  5346. String typeName;
  5347. bool useDerivedOpacity;
  5348. /* readonly */
  5349. VariantMap vars;
  5350. VerticalAlignment verticalAlignment;
  5351. bool visible;
  5352. /* readonly */
  5353. int weakRefs;
  5354. int width;
  5355. };
  5356. class MessageBox
  5357. {
  5358. // Methods:
  5359. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5360. // Properties:
  5361. /* readonly */
  5362. StringHash baseType;
  5363. /* readonly */
  5364. String category;
  5365. String message;
  5366. /* readonly */
  5367. int refs;
  5368. String title;
  5369. /* readonly */
  5370. StringHash type;
  5371. /* readonly */
  5372. String typeName;
  5373. /* readonly */
  5374. int weakRefs;
  5375. /* readonly */
  5376. UIElement window;
  5377. };
  5378. class Model
  5379. {
  5380. // Methods:
  5381. Model Clone(const String& = String ( )) const;
  5382. bool Load(File);
  5383. bool Load(VectorBuffer&);
  5384. bool Save(File) const;
  5385. bool Save(VectorBuffer&) const;
  5386. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5387. // Properties:
  5388. /* readonly */
  5389. StringHash baseType;
  5390. /* readonly */
  5391. BoundingBox boundingBox;
  5392. /* readonly */
  5393. String category;
  5394. /* readonly */
  5395. uint memoryUse;
  5396. String name;
  5397. /* readonly */
  5398. uint numGeometries;
  5399. /* readonly */
  5400. Array<uint> numGeometryLodLevels;
  5401. /* readonly */
  5402. uint numMorphs;
  5403. /* readonly */
  5404. int refs;
  5405. /* readonly */
  5406. Skeleton skeleton;
  5407. /* readonly */
  5408. StringHash type;
  5409. /* readonly */
  5410. String typeName;
  5411. /* readonly */
  5412. uint useTimer;
  5413. /* readonly */
  5414. int weakRefs;
  5415. };
  5416. class Navigable
  5417. {
  5418. // Methods:
  5419. void ApplyAttributes();
  5420. void DrawDebugGeometry(DebugRenderer, bool);
  5421. Variant GetAttribute(const String&) const;
  5422. ValueAnimation GetAttributeAnimation(const String&) const;
  5423. float GetAttributeAnimationSpeed(const String&) const;
  5424. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5425. Variant GetAttributeDefault(const String&) const;
  5426. bool Load(File, bool = false);
  5427. bool Load(VectorBuffer&, bool = false);
  5428. bool LoadXML(const XMLElement&, bool = false);
  5429. void MarkNetworkUpdate() const;
  5430. void Remove();
  5431. void RemoveInstanceDefault();
  5432. void ResetToDefault();
  5433. bool Save(File) const;
  5434. bool Save(VectorBuffer&) const;
  5435. bool SaveXML(XMLElement&) const;
  5436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5437. bool SetAttribute(const String&, const Variant&);
  5438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5439. void SetAttributeAnimationSpeed(const String&, float);
  5440. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5441. // Properties:
  5442. bool animationEnabled;
  5443. /* readonly */
  5444. Array<Variant> attributeDefaults;
  5445. /* readonly */
  5446. Array<AttributeInfo> attributeInfos;
  5447. Array<Variant> attributes;
  5448. /* readonly */
  5449. StringHash baseType;
  5450. /* readonly */
  5451. String category;
  5452. bool enabled;
  5453. /* readonly */
  5454. bool enabledEffective;
  5455. /* readonly */
  5456. uint id;
  5457. /* readonly */
  5458. Node node;
  5459. /* readonly */
  5460. uint numAttributes;
  5461. ObjectAnimation objectAnimation;
  5462. bool recursive;
  5463. /* readonly */
  5464. int refs;
  5465. bool temporary;
  5466. /* readonly */
  5467. StringHash type;
  5468. /* readonly */
  5469. String typeName;
  5470. /* readonly */
  5471. int weakRefs;
  5472. };
  5473. class NavigationMesh
  5474. {
  5475. // Methods:
  5476. void ApplyAttributes();
  5477. bool Build();
  5478. bool Build(const BoundingBox&);
  5479. void DrawDebugGeometry(DebugRenderer, bool);
  5480. void DrawDebugGeometry(bool);
  5481. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5482. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5483. Variant GetAttribute(const String&) const;
  5484. ValueAnimation GetAttributeAnimation(const String&) const;
  5485. float GetAttributeAnimationSpeed(const String&) const;
  5486. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5487. Variant GetAttributeDefault(const String&) const;
  5488. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5489. Vector3 GetRandomPoint();
  5490. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5491. bool Load(File, bool = false);
  5492. bool Load(VectorBuffer&, bool = false);
  5493. bool LoadXML(const XMLElement&, bool = false);
  5494. void MarkNetworkUpdate() const;
  5495. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ), uint = 3);
  5496. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 ( 1.0 , 1.0 , 1.0 ));
  5497. void Remove();
  5498. void RemoveInstanceDefault();
  5499. void ResetToDefault();
  5500. bool Save(File) const;
  5501. bool Save(VectorBuffer&) const;
  5502. bool SaveXML(XMLElement&) const;
  5503. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5504. bool SetAttribute(const String&, const Variant&);
  5505. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5506. void SetAttributeAnimationSpeed(const String&, float);
  5507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5508. // Properties:
  5509. float agentHeight;
  5510. float agentMaxClimb;
  5511. float agentMaxSlope;
  5512. float agentRadius;
  5513. bool animationEnabled;
  5514. /* readonly */
  5515. Array<Variant> attributeDefaults;
  5516. /* readonly */
  5517. Array<AttributeInfo> attributeInfos;
  5518. Array<Variant> attributes;
  5519. /* readonly */
  5520. StringHash baseType;
  5521. /* readonly */
  5522. BoundingBox boundingBox;
  5523. /* readonly */
  5524. String category;
  5525. float cellHeight;
  5526. float cellSize;
  5527. float detailSampleDistance;
  5528. float detailSampleMaxError;
  5529. float edgeMaxError;
  5530. float edgeMaxLength;
  5531. bool enabled;
  5532. /* readonly */
  5533. bool enabledEffective;
  5534. /* readonly */
  5535. uint id;
  5536. /* readonly */
  5537. bool initialized;
  5538. /* readonly */
  5539. Node node;
  5540. /* readonly */
  5541. uint numAttributes;
  5542. /* readonly */
  5543. IntVector2 numTiles;
  5544. ObjectAnimation objectAnimation;
  5545. Vector3 padding;
  5546. /* readonly */
  5547. int refs;
  5548. float regionMergeSize;
  5549. float regionMinSize;
  5550. bool temporary;
  5551. int tileSize;
  5552. /* readonly */
  5553. StringHash type;
  5554. /* readonly */
  5555. String typeName;
  5556. /* readonly */
  5557. int weakRefs;
  5558. /* readonly */
  5559. BoundingBox worldBoundingBox;
  5560. };
  5561. class Network
  5562. {
  5563. // Methods:
  5564. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5565. void BroadcastRemoteEvent(Node, const String&, bool, const VariantMap& = VariantMap ( ));
  5566. void BroadcastRemoteEvent(Scene, const String&, bool, const VariantMap& = VariantMap ( ));
  5567. void BroadcastRemoteEvent(const String&, bool, const VariantMap& = VariantMap ( ));
  5568. bool CheckRemoteEvent(const String&) const;
  5569. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  5570. void Disconnect(int = 0);
  5571. HttpRequest MakeHttpRequest(const String&, const String& = String ( ), Array<String> = null, const String& = String ( ));
  5572. void RegisterRemoteEvent(const String&) const;
  5573. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5574. bool StartServer(uint16);
  5575. void StopServer();
  5576. void UnregisterAllRemoteEvents();
  5577. void UnregisterRemoteEvent(const String&) const;
  5578. // Properties:
  5579. /* readonly */
  5580. StringHash baseType;
  5581. /* readonly */
  5582. String category;
  5583. /* readonly */
  5584. Array<Connection> clientConnections;
  5585. String packageCacheDir;
  5586. /* readonly */
  5587. int refs;
  5588. /* readonly */
  5589. Connection serverConnection;
  5590. /* readonly */
  5591. bool serverRunning;
  5592. /* readonly */
  5593. StringHash type;
  5594. /* readonly */
  5595. String typeName;
  5596. int updateFps;
  5597. /* readonly */
  5598. int weakRefs;
  5599. };
  5600. class NetworkPriority
  5601. {
  5602. // Methods:
  5603. void ApplyAttributes();
  5604. void DrawDebugGeometry(DebugRenderer, bool);
  5605. Variant GetAttribute(const String&) const;
  5606. ValueAnimation GetAttributeAnimation(const String&) const;
  5607. float GetAttributeAnimationSpeed(const String&) const;
  5608. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5609. Variant GetAttributeDefault(const String&) const;
  5610. bool Load(File, bool = false);
  5611. bool Load(VectorBuffer&, bool = false);
  5612. bool LoadXML(const XMLElement&, bool = false);
  5613. void MarkNetworkUpdate() const;
  5614. void Remove();
  5615. void RemoveInstanceDefault();
  5616. void ResetToDefault();
  5617. bool Save(File) const;
  5618. bool Save(VectorBuffer&) const;
  5619. bool SaveXML(XMLElement&) const;
  5620. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5621. bool SetAttribute(const String&, const Variant&);
  5622. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5623. void SetAttributeAnimationSpeed(const String&, float);
  5624. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5625. // Properties:
  5626. bool alwaysUpdateOwner;
  5627. bool animationEnabled;
  5628. /* readonly */
  5629. Array<Variant> attributeDefaults;
  5630. /* readonly */
  5631. Array<AttributeInfo> attributeInfos;
  5632. Array<Variant> attributes;
  5633. float basePriority;
  5634. /* readonly */
  5635. StringHash baseType;
  5636. /* readonly */
  5637. String category;
  5638. float distanceFactor;
  5639. bool enabled;
  5640. /* readonly */
  5641. bool enabledEffective;
  5642. /* readonly */
  5643. uint id;
  5644. float minPriority;
  5645. /* readonly */
  5646. Node node;
  5647. /* readonly */
  5648. uint numAttributes;
  5649. ObjectAnimation objectAnimation;
  5650. /* readonly */
  5651. int refs;
  5652. bool temporary;
  5653. /* readonly */
  5654. StringHash type;
  5655. /* readonly */
  5656. String typeName;
  5657. /* readonly */
  5658. int weakRefs;
  5659. };
  5660. class Node
  5661. {
  5662. // Methods:
  5663. void AddChild(Node, uint = M_MAX_UNSIGNED);
  5664. void ApplyAttributes();
  5665. Node Clone(CreateMode = REPLICATED);
  5666. Component CloneComponent(Component, CreateMode, uint = 0);
  5667. Component CloneComponent(Component, uint = 0);
  5668. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  5669. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5670. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  5671. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  5672. Variant GetAttribute(const String&) const;
  5673. ValueAnimation GetAttributeAnimation(const String&) const;
  5674. float GetAttributeAnimationSpeed(const String&) const;
  5675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5676. Variant GetAttributeDefault(const String&) const;
  5677. Node GetChild(const String&, bool = false) const;
  5678. Array<Node> GetChildren(bool = false) const;
  5679. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  5680. Array<Node> GetChildrenWithScript(bool = false) const;
  5681. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  5682. Component GetComponent(const String&) const;
  5683. Array<Component> GetComponents() const;
  5684. Array<Component> GetComponents(const String&, bool = false) const;
  5685. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  5686. ScriptObject GetScriptObject() const;
  5687. ScriptObject GetScriptObject(const String&) const;
  5688. bool HasComponent(const String&) const;
  5689. bool Load(File, bool = false);
  5690. bool Load(VectorBuffer&, bool = false);
  5691. bool LoadXML(const XMLElement&, bool = false);
  5692. Vector3 LocalToWorld(const Vector3&) const;
  5693. Vector3 LocalToWorld(const Vector4&) const;
  5694. Vector2 LocalToWorld2D(const Vector2&) const;
  5695. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  5696. void MarkNetworkUpdate() const;
  5697. void Pitch(float, TransformSpace = TS_LOCAL);
  5698. void Remove();
  5699. void RemoveAllChildren();
  5700. void RemoveAllComponents();
  5701. void RemoveChild(Node);
  5702. void RemoveChildren(bool, bool, bool);
  5703. void RemoveComponent(Component);
  5704. void RemoveComponent(const String&);
  5705. void RemoveComponents(bool, bool);
  5706. void RemoveInstanceDefault();
  5707. void ResetToDefault();
  5708. void Roll(float, TransformSpace = TS_LOCAL);
  5709. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  5710. void Rotate2D(float, TransformSpace = TS_LOCAL);
  5711. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  5712. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  5713. bool Save(File) const;
  5714. bool Save(VectorBuffer&) const;
  5715. bool SaveXML(File);
  5716. bool SaveXML(VectorBuffer&);
  5717. bool SaveXML(XMLElement&) const;
  5718. void Scale(const Vector3&);
  5719. void Scale(float);
  5720. void Scale2D(const Vector2&);
  5721. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5722. bool SetAttribute(const String&, const Variant&);
  5723. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5724. void SetAttributeAnimationSpeed(const String&, float);
  5725. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5726. void SetEnabled(bool, bool);
  5727. void SetPosition2D(float, float);
  5728. void SetScale(float);
  5729. void SetScale2D(float, float);
  5730. void SetTransform(const Vector3&, const Quaternion&);
  5731. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  5732. void SetTransform(const Vector3&, const Quaternion&, float);
  5733. void SetTransform2D(const Vector2&, float);
  5734. void SetTransform2D(const Vector2&, float, const Vector2&);
  5735. void SetTransform2D(const Vector2&, float, float);
  5736. void SetWorldTransform(const Vector3&, const Quaternion&);
  5737. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  5738. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  5739. void SetWorldTransform2D(const Vector2&, float);
  5740. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  5741. void SetWorldTransform2D(const Vector2&, float, float);
  5742. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  5743. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  5744. Vector3 WorldToLocal(const Vector3&) const;
  5745. Vector3 WorldToLocal(const Vector4&) const;
  5746. Vector2 WorldToLocal2D(const Vector2&) const;
  5747. void Yaw(float, TransformSpace = TS_LOCAL);
  5748. // Properties:
  5749. bool animationEnabled;
  5750. /* readonly */
  5751. Array<Variant> attributeDefaults;
  5752. /* readonly */
  5753. Array<AttributeInfo> attributeInfos;
  5754. Array<Variant> attributes;
  5755. /* readonly */
  5756. StringHash baseType;
  5757. /* readonly */
  5758. String category;
  5759. /* readonly */
  5760. Array<Node> children;
  5761. /* readonly */
  5762. Array<Component> components;
  5763. Vector3 direction;
  5764. bool enabled;
  5765. /* readonly */
  5766. uint id;
  5767. String name;
  5768. /* readonly */
  5769. uint numAllChildren;
  5770. /* readonly */
  5771. uint numAttributes;
  5772. /* readonly */
  5773. uint numChildren;
  5774. /* readonly */
  5775. uint numComponents;
  5776. ObjectAnimation objectAnimation;
  5777. Connection owner;
  5778. Node parent;
  5779. Vector3 position;
  5780. Vector2 position2D;
  5781. /* readonly */
  5782. int refs;
  5783. /* readonly */
  5784. Vector3 right;
  5785. Quaternion rotation;
  5786. float rotation2D;
  5787. Vector3 scale;
  5788. Vector2 scale2D;
  5789. /* readonly */
  5790. Scene scene;
  5791. /* readonly */
  5792. ScriptObject scriptObject;
  5793. bool temporary;
  5794. /* readonly */
  5795. Matrix3x4 transform;
  5796. /* readonly */
  5797. StringHash type;
  5798. /* readonly */
  5799. String typeName;
  5800. /* readonly */
  5801. Vector3 up;
  5802. /* readonly */
  5803. VariantMap vars;
  5804. /* readonly */
  5805. int weakRefs;
  5806. Vector3 worldDirection;
  5807. Vector3 worldPosition;
  5808. Vector2 worldPosition2D;
  5809. /* readonly */
  5810. Vector3 worldRight;
  5811. Quaternion worldRotation;
  5812. float worldRotation2D;
  5813. Vector3 worldScale;
  5814. Vector2 worldScale2D;
  5815. /* readonly */
  5816. Matrix3x4 worldTransform;
  5817. /* readonly */
  5818. Vector3 worldUp;
  5819. };
  5820. class Object
  5821. {
  5822. // Methods:
  5823. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5824. // Properties:
  5825. /* readonly */
  5826. StringHash baseType;
  5827. /* readonly */
  5828. String category;
  5829. /* readonly */
  5830. int refs;
  5831. /* readonly */
  5832. StringHash type;
  5833. /* readonly */
  5834. String typeName;
  5835. /* readonly */
  5836. int weakRefs;
  5837. };
  5838. class ObjectAnimation
  5839. {
  5840. // Methods:
  5841. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5842. ValueAnimation GetAttributeAnimation(const String&) const;
  5843. float GetAttributeAnimationSpeed(const String&) const;
  5844. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5845. bool Load(File);
  5846. bool Load(VectorBuffer&);
  5847. void RemoveAttributeAnimation(ValueAnimation);
  5848. void RemoveAttributeAnimation(const String&);
  5849. bool Save(File) const;
  5850. bool Save(VectorBuffer&) const;
  5851. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5852. // Properties:
  5853. /* readonly */
  5854. Array<Variant> attributeAnimations;
  5855. /* readonly */
  5856. StringHash baseType;
  5857. /* readonly */
  5858. String category;
  5859. /* readonly */
  5860. uint memoryUse;
  5861. String name;
  5862. /* readonly */
  5863. int refs;
  5864. /* readonly */
  5865. Array<Variant> speeds;
  5866. /* readonly */
  5867. StringHash type;
  5868. /* readonly */
  5869. String typeName;
  5870. /* readonly */
  5871. uint useTimer;
  5872. /* readonly */
  5873. int weakRefs;
  5874. /* readonly */
  5875. Array<Variant> wrapModes;
  5876. };
  5877. class Octree
  5878. {
  5879. // Methods:
  5880. void AddManualDrawable(Drawable);
  5881. void ApplyAttributes();
  5882. void DrawDebugGeometry(DebugRenderer, bool);
  5883. void DrawDebugGeometry(bool) const;
  5884. Variant GetAttribute(const String&) const;
  5885. ValueAnimation GetAttributeAnimation(const String&) const;
  5886. float GetAttributeAnimationSpeed(const String&) const;
  5887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5888. Variant GetAttributeDefault(const String&) const;
  5889. Array<Node> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5890. Array<Node> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5891. Array<Node> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5892. Array<Node> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  5893. bool Load(File, bool = false);
  5894. bool Load(VectorBuffer&, bool = false);
  5895. bool LoadXML(const XMLElement&, bool = false);
  5896. void MarkNetworkUpdate() const;
  5897. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5898. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  5899. void Remove();
  5900. void RemoveInstanceDefault();
  5901. void RemoveManualDrawable(Drawable);
  5902. void ResetToDefault();
  5903. bool Save(File) const;
  5904. bool Save(VectorBuffer&) const;
  5905. bool SaveXML(XMLElement&) const;
  5906. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5907. bool SetAttribute(const String&, const Variant&);
  5908. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5909. void SetAttributeAnimationSpeed(const String&, float);
  5910. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5911. void SetSize(const BoundingBox&, uint);
  5912. // Properties:
  5913. bool animationEnabled;
  5914. /* readonly */
  5915. Array<Variant> attributeDefaults;
  5916. /* readonly */
  5917. Array<AttributeInfo> attributeInfos;
  5918. Array<Variant> attributes;
  5919. /* readonly */
  5920. StringHash baseType;
  5921. /* readonly */
  5922. String category;
  5923. bool enabled;
  5924. /* readonly */
  5925. bool enabledEffective;
  5926. /* readonly */
  5927. uint id;
  5928. /* readonly */
  5929. Node node;
  5930. /* readonly */
  5931. uint numAttributes;
  5932. /* readonly */
  5933. uint numLevels;
  5934. ObjectAnimation objectAnimation;
  5935. /* readonly */
  5936. int refs;
  5937. bool temporary;
  5938. /* readonly */
  5939. StringHash type;
  5940. /* readonly */
  5941. String typeName;
  5942. /* readonly */
  5943. int weakRefs;
  5944. /* readonly */
  5945. BoundingBox worldBoundingBox;
  5946. };
  5947. class OffMeshConnection
  5948. {
  5949. // Methods:
  5950. void ApplyAttributes();
  5951. void DrawDebugGeometry(DebugRenderer, bool);
  5952. Variant GetAttribute(const String&) const;
  5953. ValueAnimation GetAttributeAnimation(const String&) const;
  5954. float GetAttributeAnimationSpeed(const String&) const;
  5955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5956. Variant GetAttributeDefault(const String&) const;
  5957. bool Load(File, bool = false);
  5958. bool Load(VectorBuffer&, bool = false);
  5959. bool LoadXML(const XMLElement&, bool = false);
  5960. void MarkNetworkUpdate() const;
  5961. void Remove();
  5962. void RemoveInstanceDefault();
  5963. void ResetToDefault();
  5964. bool Save(File) const;
  5965. bool Save(VectorBuffer&) const;
  5966. bool SaveXML(XMLElement&) const;
  5967. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  5968. bool SetAttribute(const String&, const Variant&);
  5969. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5970. void SetAttributeAnimationSpeed(const String&, float);
  5971. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5972. // Properties:
  5973. bool animationEnabled;
  5974. /* readonly */
  5975. Array<Variant> attributeDefaults;
  5976. /* readonly */
  5977. Array<AttributeInfo> attributeInfos;
  5978. Array<Variant> attributes;
  5979. /* readonly */
  5980. StringHash baseType;
  5981. bool bidirectional;
  5982. /* readonly */
  5983. String category;
  5984. bool enabled;
  5985. /* readonly */
  5986. bool enabledEffective;
  5987. Node endPoint;
  5988. /* readonly */
  5989. uint id;
  5990. /* readonly */
  5991. Node node;
  5992. /* readonly */
  5993. uint numAttributes;
  5994. ObjectAnimation objectAnimation;
  5995. float radius;
  5996. /* readonly */
  5997. int refs;
  5998. bool temporary;
  5999. /* readonly */
  6000. StringHash type;
  6001. /* readonly */
  6002. String typeName;
  6003. /* readonly */
  6004. int weakRefs;
  6005. };
  6006. class PackageFile
  6007. {
  6008. // Methods:
  6009. bool Exists(const String&) const;
  6010. Array<String> GetEntryNames() const;
  6011. bool Open(const String&, uint = 0) const;
  6012. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6013. bool compressed() const;
  6014. // Properties:
  6015. /* readonly */
  6016. StringHash baseType;
  6017. /* readonly */
  6018. String category;
  6019. /* readonly */
  6020. uint checksum;
  6021. /* readonly */
  6022. String name;
  6023. /* readonly */
  6024. uint numFiles;
  6025. /* readonly */
  6026. int refs;
  6027. /* readonly */
  6028. uint totalSize;
  6029. /* readonly */
  6030. StringHash type;
  6031. /* readonly */
  6032. String typeName;
  6033. /* readonly */
  6034. int weakRefs;
  6035. };
  6036. class ParticleEffect
  6037. {
  6038. // Methods:
  6039. ColorFrame GetColorFrame(uint) const;
  6040. TextureFrame GetTextureFrame(uint) const;
  6041. bool Load(File);
  6042. bool Load(VectorBuffer&);
  6043. bool Save(File) const;
  6044. bool Save(VectorBuffer&) const;
  6045. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6046. void SetColorFrame(uint, ColorFrame) const;
  6047. void SetTextureFrame(uint, TextureFrame) const;
  6048. // Properties:
  6049. float activeTime;
  6050. float animationLodBias;
  6051. /* readonly */
  6052. StringHash baseType;
  6053. /* readonly */
  6054. String category;
  6055. Vector3 constantForce;
  6056. float dampingForce;
  6057. Vector3 emitterSize;
  6058. EmitterType emitterType;
  6059. float inactiveTime;
  6060. Material material;
  6061. Vector3 maxDirection;
  6062. float maxEmissionRate;
  6063. Vector3 maxParticleSize;
  6064. float maxRotation;
  6065. float maxRotationSpeed;
  6066. float maxTimeToLive;
  6067. float maxVelocity;
  6068. /* readonly */
  6069. uint memoryUse;
  6070. Vector3 minDirection;
  6071. float minEmissionRate;
  6072. Vector2 minParticleSize;
  6073. float minRotation;
  6074. float minRotationSpeed;
  6075. float minTimeToLive;
  6076. float minVelocity;
  6077. String name;
  6078. /* readonly */
  6079. uint numColorFrames;
  6080. uint numParticles;
  6081. /* readonly */
  6082. uint numTextureFrames;
  6083. /* readonly */
  6084. int refs;
  6085. bool relative;
  6086. bool scaled;
  6087. float sizeAdd;
  6088. float sizeMul;
  6089. bool sorted;
  6090. /* readonly */
  6091. StringHash type;
  6092. /* readonly */
  6093. String typeName;
  6094. bool updateInvisible;
  6095. /* readonly */
  6096. uint useTimer;
  6097. /* readonly */
  6098. int weakRefs;
  6099. };
  6100. class ParticleEffect2D
  6101. {
  6102. // Methods:
  6103. bool Load(File);
  6104. bool Load(VectorBuffer&);
  6105. bool Save(File) const;
  6106. bool Save(VectorBuffer&) const;
  6107. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6108. // Properties:
  6109. /* readonly */
  6110. StringHash baseType;
  6111. /* readonly */
  6112. String category;
  6113. /* readonly */
  6114. uint memoryUse;
  6115. String name;
  6116. /* readonly */
  6117. int refs;
  6118. /* readonly */
  6119. StringHash type;
  6120. /* readonly */
  6121. String typeName;
  6122. /* readonly */
  6123. uint useTimer;
  6124. /* readonly */
  6125. int weakRefs;
  6126. };
  6127. class ParticleEmitter
  6128. {
  6129. // Methods:
  6130. void ApplyAttributes();
  6131. void ApplyEffect();
  6132. void Commit();
  6133. void DrawDebugGeometry(DebugRenderer, bool);
  6134. Variant GetAttribute(const String&) const;
  6135. ValueAnimation GetAttributeAnimation(const String&) const;
  6136. float GetAttributeAnimationSpeed(const String&) const;
  6137. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6138. Variant GetAttributeDefault(const String&) const;
  6139. bool IsInView(Camera) const;
  6140. bool Load(File, bool = false);
  6141. bool Load(VectorBuffer&, bool = false);
  6142. bool LoadXML(const XMLElement&, bool = false);
  6143. void MarkNetworkUpdate() const;
  6144. void Remove();
  6145. void RemoveAllParticles();
  6146. void RemoveInstanceDefault();
  6147. void Reset();
  6148. void ResetEmissionTimer();
  6149. void ResetToDefault();
  6150. bool Save(File) const;
  6151. bool Save(VectorBuffer&) const;
  6152. bool SaveXML(XMLElement&) const;
  6153. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6154. bool SetAttribute(const String&, const Variant&);
  6155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6156. void SetAttributeAnimationSpeed(const String&, float);
  6157. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6158. // Properties:
  6159. bool animationEnabled;
  6160. float animationLodBias;
  6161. /* readonly */
  6162. Array<Variant> attributeDefaults;
  6163. /* readonly */
  6164. Array<AttributeInfo> attributeInfos;
  6165. Array<Variant> attributes;
  6166. /* readonly */
  6167. StringHash baseType;
  6168. /* readonly */
  6169. Array<Billboard> billboards;
  6170. /* readonly */
  6171. BoundingBox boundingBox;
  6172. bool castShadows;
  6173. /* readonly */
  6174. String category;
  6175. float drawDistance;
  6176. ParticleEffect effect;
  6177. bool emitting;
  6178. bool enabled;
  6179. /* readonly */
  6180. bool enabledEffective;
  6181. FaceCameraMode faceCameraMode;
  6182. /* readonly */
  6183. uint id;
  6184. /* readonly */
  6185. bool inView;
  6186. uint lightMask;
  6187. float lodBias;
  6188. Material material;
  6189. uint maxLights;
  6190. /* readonly */
  6191. Node node;
  6192. /* readonly */
  6193. uint numAttributes;
  6194. uint numBillboards;
  6195. uint numParticles;
  6196. ObjectAnimation objectAnimation;
  6197. bool occludee;
  6198. bool occluder;
  6199. /* readonly */
  6200. int refs;
  6201. bool relative;
  6202. bool scaled;
  6203. float shadowDistance;
  6204. uint shadowMask;
  6205. bool sorted;
  6206. bool temporary;
  6207. /* readonly */
  6208. StringHash type;
  6209. /* readonly */
  6210. String typeName;
  6211. uint viewMask;
  6212. /* readonly */
  6213. int weakRefs;
  6214. /* readonly */
  6215. BoundingBox worldBoundingBox;
  6216. /* readonly */
  6217. Zone zone;
  6218. uint zoneMask;
  6219. };
  6220. class ParticleEmitter2D
  6221. {
  6222. // Methods:
  6223. void ApplyAttributes();
  6224. void DrawDebugGeometry(DebugRenderer, bool);
  6225. Variant GetAttribute(const String&) const;
  6226. ValueAnimation GetAttributeAnimation(const String&) const;
  6227. float GetAttributeAnimationSpeed(const String&) const;
  6228. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6229. Variant GetAttributeDefault(const String&) const;
  6230. bool IsInView(Camera) const;
  6231. bool Load(File, bool = false);
  6232. bool Load(VectorBuffer&, bool = false);
  6233. bool LoadXML(const XMLElement&, bool = false);
  6234. void MarkNetworkUpdate() const;
  6235. void Remove();
  6236. void RemoveInstanceDefault();
  6237. void ResetToDefault();
  6238. bool Save(File) const;
  6239. bool Save(VectorBuffer&) const;
  6240. bool SaveXML(XMLElement&) const;
  6241. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6242. bool SetAttribute(const String&, const Variant&);
  6243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6244. void SetAttributeAnimationSpeed(const String&, float);
  6245. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6246. // Properties:
  6247. bool animationEnabled;
  6248. /* readonly */
  6249. Array<Variant> attributeDefaults;
  6250. /* readonly */
  6251. Array<AttributeInfo> attributeInfos;
  6252. Array<Variant> attributes;
  6253. /* readonly */
  6254. StringHash baseType;
  6255. BlendMode blendMode;
  6256. /* readonly */
  6257. BoundingBox boundingBox;
  6258. bool castShadows;
  6259. /* readonly */
  6260. String category;
  6261. float drawDistance;
  6262. ParticleEffect2D effect;
  6263. bool enabled;
  6264. /* readonly */
  6265. bool enabledEffective;
  6266. /* readonly */
  6267. uint id;
  6268. /* readonly */
  6269. bool inView;
  6270. int layer;
  6271. uint lightMask;
  6272. float lodBias;
  6273. Material material;
  6274. uint maxLights;
  6275. /* readonly */
  6276. Node node;
  6277. /* readonly */
  6278. uint numAttributes;
  6279. ObjectAnimation objectAnimation;
  6280. bool occludee;
  6281. bool occluder;
  6282. int orderInLayer;
  6283. /* readonly */
  6284. int refs;
  6285. float shadowDistance;
  6286. uint shadowMask;
  6287. Sprite2D sprite;
  6288. bool temporary;
  6289. /* readonly */
  6290. StringHash type;
  6291. /* readonly */
  6292. String typeName;
  6293. uint viewMask;
  6294. /* readonly */
  6295. int weakRefs;
  6296. /* readonly */
  6297. BoundingBox worldBoundingBox;
  6298. uint zoneMask;
  6299. };
  6300. class Pass
  6301. {
  6302. // Properties:
  6303. bool alphaMask;
  6304. BlendMode blendMode;
  6305. CompareMode depthTestMode;
  6306. bool depthWrite;
  6307. PassLightingMode lightingMode;
  6308. String pixelShader;
  6309. String pixelShaderDefines;
  6310. /* readonly */
  6311. int refs;
  6312. bool sm3;
  6313. String vertexShader;
  6314. String vertexShaderDefines;
  6315. /* readonly */
  6316. int weakRefs;
  6317. };
  6318. class PhysicsRaycastResult
  6319. {
  6320. // Properties:
  6321. /* readonly */
  6322. RigidBody body;
  6323. float distance;
  6324. Vector3 normal;
  6325. Vector3 position;
  6326. };
  6327. class PhysicsRaycastResult2D
  6328. {
  6329. // Properties:
  6330. /* readonly */
  6331. RigidBody2D body;
  6332. float distance;
  6333. Vector2 normal;
  6334. Vector2 position;
  6335. };
  6336. class PhysicsWorld
  6337. {
  6338. // Methods:
  6339. void ApplyAttributes();
  6340. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  6341. void DrawDebugGeometry(DebugRenderer, bool);
  6342. void DrawDebugGeometry(bool);
  6343. Variant GetAttribute(const String&) const;
  6344. ValueAnimation GetAttributeAnimation(const String&) const;
  6345. float GetAttributeAnimationSpeed(const String&) const;
  6346. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6347. Variant GetAttributeDefault(const String&) const;
  6348. Array<RigidBody> GetRigidBodies(RigidBody);
  6349. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint = 0xffff);
  6350. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  6351. bool Load(File, bool = false);
  6352. bool Load(VectorBuffer&, bool = false);
  6353. bool LoadXML(const XMLElement&, bool = false);
  6354. void MarkNetworkUpdate() const;
  6355. Array<PhysicsRaycastResult> Raycast(const Ray&, float = M_INFINITY, uint = 0xffff);
  6356. PhysicsRaycastResult RaycastSingle(const Ray&, float = M_INFINITY, uint = 0xffff);
  6357. void Remove();
  6358. void RemoveCachedGeometry(Model);
  6359. void RemoveInstanceDefault();
  6360. void ResetToDefault();
  6361. bool Save(File) const;
  6362. bool Save(VectorBuffer&) const;
  6363. bool SaveXML(XMLElement&) const;
  6364. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6365. bool SetAttribute(const String&, const Variant&);
  6366. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6367. void SetAttributeAnimationSpeed(const String&, float);
  6368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6369. PhysicsRaycastResult SphereCast(const Ray&, float, float = M_INFINITY, uint = 0xffff);
  6370. void Update(float);
  6371. void UpdateCollisions();
  6372. // Properties:
  6373. bool animationEnabled;
  6374. /* readonly */
  6375. Array<Variant> attributeDefaults;
  6376. /* readonly */
  6377. Array<AttributeInfo> attributeInfos;
  6378. Array<Variant> attributes;
  6379. /* readonly */
  6380. StringHash baseType;
  6381. /* readonly */
  6382. String category;
  6383. bool enabled;
  6384. /* readonly */
  6385. bool enabledEffective;
  6386. int fps;
  6387. Vector3 gravity;
  6388. /* readonly */
  6389. uint id;
  6390. bool internalEdge;
  6391. bool interpolation;
  6392. /* readonly */
  6393. Node node;
  6394. /* readonly */
  6395. uint numAttributes;
  6396. int numIterations;
  6397. ObjectAnimation objectAnimation;
  6398. /* readonly */
  6399. int refs;
  6400. bool splitImpulse;
  6401. bool temporary;
  6402. /* readonly */
  6403. StringHash type;
  6404. /* readonly */
  6405. String typeName;
  6406. /* readonly */
  6407. int weakRefs;
  6408. };
  6409. class PhysicsWorld2D
  6410. {
  6411. // Methods:
  6412. void ApplyAttributes();
  6413. void DrawDebugGeometry() const;
  6414. void DrawDebugGeometry(DebugRenderer, bool);
  6415. Variant GetAttribute(const String&) const;
  6416. ValueAnimation GetAttributeAnimation(const String&) const;
  6417. float GetAttributeAnimationSpeed(const String&) const;
  6418. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6419. Variant GetAttributeDefault(const String&) const;
  6420. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  6421. RigidBody2D GetRigidBody(const Vector2&, uint = 0xffff);
  6422. RigidBody2D GetRigidBody(int, int, uint = 0xffff);
  6423. bool Load(File, bool = false);
  6424. bool Load(VectorBuffer&, bool = false);
  6425. bool LoadXML(const XMLElement&, bool = false);
  6426. void MarkNetworkUpdate() const;
  6427. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  6428. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  6429. void Remove();
  6430. void RemoveInstanceDefault();
  6431. void ResetToDefault();
  6432. bool Save(File) const;
  6433. bool Save(VectorBuffer&) const;
  6434. bool SaveXML(XMLElement&) const;
  6435. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6436. bool SetAttribute(const String&, const Variant&);
  6437. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6438. void SetAttributeAnimationSpeed(const String&, float);
  6439. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6440. // Properties:
  6441. bool allowSleeping;
  6442. bool animationEnabled;
  6443. /* readonly */
  6444. Array<Variant> attributeDefaults;
  6445. /* readonly */
  6446. Array<AttributeInfo> attributeInfos;
  6447. Array<Variant> attributes;
  6448. bool autoClearForces;
  6449. /* readonly */
  6450. StringHash baseType;
  6451. /* readonly */
  6452. String category;
  6453. bool continuousPhysics;
  6454. bool drawAabb;
  6455. bool drawCenterOfMass;
  6456. bool drawJoint;
  6457. bool drawPair;
  6458. bool drawShape;
  6459. bool enabled;
  6460. /* readonly */
  6461. bool enabledEffective;
  6462. Vector2 gravity;
  6463. /* readonly */
  6464. uint id;
  6465. /* readonly */
  6466. Node node;
  6467. /* readonly */
  6468. uint numAttributes;
  6469. ObjectAnimation objectAnimation;
  6470. uint positionIterations;
  6471. /* readonly */
  6472. int refs;
  6473. bool subStepping;
  6474. bool temporary;
  6475. /* readonly */
  6476. StringHash type;
  6477. /* readonly */
  6478. String typeName;
  6479. uint velocityIterations;
  6480. bool warmStarting;
  6481. /* readonly */
  6482. int weakRefs;
  6483. };
  6484. class Plane
  6485. {
  6486. // Methods:
  6487. void Define(const Vector3&, const Vector3&);
  6488. void Define(const Vector3&, const Vector3&, const Vector3&);
  6489. void Define(const Vector4&);
  6490. float Distance(const Vector3&) const;
  6491. Vector3 Project(const Vector3&) const;
  6492. Vector3 Reflect(const Vector3&) const;
  6493. Vector4 ToVector4() const;
  6494. void Transform(const Matrix3&);
  6495. void Transform(const Matrix3x4&);
  6496. void Transform(const Matrix4&);
  6497. Plane Transformed(const Matrix3&) const;
  6498. Plane Transformed(const Matrix3x4&) const;
  6499. Plane Transformed(const Matrix4&) const;
  6500. // Properties:
  6501. Vector3 absNormal;
  6502. float d;
  6503. Vector3 normal;
  6504. /* readonly */
  6505. Matrix3x4 reflectionMatrix;
  6506. };
  6507. class Polyhedron
  6508. {
  6509. // Methods:
  6510. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  6511. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  6512. void AddFace(const Array<Vector3>);
  6513. void Clear();
  6514. void Clip(const BoundingBox&);
  6515. void Clip(const Frustum&);
  6516. void Define(const BoundingBox&);
  6517. void Define(const Frustum&);
  6518. void Transform(const Matrix3&);
  6519. void Transform(const Matrix3x4&);
  6520. Polyhedron Transformed(const Matrix3&) const;
  6521. Polyhedron Transformed(const Matrix3x4&) const;
  6522. // Properties:
  6523. /* readonly */
  6524. Array<Array<Vector3>> face;
  6525. /* readonly */
  6526. uint numFaces;
  6527. };
  6528. class PropertySet2D
  6529. {
  6530. // Methods:
  6531. bool HasProperty(const String&) const;
  6532. const String& GetProperty(const String&) const;
  6533. // Properties:
  6534. /* readonly */
  6535. int refs;
  6536. /* readonly */
  6537. int weakRefs;
  6538. };
  6539. class Quaternion
  6540. {
  6541. // Methods:
  6542. float DotProduct(const Quaternion&) const;
  6543. bool Equals(const Quaternion&) const;
  6544. void FromAngleAxis(float, const Vector3&);
  6545. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  6546. void FromEulerAngles(float, float, float);
  6547. bool FromLookRotation(const Vector3&, const Vector3&);
  6548. void FromRotationTo(const Vector3&, const Vector3&);
  6549. Quaternion Inverse() const;
  6550. bool IsNaN() const;
  6551. Quaternion Nlerp(Quaternion, float, bool) const;
  6552. void Normalize();
  6553. Quaternion Normalized() const;
  6554. Quaternion Slerp(Quaternion, float) const;
  6555. String ToString() const;
  6556. // Properties:
  6557. /* readonly */
  6558. Vector3 eulerAngles;
  6559. /* readonly */
  6560. float pitch;
  6561. /* readonly */
  6562. float roll;
  6563. float w;
  6564. float x;
  6565. float y;
  6566. /* readonly */
  6567. float yaw;
  6568. float z;
  6569. };
  6570. class Ray
  6571. {
  6572. // Methods:
  6573. Vector3 ClosestPoint(const Ray&) const;
  6574. void Define(const Vector3&, const Vector3&);
  6575. float Distance(const Vector3&) const;
  6576. float HitDistance(const BoundingBox&) const;
  6577. float HitDistance(const Frustum&, bool = true) const;
  6578. float HitDistance(const Sphere&) const;
  6579. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  6580. Vector3 Project(const Vector3&) const;
  6581. Ray Transformed(const Matrix3x4&) const;
  6582. // Properties:
  6583. Vector3 direction;
  6584. Vector3 origin;
  6585. };
  6586. class RayQueryResult
  6587. {
  6588. // Properties:
  6589. float distance;
  6590. /* readonly */
  6591. Drawable drawable;
  6592. /* readonly */
  6593. Node node;
  6594. Vector3 normal;
  6595. Vector3 position;
  6596. uint subObject;
  6597. };
  6598. class Rect
  6599. {
  6600. // Methods:
  6601. void Clear();
  6602. void Clip(const Rect&);
  6603. void Define(const Vector2&);
  6604. void Define(const Vector2&, const Vector2&);
  6605. bool Equals(const Rect&) const;
  6606. Intersection IsInside(const Vector2&) const;
  6607. void Merge(const Rect&);
  6608. void Merge(const Vector2&);
  6609. Vector4 ToVector4() const;
  6610. // Properties:
  6611. float bottom;
  6612. /* readonly */
  6613. Vector2 center;
  6614. bool defined;
  6615. /* readonly */
  6616. Vector2 halfSize;
  6617. float left;
  6618. Vector2 max;
  6619. Vector2 min;
  6620. float right;
  6621. /* readonly */
  6622. Vector2 size;
  6623. float top;
  6624. };
  6625. class RefCounted
  6626. {
  6627. // Properties:
  6628. /* readonly */
  6629. int refs;
  6630. /* readonly */
  6631. int weakRefs;
  6632. };
  6633. class RenderPath
  6634. {
  6635. // Methods:
  6636. void AddCommand(const RenderPathCommand&);
  6637. void AddRenderTarget(const RenderTargetInfo&);
  6638. bool Append(XMLFile);
  6639. RenderPath Clone();
  6640. void InsertCommand(uint, const RenderPathCommand&);
  6641. bool Load(XMLFile);
  6642. void RemoveCommand(uint);
  6643. void RemoveCommands(const String&);
  6644. void RemoveRenderTarget(const String&);
  6645. void RemoveRenderTarget(uint);
  6646. void RemoveRenderTargts(const String&);
  6647. void SetEnabled(const String&, bool);
  6648. void ToggleEnabled(const String&);
  6649. // Properties:
  6650. Array<RenderPathCommand> commands;
  6651. /* readonly */
  6652. uint numCommands;
  6653. /* readonly */
  6654. uint numRenderTargets;
  6655. /* readonly */
  6656. int refs;
  6657. Array<RenderTargetInfo> renderTargets;
  6658. Array<Variant> shaderParameters;
  6659. /* readonly */
  6660. int weakRefs;
  6661. };
  6662. class RenderPathCommand
  6663. {
  6664. // Methods:
  6665. void RemoveShaderParameter(const String&);
  6666. // Properties:
  6667. Color clearColor;
  6668. float clearDepth;
  6669. uint clearFlags;
  6670. uint clearStencil;
  6671. bool enabled;
  6672. bool markToStencil;
  6673. String metadata;
  6674. uint numOutputs;
  6675. Array<String> outputNames;
  6676. String pass;
  6677. String pixelShaderDefines;
  6678. String pixelShaderName;
  6679. Array<Variant> shaderParameters;
  6680. RenderCommandSortMode sortMode;
  6681. String tag;
  6682. Array<String> textureNames;
  6683. RenderCommandType type;
  6684. bool useFogColor;
  6685. bool useLitBase;
  6686. bool vertexLights;
  6687. String vertexShaderDefines;
  6688. String vertexShaderName;
  6689. };
  6690. class RenderSurface
  6691. {
  6692. // Methods:
  6693. void QueueUpdate();
  6694. // Properties:
  6695. /* readonly */
  6696. int height;
  6697. RenderSurface linkedDepthStencil;
  6698. RenderSurface linkedRenderTarget;
  6699. uint numViewports;
  6700. /* readonly */
  6701. Texture parentTexture;
  6702. RenderSurfaceUpdateMode updateMode;
  6703. /* readonly */
  6704. TextureUsage usage;
  6705. Array<Viewport> viewports;
  6706. /* readonly */
  6707. int width;
  6708. };
  6709. class RenderTargetInfo
  6710. {
  6711. // Properties:
  6712. bool enabled;
  6713. bool filtered;
  6714. uint format;
  6715. String name;
  6716. bool persistent;
  6717. bool sRGB;
  6718. Vector2 size;
  6719. RenderTargetSizeMode sizeMode;
  6720. String tag;
  6721. };
  6722. class Renderer
  6723. {
  6724. // Methods:
  6725. void DrawDebugGeometry(bool) const;
  6726. void ReloadShaders() const;
  6727. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6728. void SetDefaultRenderPath(XMLFile);
  6729. // Properties:
  6730. /* readonly */
  6731. StringHash baseType;
  6732. /* readonly */
  6733. String category;
  6734. /* readonly */
  6735. Material defaultLightRamp;
  6736. /* readonly */
  6737. Material defaultLightSpot;
  6738. /* readonly */
  6739. Material defaultMaterial;
  6740. RenderPath defaultRenderPath;
  6741. /* readonly */
  6742. Zone defaultZone;
  6743. bool drawShadows;
  6744. bool dynamicInstancing;
  6745. bool hdrRendering;
  6746. int materialQuality;
  6747. int maxInstanceTriangles;
  6748. int maxOccluderTriangles;
  6749. int maxShadowMaps;
  6750. int maxSortedInstances;
  6751. int minInstances;
  6752. float mobileShadowBiasAdd;
  6753. float mobileShadowBiasMul;
  6754. /* readonly */
  6755. uint numBatches;
  6756. /* readonly */
  6757. Array<uint> numGeometries;
  6758. /* readonly */
  6759. Array<uint> numLights;
  6760. /* readonly */
  6761. Array<uint> numOccluders;
  6762. /* readonly */
  6763. uint numPrimitives;
  6764. /* readonly */
  6765. Array<uint> numShadowMaps;
  6766. uint numViewports;
  6767. /* readonly */
  6768. uint numViews;
  6769. float occluderSizeThreshold;
  6770. int occlusionBufferSize;
  6771. /* readonly */
  6772. int refs;
  6773. bool reuseShadowMaps;
  6774. int shadowMapSize;
  6775. int shadowQuality;
  6776. bool specularLighting;
  6777. int textureAnisotropy;
  6778. TextureFilterMode textureFilterMode;
  6779. int textureQuality;
  6780. /* readonly */
  6781. StringHash type;
  6782. /* readonly */
  6783. String typeName;
  6784. Array<Viewport> viewports;
  6785. /* readonly */
  6786. int weakRefs;
  6787. };
  6788. class Resource
  6789. {
  6790. // Methods:
  6791. bool Load(File);
  6792. bool Load(VectorBuffer&);
  6793. bool Save(File) const;
  6794. bool Save(VectorBuffer&) const;
  6795. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6796. // Properties:
  6797. /* readonly */
  6798. StringHash baseType;
  6799. /* readonly */
  6800. String category;
  6801. /* readonly */
  6802. uint memoryUse;
  6803. String name;
  6804. /* readonly */
  6805. int refs;
  6806. /* readonly */
  6807. StringHash type;
  6808. /* readonly */
  6809. String typeName;
  6810. /* readonly */
  6811. uint useTimer;
  6812. /* readonly */
  6813. int weakRefs;
  6814. };
  6815. class ResourceCache
  6816. {
  6817. // Methods:
  6818. bool AddManualResource(Resource);
  6819. void AddPackageFile(PackageFile, uint = M_MAX_UNSIGNED);
  6820. bool AddResourceDir(const String&, uint = M_MAX_UNSIGNED);
  6821. bool BackgroundLoadResource(const String&, const String&, bool = true);
  6822. bool Exists(const String&) const;
  6823. File GetFile(const String&);
  6824. String GetPreferredResourceDir(const String&) const;
  6825. Resource GetResource(StringHash, const String&, bool = true);
  6826. Resource GetResource(const String&, const String&, bool = true);
  6827. String GetResourceFileName(const String&) const;
  6828. void ReleaseAllResources(bool = false);
  6829. void ReleaseResource(const String&, const String&, bool = false);
  6830. void ReleaseResources(StringHash, bool = false);
  6831. void ReleaseResources(const String&, bool = false);
  6832. void ReleaseResources(const String&, const String&, bool = false);
  6833. bool ReloadResource(Resource);
  6834. void RemovePackageFile(PackageFile, bool = true, bool = false);
  6835. void RemovePackageFile(const String&, bool = true, bool = false);
  6836. void RemoveResourceDir(const String&);
  6837. String SanitateResourceDirName(const String&) const;
  6838. String SanitateResourceName(const String&) const;
  6839. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6840. // Properties:
  6841. bool autoReloadResources;
  6842. /* readonly */
  6843. StringHash baseType;
  6844. /* readonly */
  6845. String category;
  6846. int finishBackgroundResourcesMs;
  6847. Array<uint> memoryBudget;
  6848. /* readonly */
  6849. Array<uint> memoryUse;
  6850. /* readonly */
  6851. uint numBackgroundLoadResources;
  6852. /* readonly */
  6853. Array<PackageFile> packageFiles;
  6854. /* readonly */
  6855. int refs;
  6856. /* readonly */
  6857. Array<String> resourceDirs;
  6858. bool returnFailedResources;
  6859. /* readonly */
  6860. bool seachPackagesFirst;
  6861. /* writeonly */
  6862. bool searchPackagesFirst;
  6863. /* readonly */
  6864. uint totalMemoryUse;
  6865. /* readonly */
  6866. StringHash type;
  6867. /* readonly */
  6868. String typeName;
  6869. /* readonly */
  6870. int weakRefs;
  6871. };
  6872. class ResourceRef
  6873. {
  6874. // Properties:
  6875. String name;
  6876. StringHash type;
  6877. };
  6878. class ResourceRefList
  6879. {
  6880. // Methods:
  6881. void Resize(uint);
  6882. // Properties:
  6883. /* readonly */
  6884. bool empty;
  6885. /* readonly */
  6886. uint length;
  6887. Array<String> names;
  6888. StringHash type;
  6889. };
  6890. class RigidBody
  6891. {
  6892. // Methods:
  6893. void Activate();
  6894. void ApplyAttributes();
  6895. void ApplyForce(const Vector3&);
  6896. void ApplyForce(const Vector3&, const Vector3&);
  6897. void ApplyImpulse(const Vector3&);
  6898. void ApplyImpulse(const Vector3&, const Vector3&);
  6899. void ApplyTorque(const Vector3&);
  6900. void ApplyTorqueImpulse(const Vector3&);
  6901. void DrawDebugGeometry(DebugRenderer, bool);
  6902. Variant GetAttribute(const String&) const;
  6903. ValueAnimation GetAttributeAnimation(const String&) const;
  6904. float GetAttributeAnimationSpeed(const String&) const;
  6905. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6906. Variant GetAttributeDefault(const String&) const;
  6907. Vector3 GetVelocityAtPoint(const Vector3&) const;
  6908. bool Load(File, bool = false);
  6909. bool Load(VectorBuffer&, bool = false);
  6910. bool LoadXML(const XMLElement&, bool = false);
  6911. void MarkNetworkUpdate() const;
  6912. void ReAddBodyToWorld();
  6913. void Remove();
  6914. void RemoveInstanceDefault();
  6915. void ResetForces();
  6916. void ResetToDefault();
  6917. bool Save(File) const;
  6918. bool Save(VectorBuffer&) const;
  6919. bool SaveXML(XMLElement&) const;
  6920. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  6921. bool SetAttribute(const String&, const Variant&);
  6922. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6923. void SetAttributeAnimationSpeed(const String&, float);
  6924. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6925. void SetCollisionLayerAndMask(uint, uint);
  6926. void SetTransform(const Vector3&, const Quaternion&);
  6927. // Properties:
  6928. /* readonly */
  6929. bool active;
  6930. float angularDamping;
  6931. Vector3 angularFactor;
  6932. float angularRestThreshold;
  6933. Vector3 angularVelocity;
  6934. bool animationEnabled;
  6935. Vector3 anisotropicFriction;
  6936. /* readonly */
  6937. Array<Variant> attributeDefaults;
  6938. /* readonly */
  6939. Array<AttributeInfo> attributeInfos;
  6940. Array<Variant> attributes;
  6941. /* readonly */
  6942. StringHash baseType;
  6943. /* readonly */
  6944. String category;
  6945. float ccdMotionThreshold;
  6946. float ccdRadius;
  6947. /* readonly */
  6948. Vector3 centerOfMass;
  6949. /* readonly */
  6950. Array<RigidBody> collidingBodies;
  6951. CollisionEventMode collisionEventMode;
  6952. uint collisionLayer;
  6953. uint collisionMask;
  6954. float contactProcessingThreshold;
  6955. bool enabled;
  6956. /* readonly */
  6957. bool enabledEffective;
  6958. float friction;
  6959. Vector3 gravityOverride;
  6960. /* readonly */
  6961. uint id;
  6962. bool kinematic;
  6963. float linearDamping;
  6964. Vector3 linearFactor;
  6965. float linearRestThreshold;
  6966. Vector3 linearVelocity;
  6967. float mass;
  6968. /* readonly */
  6969. Node node;
  6970. /* readonly */
  6971. uint numAttributes;
  6972. ObjectAnimation objectAnimation;
  6973. Vector3 position;
  6974. /* readonly */
  6975. int refs;
  6976. float restitution;
  6977. float rollingFriction;
  6978. Quaternion rotation;
  6979. bool temporary;
  6980. bool trigger;
  6981. /* readonly */
  6982. StringHash type;
  6983. /* readonly */
  6984. String typeName;
  6985. bool useGravity;
  6986. /* readonly */
  6987. int weakRefs;
  6988. };
  6989. class RigidBody2D
  6990. {
  6991. // Methods:
  6992. void ApplyAngularImpulse(float, bool);
  6993. void ApplyAttributes();
  6994. void ApplyForce(const Vector2&, const Vector2&, bool);
  6995. void ApplyForceToCenter(const Vector2&, bool);
  6996. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  6997. void ApplyTorque(float, bool);
  6998. void DrawDebugGeometry(DebugRenderer, bool);
  6999. Variant GetAttribute(const String&) const;
  7000. ValueAnimation GetAttributeAnimation(const String&) const;
  7001. float GetAttributeAnimationSpeed(const String&) const;
  7002. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7003. Variant GetAttributeDefault(const String&) const;
  7004. bool Load(File, bool = false);
  7005. bool Load(VectorBuffer&, bool = false);
  7006. bool LoadXML(const XMLElement&, bool = false);
  7007. void MarkNetworkUpdate() const;
  7008. void Remove();
  7009. void RemoveInstanceDefault();
  7010. void ResetToDefault();
  7011. bool Save(File) const;
  7012. bool Save(VectorBuffer&) const;
  7013. bool SaveXML(XMLElement&) const;
  7014. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7015. bool SetAttribute(const String&, const Variant&);
  7016. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7017. void SetAttributeAnimationSpeed(const String&, float);
  7018. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7019. // Properties:
  7020. bool allowSleep;
  7021. float angularDamping;
  7022. bool animationEnabled;
  7023. /* readonly */
  7024. Array<Variant> attributeDefaults;
  7025. /* readonly */
  7026. Array<AttributeInfo> attributeInfos;
  7027. Array<Variant> attributes;
  7028. bool awake;
  7029. /* readonly */
  7030. StringHash baseType;
  7031. BodyType2D bodyType;
  7032. bool bullet;
  7033. /* readonly */
  7034. String category;
  7035. bool enabled;
  7036. /* readonly */
  7037. bool enabledEffective;
  7038. bool fixedRotation;
  7039. float gravityScale;
  7040. /* readonly */
  7041. uint id;
  7042. float inertia;
  7043. float linearDamping;
  7044. Vector2 linearVelocity;
  7045. float mass;
  7046. Vector2 massCenter;
  7047. /* readonly */
  7048. Node node;
  7049. /* readonly */
  7050. uint numAttributes;
  7051. ObjectAnimation objectAnimation;
  7052. /* readonly */
  7053. int refs;
  7054. bool temporary;
  7055. /* readonly */
  7056. StringHash type;
  7057. /* readonly */
  7058. String typeName;
  7059. bool useFixtureMass;
  7060. /* readonly */
  7061. int weakRefs;
  7062. };
  7063. class Scene
  7064. {
  7065. // Methods:
  7066. void AddChild(Node, uint = M_MAX_UNSIGNED);
  7067. void AddRequiredPackageFile(PackageFile);
  7068. void ApplyAttributes();
  7069. void Clear(bool = true, bool = true);
  7070. void ClearRequiredPackageFiles();
  7071. Component CloneComponent(Component, CreateMode, uint = 0);
  7072. Component CloneComponent(Component, uint = 0);
  7073. Node CreateChild(const String& = String ( ), CreateMode = REPLICATED, uint = 0);
  7074. Component CreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7075. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode = REPLICATED);
  7076. ScriptObject CreateScriptObject(const String&, const String&, CreateMode = REPLICATED);
  7077. Variant GetAttribute(const String&) const;
  7078. ValueAnimation GetAttributeAnimation(const String&) const;
  7079. float GetAttributeAnimationSpeed(const String&) const;
  7080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7081. Variant GetAttributeDefault(const String&) const;
  7082. Node GetChild(const String&, bool = false) const;
  7083. Array<Node> GetChildren(bool = false) const;
  7084. Array<Node> GetChildrenWithComponent(const String&, bool = false) const;
  7085. Array<Node> GetChildrenWithScript(bool = false) const;
  7086. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  7087. Component GetComponent(const String&) const;
  7088. Component GetComponent(uint);
  7089. Array<Component> GetComponents() const;
  7090. Array<Component> GetComponents(const String&, bool = false) const;
  7091. Node GetNode(uint);
  7092. Component GetOrCreateComponent(const String&, CreateMode = REPLICATED, uint = 0);
  7093. ScriptObject GetScriptObject() const;
  7094. ScriptObject GetScriptObject(const String&) const;
  7095. bool HasComponent(const String&) const;
  7096. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7097. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7098. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7099. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7100. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7101. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  7102. bool Load(File, bool = false);
  7103. bool Load(VectorBuffer&, bool = false);
  7104. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7105. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  7106. bool LoadXML(File);
  7107. bool LoadXML(VectorBuffer&);
  7108. bool LoadXML(const XMLElement&, bool = false);
  7109. Vector3 LocalToWorld(const Vector3&) const;
  7110. Vector3 LocalToWorld(const Vector4&) const;
  7111. Vector2 LocalToWorld2D(const Vector2&) const;
  7112. bool LookAt(const Vector3&, const Vector3& = Vector3 ( 0 , 1 , 0 ), TransformSpace = TS_WORLD);
  7113. void MarkNetworkUpdate() const;
  7114. void Pitch(float, TransformSpace = TS_LOCAL);
  7115. void RegisterVar(const String&);
  7116. void Remove();
  7117. void RemoveAllChildren();
  7118. void RemoveAllComponents();
  7119. void RemoveChild(Node);
  7120. void RemoveChildren(bool, bool, bool);
  7121. void RemoveComponent(Component);
  7122. void RemoveComponent(const String&);
  7123. void RemoveComponents(bool, bool);
  7124. void RemoveInstanceDefault();
  7125. void ResetToDefault();
  7126. void Roll(float, TransformSpace = TS_LOCAL);
  7127. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  7128. void Rotate2D(float, TransformSpace = TS_LOCAL);
  7129. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  7130. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  7131. bool Save(File) const;
  7132. bool Save(VectorBuffer&) const;
  7133. bool SaveXML(File);
  7134. bool SaveXML(VectorBuffer&);
  7135. bool SaveXML(XMLElement&) const;
  7136. void Scale(const Vector3&);
  7137. void Scale(float);
  7138. void Scale2D(const Vector2&);
  7139. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7140. bool SetAttribute(const String&, const Variant&);
  7141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7142. void SetAttributeAnimationSpeed(const String&, float);
  7143. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7144. void SetPosition2D(float, float);
  7145. void SetScale(float);
  7146. void SetScale2D(float, float);
  7147. void SetTransform(const Vector3&, const Quaternion&);
  7148. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  7149. void SetTransform(const Vector3&, const Quaternion&, float);
  7150. void SetTransform2D(const Vector2&, float);
  7151. void SetTransform2D(const Vector2&, float, const Vector2&);
  7152. void SetTransform2D(const Vector2&, float, float);
  7153. void SetWorldTransform(const Vector3&, const Quaternion&);
  7154. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  7155. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  7156. void SetWorldTransform2D(const Vector2&, float);
  7157. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  7158. void SetWorldTransform2D(const Vector2&, float, float);
  7159. void StopAsyncLoading();
  7160. const String& GetVarName(StringHash) const;
  7161. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  7162. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  7163. void UnregisterAllVars(const String&);
  7164. void UnregisterVar(const String&);
  7165. void Update(float);
  7166. Vector3 WorldToLocal(const Vector3&) const;
  7167. Vector3 WorldToLocal(const Vector4&) const;
  7168. Vector2 WorldToLocal2D(const Vector2&) const;
  7169. void Yaw(float, TransformSpace = TS_LOCAL);
  7170. // Properties:
  7171. bool animationEnabled;
  7172. /* readonly */
  7173. LoadMode asyncLoadMode;
  7174. /* readonly */
  7175. bool asyncLoading;
  7176. int asyncLoadingMs;
  7177. /* readonly */
  7178. float asyncProgress;
  7179. /* readonly */
  7180. Array<Variant> attributeDefaults;
  7181. /* readonly */
  7182. Array<AttributeInfo> attributeInfos;
  7183. Array<Variant> attributes;
  7184. /* readonly */
  7185. StringHash baseType;
  7186. /* readonly */
  7187. String category;
  7188. /* readonly */
  7189. uint checksum;
  7190. /* readonly */
  7191. Array<Node> children;
  7192. /* readonly */
  7193. Array<Component> components;
  7194. /* readonly */
  7195. DebugRenderer debugRenderer;
  7196. Vector3 direction;
  7197. float elapsedTime;
  7198. /* readonly */
  7199. String fileName;
  7200. /* readonly */
  7201. uint id;
  7202. String name;
  7203. /* readonly */
  7204. uint numAllChildren;
  7205. /* readonly */
  7206. uint numAttributes;
  7207. /* readonly */
  7208. uint numChildren;
  7209. /* readonly */
  7210. uint numComponents;
  7211. ObjectAnimation objectAnimation;
  7212. /* readonly */
  7213. Octree octree;
  7214. Node parent;
  7215. /* readonly */
  7216. PhysicsWorld physicsWorld;
  7217. /* readonly */
  7218. PhysicsWorld2D physicsWorld2D;
  7219. Vector3 position;
  7220. Vector2 position2D;
  7221. /* readonly */
  7222. int refs;
  7223. /* readonly */
  7224. Array<PackageFile> requiredPackageFiles;
  7225. /* readonly */
  7226. Vector3 right;
  7227. Quaternion rotation;
  7228. float rotation2D;
  7229. Vector3 scale;
  7230. Vector2 scale2D;
  7231. /* readonly */
  7232. ScriptObject scriptObject;
  7233. float smoothingConstant;
  7234. float snapThreshold;
  7235. bool temporary;
  7236. float timeScale;
  7237. /* readonly */
  7238. Matrix3x4 transform;
  7239. /* readonly */
  7240. StringHash type;
  7241. /* readonly */
  7242. String typeName;
  7243. /* readonly */
  7244. Vector3 up;
  7245. bool updateEnabled;
  7246. /* readonly */
  7247. VariantMap vars;
  7248. /* readonly */
  7249. int weakRefs;
  7250. Vector3 worldDirection;
  7251. Vector3 worldPosition;
  7252. Vector2 worldPosition2D;
  7253. /* readonly */
  7254. Vector3 worldRight;
  7255. Quaternion worldRotation;
  7256. float worldRotation2D;
  7257. Vector3 worldScale;
  7258. Vector2 worldScale2D;
  7259. /* readonly */
  7260. Matrix3x4 worldTransform;
  7261. /* readonly */
  7262. Vector3 worldUp;
  7263. };
  7264. class Script
  7265. {
  7266. // Methods:
  7267. void DumpAPI(DumpMode = DOXYGEN);
  7268. bool Execute(const String&);
  7269. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7270. // Properties:
  7271. /* readonly */
  7272. StringHash baseType;
  7273. /* readonly */
  7274. String category;
  7275. Scene defaultScene;
  7276. ScriptFile defaultScriptFile;
  7277. bool executeConsoleCommands;
  7278. /* readonly */
  7279. int refs;
  7280. /* readonly */
  7281. StringHash type;
  7282. /* readonly */
  7283. String typeName;
  7284. /* readonly */
  7285. int weakRefs;
  7286. };
  7287. class ScriptFile
  7288. {
  7289. // Methods:
  7290. void ClearDelayedExecute(const String& = String ( ));
  7291. void DelayedExecute(float, bool, const String&);
  7292. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7293. bool Execute(const String&, const Array<Variant>);
  7294. bool Load(File);
  7295. bool Load(VectorBuffer&);
  7296. bool Save(File) const;
  7297. bool Save(VectorBuffer&) const;
  7298. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7299. // Properties:
  7300. /* readonly */
  7301. StringHash baseType;
  7302. /* readonly */
  7303. String category;
  7304. /* readonly */
  7305. bool compiled;
  7306. /* readonly */
  7307. uint memoryUse;
  7308. String name;
  7309. /* readonly */
  7310. int refs;
  7311. /* readonly */
  7312. StringHash type;
  7313. /* readonly */
  7314. String typeName;
  7315. /* readonly */
  7316. uint useTimer;
  7317. /* readonly */
  7318. int weakRefs;
  7319. };
  7320. class ScriptInstance
  7321. {
  7322. // Methods:
  7323. void ApplyAttributes();
  7324. void ClearDelayedExecute(const String& = String ( ));
  7325. bool CreateObject(ScriptFile, const String&);
  7326. void DelayedExecute(float, bool, const String&);
  7327. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  7328. void DrawDebugGeometry(DebugRenderer, bool);
  7329. bool Execute(const String&);
  7330. bool Execute(const String&, const Array<Variant>);
  7331. Variant GetAttribute(const String&) const;
  7332. ValueAnimation GetAttributeAnimation(const String&) const;
  7333. float GetAttributeAnimationSpeed(const String&) const;
  7334. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7335. Variant GetAttributeDefault(const String&) const;
  7336. bool Load(File, bool = false);
  7337. bool Load(VectorBuffer&, bool = false);
  7338. bool LoadXML(const XMLElement&, bool = false);
  7339. void MarkNetworkUpdate() const;
  7340. void Remove();
  7341. void RemoveInstanceDefault();
  7342. void ResetToDefault();
  7343. bool Save(File) const;
  7344. bool Save(VectorBuffer&) const;
  7345. bool SaveXML(XMLElement&) const;
  7346. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7347. bool SetAttribute(const String&, const Variant&);
  7348. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7349. void SetAttributeAnimationSpeed(const String&, float);
  7350. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7351. // Properties:
  7352. bool animationEnabled;
  7353. /* readonly */
  7354. Array<Variant> attributeDefaults;
  7355. /* readonly */
  7356. Array<AttributeInfo> attributeInfos;
  7357. Array<Variant> attributes;
  7358. /* readonly */
  7359. StringHash baseType;
  7360. /* readonly */
  7361. String category;
  7362. String className;
  7363. bool enabled;
  7364. /* readonly */
  7365. bool enabledEffective;
  7366. /* readonly */
  7367. uint id;
  7368. /* readonly */
  7369. Node node;
  7370. /* readonly */
  7371. uint numAttributes;
  7372. ObjectAnimation objectAnimation;
  7373. /* readonly */
  7374. int refs;
  7375. ScriptFile scriptFile;
  7376. /* readonly */
  7377. ScriptObject scriptObject;
  7378. bool temporary;
  7379. /* readonly */
  7380. StringHash type;
  7381. /* readonly */
  7382. String typeName;
  7383. /* readonly */
  7384. int weakRefs;
  7385. };
  7386. class ScriptObject
  7387. {
  7388. };
  7389. class ScrollBar
  7390. {
  7391. // Methods:
  7392. void AddChild(UIElement);
  7393. void ApplyAttributes();
  7394. void BringToFront();
  7395. void ChangeValue(float);
  7396. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7397. void DisableLayoutUpdate();
  7398. IntVector2 ElementToScreen(const IntVector2&);
  7399. void EnableLayoutUpdate();
  7400. uint FindChild(UIElement) const;
  7401. Variant GetAttribute(const String&) const;
  7402. ValueAnimation GetAttributeAnimation(const String&) const;
  7403. float GetAttributeAnimationSpeed(const String&) const;
  7404. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7405. Variant GetAttributeDefault(const String&) const;
  7406. UIElement GetChild(const String&, bool = false) const;
  7407. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7408. Array<UIElement> GetChildren(bool = false) const;
  7409. UIElement GetElementEventSender() const;
  7410. uint GetNumChildren(bool) const;
  7411. void InsertChild(uint, UIElement);
  7412. bool IsInside(IntVector2, bool);
  7413. bool IsInsideCombined(IntVector2, bool);
  7414. bool Load(File, bool = false);
  7415. bool Load(VectorBuffer&, bool = false);
  7416. bool LoadChildXML(XMLFile, XMLFile = null);
  7417. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7418. bool LoadXML(File);
  7419. bool LoadXML(VectorBuffer&);
  7420. bool LoadXML(XMLFile, XMLFile);
  7421. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7422. bool LoadXML(const XMLElement&, bool = false);
  7423. void MarkNetworkUpdate() const;
  7424. void Remove();
  7425. void RemoveAllChildren();
  7426. void RemoveChild(UIElement, uint = 0);
  7427. void RemoveChild(uint);
  7428. void RemoveInstanceDefault();
  7429. void ResetToDefault();
  7430. bool Save(File) const;
  7431. bool Save(VectorBuffer&) const;
  7432. bool SaveXML(File);
  7433. bool SaveXML(VectorBuffer&);
  7434. bool SaveXML(XMLElement&) const;
  7435. IntVector2 ScreenToElement(const IntVector2&);
  7436. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7437. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7438. bool SetAttribute(const String&, const Variant&);
  7439. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7440. void SetAttributeAnimationSpeed(const String&, float);
  7441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7442. void SetFixedHeight(int);
  7443. void SetFixedSize(int, int);
  7444. void SetFixedWidth(int);
  7445. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7446. void SetMaxSize(int, int);
  7447. void SetMinSize(int, int);
  7448. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7449. void SetPosition(int, int);
  7450. void SetSize(int, int);
  7451. bool SetStyle(const String&, XMLFile = null);
  7452. bool SetStyle(const XMLElement&);
  7453. bool SetStyleAuto(XMLFile = null);
  7454. void StepBack();
  7455. void StepForward();
  7456. void UpdateLayout();
  7457. const Variant& GetVar(const StringHash&);
  7458. // Properties:
  7459. bool animationEnabled;
  7460. /* readonly */
  7461. Array<Variant> attributeDefaults;
  7462. /* readonly */
  7463. Array<AttributeInfo> attributeInfos;
  7464. Array<Variant> attributes;
  7465. /* readonly */
  7466. Button backButton;
  7467. /* readonly */
  7468. StringHash baseType;
  7469. bool bringToBack;
  7470. bool bringToFront;
  7471. /* readonly */
  7472. String category;
  7473. /* readonly */
  7474. IntVector2 childOffset;
  7475. /* readonly */
  7476. Array<UIElement> children;
  7477. IntRect clipBorder;
  7478. bool clipChildren;
  7479. /* writeonly */
  7480. Color color;
  7481. /* readonly */
  7482. bool colorGradient;
  7483. Array<Color> colors;
  7484. /* readonly */
  7485. IntRect combinedScreenRect;
  7486. XMLFile defaultStyle;
  7487. /* readonly */
  7488. float derivedOpacity;
  7489. uint dragDropMode;
  7490. bool editable;
  7491. /* readonly */
  7492. float effectiveScrollStep;
  7493. bool elementEventSender;
  7494. bool enabled;
  7495. /* readonly */
  7496. bool fixedHeight;
  7497. /* readonly */
  7498. bool fixedSize;
  7499. /* readonly */
  7500. bool fixedWidth;
  7501. bool focus;
  7502. FocusMode focusMode;
  7503. /* readonly */
  7504. Button forwardButton;
  7505. int height;
  7506. HorizontalAlignment horizontalAlignment;
  7507. /* readonly */
  7508. bool hovering;
  7509. int indent;
  7510. int indentSpacing;
  7511. /* readonly */
  7512. int indentWidth;
  7513. bool internal;
  7514. IntRect layoutBorder;
  7515. LayoutMode layoutMode;
  7516. int layoutSpacing;
  7517. int maxHeight;
  7518. IntVector2 maxSize;
  7519. int maxWidth;
  7520. int minHeight;
  7521. IntVector2 minSize;
  7522. int minWidth;
  7523. String name;
  7524. /* readonly */
  7525. uint numAllChildren;
  7526. /* readonly */
  7527. uint numAttributes;
  7528. /* readonly */
  7529. uint numChildren;
  7530. ObjectAnimation objectAnimation;
  7531. float opacity;
  7532. Orientation orientation;
  7533. UIElement parent;
  7534. IntVector2 position;
  7535. int priority;
  7536. float range;
  7537. /* readonly */
  7538. int refs;
  7539. /* readonly */
  7540. UIElement root;
  7541. /* readonly */
  7542. IntVector2 screenPosition;
  7543. float scrollStep;
  7544. bool selected;
  7545. IntVector2 size;
  7546. /* readonly */
  7547. Slider slider;
  7548. bool sortChildren;
  7549. float stepFactor;
  7550. String style;
  7551. bool temporary;
  7552. TraversalMode traversalMode;
  7553. /* readonly */
  7554. StringHash type;
  7555. /* readonly */
  7556. String typeName;
  7557. bool useDerivedOpacity;
  7558. float value;
  7559. /* readonly */
  7560. VariantMap vars;
  7561. VerticalAlignment verticalAlignment;
  7562. bool visible;
  7563. /* readonly */
  7564. int weakRefs;
  7565. int width;
  7566. };
  7567. class ScrollView
  7568. {
  7569. // Methods:
  7570. void AddChild(UIElement);
  7571. void ApplyAttributes();
  7572. void BringToFront();
  7573. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7574. void DisableLayoutUpdate();
  7575. IntVector2 ElementToScreen(const IntVector2&);
  7576. void EnableLayoutUpdate();
  7577. uint FindChild(UIElement) const;
  7578. Variant GetAttribute(const String&) const;
  7579. ValueAnimation GetAttributeAnimation(const String&) const;
  7580. float GetAttributeAnimationSpeed(const String&) const;
  7581. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7582. Variant GetAttributeDefault(const String&) const;
  7583. UIElement GetChild(const String&, bool = false) const;
  7584. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7585. Array<UIElement> GetChildren(bool = false) const;
  7586. UIElement GetElementEventSender() const;
  7587. uint GetNumChildren(bool) const;
  7588. void InsertChild(uint, UIElement);
  7589. bool IsInside(IntVector2, bool);
  7590. bool IsInsideCombined(IntVector2, bool);
  7591. bool Load(File, bool = false);
  7592. bool Load(VectorBuffer&, bool = false);
  7593. bool LoadChildXML(XMLFile, XMLFile = null);
  7594. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7595. bool LoadXML(File);
  7596. bool LoadXML(VectorBuffer&);
  7597. bool LoadXML(XMLFile, XMLFile);
  7598. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7599. bool LoadXML(const XMLElement&, bool = false);
  7600. void MarkNetworkUpdate() const;
  7601. void Remove();
  7602. void RemoveAllChildren();
  7603. void RemoveChild(UIElement, uint = 0);
  7604. void RemoveChild(uint);
  7605. void RemoveInstanceDefault();
  7606. void ResetToDefault();
  7607. bool Save(File) const;
  7608. bool Save(VectorBuffer&) const;
  7609. bool SaveXML(File);
  7610. bool SaveXML(VectorBuffer&);
  7611. bool SaveXML(XMLElement&) const;
  7612. IntVector2 ScreenToElement(const IntVector2&);
  7613. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7614. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7615. bool SetAttribute(const String&, const Variant&);
  7616. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7617. void SetAttributeAnimationSpeed(const String&, float);
  7618. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7619. void SetFixedHeight(int);
  7620. void SetFixedSize(int, int);
  7621. void SetFixedWidth(int);
  7622. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7623. void SetMaxSize(int, int);
  7624. void SetMinSize(int, int);
  7625. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7626. void SetPosition(int, int);
  7627. void SetScrollBarsVisible(bool, bool);
  7628. void SetSize(int, int);
  7629. bool SetStyle(const String&, XMLFile = null);
  7630. bool SetStyle(const XMLElement&);
  7631. bool SetStyleAuto(XMLFile = null);
  7632. void SetViewPosition(int, int);
  7633. void UpdateLayout();
  7634. const Variant& GetVar(const StringHash&);
  7635. // Properties:
  7636. bool animationEnabled;
  7637. /* readonly */
  7638. Array<Variant> attributeDefaults;
  7639. /* readonly */
  7640. Array<AttributeInfo> attributeInfos;
  7641. Array<Variant> attributes;
  7642. /* readonly */
  7643. StringHash baseType;
  7644. bool bringToBack;
  7645. bool bringToFront;
  7646. /* readonly */
  7647. String category;
  7648. /* readonly */
  7649. IntVector2 childOffset;
  7650. /* readonly */
  7651. Array<UIElement> children;
  7652. IntRect clipBorder;
  7653. bool clipChildren;
  7654. /* writeonly */
  7655. Color color;
  7656. /* readonly */
  7657. bool colorGradient;
  7658. Array<Color> colors;
  7659. /* readonly */
  7660. IntRect combinedScreenRect;
  7661. UIElement contentElement;
  7662. XMLFile defaultStyle;
  7663. /* readonly */
  7664. float derivedOpacity;
  7665. uint dragDropMode;
  7666. bool editable;
  7667. bool elementEventSender;
  7668. bool enabled;
  7669. /* readonly */
  7670. bool fixedHeight;
  7671. /* readonly */
  7672. bool fixedSize;
  7673. /* readonly */
  7674. bool fixedWidth;
  7675. bool focus;
  7676. FocusMode focusMode;
  7677. int height;
  7678. HorizontalAlignment horizontalAlignment;
  7679. /* readonly */
  7680. ScrollBar horizontalScrollBar;
  7681. /* readonly */
  7682. bool hovering;
  7683. int indent;
  7684. int indentSpacing;
  7685. /* readonly */
  7686. int indentWidth;
  7687. bool internal;
  7688. IntRect layoutBorder;
  7689. LayoutMode layoutMode;
  7690. int layoutSpacing;
  7691. int maxHeight;
  7692. IntVector2 maxSize;
  7693. int maxWidth;
  7694. int minHeight;
  7695. IntVector2 minSize;
  7696. int minWidth;
  7697. String name;
  7698. /* readonly */
  7699. uint numAllChildren;
  7700. /* readonly */
  7701. uint numAttributes;
  7702. /* readonly */
  7703. uint numChildren;
  7704. ObjectAnimation objectAnimation;
  7705. float opacity;
  7706. float pageStep;
  7707. UIElement parent;
  7708. IntVector2 position;
  7709. int priority;
  7710. /* readonly */
  7711. int refs;
  7712. /* readonly */
  7713. UIElement root;
  7714. /* readonly */
  7715. IntVector2 screenPosition;
  7716. bool scrollBarsAutoVisible;
  7717. /* readonly */
  7718. BorderImage scrollPanel;
  7719. float scrollStep;
  7720. bool selected;
  7721. IntVector2 size;
  7722. bool sortChildren;
  7723. String style;
  7724. bool temporary;
  7725. TraversalMode traversalMode;
  7726. /* readonly */
  7727. StringHash type;
  7728. /* readonly */
  7729. String typeName;
  7730. bool useDerivedOpacity;
  7731. /* readonly */
  7732. VariantMap vars;
  7733. VerticalAlignment verticalAlignment;
  7734. /* readonly */
  7735. ScrollBar verticalScrollBar;
  7736. IntVector2 viewPosition;
  7737. bool visible;
  7738. /* readonly */
  7739. int weakRefs;
  7740. int width;
  7741. };
  7742. class Serializable
  7743. {
  7744. // Methods:
  7745. void ApplyAttributes();
  7746. Variant GetAttribute(const String&) const;
  7747. Variant GetAttributeDefault(const String&) const;
  7748. bool Load(File, bool = false);
  7749. bool Load(VectorBuffer&, bool = false);
  7750. bool LoadXML(const XMLElement&, bool = false);
  7751. void MarkNetworkUpdate() const;
  7752. void RemoveInstanceDefault();
  7753. void ResetToDefault();
  7754. bool Save(File) const;
  7755. bool Save(VectorBuffer&) const;
  7756. bool SaveXML(XMLElement&) const;
  7757. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7758. bool SetAttribute(const String&, const Variant&);
  7759. // Properties:
  7760. /* readonly */
  7761. Array<Variant> attributeDefaults;
  7762. /* readonly */
  7763. Array<AttributeInfo> attributeInfos;
  7764. Array<Variant> attributes;
  7765. /* readonly */
  7766. StringHash baseType;
  7767. /* readonly */
  7768. String category;
  7769. /* readonly */
  7770. uint numAttributes;
  7771. /* readonly */
  7772. int refs;
  7773. bool temporary;
  7774. /* readonly */
  7775. StringHash type;
  7776. /* readonly */
  7777. String typeName;
  7778. /* readonly */
  7779. int weakRefs;
  7780. };
  7781. class Serializer
  7782. {
  7783. // Methods:
  7784. uint Write(Array<uint8>);
  7785. bool WriteBool(bool);
  7786. bool WriteBoundingBox(const BoundingBox&);
  7787. bool WriteByte(int8);
  7788. bool WriteColor(const Color&);
  7789. bool WriteFileID(const String&);
  7790. bool WriteFloat(float);
  7791. bool WriteInt(int);
  7792. bool WriteIntRect(const IntRect&);
  7793. bool WriteIntVector2(const IntVector2&);
  7794. bool WriteLine(const String&);
  7795. bool WriteMatrix3(const Matrix3&);
  7796. bool WriteMatrix3x4(const Matrix3x4&);
  7797. bool WriteMatrix4(const Matrix4&);
  7798. bool WriteNetID(uint);
  7799. bool WritePackedQuaternion(const Quaternion&);
  7800. bool WritePackedVector3(const Vector3&, float);
  7801. bool WriteQuaternion(const Quaternion&);
  7802. bool WriteShort(int16);
  7803. bool WriteString(const String&);
  7804. bool WriteStringHash(const StringHash&);
  7805. bool WriteUByte(uint8);
  7806. bool WriteUInt(uint);
  7807. bool WriteUShort(uint16);
  7808. bool WriteVLE(uint);
  7809. bool WriteVariant(const Variant&);
  7810. bool WriteVariantMap(const VariantMap&);
  7811. bool WriteVector2(const Vector2&);
  7812. bool WriteVector3(const Vector3&);
  7813. bool WriteVector4(const Vector4&);
  7814. };
  7815. class Skeleton
  7816. {
  7817. // Methods:
  7818. Bone GetBone(const String&) const;
  7819. void Reset();
  7820. // Properties:
  7821. /* readonly */
  7822. Array<Bone> bones;
  7823. /* readonly */
  7824. uint numBones;
  7825. /* readonly */
  7826. Bone rootBone;
  7827. };
  7828. class Skybox
  7829. {
  7830. // Methods:
  7831. void ApplyAttributes();
  7832. void ApplyMaterialList(const String& = String ( ));
  7833. void DrawDebugGeometry(DebugRenderer, bool);
  7834. Variant GetAttribute(const String&) const;
  7835. ValueAnimation GetAttributeAnimation(const String&) const;
  7836. float GetAttributeAnimationSpeed(const String&) const;
  7837. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7838. Variant GetAttributeDefault(const String&) const;
  7839. bool IsInView(Camera) const;
  7840. bool Load(File, bool = false);
  7841. bool Load(VectorBuffer&, bool = false);
  7842. bool LoadXML(const XMLElement&, bool = false);
  7843. void MarkNetworkUpdate() const;
  7844. void Remove();
  7845. void RemoveInstanceDefault();
  7846. void ResetToDefault();
  7847. bool Save(File) const;
  7848. bool Save(VectorBuffer&) const;
  7849. bool SaveXML(XMLElement&) const;
  7850. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7851. bool SetAttribute(const String&, const Variant&);
  7852. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7853. void SetAttributeAnimationSpeed(const String&, float);
  7854. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7855. // Properties:
  7856. bool animationEnabled;
  7857. /* readonly */
  7858. Array<Variant> attributeDefaults;
  7859. /* readonly */
  7860. Array<AttributeInfo> attributeInfos;
  7861. Array<Variant> attributes;
  7862. /* readonly */
  7863. StringHash baseType;
  7864. /* readonly */
  7865. BoundingBox boundingBox;
  7866. bool castShadows;
  7867. /* readonly */
  7868. String category;
  7869. float drawDistance;
  7870. bool enabled;
  7871. /* readonly */
  7872. bool enabledEffective;
  7873. /* readonly */
  7874. uint id;
  7875. /* readonly */
  7876. bool inView;
  7877. uint lightMask;
  7878. float lodBias;
  7879. /* writeonly */
  7880. Material material;
  7881. Array<Material> materials;
  7882. uint maxLights;
  7883. Model model;
  7884. /* readonly */
  7885. Node node;
  7886. /* readonly */
  7887. uint numAttributes;
  7888. /* readonly */
  7889. uint numGeometries;
  7890. ObjectAnimation objectAnimation;
  7891. bool occludee;
  7892. bool occluder;
  7893. /* readonly */
  7894. int refs;
  7895. float shadowDistance;
  7896. uint shadowMask;
  7897. bool temporary;
  7898. /* readonly */
  7899. StringHash type;
  7900. /* readonly */
  7901. String typeName;
  7902. uint viewMask;
  7903. /* readonly */
  7904. int weakRefs;
  7905. /* readonly */
  7906. BoundingBox worldBoundingBox;
  7907. /* readonly */
  7908. Zone zone;
  7909. uint zoneMask;
  7910. };
  7911. class Slider
  7912. {
  7913. // Methods:
  7914. void AddChild(UIElement);
  7915. void ApplyAttributes();
  7916. void BringToFront();
  7917. void ChangeValue(float);
  7918. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  7919. void DisableLayoutUpdate();
  7920. IntVector2 ElementToScreen(const IntVector2&);
  7921. void EnableLayoutUpdate();
  7922. uint FindChild(UIElement) const;
  7923. Variant GetAttribute(const String&) const;
  7924. ValueAnimation GetAttributeAnimation(const String&) const;
  7925. float GetAttributeAnimationSpeed(const String&) const;
  7926. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7927. Variant GetAttributeDefault(const String&) const;
  7928. UIElement GetChild(const String&, bool = false) const;
  7929. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  7930. Array<UIElement> GetChildren(bool = false) const;
  7931. UIElement GetElementEventSender() const;
  7932. uint GetNumChildren(bool) const;
  7933. void InsertChild(uint, UIElement);
  7934. bool IsInside(IntVector2, bool);
  7935. bool IsInsideCombined(IntVector2, bool);
  7936. bool Load(File, bool = false);
  7937. bool Load(VectorBuffer&, bool = false);
  7938. bool LoadChildXML(XMLFile, XMLFile = null);
  7939. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  7940. bool LoadXML(File);
  7941. bool LoadXML(VectorBuffer&);
  7942. bool LoadXML(XMLFile, XMLFile);
  7943. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  7944. bool LoadXML(const XMLElement&, bool = false);
  7945. void MarkNetworkUpdate() const;
  7946. void Remove();
  7947. void RemoveAllChildren();
  7948. void RemoveChild(UIElement, uint = 0);
  7949. void RemoveChild(uint);
  7950. void RemoveInstanceDefault();
  7951. void ResetToDefault();
  7952. bool Save(File) const;
  7953. bool Save(VectorBuffer&) const;
  7954. bool SaveXML(File);
  7955. bool SaveXML(VectorBuffer&);
  7956. bool SaveXML(XMLElement&) const;
  7957. IntVector2 ScreenToElement(const IntVector2&);
  7958. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  7959. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  7960. bool SetAttribute(const String&, const Variant&);
  7961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7962. void SetAttributeAnimationSpeed(const String&, float);
  7963. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7964. void SetFixedHeight(int);
  7965. void SetFixedSize(int, int);
  7966. void SetFixedWidth(int);
  7967. void SetFullImageRect();
  7968. void SetHoverOffset(int, int);
  7969. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  7970. void SetMaxSize(int, int);
  7971. void SetMinSize(int, int);
  7972. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  7973. void SetPosition(int, int);
  7974. void SetSize(int, int);
  7975. bool SetStyle(const String&, XMLFile = null);
  7976. bool SetStyle(const XMLElement&);
  7977. bool SetStyleAuto(XMLFile = null);
  7978. void UpdateLayout();
  7979. const Variant& GetVar(const StringHash&);
  7980. // Properties:
  7981. bool animationEnabled;
  7982. /* readonly */
  7983. Array<Variant> attributeDefaults;
  7984. /* readonly */
  7985. Array<AttributeInfo> attributeInfos;
  7986. Array<Variant> attributes;
  7987. /* readonly */
  7988. StringHash baseType;
  7989. BlendMode blendMode;
  7990. IntRect border;
  7991. bool bringToBack;
  7992. bool bringToFront;
  7993. /* readonly */
  7994. String category;
  7995. /* readonly */
  7996. IntVector2 childOffset;
  7997. /* readonly */
  7998. Array<UIElement> children;
  7999. IntRect clipBorder;
  8000. bool clipChildren;
  8001. /* writeonly */
  8002. Color color;
  8003. /* readonly */
  8004. bool colorGradient;
  8005. Array<Color> colors;
  8006. /* readonly */
  8007. IntRect combinedScreenRect;
  8008. XMLFile defaultStyle;
  8009. /* readonly */
  8010. float derivedOpacity;
  8011. uint dragDropMode;
  8012. bool editable;
  8013. bool elementEventSender;
  8014. bool enabled;
  8015. /* readonly */
  8016. bool fixedHeight;
  8017. /* readonly */
  8018. bool fixedSize;
  8019. /* readonly */
  8020. bool fixedWidth;
  8021. bool focus;
  8022. FocusMode focusMode;
  8023. int height;
  8024. HorizontalAlignment horizontalAlignment;
  8025. IntVector2 hoverOffset;
  8026. /* readonly */
  8027. bool hovering;
  8028. IntRect imageBorder;
  8029. IntRect imageRect;
  8030. int indent;
  8031. int indentSpacing;
  8032. /* readonly */
  8033. int indentWidth;
  8034. bool internal;
  8035. /* readonly */
  8036. BorderImage knob;
  8037. IntRect layoutBorder;
  8038. LayoutMode layoutMode;
  8039. int layoutSpacing;
  8040. int maxHeight;
  8041. IntVector2 maxSize;
  8042. int maxWidth;
  8043. int minHeight;
  8044. IntVector2 minSize;
  8045. int minWidth;
  8046. String name;
  8047. /* readonly */
  8048. uint numAllChildren;
  8049. /* readonly */
  8050. uint numAttributes;
  8051. /* readonly */
  8052. uint numChildren;
  8053. ObjectAnimation objectAnimation;
  8054. float opacity;
  8055. Orientation orientation;
  8056. UIElement parent;
  8057. IntVector2 position;
  8058. int priority;
  8059. float range;
  8060. /* readonly */
  8061. int refs;
  8062. float repeatRate;
  8063. /* readonly */
  8064. UIElement root;
  8065. /* readonly */
  8066. IntVector2 screenPosition;
  8067. bool selected;
  8068. IntVector2 size;
  8069. bool sortChildren;
  8070. String style;
  8071. bool temporary;
  8072. Texture texture;
  8073. bool tiled;
  8074. TraversalMode traversalMode;
  8075. /* readonly */
  8076. StringHash type;
  8077. /* readonly */
  8078. String typeName;
  8079. bool useDerivedOpacity;
  8080. float value;
  8081. /* readonly */
  8082. VariantMap vars;
  8083. VerticalAlignment verticalAlignment;
  8084. bool visible;
  8085. /* readonly */
  8086. int weakRefs;
  8087. int width;
  8088. };
  8089. class SmoothedTransform
  8090. {
  8091. // Methods:
  8092. void ApplyAttributes();
  8093. void DrawDebugGeometry(DebugRenderer, bool);
  8094. Variant GetAttribute(const String&) const;
  8095. ValueAnimation GetAttributeAnimation(const String&) const;
  8096. float GetAttributeAnimationSpeed(const String&) const;
  8097. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8098. Variant GetAttributeDefault(const String&) const;
  8099. bool Load(File, bool = false);
  8100. bool Load(VectorBuffer&, bool = false);
  8101. bool LoadXML(const XMLElement&, bool = false);
  8102. void MarkNetworkUpdate() const;
  8103. void Remove();
  8104. void RemoveInstanceDefault();
  8105. void ResetToDefault();
  8106. bool Save(File) const;
  8107. bool Save(VectorBuffer&) const;
  8108. bool SaveXML(XMLElement&) const;
  8109. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8110. bool SetAttribute(const String&, const Variant&);
  8111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8112. void SetAttributeAnimationSpeed(const String&, float);
  8113. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8114. void Update(float, float);
  8115. // Properties:
  8116. bool animationEnabled;
  8117. /* readonly */
  8118. Array<Variant> attributeDefaults;
  8119. /* readonly */
  8120. Array<AttributeInfo> attributeInfos;
  8121. Array<Variant> attributes;
  8122. /* readonly */
  8123. StringHash baseType;
  8124. /* readonly */
  8125. String category;
  8126. bool enabled;
  8127. /* readonly */
  8128. bool enabledEffective;
  8129. /* readonly */
  8130. uint id;
  8131. /* readonly */
  8132. bool inProgress;
  8133. /* readonly */
  8134. Node node;
  8135. /* readonly */
  8136. uint numAttributes;
  8137. ObjectAnimation objectAnimation;
  8138. /* readonly */
  8139. int refs;
  8140. Vector3 targetPosition;
  8141. Quaternion targetRotation;
  8142. Vector3 targetWorldPosition;
  8143. Quaternion targetWorldRotation;
  8144. bool temporary;
  8145. /* readonly */
  8146. StringHash type;
  8147. /* readonly */
  8148. String typeName;
  8149. /* readonly */
  8150. int weakRefs;
  8151. };
  8152. class Sound
  8153. {
  8154. // Methods:
  8155. bool Load(File);
  8156. bool Load(VectorBuffer&);
  8157. bool Save(File) const;
  8158. bool Save(VectorBuffer&) const;
  8159. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8160. // Properties:
  8161. /* readonly */
  8162. StringHash baseType;
  8163. /* readonly */
  8164. String category;
  8165. /* readonly */
  8166. bool compressed;
  8167. /* readonly */
  8168. float frequency;
  8169. /* readonly */
  8170. float length;
  8171. bool looped;
  8172. /* readonly */
  8173. uint memoryUse;
  8174. String name;
  8175. /* readonly */
  8176. int refs;
  8177. /* readonly */
  8178. uint sampleSize;
  8179. /* readonly */
  8180. bool sixteenBit;
  8181. /* readonly */
  8182. bool stereo;
  8183. /* readonly */
  8184. StringHash type;
  8185. /* readonly */
  8186. String typeName;
  8187. /* readonly */
  8188. uint useTimer;
  8189. /* readonly */
  8190. int weakRefs;
  8191. };
  8192. class SoundListener
  8193. {
  8194. // Methods:
  8195. void ApplyAttributes();
  8196. void DrawDebugGeometry(DebugRenderer, bool);
  8197. Variant GetAttribute(const String&) const;
  8198. ValueAnimation GetAttributeAnimation(const String&) const;
  8199. float GetAttributeAnimationSpeed(const String&) const;
  8200. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8201. Variant GetAttributeDefault(const String&) const;
  8202. bool Load(File, bool = false);
  8203. bool Load(VectorBuffer&, bool = false);
  8204. bool LoadXML(const XMLElement&, bool = false);
  8205. void MarkNetworkUpdate() const;
  8206. void Remove();
  8207. void RemoveInstanceDefault();
  8208. void ResetToDefault();
  8209. bool Save(File) const;
  8210. bool Save(VectorBuffer&) const;
  8211. bool SaveXML(XMLElement&) const;
  8212. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8213. bool SetAttribute(const String&, const Variant&);
  8214. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8215. void SetAttributeAnimationSpeed(const String&, float);
  8216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8217. // Properties:
  8218. bool animationEnabled;
  8219. /* readonly */
  8220. Array<Variant> attributeDefaults;
  8221. /* readonly */
  8222. Array<AttributeInfo> attributeInfos;
  8223. Array<Variant> attributes;
  8224. /* readonly */
  8225. StringHash baseType;
  8226. /* readonly */
  8227. String category;
  8228. bool enabled;
  8229. /* readonly */
  8230. bool enabledEffective;
  8231. /* readonly */
  8232. uint id;
  8233. /* readonly */
  8234. Node node;
  8235. /* readonly */
  8236. uint numAttributes;
  8237. ObjectAnimation objectAnimation;
  8238. /* readonly */
  8239. int refs;
  8240. bool temporary;
  8241. /* readonly */
  8242. StringHash type;
  8243. /* readonly */
  8244. String typeName;
  8245. /* readonly */
  8246. int weakRefs;
  8247. };
  8248. class SoundSource
  8249. {
  8250. // Methods:
  8251. void ApplyAttributes();
  8252. void DrawDebugGeometry(DebugRenderer, bool);
  8253. Variant GetAttribute(const String&) const;
  8254. ValueAnimation GetAttributeAnimation(const String&) const;
  8255. float GetAttributeAnimationSpeed(const String&) const;
  8256. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8257. Variant GetAttributeDefault(const String&) const;
  8258. bool Load(File, bool = false);
  8259. bool Load(VectorBuffer&, bool = false);
  8260. bool LoadXML(const XMLElement&, bool = false);
  8261. void MarkNetworkUpdate() const;
  8262. void Play(Sound);
  8263. void Play(Sound, float);
  8264. void Play(Sound, float, float);
  8265. void Play(Sound, float, float, float);
  8266. void Remove();
  8267. void RemoveInstanceDefault();
  8268. void ResetToDefault();
  8269. bool Save(File) const;
  8270. bool Save(VectorBuffer&) const;
  8271. bool SaveXML(XMLElement&) const;
  8272. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8273. bool SetAttribute(const String&, const Variant&);
  8274. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8275. void SetAttributeAnimationSpeed(const String&, float);
  8276. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8277. void Stop();
  8278. // Properties:
  8279. bool animationEnabled;
  8280. /* readonly */
  8281. float attenuation;
  8282. /* readonly */
  8283. Array<Variant> attributeDefaults;
  8284. /* readonly */
  8285. Array<AttributeInfo> attributeInfos;
  8286. Array<Variant> attributes;
  8287. bool autoRemove;
  8288. /* readonly */
  8289. StringHash baseType;
  8290. /* readonly */
  8291. String category;
  8292. bool enabled;
  8293. /* readonly */
  8294. bool enabledEffective;
  8295. float frequency;
  8296. float gain;
  8297. /* readonly */
  8298. uint id;
  8299. /* readonly */
  8300. Node node;
  8301. /* readonly */
  8302. uint numAttributes;
  8303. ObjectAnimation objectAnimation;
  8304. float panning;
  8305. /* readonly */
  8306. bool playing;
  8307. /* readonly */
  8308. int refs;
  8309. /* readonly */
  8310. Sound sound;
  8311. SoundType soundType;
  8312. bool temporary;
  8313. /* readonly */
  8314. float timePosition;
  8315. /* readonly */
  8316. StringHash type;
  8317. /* readonly */
  8318. String typeName;
  8319. /* readonly */
  8320. int weakRefs;
  8321. };
  8322. class SoundSource3D
  8323. {
  8324. // Methods:
  8325. void ApplyAttributes();
  8326. void DrawDebugGeometry(DebugRenderer, bool);
  8327. Variant GetAttribute(const String&) const;
  8328. ValueAnimation GetAttributeAnimation(const String&) const;
  8329. float GetAttributeAnimationSpeed(const String&) const;
  8330. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8331. Variant GetAttributeDefault(const String&) const;
  8332. bool Load(File, bool = false);
  8333. bool Load(VectorBuffer&, bool = false);
  8334. bool LoadXML(const XMLElement&, bool = false);
  8335. void MarkNetworkUpdate() const;
  8336. void Play(Sound);
  8337. void Play(Sound, float);
  8338. void Play(Sound, float, float);
  8339. void Play(Sound, float, float, float);
  8340. void Remove();
  8341. void RemoveInstanceDefault();
  8342. void ResetToDefault();
  8343. bool Save(File) const;
  8344. bool Save(VectorBuffer&) const;
  8345. bool SaveXML(XMLElement&) const;
  8346. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8347. void SetAngleAttenuation(float, float);
  8348. bool SetAttribute(const String&, const Variant&);
  8349. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8350. void SetAttributeAnimationSpeed(const String&, float);
  8351. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8352. void SetDistanceAttenuation(float, float, float);
  8353. void Stop();
  8354. // Properties:
  8355. bool animationEnabled;
  8356. /* readonly */
  8357. float attenuation;
  8358. /* readonly */
  8359. Array<Variant> attributeDefaults;
  8360. /* readonly */
  8361. Array<AttributeInfo> attributeInfos;
  8362. Array<Variant> attributes;
  8363. bool autoRemove;
  8364. /* readonly */
  8365. StringHash baseType;
  8366. /* readonly */
  8367. String category;
  8368. bool enabled;
  8369. /* readonly */
  8370. bool enabledEffective;
  8371. float farDistance;
  8372. float frequency;
  8373. float gain;
  8374. /* readonly */
  8375. uint id;
  8376. float innerAngle;
  8377. float nearDistance;
  8378. /* readonly */
  8379. Node node;
  8380. /* readonly */
  8381. uint numAttributes;
  8382. ObjectAnimation objectAnimation;
  8383. float outerAngle;
  8384. float panning;
  8385. /* readonly */
  8386. bool playing;
  8387. /* readonly */
  8388. int refs;
  8389. float rolloffFactor;
  8390. /* readonly */
  8391. Sound sound;
  8392. SoundType soundType;
  8393. bool temporary;
  8394. /* readonly */
  8395. float timePosition;
  8396. /* readonly */
  8397. StringHash type;
  8398. /* readonly */
  8399. String typeName;
  8400. /* readonly */
  8401. int weakRefs;
  8402. };
  8403. class Sphere
  8404. {
  8405. // Methods:
  8406. void Clear();
  8407. void Define(const BoundingBox&);
  8408. void Define(const Frustum&);
  8409. void Define(const Polyhedron&);
  8410. void Define(const Sphere&);
  8411. void Define(const Vector3&, float);
  8412. float Distance(const Vector3&) const;
  8413. Intersection IsInside(const BoundingBox&) const;
  8414. Intersection IsInside(const Sphere&) const;
  8415. Intersection IsInside(const Vector3&) const;
  8416. void Merge(const BoundingBox&);
  8417. void Merge(const Frustum&);
  8418. void Merge(const Sphere&);
  8419. void Merge(const Vector3&);
  8420. // Properties:
  8421. Vector3 center;
  8422. bool defined;
  8423. float radius;
  8424. };
  8425. class Spline
  8426. {
  8427. // Methods:
  8428. void AddKnot(const Variant&);
  8429. void AddKnot(const Variant&, uint);
  8430. void Clear();
  8431. Variant GetPoint(float);
  8432. void RemoveKnot();
  8433. void RemoveKnot(uint);
  8434. // Properties:
  8435. InterpolationMode interpolationMode;
  8436. Array<Variant> knot;
  8437. Array<Variant> knots;
  8438. };
  8439. class SplinePath
  8440. {
  8441. // Methods:
  8442. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  8443. void ApplyAttributes();
  8444. void ClearControlPoints();
  8445. void DrawDebugGeometry(DebugRenderer, bool);
  8446. Variant GetAttribute(const String&) const;
  8447. ValueAnimation GetAttributeAnimation(const String&) const;
  8448. float GetAttributeAnimationSpeed(const String&) const;
  8449. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8450. Variant GetAttributeDefault(const String&) const;
  8451. Vector3 GetPoint(float) const;
  8452. bool Load(File, bool = false);
  8453. bool Load(VectorBuffer&, bool = false);
  8454. bool LoadXML(const XMLElement&, bool = false);
  8455. void MarkNetworkUpdate() const;
  8456. void Move(float);
  8457. void Remove();
  8458. void RemoveControlPoint(Node);
  8459. void RemoveInstanceDefault();
  8460. void Reset();
  8461. void ResetToDefault();
  8462. bool Save(File) const;
  8463. bool Save(VectorBuffer&) const;
  8464. bool SaveXML(XMLElement&) const;
  8465. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8466. bool SetAttribute(const String&, const Variant&);
  8467. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8468. void SetAttributeAnimationSpeed(const String&, float);
  8469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8470. // Properties:
  8471. bool animationEnabled;
  8472. /* readonly */
  8473. Array<Variant> attributeDefaults;
  8474. /* readonly */
  8475. Array<AttributeInfo> attributeInfos;
  8476. Array<Variant> attributes;
  8477. /* readonly */
  8478. StringHash baseType;
  8479. /* readonly */
  8480. String category;
  8481. Node controlledNode;
  8482. bool enabled;
  8483. /* readonly */
  8484. bool enabledEffective;
  8485. /* readonly */
  8486. uint id;
  8487. InterpolationMode interpolationMode;
  8488. /* readonly */
  8489. bool isFinished;
  8490. /* readonly */
  8491. Node node;
  8492. /* readonly */
  8493. uint numAttributes;
  8494. ObjectAnimation objectAnimation;
  8495. Vector3 position;
  8496. /* readonly */
  8497. int refs;
  8498. float speed;
  8499. bool temporary;
  8500. /* readonly */
  8501. StringHash type;
  8502. /* readonly */
  8503. String typeName;
  8504. /* readonly */
  8505. int weakRefs;
  8506. };
  8507. class Sprite
  8508. {
  8509. // Methods:
  8510. void AddChild(UIElement);
  8511. void ApplyAttributes();
  8512. void BringToFront();
  8513. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  8514. uint FindChild(UIElement) const;
  8515. Variant GetAttribute(const String&) const;
  8516. ValueAnimation GetAttributeAnimation(const String&) const;
  8517. float GetAttributeAnimationSpeed(const String&) const;
  8518. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8519. Variant GetAttributeDefault(const String&) const;
  8520. UIElement GetChild(const String&, bool = false) const;
  8521. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  8522. Array<UIElement> GetChildren(bool = false) const;
  8523. UIElement GetElementEventSender() const;
  8524. uint GetNumChildren(bool) const;
  8525. void InsertChild(uint, UIElement);
  8526. bool Load(File, bool = false);
  8527. bool Load(VectorBuffer&, bool = false);
  8528. bool LoadChildXML(XMLFile, XMLFile = null);
  8529. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  8530. bool LoadXML(File);
  8531. bool LoadXML(VectorBuffer&);
  8532. bool LoadXML(XMLFile, XMLFile);
  8533. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  8534. bool LoadXML(const XMLElement&, bool = false);
  8535. void MarkNetworkUpdate() const;
  8536. void Remove();
  8537. void RemoveAllChildren();
  8538. void RemoveChild(UIElement, uint = 0);
  8539. void RemoveChild(uint);
  8540. void RemoveInstanceDefault();
  8541. void ResetToDefault();
  8542. bool Save(File) const;
  8543. bool Save(VectorBuffer&) const;
  8544. bool SaveXML(File);
  8545. bool SaveXML(VectorBuffer&);
  8546. bool SaveXML(XMLElement&) const;
  8547. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8548. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8549. bool SetAttribute(const String&, const Variant&);
  8550. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8551. void SetAttributeAnimationSpeed(const String&, float);
  8552. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8553. void SetFixedHeight(int);
  8554. void SetFixedSize(int, int);
  8555. void SetFixedWidth(int);
  8556. void SetFullImageRect();
  8557. void SetHotSpot(int, int);
  8558. void SetMaxSize(int, int);
  8559. void SetMinSize(int, int);
  8560. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8561. void SetPosition(float, float);
  8562. void SetScale(float);
  8563. void SetScale(float, float);
  8564. void SetSize(int, int);
  8565. bool SetStyle(const String&, XMLFile = null);
  8566. bool SetStyle(const XMLElement&);
  8567. bool SetStyleAuto(XMLFile = null);
  8568. const Variant& GetVar(const StringHash&);
  8569. // Properties:
  8570. bool animationEnabled;
  8571. /* readonly */
  8572. Array<Variant> attributeDefaults;
  8573. /* readonly */
  8574. Array<AttributeInfo> attributeInfos;
  8575. Array<Variant> attributes;
  8576. /* readonly */
  8577. StringHash baseType;
  8578. BlendMode blendMode;
  8579. bool bringToBack;
  8580. bool bringToFront;
  8581. /* readonly */
  8582. String category;
  8583. /* readonly */
  8584. Array<UIElement> children;
  8585. /* writeonly */
  8586. Color color;
  8587. /* readonly */
  8588. bool colorGradient;
  8589. Array<Color> colors;
  8590. XMLFile defaultStyle;
  8591. /* readonly */
  8592. float derivedOpacity;
  8593. bool elementEventSender;
  8594. int height;
  8595. HorizontalAlignment horizontalAlignment;
  8596. IntVector2 hotSpot;
  8597. IntRect imageRect;
  8598. String name;
  8599. /* readonly */
  8600. uint numAllChildren;
  8601. /* readonly */
  8602. uint numAttributes;
  8603. /* readonly */
  8604. uint numChildren;
  8605. ObjectAnimation objectAnimation;
  8606. float opacity;
  8607. UIElement parent;
  8608. Vector2 position;
  8609. int priority;
  8610. /* readonly */
  8611. int refs;
  8612. /* readonly */
  8613. UIElement root;
  8614. float rotation;
  8615. Vector2 scale;
  8616. IntVector2 size;
  8617. bool sortChildren;
  8618. String style;
  8619. bool temporary;
  8620. Texture texture;
  8621. /* readonly */
  8622. StringHash type;
  8623. /* readonly */
  8624. String typeName;
  8625. bool useDerivedOpacity;
  8626. /* readonly */
  8627. VariantMap vars;
  8628. VerticalAlignment verticalAlignment;
  8629. bool visible;
  8630. /* readonly */
  8631. int weakRefs;
  8632. int width;
  8633. };
  8634. class Sprite2D
  8635. {
  8636. // Methods:
  8637. bool Load(File);
  8638. bool Load(VectorBuffer&);
  8639. bool Save(File) const;
  8640. bool Save(VectorBuffer&) const;
  8641. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8642. // Properties:
  8643. /* readonly */
  8644. StringHash baseType;
  8645. /* readonly */
  8646. String category;
  8647. Vector2 hotSpot;
  8648. /* readonly */
  8649. uint memoryUse;
  8650. String name;
  8651. IntVector2 offset;
  8652. IntRect rectangle;
  8653. /* readonly */
  8654. int refs;
  8655. Texture2D texture;
  8656. /* readonly */
  8657. StringHash type;
  8658. /* readonly */
  8659. String typeName;
  8660. /* readonly */
  8661. uint useTimer;
  8662. /* readonly */
  8663. int weakRefs;
  8664. };
  8665. class SpriteSheet2D
  8666. {
  8667. // Methods:
  8668. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  8669. Sprite2D GetSprite(const String&);
  8670. bool Load(File);
  8671. bool Load(VectorBuffer&);
  8672. bool Save(File) const;
  8673. bool Save(VectorBuffer&) const;
  8674. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8675. // Properties:
  8676. /* readonly */
  8677. StringHash baseType;
  8678. /* readonly */
  8679. String category;
  8680. /* readonly */
  8681. uint memoryUse;
  8682. String name;
  8683. /* readonly */
  8684. int refs;
  8685. /* readonly */
  8686. Texture2D texture;
  8687. /* readonly */
  8688. StringHash type;
  8689. /* readonly */
  8690. String typeName;
  8691. /* readonly */
  8692. uint useTimer;
  8693. /* readonly */
  8694. int weakRefs;
  8695. };
  8696. class StaticModel
  8697. {
  8698. // Methods:
  8699. void ApplyAttributes();
  8700. void ApplyMaterialList(const String& = String ( ));
  8701. void DrawDebugGeometry(DebugRenderer, bool);
  8702. Variant GetAttribute(const String&) const;
  8703. ValueAnimation GetAttributeAnimation(const String&) const;
  8704. float GetAttributeAnimationSpeed(const String&) const;
  8705. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8706. Variant GetAttributeDefault(const String&) const;
  8707. bool IsInView(Camera) const;
  8708. bool IsInside(const Vector3&) const;
  8709. bool IsInsideLocal(const Vector3&) const;
  8710. bool Load(File, bool = false);
  8711. bool Load(VectorBuffer&, bool = false);
  8712. bool LoadXML(const XMLElement&, bool = false);
  8713. void MarkNetworkUpdate() const;
  8714. void Remove();
  8715. void RemoveInstanceDefault();
  8716. void ResetToDefault();
  8717. bool Save(File) const;
  8718. bool Save(VectorBuffer&) const;
  8719. bool SaveXML(XMLElement&) const;
  8720. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8721. bool SetAttribute(const String&, const Variant&);
  8722. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8723. void SetAttributeAnimationSpeed(const String&, float);
  8724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8725. // Properties:
  8726. bool animationEnabled;
  8727. /* readonly */
  8728. Array<Variant> attributeDefaults;
  8729. /* readonly */
  8730. Array<AttributeInfo> attributeInfos;
  8731. Array<Variant> attributes;
  8732. /* readonly */
  8733. StringHash baseType;
  8734. /* readonly */
  8735. BoundingBox boundingBox;
  8736. bool castShadows;
  8737. /* readonly */
  8738. String category;
  8739. float drawDistance;
  8740. bool enabled;
  8741. /* readonly */
  8742. bool enabledEffective;
  8743. /* readonly */
  8744. uint id;
  8745. /* readonly */
  8746. bool inView;
  8747. uint lightMask;
  8748. float lodBias;
  8749. /* writeonly */
  8750. Material material;
  8751. Array<Material> materials;
  8752. uint maxLights;
  8753. Model model;
  8754. /* readonly */
  8755. Node node;
  8756. /* readonly */
  8757. uint numAttributes;
  8758. /* readonly */
  8759. uint numGeometries;
  8760. ObjectAnimation objectAnimation;
  8761. bool occludee;
  8762. bool occluder;
  8763. uint occlusionLodLevel;
  8764. /* readonly */
  8765. int refs;
  8766. float shadowDistance;
  8767. uint shadowMask;
  8768. bool temporary;
  8769. /* readonly */
  8770. StringHash type;
  8771. /* readonly */
  8772. String typeName;
  8773. uint viewMask;
  8774. /* readonly */
  8775. int weakRefs;
  8776. /* readonly */
  8777. BoundingBox worldBoundingBox;
  8778. uint zoneMask;
  8779. };
  8780. class StaticModelGroup
  8781. {
  8782. // Methods:
  8783. void AddInstanceNode(Node);
  8784. void ApplyAttributes();
  8785. void ApplyMaterialList(const String& = String ( ));
  8786. void DrawDebugGeometry(DebugRenderer, bool);
  8787. Variant GetAttribute(const String&) const;
  8788. ValueAnimation GetAttributeAnimation(const String&) const;
  8789. float GetAttributeAnimationSpeed(const String&) const;
  8790. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8791. Variant GetAttributeDefault(const String&) const;
  8792. bool IsInView(Camera) const;
  8793. bool Load(File, bool = false);
  8794. bool Load(VectorBuffer&, bool = false);
  8795. bool LoadXML(const XMLElement&, bool = false);
  8796. void MarkNetworkUpdate() const;
  8797. void Remove();
  8798. void RemoveAllInstanceNodes();
  8799. void RemoveInstanceDefault();
  8800. void RemoveInstanceNode(Node);
  8801. void ResetToDefault();
  8802. bool Save(File) const;
  8803. bool Save(VectorBuffer&) const;
  8804. bool SaveXML(XMLElement&) const;
  8805. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8806. bool SetAttribute(const String&, const Variant&);
  8807. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8808. void SetAttributeAnimationSpeed(const String&, float);
  8809. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8810. // Properties:
  8811. bool animationEnabled;
  8812. /* readonly */
  8813. Array<Variant> attributeDefaults;
  8814. /* readonly */
  8815. Array<AttributeInfo> attributeInfos;
  8816. Array<Variant> attributes;
  8817. /* readonly */
  8818. StringHash baseType;
  8819. /* readonly */
  8820. BoundingBox boundingBox;
  8821. bool castShadows;
  8822. /* readonly */
  8823. String category;
  8824. float drawDistance;
  8825. bool enabled;
  8826. /* readonly */
  8827. bool enabledEffective;
  8828. /* readonly */
  8829. uint id;
  8830. /* readonly */
  8831. bool inView;
  8832. /* readonly */
  8833. Array<Node> instanceNodes;
  8834. uint lightMask;
  8835. float lodBias;
  8836. /* writeonly */
  8837. Material material;
  8838. Array<Material> materials;
  8839. uint maxLights;
  8840. Model model;
  8841. /* readonly */
  8842. Node node;
  8843. /* readonly */
  8844. uint numAttributes;
  8845. /* readonly */
  8846. uint numGeometries;
  8847. /* readonly */
  8848. uint numInstanceNodes;
  8849. ObjectAnimation objectAnimation;
  8850. bool occludee;
  8851. bool occluder;
  8852. uint occlusionLodLevel;
  8853. /* readonly */
  8854. int refs;
  8855. float shadowDistance;
  8856. uint shadowMask;
  8857. bool temporary;
  8858. /* readonly */
  8859. StringHash type;
  8860. /* readonly */
  8861. String typeName;
  8862. uint viewMask;
  8863. /* readonly */
  8864. int weakRefs;
  8865. /* readonly */
  8866. BoundingBox worldBoundingBox;
  8867. /* readonly */
  8868. Zone zone;
  8869. uint zoneMask;
  8870. };
  8871. class StaticSprite2D
  8872. {
  8873. // Methods:
  8874. void ApplyAttributes();
  8875. void DrawDebugGeometry(DebugRenderer, bool);
  8876. Variant GetAttribute(const String&) const;
  8877. ValueAnimation GetAttributeAnimation(const String&) const;
  8878. float GetAttributeAnimationSpeed(const String&) const;
  8879. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8880. Variant GetAttributeDefault(const String&) const;
  8881. bool IsInView(Camera) const;
  8882. bool Load(File, bool = false);
  8883. bool Load(VectorBuffer&, bool = false);
  8884. bool LoadXML(const XMLElement&, bool = false);
  8885. void MarkNetworkUpdate() const;
  8886. void Remove();
  8887. void RemoveInstanceDefault();
  8888. void ResetToDefault();
  8889. bool Save(File) const;
  8890. bool Save(VectorBuffer&) const;
  8891. bool SaveXML(XMLElement&) const;
  8892. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  8893. bool SetAttribute(const String&, const Variant&);
  8894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8895. void SetAttributeAnimationSpeed(const String&, float);
  8896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8897. void SetFlip(bool, bool);
  8898. // Properties:
  8899. bool animationEnabled;
  8900. /* readonly */
  8901. Array<Variant> attributeDefaults;
  8902. /* readonly */
  8903. Array<AttributeInfo> attributeInfos;
  8904. Array<Variant> attributes;
  8905. /* readonly */
  8906. StringHash baseType;
  8907. BlendMode blendMode;
  8908. /* readonly */
  8909. BoundingBox boundingBox;
  8910. bool castShadows;
  8911. /* readonly */
  8912. String category;
  8913. Color color;
  8914. float drawDistance;
  8915. bool enabled;
  8916. /* readonly */
  8917. bool enabledEffective;
  8918. bool flipX;
  8919. bool flipY;
  8920. /* readonly */
  8921. uint id;
  8922. /* readonly */
  8923. bool inView;
  8924. int layer;
  8925. uint lightMask;
  8926. float lodBias;
  8927. Material material;
  8928. uint maxLights;
  8929. /* readonly */
  8930. Node node;
  8931. /* readonly */
  8932. uint numAttributes;
  8933. ObjectAnimation objectAnimation;
  8934. bool occludee;
  8935. bool occluder;
  8936. int orderInLayer;
  8937. /* readonly */
  8938. int refs;
  8939. float shadowDistance;
  8940. uint shadowMask;
  8941. Sprite2D sprite;
  8942. bool temporary;
  8943. /* readonly */
  8944. StringHash type;
  8945. /* readonly */
  8946. String typeName;
  8947. uint viewMask;
  8948. /* readonly */
  8949. int weakRefs;
  8950. /* readonly */
  8951. BoundingBox worldBoundingBox;
  8952. uint zoneMask;
  8953. };
  8954. class String
  8955. {
  8956. // Methods:
  8957. void AppendUTF8(uint);
  8958. uint AtUTF8(uint) const;
  8959. uint ByteOffsetUTF8(uint) const;
  8960. void Clear();
  8961. int Compare(const String&, bool = true) const;
  8962. bool Contains(const String&, bool = true) const;
  8963. bool Contains(uint8, bool = true) const;
  8964. bool EndsWith(const String&, bool = true) const;
  8965. uint Find(const String&, uint = 0, bool = true) const;
  8966. uint Find(uint8, uint = 0, bool = true) const;
  8967. uint FindLast(const String&, uint = 0xffffffff, bool = true) const;
  8968. uint FindLast(uint8, uint = 0xffffffff, bool = true) const;
  8969. void Join(Array<String>&, const String&);
  8970. uint NextUTF8Char(uint&) const;
  8971. void Replace(const String&, const String&, bool = true);
  8972. void Replace(uint8, uint8, bool = true);
  8973. void ReplaceUTF8(uint, uint);
  8974. String Replaced(const String&, const String&, bool = true) const;
  8975. String Replaced(uint8, uint8, bool = true) const;
  8976. void Resize(uint);
  8977. void SetUTF8FromLatin1(const String&);
  8978. Array<String> Split(uint8) const;
  8979. bool StartsWith(const String&, bool = true) const;
  8980. String Substring(uint) const;
  8981. String Substring(uint, uint) const;
  8982. String SubstringUTF8(uint) const;
  8983. String SubstringUTF8(uint, uint) const;
  8984. bool ToBool() const;
  8985. Color ToColor() const;
  8986. float ToFloat() const;
  8987. int ToInt() const;
  8988. IntRect ToIntRect() const;
  8989. IntVector2 ToIntVector2() const;
  8990. String ToLower() const;
  8991. Matrix3 ToMatrix3() const;
  8992. Matrix3x4 ToMatrix3x4() const;
  8993. Matrix4 ToMatrix4() const;
  8994. Quaternion ToQuaternion() const;
  8995. uint ToUInt() const;
  8996. String ToUpper() const;
  8997. Vector2 ToVector2() const;
  8998. Vector3 ToVector3() const;
  8999. Vector4 ToVector4(bool = false) const;
  9000. Variant ToVectorVariant() const;
  9001. String Trimmed() const;
  9002. // Properties:
  9003. /* readonly */
  9004. bool empty;
  9005. /* readonly */
  9006. uint length;
  9007. /* readonly */
  9008. uint utf8Length;
  9009. };
  9010. class StringHash
  9011. {
  9012. // Methods:
  9013. String ToString() const;
  9014. // Properties:
  9015. /* readonly */
  9016. uint value;
  9017. };
  9018. class Technique
  9019. {
  9020. // Methods:
  9021. Pass CreatePass(StringHash);
  9022. bool HasPass(StringHash) const;
  9023. bool Load(File);
  9024. bool Load(VectorBuffer&);
  9025. void RemovePass(StringHash);
  9026. bool Save(File) const;
  9027. bool Save(VectorBuffer&) const;
  9028. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9029. // Properties:
  9030. /* readonly */
  9031. StringHash baseType;
  9032. /* readonly */
  9033. String category;
  9034. /* readonly */
  9035. uint memoryUse;
  9036. String name;
  9037. /* readonly */
  9038. Array<Pass> passes;
  9039. /* readonly */
  9040. int refs;
  9041. bool sm3;
  9042. /* readonly */
  9043. StringHash type;
  9044. /* readonly */
  9045. String typeName;
  9046. /* readonly */
  9047. uint useTimer;
  9048. /* readonly */
  9049. int weakRefs;
  9050. };
  9051. class TechniqueEntry
  9052. {
  9053. // Properties:
  9054. float lodDistance;
  9055. int qualityLevel;
  9056. Technique technique;
  9057. };
  9058. class Terrain
  9059. {
  9060. // Methods:
  9061. void ApplyAttributes();
  9062. void ApplyHeightMap();
  9063. void DrawDebugGeometry(DebugRenderer, bool);
  9064. Variant GetAttribute(const String&) const;
  9065. ValueAnimation GetAttributeAnimation(const String&) const;
  9066. float GetAttributeAnimationSpeed(const String&) const;
  9067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9068. Variant GetAttributeDefault(const String&) const;
  9069. float GetHeight(const Vector3&) const;
  9070. Vector3 GetNormal(const Vector3&) const;
  9071. TerrainPatch GetPatch(int, int) const;
  9072. bool Load(File, bool = false);
  9073. bool Load(VectorBuffer&, bool = false);
  9074. bool LoadXML(const XMLElement&, bool = false);
  9075. void MarkNetworkUpdate() const;
  9076. void Remove();
  9077. void RemoveInstanceDefault();
  9078. void ResetToDefault();
  9079. bool Save(File) const;
  9080. bool Save(VectorBuffer&) const;
  9081. bool SaveXML(XMLElement&) const;
  9082. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9083. bool SetAttribute(const String&, const Variant&);
  9084. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9085. void SetAttributeAnimationSpeed(const String&, float);
  9086. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9087. IntVector2 WorldToHeightMap(const Vector3&) const;
  9088. // Properties:
  9089. bool animationEnabled;
  9090. /* readonly */
  9091. Array<Variant> attributeDefaults;
  9092. /* readonly */
  9093. Array<AttributeInfo> attributeInfos;
  9094. Array<Variant> attributes;
  9095. /* readonly */
  9096. StringHash baseType;
  9097. bool castShadows;
  9098. /* readonly */
  9099. String category;
  9100. float drawDistance;
  9101. bool enabled;
  9102. /* readonly */
  9103. bool enabledEffective;
  9104. Image heightMap;
  9105. /* readonly */
  9106. uint id;
  9107. uint lightMask;
  9108. float lodBias;
  9109. Material material;
  9110. uint maxLights;
  9111. /* readonly */
  9112. Node node;
  9113. /* readonly */
  9114. uint numAttributes;
  9115. /* readonly */
  9116. IntVector2 numPatches;
  9117. /* readonly */
  9118. IntVector2 numVertices;
  9119. ObjectAnimation objectAnimation;
  9120. bool occludee;
  9121. bool occluder;
  9122. int patchSize;
  9123. /* readonly */
  9124. Array<TerrainPatch> patches;
  9125. /* readonly */
  9126. int refs;
  9127. float shadowDistance;
  9128. uint shadowMask;
  9129. bool smoothing;
  9130. Vector3 spacing;
  9131. bool temporary;
  9132. /* readonly */
  9133. StringHash type;
  9134. /* readonly */
  9135. String typeName;
  9136. uint viewMask;
  9137. /* readonly */
  9138. int weakRefs;
  9139. uint zoneMask;
  9140. };
  9141. class TerrainPatch
  9142. {
  9143. // Methods:
  9144. void ApplyAttributes();
  9145. void DrawDebugGeometry(DebugRenderer, bool);
  9146. Variant GetAttribute(const String&) const;
  9147. ValueAnimation GetAttributeAnimation(const String&) const;
  9148. float GetAttributeAnimationSpeed(const String&) const;
  9149. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9150. Variant GetAttributeDefault(const String&) const;
  9151. bool IsInView(Camera) const;
  9152. bool Load(File, bool = false);
  9153. bool Load(VectorBuffer&, bool = false);
  9154. bool LoadXML(const XMLElement&, bool = false);
  9155. void MarkNetworkUpdate() const;
  9156. void Remove();
  9157. void RemoveInstanceDefault();
  9158. void ResetToDefault();
  9159. bool Save(File) const;
  9160. bool Save(VectorBuffer&) const;
  9161. bool SaveXML(XMLElement&) const;
  9162. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9163. bool SetAttribute(const String&, const Variant&);
  9164. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9165. void SetAttributeAnimationSpeed(const String&, float);
  9166. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9167. // Properties:
  9168. bool animationEnabled;
  9169. /* readonly */
  9170. Array<Variant> attributeDefaults;
  9171. /* readonly */
  9172. Array<AttributeInfo> attributeInfos;
  9173. Array<Variant> attributes;
  9174. /* readonly */
  9175. StringHash baseType;
  9176. /* readonly */
  9177. BoundingBox boundingBox;
  9178. bool castShadows;
  9179. /* readonly */
  9180. String category;
  9181. float drawDistance;
  9182. bool enabled;
  9183. /* readonly */
  9184. bool enabledEffective;
  9185. /* readonly */
  9186. uint id;
  9187. /* readonly */
  9188. bool inView;
  9189. uint lightMask;
  9190. float lodBias;
  9191. uint maxLights;
  9192. /* readonly */
  9193. Node node;
  9194. /* readonly */
  9195. uint numAttributes;
  9196. ObjectAnimation objectAnimation;
  9197. bool occludee;
  9198. bool occluder;
  9199. /* readonly */
  9200. int refs;
  9201. float shadowDistance;
  9202. uint shadowMask;
  9203. bool temporary;
  9204. /* readonly */
  9205. StringHash type;
  9206. /* readonly */
  9207. String typeName;
  9208. uint viewMask;
  9209. /* readonly */
  9210. int weakRefs;
  9211. /* readonly */
  9212. BoundingBox worldBoundingBox;
  9213. uint zoneMask;
  9214. };
  9215. class Text
  9216. {
  9217. // Methods:
  9218. void AddChild(UIElement);
  9219. void ApplyAttributes();
  9220. void BringToFront();
  9221. void ClearSelection();
  9222. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  9223. void DisableLayoutUpdate();
  9224. IntVector2 ElementToScreen(const IntVector2&);
  9225. void EnableLayoutUpdate();
  9226. uint FindChild(UIElement) const;
  9227. Variant GetAttribute(const String&) const;
  9228. ValueAnimation GetAttributeAnimation(const String&) const;
  9229. float GetAttributeAnimationSpeed(const String&) const;
  9230. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9231. Variant GetAttributeDefault(const String&) const;
  9232. UIElement GetChild(const String&, bool = false) const;
  9233. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  9234. Array<UIElement> GetChildren(bool = false) const;
  9235. UIElement GetElementEventSender() const;
  9236. uint GetNumChildren(bool) const;
  9237. void InsertChild(uint, UIElement);
  9238. bool IsInside(IntVector2, bool);
  9239. bool IsInsideCombined(IntVector2, bool);
  9240. bool Load(File, bool = false);
  9241. bool Load(VectorBuffer&, bool = false);
  9242. bool LoadChildXML(XMLFile, XMLFile = null);
  9243. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  9244. bool LoadXML(File);
  9245. bool LoadXML(VectorBuffer&);
  9246. bool LoadXML(XMLFile, XMLFile);
  9247. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  9248. bool LoadXML(const XMLElement&, bool = false);
  9249. void MarkNetworkUpdate() const;
  9250. void Remove();
  9251. void RemoveAllChildren();
  9252. void RemoveChild(UIElement, uint = 0);
  9253. void RemoveChild(uint);
  9254. void RemoveInstanceDefault();
  9255. void ResetToDefault();
  9256. bool Save(File) const;
  9257. bool Save(VectorBuffer&) const;
  9258. bool SaveXML(File);
  9259. bool SaveXML(VectorBuffer&);
  9260. bool SaveXML(XMLElement&) const;
  9261. IntVector2 ScreenToElement(const IntVector2&);
  9262. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9263. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9264. bool SetAttribute(const String&, const Variant&);
  9265. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9266. void SetAttributeAnimationSpeed(const String&, float);
  9267. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9268. void SetFixedHeight(int);
  9269. void SetFixedSize(int, int);
  9270. void SetFixedWidth(int);
  9271. bool SetFont(Font, int);
  9272. bool SetFont(const String&, int);
  9273. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  9274. void SetMaxSize(int, int);
  9275. void SetMinSize(int, int);
  9276. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  9277. void SetPosition(int, int);
  9278. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  9279. void SetSize(int, int);
  9280. bool SetStyle(const String&, XMLFile = null);
  9281. bool SetStyle(const XMLElement&);
  9282. bool SetStyleAuto(XMLFile = null);
  9283. void UpdateLayout();
  9284. const Variant& GetVar(const StringHash&);
  9285. // Properties:
  9286. bool animationEnabled;
  9287. /* readonly */
  9288. Array<Variant> attributeDefaults;
  9289. /* readonly */
  9290. Array<AttributeInfo> attributeInfos;
  9291. Array<Variant> attributes;
  9292. /* readonly */
  9293. StringHash baseType;
  9294. bool bringToBack;
  9295. bool bringToFront;
  9296. /* readonly */
  9297. String category;
  9298. /* readonly */
  9299. Array<IntVector2> charPositions;
  9300. /* readonly */
  9301. Array<IntVector2> charSizes;
  9302. /* readonly */
  9303. IntVector2 childOffset;
  9304. /* readonly */
  9305. Array<UIElement> children;
  9306. IntRect clipBorder;
  9307. bool clipChildren;
  9308. /* writeonly */
  9309. Color color;
  9310. /* readonly */
  9311. bool colorGradient;
  9312. Array<Color> colors;
  9313. /* readonly */
  9314. IntRect combinedScreenRect;
  9315. XMLFile defaultStyle;
  9316. /* readonly */
  9317. float derivedOpacity;
  9318. uint dragDropMode;
  9319. bool editable;
  9320. Color effectColor;
  9321. bool elementEventSender;
  9322. bool enabled;
  9323. /* readonly */
  9324. bool fixedHeight;
  9325. /* readonly */
  9326. bool fixedSize;
  9327. /* readonly */
  9328. bool fixedWidth;
  9329. bool focus;
  9330. FocusMode focusMode;
  9331. /* readonly */
  9332. Font font;
  9333. /* readonly */
  9334. int fontSize;
  9335. int height;
  9336. HorizontalAlignment horizontalAlignment;
  9337. Color hoverColor;
  9338. /* readonly */
  9339. bool hovering;
  9340. int indent;
  9341. int indentSpacing;
  9342. /* readonly */
  9343. int indentWidth;
  9344. bool internal;
  9345. IntRect layoutBorder;
  9346. LayoutMode layoutMode;
  9347. int layoutSpacing;
  9348. int maxHeight;
  9349. IntVector2 maxSize;
  9350. int maxWidth;
  9351. int minHeight;
  9352. IntVector2 minSize;
  9353. int minWidth;
  9354. String name;
  9355. /* readonly */
  9356. uint numAllChildren;
  9357. /* readonly */
  9358. uint numAttributes;
  9359. /* readonly */
  9360. uint numChars;
  9361. /* readonly */
  9362. uint numChildren;
  9363. /* readonly */
  9364. uint numRows;
  9365. ObjectAnimation objectAnimation;
  9366. float opacity;
  9367. UIElement parent;
  9368. IntVector2 position;
  9369. int priority;
  9370. /* readonly */
  9371. int refs;
  9372. /* readonly */
  9373. UIElement root;
  9374. /* readonly */
  9375. int rowHeight;
  9376. float rowSpacing;
  9377. /* readonly */
  9378. Array<int> rowWidths;
  9379. /* readonly */
  9380. IntVector2 screenPosition;
  9381. bool selected;
  9382. Color selectionColor;
  9383. /* readonly */
  9384. uint selectionLength;
  9385. /* readonly */
  9386. uint selectionStart;
  9387. IntVector2 size;
  9388. bool sortChildren;
  9389. String style;
  9390. bool temporary;
  9391. String text;
  9392. HorizontalAlignment textAlignment;
  9393. TextEffect textEffect;
  9394. TraversalMode traversalMode;
  9395. /* readonly */
  9396. StringHash type;
  9397. /* readonly */
  9398. String typeName;
  9399. bool useDerivedOpacity;
  9400. /* readonly */
  9401. VariantMap vars;
  9402. VerticalAlignment verticalAlignment;
  9403. bool visible;
  9404. /* readonly */
  9405. int weakRefs;
  9406. int width;
  9407. bool wordwrap;
  9408. };
  9409. class Text3D
  9410. {
  9411. // Methods:
  9412. void ApplyAttributes();
  9413. void DrawDebugGeometry(DebugRenderer, bool);
  9414. Variant GetAttribute(const String&) const;
  9415. ValueAnimation GetAttributeAnimation(const String&) const;
  9416. float GetAttributeAnimationSpeed(const String&) const;
  9417. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9418. Variant GetAttributeDefault(const String&) const;
  9419. bool IsInView(Camera) const;
  9420. bool Load(File, bool = false);
  9421. bool Load(VectorBuffer&, bool = false);
  9422. bool LoadXML(const XMLElement&, bool = false);
  9423. void MarkNetworkUpdate() const;
  9424. void Remove();
  9425. void RemoveInstanceDefault();
  9426. void ResetToDefault();
  9427. bool Save(File) const;
  9428. bool Save(VectorBuffer&) const;
  9429. bool SaveXML(XMLElement&) const;
  9430. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9431. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  9432. bool SetAttribute(const String&, const Variant&);
  9433. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9434. void SetAttributeAnimationSpeed(const String&, float);
  9435. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9436. bool SetFont(Font, int);
  9437. bool SetFont(const String&, int);
  9438. // Properties:
  9439. bool animationEnabled;
  9440. /* readonly */
  9441. Array<Variant> attributeDefaults;
  9442. /* readonly */
  9443. Array<AttributeInfo> attributeInfos;
  9444. Array<Variant> attributes;
  9445. /* readonly */
  9446. StringHash baseType;
  9447. /* readonly */
  9448. BoundingBox boundingBox;
  9449. bool castShadows;
  9450. /* readonly */
  9451. String category;
  9452. /* readonly */
  9453. Array<IntVector2> charPositions;
  9454. /* readonly */
  9455. Array<IntVector2> charSizes;
  9456. /* writeonly */
  9457. Color color;
  9458. Array<Color> colors;
  9459. float drawDistance;
  9460. Color effectColor;
  9461. float effectDepthBias;
  9462. bool enabled;
  9463. /* readonly */
  9464. bool enabledEffective;
  9465. FaceCameraMode faceCameraMode;
  9466. /* readonly */
  9467. Font font;
  9468. /* readonly */
  9469. int fontSize;
  9470. HorizontalAlignment horizontalAlignment;
  9471. /* readonly */
  9472. uint id;
  9473. /* readonly */
  9474. bool inView;
  9475. uint lightMask;
  9476. float lodBias;
  9477. Material material;
  9478. uint maxLights;
  9479. /* readonly */
  9480. Node node;
  9481. /* readonly */
  9482. uint numAttributes;
  9483. /* readonly */
  9484. uint numChars;
  9485. /* readonly */
  9486. uint numRows;
  9487. ObjectAnimation objectAnimation;
  9488. bool occludee;
  9489. bool occluder;
  9490. float opacity;
  9491. /* readonly */
  9492. int refs;
  9493. /* readonly */
  9494. int rowHeight;
  9495. float rowSpacing;
  9496. /* readonly */
  9497. Array<int> rowWidths;
  9498. float shadowDistance;
  9499. uint shadowMask;
  9500. bool temporary;
  9501. String text;
  9502. HorizontalAlignment textAlignment;
  9503. TextEffect textEffect;
  9504. /* readonly */
  9505. StringHash type;
  9506. /* readonly */
  9507. String typeName;
  9508. VerticalAlignment verticalAlignment;
  9509. uint viewMask;
  9510. /* readonly */
  9511. int weakRefs;
  9512. int width;
  9513. bool wordwrap;
  9514. /* readonly */
  9515. BoundingBox worldBoundingBox;
  9516. uint zoneMask;
  9517. };
  9518. class Texture
  9519. {
  9520. // Methods:
  9521. void ClearDataLost();
  9522. bool Load(File);
  9523. bool Load(VectorBuffer&);
  9524. bool Save(File) const;
  9525. bool Save(VectorBuffer&) const;
  9526. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9527. void SetNumLevels(uint);
  9528. // Properties:
  9529. Array<TextureAddressMode> addressMode;
  9530. Texture backupTexture;
  9531. /* readonly */
  9532. StringHash baseType;
  9533. Color borderColor;
  9534. /* readonly */
  9535. String category;
  9536. /* readonly */
  9537. bool compressed;
  9538. /* readonly */
  9539. bool dataLost;
  9540. TextureFilterMode filterMode;
  9541. /* readonly */
  9542. uint format;
  9543. /* readonly */
  9544. int height;
  9545. /* readonly */
  9546. Array<int> levelHeight;
  9547. /* readonly */
  9548. Array<int> levelWidth;
  9549. /* readonly */
  9550. uint levels;
  9551. /* readonly */
  9552. uint memoryUse;
  9553. Array<int> mipsToSkip;
  9554. String name;
  9555. /* readonly */
  9556. int refs;
  9557. bool sRGB;
  9558. /* readonly */
  9559. StringHash type;
  9560. /* readonly */
  9561. String typeName;
  9562. /* readonly */
  9563. TextureUsage usage;
  9564. /* readonly */
  9565. uint useTimer;
  9566. /* readonly */
  9567. int weakRefs;
  9568. /* readonly */
  9569. int width;
  9570. };
  9571. class Texture2D
  9572. {
  9573. // Methods:
  9574. void ClearDataLost();
  9575. bool Load(File);
  9576. bool Load(VectorBuffer&);
  9577. bool Save(File) const;
  9578. bool Save(VectorBuffer&) const;
  9579. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9580. bool SetData(Image, bool = false);
  9581. void SetNumLevels(uint);
  9582. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9583. // Properties:
  9584. Array<TextureAddressMode> addressMode;
  9585. Texture backupTexture;
  9586. /* readonly */
  9587. StringHash baseType;
  9588. Color borderColor;
  9589. /* readonly */
  9590. String category;
  9591. /* readonly */
  9592. bool compressed;
  9593. /* readonly */
  9594. bool dataLost;
  9595. TextureFilterMode filterMode;
  9596. /* readonly */
  9597. uint format;
  9598. /* readonly */
  9599. int height;
  9600. /* readonly */
  9601. Array<int> levelHeight;
  9602. /* readonly */
  9603. Array<int> levelWidth;
  9604. /* readonly */
  9605. uint levels;
  9606. /* readonly */
  9607. uint memoryUse;
  9608. Array<int> mipsToSkip;
  9609. String name;
  9610. /* readonly */
  9611. int refs;
  9612. /* readonly */
  9613. RenderSurface renderSurface;
  9614. bool sRGB;
  9615. /* readonly */
  9616. StringHash type;
  9617. /* readonly */
  9618. String typeName;
  9619. /* readonly */
  9620. TextureUsage usage;
  9621. /* readonly */
  9622. uint useTimer;
  9623. /* readonly */
  9624. int weakRefs;
  9625. /* readonly */
  9626. int width;
  9627. };
  9628. class Texture3D
  9629. {
  9630. // Methods:
  9631. void ClearDataLost();
  9632. bool Load(File);
  9633. bool Load(VectorBuffer&);
  9634. bool Save(File) const;
  9635. bool Save(VectorBuffer&) const;
  9636. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9637. bool SetData(Image, bool = false);
  9638. void SetNumLevels(uint);
  9639. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC);
  9640. // Properties:
  9641. Array<TextureAddressMode> addressMode;
  9642. Texture backupTexture;
  9643. /* readonly */
  9644. StringHash baseType;
  9645. Color borderColor;
  9646. /* readonly */
  9647. String category;
  9648. /* readonly */
  9649. bool compressed;
  9650. /* readonly */
  9651. bool dataLost;
  9652. TextureFilterMode filterMode;
  9653. /* readonly */
  9654. uint format;
  9655. /* readonly */
  9656. int height;
  9657. /* readonly */
  9658. Array<int> levelHeight;
  9659. /* readonly */
  9660. Array<int> levelWidth;
  9661. /* readonly */
  9662. uint levels;
  9663. /* readonly */
  9664. uint memoryUse;
  9665. Array<int> mipsToSkip;
  9666. String name;
  9667. /* readonly */
  9668. int refs;
  9669. /* readonly */
  9670. RenderSurface renderSurface;
  9671. bool sRGB;
  9672. /* readonly */
  9673. StringHash type;
  9674. /* readonly */
  9675. String typeName;
  9676. /* readonly */
  9677. TextureUsage usage;
  9678. /* readonly */
  9679. uint useTimer;
  9680. /* readonly */
  9681. int weakRefs;
  9682. /* readonly */
  9683. int width;
  9684. };
  9685. class TextureCube
  9686. {
  9687. // Methods:
  9688. void ClearDataLost();
  9689. bool Load(File);
  9690. bool Load(VectorBuffer&);
  9691. bool Save(File) const;
  9692. bool Save(VectorBuffer&) const;
  9693. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9694. bool SetData(CubeMapFace, Image, bool = false);
  9695. void SetNumLevels(uint);
  9696. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC);
  9697. // Properties:
  9698. Array<TextureAddressMode> addressMode;
  9699. Texture backupTexture;
  9700. /* readonly */
  9701. StringHash baseType;
  9702. Color borderColor;
  9703. /* readonly */
  9704. String category;
  9705. /* readonly */
  9706. bool compressed;
  9707. /* readonly */
  9708. bool dataLost;
  9709. TextureFilterMode filterMode;
  9710. /* readonly */
  9711. uint format;
  9712. /* readonly */
  9713. int height;
  9714. /* readonly */
  9715. Array<int> levelHeight;
  9716. /* readonly */
  9717. Array<int> levelWidth;
  9718. /* readonly */
  9719. uint levels;
  9720. /* readonly */
  9721. uint memoryUse;
  9722. Array<int> mipsToSkip;
  9723. String name;
  9724. /* readonly */
  9725. int refs;
  9726. /* readonly */
  9727. Array<RenderSurface> renderSurfaces;
  9728. bool sRGB;
  9729. /* readonly */
  9730. StringHash type;
  9731. /* readonly */
  9732. String typeName;
  9733. /* readonly */
  9734. TextureUsage usage;
  9735. /* readonly */
  9736. uint useTimer;
  9737. /* readonly */
  9738. int weakRefs;
  9739. /* readonly */
  9740. int width;
  9741. };
  9742. class TextureFrame
  9743. {
  9744. // Properties:
  9745. float time;
  9746. Rect uv;
  9747. };
  9748. class Tile2D
  9749. {
  9750. // Methods:
  9751. bool HasProperty(const String&) const;
  9752. const String& GetProperty(const String&) const;
  9753. // Properties:
  9754. /* readonly */
  9755. int gid;
  9756. /* readonly */
  9757. int refs;
  9758. /* readonly */
  9759. Sprite2D sprite;
  9760. /* readonly */
  9761. int weakRefs;
  9762. };
  9763. class TileMap2D
  9764. {
  9765. // Methods:
  9766. void ApplyAttributes();
  9767. void DrawDebugGeometry(DebugRenderer, bool);
  9768. Variant GetAttribute(const String&) const;
  9769. ValueAnimation GetAttributeAnimation(const String&) const;
  9770. float GetAttributeAnimationSpeed(const String&) const;
  9771. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9772. Variant GetAttributeDefault(const String&) const;
  9773. TileMapLayer2D GetLayer(uint) const;
  9774. bool Load(File, bool = false);
  9775. bool Load(VectorBuffer&, bool = false);
  9776. bool LoadXML(const XMLElement&, bool = false);
  9777. void MarkNetworkUpdate() const;
  9778. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  9779. void Remove();
  9780. void RemoveInstanceDefault();
  9781. void ResetToDefault();
  9782. bool Save(File) const;
  9783. bool Save(VectorBuffer&) const;
  9784. bool SaveXML(XMLElement&) const;
  9785. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9786. bool SetAttribute(const String&, const Variant&);
  9787. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9788. void SetAttributeAnimationSpeed(const String&, float);
  9789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9790. Vector2 TileIndexToPosition(int, int) const;
  9791. // Properties:
  9792. bool animationEnabled;
  9793. /* readonly */
  9794. Array<Variant> attributeDefaults;
  9795. /* readonly */
  9796. Array<AttributeInfo> attributeInfos;
  9797. Array<Variant> attributes;
  9798. /* readonly */
  9799. StringHash baseType;
  9800. /* readonly */
  9801. String category;
  9802. bool enabled;
  9803. /* readonly */
  9804. bool enabledEffective;
  9805. /* readonly */
  9806. uint id;
  9807. /* readonly */
  9808. TileMapInfo2D info;
  9809. /* readonly */
  9810. Node node;
  9811. /* readonly */
  9812. uint numAttributes;
  9813. /* readonly */
  9814. uint numLayers;
  9815. ObjectAnimation objectAnimation;
  9816. /* readonly */
  9817. int refs;
  9818. bool temporary;
  9819. TmxFile2D tmxFile;
  9820. /* readonly */
  9821. StringHash type;
  9822. /* readonly */
  9823. String typeName;
  9824. /* readonly */
  9825. int weakRefs;
  9826. };
  9827. class TileMapInfo2D
  9828. {
  9829. // Properties:
  9830. int height;
  9831. /* readonly */
  9832. float mapHeight;
  9833. /* readonly */
  9834. float mapWidth;
  9835. Orientation2D orientation;
  9836. float tileHeight;
  9837. float tileWidth;
  9838. int width;
  9839. };
  9840. class TileMapLayer2D
  9841. {
  9842. // Methods:
  9843. void ApplyAttributes();
  9844. void DrawDebugGeometry(DebugRenderer, bool);
  9845. Variant GetAttribute(const String&) const;
  9846. ValueAnimation GetAttributeAnimation(const String&) const;
  9847. float GetAttributeAnimationSpeed(const String&) const;
  9848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9849. Variant GetAttributeDefault(const String&) const;
  9850. TileMapObject2D GetObject(uint) const;
  9851. Node GetObjectNode(uint) const;
  9852. Tile2D GetTile(int, int) const;
  9853. Node GetTileNode(int, int) const;
  9854. bool HasProperty(const String&) const;
  9855. bool Load(File, bool = false);
  9856. bool Load(VectorBuffer&, bool = false);
  9857. bool LoadXML(const XMLElement&, bool = false);
  9858. void MarkNetworkUpdate() const;
  9859. void Remove();
  9860. void RemoveInstanceDefault();
  9861. void ResetToDefault();
  9862. bool Save(File) const;
  9863. bool Save(VectorBuffer&) const;
  9864. bool SaveXML(XMLElement&) const;
  9865. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9866. bool SetAttribute(const String&, const Variant&);
  9867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9868. void SetAttributeAnimationSpeed(const String&, float);
  9869. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9870. const String& GetProperty(const String&) const;
  9871. // Properties:
  9872. bool animationEnabled;
  9873. /* readonly */
  9874. Array<Variant> attributeDefaults;
  9875. /* readonly */
  9876. Array<AttributeInfo> attributeInfos;
  9877. Array<Variant> attributes;
  9878. /* readonly */
  9879. StringHash baseType;
  9880. /* readonly */
  9881. String category;
  9882. /* writeonly */
  9883. int drawOrder;
  9884. bool enabled;
  9885. /* readonly */
  9886. bool enabledEffective;
  9887. /* readonly */
  9888. int height;
  9889. /* readonly */
  9890. uint id;
  9891. /* readonly */
  9892. Node imageNode;
  9893. /* readonly */
  9894. TileMapLayerType2D layerType;
  9895. /* readonly */
  9896. Node node;
  9897. /* readonly */
  9898. uint numAttributes;
  9899. /* readonly */
  9900. uint numObjects;
  9901. ObjectAnimation objectAnimation;
  9902. /* readonly */
  9903. int refs;
  9904. /* readonly */
  9905. int rrawOrder;
  9906. bool temporary;
  9907. /* readonly */
  9908. StringHash type;
  9909. /* readonly */
  9910. String typeName;
  9911. bool visible;
  9912. /* readonly */
  9913. int weakRefs;
  9914. /* readonly */
  9915. int width;
  9916. };
  9917. class TileMapObject2D
  9918. {
  9919. // Methods:
  9920. bool HasProperty(const String&) const;
  9921. const String& GetProperty(const String&) const;
  9922. const Vector2& GetPoint(uint) const;
  9923. // Properties:
  9924. /* readonly */
  9925. String name;
  9926. /* readonly */
  9927. uint numPoints;
  9928. /* readonly */
  9929. TileObjectType2D objectType;
  9930. /* readonly */
  9931. Vector2 position;
  9932. /* readonly */
  9933. int refs;
  9934. /* readonly */
  9935. Vector2 size;
  9936. /* readonly */
  9937. int tileGid;
  9938. /* readonly */
  9939. Sprite2D tileSprite;
  9940. /* readonly */
  9941. String type;
  9942. /* readonly */
  9943. int weakRefs;
  9944. };
  9945. class Time
  9946. {
  9947. // Methods:
  9948. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9949. // Properties:
  9950. /* readonly */
  9951. StringHash baseType;
  9952. /* readonly */
  9953. String category;
  9954. /* readonly */
  9955. float elapsedTime;
  9956. /* readonly */
  9957. uint frameNumber;
  9958. /* readonly */
  9959. int refs;
  9960. /* readonly */
  9961. uint systemTime;
  9962. /* readonly */
  9963. String timeStamp;
  9964. /* readonly */
  9965. float timeStep;
  9966. /* readonly */
  9967. StringHash type;
  9968. /* readonly */
  9969. String typeName;
  9970. /* readonly */
  9971. int weakRefs;
  9972. };
  9973. class Timer
  9974. {
  9975. // Methods:
  9976. uint GetMSec(bool);
  9977. void Reset();
  9978. };
  9979. class TmxFile2D
  9980. {
  9981. // Methods:
  9982. bool Load(File);
  9983. bool Load(VectorBuffer&);
  9984. bool Save(File) const;
  9985. bool Save(VectorBuffer&) const;
  9986. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  9987. // Properties:
  9988. /* readonly */
  9989. StringHash baseType;
  9990. /* readonly */
  9991. String category;
  9992. /* readonly */
  9993. uint memoryUse;
  9994. String name;
  9995. /* readonly */
  9996. int refs;
  9997. /* readonly */
  9998. StringHash type;
  9999. /* readonly */
  10000. String typeName;
  10001. /* readonly */
  10002. uint useTimer;
  10003. /* readonly */
  10004. int weakRefs;
  10005. };
  10006. class ToolTip
  10007. {
  10008. // Methods:
  10009. void AddChild(UIElement);
  10010. void ApplyAttributes();
  10011. void BringToFront();
  10012. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10013. void DisableLayoutUpdate();
  10014. IntVector2 ElementToScreen(const IntVector2&);
  10015. void EnableLayoutUpdate();
  10016. uint FindChild(UIElement) const;
  10017. Variant GetAttribute(const String&) const;
  10018. ValueAnimation GetAttributeAnimation(const String&) const;
  10019. float GetAttributeAnimationSpeed(const String&) const;
  10020. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10021. Variant GetAttributeDefault(const String&) const;
  10022. UIElement GetChild(const String&, bool = false) const;
  10023. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10024. Array<UIElement> GetChildren(bool = false) const;
  10025. UIElement GetElementEventSender() const;
  10026. uint GetNumChildren(bool) const;
  10027. void InsertChild(uint, UIElement);
  10028. bool IsInside(IntVector2, bool);
  10029. bool IsInsideCombined(IntVector2, bool);
  10030. bool Load(File, bool = false);
  10031. bool Load(VectorBuffer&, bool = false);
  10032. bool LoadChildXML(XMLFile, XMLFile = null);
  10033. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10034. bool LoadXML(File);
  10035. bool LoadXML(VectorBuffer&);
  10036. bool LoadXML(XMLFile, XMLFile);
  10037. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10038. bool LoadXML(const XMLElement&, bool = false);
  10039. void MarkNetworkUpdate() const;
  10040. void Remove();
  10041. void RemoveAllChildren();
  10042. void RemoveChild(UIElement, uint = 0);
  10043. void RemoveChild(uint);
  10044. void RemoveInstanceDefault();
  10045. void ResetToDefault();
  10046. bool Save(File) const;
  10047. bool Save(VectorBuffer&) const;
  10048. bool SaveXML(File);
  10049. bool SaveXML(VectorBuffer&);
  10050. bool SaveXML(XMLElement&) const;
  10051. IntVector2 ScreenToElement(const IntVector2&);
  10052. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10053. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10054. bool SetAttribute(const String&, const Variant&);
  10055. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10056. void SetAttributeAnimationSpeed(const String&, float);
  10057. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10058. void SetFixedHeight(int);
  10059. void SetFixedSize(int, int);
  10060. void SetFixedWidth(int);
  10061. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10062. void SetMaxSize(int, int);
  10063. void SetMinSize(int, int);
  10064. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10065. void SetPosition(int, int);
  10066. void SetSize(int, int);
  10067. bool SetStyle(const String&, XMLFile = null);
  10068. bool SetStyle(const XMLElement&);
  10069. bool SetStyleAuto(XMLFile = null);
  10070. void UpdateLayout();
  10071. const Variant& GetVar(const StringHash&);
  10072. // Properties:
  10073. bool animationEnabled;
  10074. /* readonly */
  10075. Array<Variant> attributeDefaults;
  10076. /* readonly */
  10077. Array<AttributeInfo> attributeInfos;
  10078. Array<Variant> attributes;
  10079. /* readonly */
  10080. StringHash baseType;
  10081. bool bringToBack;
  10082. bool bringToFront;
  10083. /* readonly */
  10084. String category;
  10085. /* readonly */
  10086. IntVector2 childOffset;
  10087. /* readonly */
  10088. Array<UIElement> children;
  10089. IntRect clipBorder;
  10090. bool clipChildren;
  10091. /* writeonly */
  10092. Color color;
  10093. /* readonly */
  10094. bool colorGradient;
  10095. Array<Color> colors;
  10096. /* readonly */
  10097. IntRect combinedScreenRect;
  10098. XMLFile defaultStyle;
  10099. float delay;
  10100. /* readonly */
  10101. float derivedOpacity;
  10102. uint dragDropMode;
  10103. bool editable;
  10104. bool elementEventSender;
  10105. bool enabled;
  10106. /* readonly */
  10107. bool fixedHeight;
  10108. /* readonly */
  10109. bool fixedSize;
  10110. /* readonly */
  10111. bool fixedWidth;
  10112. bool focus;
  10113. FocusMode focusMode;
  10114. int height;
  10115. HorizontalAlignment horizontalAlignment;
  10116. /* readonly */
  10117. bool hovering;
  10118. int indent;
  10119. int indentSpacing;
  10120. /* readonly */
  10121. int indentWidth;
  10122. bool internal;
  10123. IntRect layoutBorder;
  10124. LayoutMode layoutMode;
  10125. int layoutSpacing;
  10126. int maxHeight;
  10127. IntVector2 maxSize;
  10128. int maxWidth;
  10129. int minHeight;
  10130. IntVector2 minSize;
  10131. int minWidth;
  10132. String name;
  10133. /* readonly */
  10134. uint numAllChildren;
  10135. /* readonly */
  10136. uint numAttributes;
  10137. /* readonly */
  10138. uint numChildren;
  10139. ObjectAnimation objectAnimation;
  10140. float opacity;
  10141. UIElement parent;
  10142. IntVector2 position;
  10143. int priority;
  10144. /* readonly */
  10145. int refs;
  10146. /* readonly */
  10147. UIElement root;
  10148. /* readonly */
  10149. IntVector2 screenPosition;
  10150. bool selected;
  10151. IntVector2 size;
  10152. bool sortChildren;
  10153. String style;
  10154. bool temporary;
  10155. TraversalMode traversalMode;
  10156. /* readonly */
  10157. StringHash type;
  10158. /* readonly */
  10159. String typeName;
  10160. bool useDerivedOpacity;
  10161. /* readonly */
  10162. VariantMap vars;
  10163. VerticalAlignment verticalAlignment;
  10164. bool visible;
  10165. /* readonly */
  10166. int weakRefs;
  10167. int width;
  10168. };
  10169. class TouchState
  10170. {
  10171. // Properties:
  10172. IntVector2 delta;
  10173. IntVector2 lastPosition;
  10174. IntVector2 position;
  10175. float pressure;
  10176. int touchID;
  10177. /* readonly */
  10178. UIElement touchedElement;
  10179. };
  10180. class UI
  10181. {
  10182. // Methods:
  10183. void Clear();
  10184. void DebugDraw(UIElement);
  10185. UIElement GetElementAt(const IntVector2&, bool = true);
  10186. UIElement GetElementAt(int, int, bool = true);
  10187. bool HasModalElement() const;
  10188. UIElement LoadLayout(File);
  10189. UIElement LoadLayout(File, XMLFile);
  10190. UIElement LoadLayout(VectorBuffer&);
  10191. UIElement LoadLayout(VectorBuffer&, XMLFile);
  10192. UIElement LoadLayout(XMLFile);
  10193. UIElement LoadLayout(XMLFile, XMLFile);
  10194. bool SaveLayout(File, UIElement);
  10195. bool SaveLayout(VectorBuffer&, UIElement);
  10196. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10197. void SetFocusElement(UIElement, bool = false);
  10198. // Properties:
  10199. /* readonly */
  10200. StringHash baseType;
  10201. /* readonly */
  10202. String category;
  10203. String clipBoardText;
  10204. Cursor cursor;
  10205. /* readonly */
  10206. IntVector2 cursorPosition;
  10207. float defaultToolTipDelay;
  10208. float doubleClickInterval;
  10209. int dragBeginDistance;
  10210. float dragBeginInterval;
  10211. /* readonly */
  10212. UIElement dragElement;
  10213. UIElement focusElement;
  10214. bool forceAutoHint;
  10215. /* readonly */
  10216. UIElement frontElement;
  10217. int maxFontTextureSize;
  10218. /* readonly */
  10219. UIElement modalRoot;
  10220. bool nonFocusedMouseWheel;
  10221. /* readonly */
  10222. int refs;
  10223. /* readonly */
  10224. UIElement root;
  10225. /* readonly */
  10226. StringHash type;
  10227. /* readonly */
  10228. String typeName;
  10229. bool useMutableGlyphs;
  10230. bool useScreenKeyboard;
  10231. bool useSystemClipboard;
  10232. /* readonly */
  10233. int weakRefs;
  10234. };
  10235. class UIElement
  10236. {
  10237. // Methods:
  10238. void AddChild(UIElement);
  10239. void ApplyAttributes();
  10240. void BringToFront();
  10241. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10242. void DisableLayoutUpdate();
  10243. IntVector2 ElementToScreen(const IntVector2&);
  10244. void EnableLayoutUpdate();
  10245. uint FindChild(UIElement) const;
  10246. Variant GetAttribute(const String&) const;
  10247. ValueAnimation GetAttributeAnimation(const String&) const;
  10248. float GetAttributeAnimationSpeed(const String&) const;
  10249. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10250. Variant GetAttributeDefault(const String&) const;
  10251. UIElement GetChild(const String&, bool = false) const;
  10252. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10253. Array<UIElement> GetChildren(bool = false) const;
  10254. UIElement GetElementEventSender() const;
  10255. uint GetNumChildren(bool) const;
  10256. void InsertChild(uint, UIElement);
  10257. bool IsInside(IntVector2, bool);
  10258. bool IsInsideCombined(IntVector2, bool);
  10259. bool Load(File, bool = false);
  10260. bool Load(VectorBuffer&, bool = false);
  10261. bool LoadChildXML(XMLFile, XMLFile = null);
  10262. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10263. bool LoadXML(File);
  10264. bool LoadXML(VectorBuffer&);
  10265. bool LoadXML(XMLFile, XMLFile);
  10266. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10267. bool LoadXML(const XMLElement&, bool = false);
  10268. void MarkNetworkUpdate() const;
  10269. void Remove();
  10270. void RemoveAllChildren();
  10271. void RemoveChild(UIElement, uint = 0);
  10272. void RemoveChild(uint);
  10273. void RemoveInstanceDefault();
  10274. void ResetToDefault();
  10275. bool Save(File) const;
  10276. bool Save(VectorBuffer&) const;
  10277. bool SaveXML(File);
  10278. bool SaveXML(VectorBuffer&);
  10279. bool SaveXML(XMLElement&) const;
  10280. IntVector2 ScreenToElement(const IntVector2&);
  10281. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10282. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10283. bool SetAttribute(const String&, const Variant&);
  10284. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10285. void SetAttributeAnimationSpeed(const String&, float);
  10286. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10287. void SetFixedHeight(int);
  10288. void SetFixedSize(int, int);
  10289. void SetFixedWidth(int);
  10290. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10291. void SetMaxSize(int, int);
  10292. void SetMinSize(int, int);
  10293. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10294. void SetPosition(int, int);
  10295. void SetSize(int, int);
  10296. bool SetStyle(const String&, XMLFile = null);
  10297. bool SetStyle(const XMLElement&);
  10298. bool SetStyleAuto(XMLFile = null);
  10299. void UpdateLayout();
  10300. const Variant& GetVar(const StringHash&);
  10301. // Properties:
  10302. bool animationEnabled;
  10303. /* readonly */
  10304. Array<Variant> attributeDefaults;
  10305. /* readonly */
  10306. Array<AttributeInfo> attributeInfos;
  10307. Array<Variant> attributes;
  10308. /* readonly */
  10309. StringHash baseType;
  10310. bool bringToBack;
  10311. bool bringToFront;
  10312. /* readonly */
  10313. String category;
  10314. /* readonly */
  10315. IntVector2 childOffset;
  10316. /* readonly */
  10317. Array<UIElement> children;
  10318. IntRect clipBorder;
  10319. bool clipChildren;
  10320. /* writeonly */
  10321. Color color;
  10322. /* readonly */
  10323. bool colorGradient;
  10324. Array<Color> colors;
  10325. /* readonly */
  10326. IntRect combinedScreenRect;
  10327. XMLFile defaultStyle;
  10328. /* readonly */
  10329. float derivedOpacity;
  10330. uint dragDropMode;
  10331. bool editable;
  10332. bool elementEventSender;
  10333. bool enabled;
  10334. /* readonly */
  10335. bool fixedHeight;
  10336. /* readonly */
  10337. bool fixedSize;
  10338. /* readonly */
  10339. bool fixedWidth;
  10340. bool focus;
  10341. FocusMode focusMode;
  10342. int height;
  10343. HorizontalAlignment horizontalAlignment;
  10344. /* readonly */
  10345. bool hovering;
  10346. int indent;
  10347. int indentSpacing;
  10348. /* readonly */
  10349. int indentWidth;
  10350. bool internal;
  10351. IntRect layoutBorder;
  10352. LayoutMode layoutMode;
  10353. int layoutSpacing;
  10354. int maxHeight;
  10355. IntVector2 maxSize;
  10356. int maxWidth;
  10357. int minHeight;
  10358. IntVector2 minSize;
  10359. int minWidth;
  10360. String name;
  10361. /* readonly */
  10362. uint numAllChildren;
  10363. /* readonly */
  10364. uint numAttributes;
  10365. /* readonly */
  10366. uint numChildren;
  10367. ObjectAnimation objectAnimation;
  10368. float opacity;
  10369. UIElement parent;
  10370. IntVector2 position;
  10371. int priority;
  10372. /* readonly */
  10373. int refs;
  10374. /* readonly */
  10375. UIElement root;
  10376. /* readonly */
  10377. IntVector2 screenPosition;
  10378. bool selected;
  10379. IntVector2 size;
  10380. bool sortChildren;
  10381. String style;
  10382. bool temporary;
  10383. TraversalMode traversalMode;
  10384. /* readonly */
  10385. StringHash type;
  10386. /* readonly */
  10387. String typeName;
  10388. bool useDerivedOpacity;
  10389. /* readonly */
  10390. VariantMap vars;
  10391. VerticalAlignment verticalAlignment;
  10392. bool visible;
  10393. /* readonly */
  10394. int weakRefs;
  10395. int width;
  10396. };
  10397. class ValueAnimation
  10398. {
  10399. // Methods:
  10400. bool Load(File);
  10401. bool Load(VectorBuffer&);
  10402. bool Save(File) const;
  10403. bool Save(VectorBuffer&) const;
  10404. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10405. void SetEventFrame(float, const String&, const Variant&);
  10406. void SetKeyFrame(float, const Variant&);
  10407. // Properties:
  10408. /* readonly */
  10409. StringHash baseType;
  10410. /* readonly */
  10411. String category;
  10412. InterpMethod interpolationMethod;
  10413. /* readonly */
  10414. uint memoryUse;
  10415. String name;
  10416. /* readonly */
  10417. int refs;
  10418. float splineTension;
  10419. /* readonly */
  10420. StringHash type;
  10421. /* readonly */
  10422. String typeName;
  10423. /* readonly */
  10424. uint useTimer;
  10425. VariantType valueType;
  10426. /* readonly */
  10427. int weakRefs;
  10428. };
  10429. class Variant
  10430. {
  10431. // Methods:
  10432. void Clear();
  10433. const Color& GetColor() const;
  10434. void FromString(VariantType, const String&);
  10435. void FromString(const String&, const String&);
  10436. bool GetBool() const;
  10437. VectorBuffer GetBuffer() const;
  10438. float GetFloat() const;
  10439. int GetInt() const;
  10440. RefCounted GetPtr() const;
  10441. StringHash GetStringHash() const;
  10442. uint GetUInt() const;
  10443. Array<Variant> GetVariantVector() const;
  10444. const IntRect& GetIntRect() const;
  10445. const IntVector2& GetIntVector2() const;
  10446. const Matrix3& GetMatrix3() const;
  10447. const Matrix3x4& GetMatrix3x4() const;
  10448. const Matrix4& GetMatrix4() const;
  10449. const Quaternion& GetQuaternion() const;
  10450. const ResourceRef& GetResourceRef() const;
  10451. const ResourceRefList& GetResourceRefList() const;
  10452. const String& GetString() const;
  10453. String ToString() const;
  10454. const VariantMap& GetVariantMap() const;
  10455. const Vector2& GetVector2() const;
  10456. const Vector3& GetVector3() const;
  10457. const Vector4& GetVector4() const;
  10458. // Properties:
  10459. /* readonly */
  10460. bool empty;
  10461. /* readonly */
  10462. VariantType type;
  10463. /* readonly */
  10464. String typeName;
  10465. /* readonly */
  10466. bool zero;
  10467. };
  10468. class VariantMap
  10469. {
  10470. // Methods:
  10471. void Clear();
  10472. bool Contains(StringHash) const;
  10473. bool Contains(const String&) const;
  10474. bool Erase(StringHash);
  10475. bool Erase(const String&);
  10476. // Properties:
  10477. /* readonly */
  10478. Array<StringHash> keys;
  10479. /* readonly */
  10480. uint length;
  10481. };
  10482. class Vector2
  10483. {
  10484. // Methods:
  10485. float AbsDotProduct(const Vector2&) const;
  10486. float DotProduct(const Vector2&) const;
  10487. bool Equals(const Vector2&) const;
  10488. bool IsNaN() const;
  10489. Vector2 Lerp(const Vector2&, float) const;
  10490. void Normalize();
  10491. Vector2 Normalized() const;
  10492. String ToString() const;
  10493. // Properties:
  10494. /* readonly */
  10495. Array<float> data;
  10496. /* readonly */
  10497. float length;
  10498. /* readonly */
  10499. float lengthSquared;
  10500. float x;
  10501. float y;
  10502. };
  10503. class Vector3
  10504. {
  10505. // Methods:
  10506. float AbsDotProduct(const Vector3&) const;
  10507. float Angle(const Vector3&) const;
  10508. Vector3 CrossProduct(const Vector3&) const;
  10509. float DotProduct(const Vector3&) const;
  10510. bool Equals(const Vector3&) const;
  10511. bool IsNaN() const;
  10512. Vector3 Lerp(const Vector3&, float) const;
  10513. void Normalize();
  10514. Vector3 Normalized() const;
  10515. String ToString() const;
  10516. // Properties:
  10517. /* readonly */
  10518. Array<float> data;
  10519. /* readonly */
  10520. float length;
  10521. /* readonly */
  10522. float lengthSquared;
  10523. float x;
  10524. float y;
  10525. float z;
  10526. };
  10527. class Vector4
  10528. {
  10529. // Methods:
  10530. float AbsDotProduct(const Vector4&) const;
  10531. float DotProduct(const Vector4&) const;
  10532. bool Equals(const Vector4&) const;
  10533. bool IsNaN() const;
  10534. Vector4 Lerp(const Vector4&, float) const;
  10535. String ToString() const;
  10536. // Properties:
  10537. /* readonly */
  10538. Array<float> data;
  10539. float w;
  10540. float x;
  10541. float y;
  10542. float z;
  10543. };
  10544. class VectorBuffer
  10545. {
  10546. // Methods:
  10547. void Clear();
  10548. Array<uint8> Read(uint);
  10549. bool ReadBool();
  10550. BoundingBox ReadBoundingBox();
  10551. int8 ReadByte();
  10552. Color ReadColor();
  10553. String ReadFileID();
  10554. float ReadFloat();
  10555. int ReadInt();
  10556. IntRect ReadIntRect();
  10557. IntVector2 ReadIntVector2();
  10558. String ReadLine();
  10559. Matrix3 ReadMatrix3();
  10560. Matrix3x4 ReadMatrix3x4();
  10561. Matrix4 ReadMatrix4();
  10562. uint ReadNetID();
  10563. Quaternion ReadPackedQuaternion();
  10564. Vector3 ReadPackedVector3(float);
  10565. Quaternion ReadQuaternion();
  10566. int16 ReadShort();
  10567. String ReadString();
  10568. StringHash ReadStringHash();
  10569. uint8 ReadUByte();
  10570. uint ReadUInt();
  10571. uint16 ReadUShort();
  10572. uint ReadVLE();
  10573. Variant ReadVariant();
  10574. VariantMap ReadVariantMap();
  10575. Vector2 ReadVector2();
  10576. Vector3 ReadVector3();
  10577. Vector4 ReadVector4();
  10578. void Resize(uint);
  10579. uint Seek(uint);
  10580. void SetData(Deserializer, uint);
  10581. uint Write(Array<uint8>);
  10582. bool WriteBool(bool);
  10583. bool WriteBoundingBox(const BoundingBox&);
  10584. bool WriteByte(int8);
  10585. bool WriteColor(const Color&);
  10586. bool WriteFileID(const String&);
  10587. bool WriteFloat(float);
  10588. bool WriteInt(int);
  10589. bool WriteIntRect(const IntRect&);
  10590. bool WriteIntVector2(const IntVector2&);
  10591. bool WriteLine(const String&);
  10592. bool WriteMatrix3(const Matrix3&);
  10593. bool WriteMatrix3x4(const Matrix3x4&);
  10594. bool WriteMatrix4(const Matrix4&);
  10595. bool WriteNetID(uint);
  10596. bool WritePackedQuaternion(const Quaternion&);
  10597. bool WritePackedVector3(const Vector3&, float);
  10598. bool WriteQuaternion(const Quaternion&);
  10599. bool WriteShort(int16);
  10600. bool WriteString(const String&);
  10601. bool WriteStringHash(const StringHash&);
  10602. bool WriteUByte(uint8);
  10603. bool WriteUInt(uint);
  10604. bool WriteUShort(uint16);
  10605. bool WriteVLE(uint);
  10606. bool WriteVariant(const Variant&);
  10607. bool WriteVariantMap(const VariantMap&);
  10608. bool WriteVector2(const Vector2&);
  10609. bool WriteVector3(const Vector3&);
  10610. bool WriteVector4(const Vector4&);
  10611. // Properties:
  10612. /* readonly */
  10613. uint checksum;
  10614. /* readonly */
  10615. bool eof;
  10616. /* readonly */
  10617. String name;
  10618. /* readonly */
  10619. uint position;
  10620. /* readonly */
  10621. uint size;
  10622. };
  10623. class View3D
  10624. {
  10625. // Methods:
  10626. void AddChild(UIElement);
  10627. void ApplyAttributes();
  10628. void BringToFront();
  10629. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10630. void DisableLayoutUpdate();
  10631. IntVector2 ElementToScreen(const IntVector2&);
  10632. void EnableLayoutUpdate();
  10633. uint FindChild(UIElement) const;
  10634. Variant GetAttribute(const String&) const;
  10635. ValueAnimation GetAttributeAnimation(const String&) const;
  10636. float GetAttributeAnimationSpeed(const String&) const;
  10637. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10638. Variant GetAttributeDefault(const String&) const;
  10639. UIElement GetChild(const String&, bool = false) const;
  10640. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10641. Array<UIElement> GetChildren(bool = false) const;
  10642. UIElement GetElementEventSender() const;
  10643. uint GetNumChildren(bool) const;
  10644. void InsertChild(uint, UIElement);
  10645. bool IsInside(IntVector2, bool);
  10646. bool IsInsideCombined(IntVector2, bool);
  10647. bool Load(File, bool = false);
  10648. bool Load(VectorBuffer&, bool = false);
  10649. bool LoadChildXML(XMLFile, XMLFile = null);
  10650. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10651. bool LoadXML(File);
  10652. bool LoadXML(VectorBuffer&);
  10653. bool LoadXML(XMLFile, XMLFile);
  10654. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10655. bool LoadXML(const XMLElement&, bool = false);
  10656. void MarkNetworkUpdate() const;
  10657. void QueueUpdate();
  10658. void Remove();
  10659. void RemoveAllChildren();
  10660. void RemoveChild(UIElement, uint = 0);
  10661. void RemoveChild(uint);
  10662. void RemoveInstanceDefault();
  10663. void ResetToDefault();
  10664. bool Save(File) const;
  10665. bool Save(VectorBuffer&) const;
  10666. bool SaveXML(File);
  10667. bool SaveXML(VectorBuffer&);
  10668. bool SaveXML(XMLElement&) const;
  10669. IntVector2 ScreenToElement(const IntVector2&);
  10670. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10671. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10672. bool SetAttribute(const String&, const Variant&);
  10673. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10674. void SetAttributeAnimationSpeed(const String&, float);
  10675. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10676. void SetFixedHeight(int);
  10677. void SetFixedSize(int, int);
  10678. void SetFixedWidth(int);
  10679. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10680. void SetMaxSize(int, int);
  10681. void SetMinSize(int, int);
  10682. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10683. void SetPosition(int, int);
  10684. void SetSize(int, int);
  10685. bool SetStyle(const String&, XMLFile = null);
  10686. bool SetStyle(const XMLElement&);
  10687. bool SetStyleAuto(XMLFile = null);
  10688. void SetView(Scene, Camera);
  10689. void UpdateLayout();
  10690. const Variant& GetVar(const StringHash&);
  10691. // Properties:
  10692. bool animationEnabled;
  10693. /* readonly */
  10694. Array<Variant> attributeDefaults;
  10695. /* readonly */
  10696. Array<AttributeInfo> attributeInfos;
  10697. Array<Variant> attributes;
  10698. bool autoUpdate;
  10699. /* readonly */
  10700. StringHash baseType;
  10701. bool bringToBack;
  10702. bool bringToFront;
  10703. /* readonly */
  10704. Node cameraNode;
  10705. /* readonly */
  10706. String category;
  10707. /* readonly */
  10708. IntVector2 childOffset;
  10709. /* readonly */
  10710. Array<UIElement> children;
  10711. IntRect clipBorder;
  10712. bool clipChildren;
  10713. /* writeonly */
  10714. Color color;
  10715. /* readonly */
  10716. bool colorGradient;
  10717. Array<Color> colors;
  10718. /* readonly */
  10719. IntRect combinedScreenRect;
  10720. XMLFile defaultStyle;
  10721. /* readonly */
  10722. Texture2D depthTexture;
  10723. /* readonly */
  10724. float derivedOpacity;
  10725. uint dragDropMode;
  10726. bool editable;
  10727. bool elementEventSender;
  10728. bool enabled;
  10729. /* readonly */
  10730. bool fixedHeight;
  10731. bool fixedHeightResizing;
  10732. /* readonly */
  10733. bool fixedSize;
  10734. /* readonly */
  10735. bool fixedWidth;
  10736. bool fixedWidthResizing;
  10737. bool focus;
  10738. FocusMode focusMode;
  10739. uint format;
  10740. int height;
  10741. HorizontalAlignment horizontalAlignment;
  10742. /* readonly */
  10743. bool hovering;
  10744. int indent;
  10745. int indentSpacing;
  10746. /* readonly */
  10747. int indentWidth;
  10748. bool internal;
  10749. IntRect layoutBorder;
  10750. LayoutMode layoutMode;
  10751. int layoutSpacing;
  10752. int maxHeight;
  10753. IntVector2 maxSize;
  10754. int maxWidth;
  10755. int minHeight;
  10756. IntVector2 minSize;
  10757. int minWidth;
  10758. bool modal;
  10759. Color modalFrameColor;
  10760. IntVector2 modalFrameSize;
  10761. Color modalShadeColor;
  10762. bool movable;
  10763. String name;
  10764. /* readonly */
  10765. uint numAllChildren;
  10766. /* readonly */
  10767. uint numAttributes;
  10768. /* readonly */
  10769. uint numChildren;
  10770. ObjectAnimation objectAnimation;
  10771. float opacity;
  10772. UIElement parent;
  10773. IntVector2 position;
  10774. int priority;
  10775. /* readonly */
  10776. int refs;
  10777. /* readonly */
  10778. Texture2D renderTexture;
  10779. bool resizable;
  10780. IntRect resizeBorder;
  10781. /* readonly */
  10782. UIElement root;
  10783. /* readonly */
  10784. Scene scene;
  10785. /* readonly */
  10786. IntVector2 screenPosition;
  10787. bool selected;
  10788. IntVector2 size;
  10789. bool sortChildren;
  10790. String style;
  10791. bool temporary;
  10792. TraversalMode traversalMode;
  10793. /* readonly */
  10794. StringHash type;
  10795. /* readonly */
  10796. String typeName;
  10797. bool useDerivedOpacity;
  10798. /* readonly */
  10799. VariantMap vars;
  10800. VerticalAlignment verticalAlignment;
  10801. /* readonly */
  10802. Viewport viewport;
  10803. bool visible;
  10804. /* readonly */
  10805. int weakRefs;
  10806. int width;
  10807. };
  10808. class Viewport
  10809. {
  10810. // Methods:
  10811. Ray GetScreenRay(int, int) const;
  10812. Vector3 ScreenToWorldPoint(int, int, float) const;
  10813. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10814. void SetRenderPath(XMLFile);
  10815. Vector2 WorldToScreenPoint(const Vector3&) const;
  10816. // Properties:
  10817. /* readonly */
  10818. StringHash baseType;
  10819. Camera camera;
  10820. /* readonly */
  10821. String category;
  10822. IntRect rect;
  10823. /* readonly */
  10824. int refs;
  10825. RenderPath renderPath;
  10826. Scene scene;
  10827. /* readonly */
  10828. StringHash type;
  10829. /* readonly */
  10830. String typeName;
  10831. /* readonly */
  10832. int weakRefs;
  10833. };
  10834. class WeakHandle
  10835. {
  10836. // Methods:
  10837. RefCounted Get() const;
  10838. // Properties:
  10839. /* readonly */
  10840. bool expired;
  10841. /* readonly */
  10842. int refs;
  10843. /* readonly */
  10844. int weakRefs;
  10845. };
  10846. class Window
  10847. {
  10848. // Methods:
  10849. void AddChild(UIElement);
  10850. void ApplyAttributes();
  10851. void BringToFront();
  10852. UIElement CreateChild(const String&, const String& = String ( ), uint = M_MAX_UNSIGNED);
  10853. void DisableLayoutUpdate();
  10854. IntVector2 ElementToScreen(const IntVector2&);
  10855. void EnableLayoutUpdate();
  10856. uint FindChild(UIElement) const;
  10857. Variant GetAttribute(const String&) const;
  10858. ValueAnimation GetAttributeAnimation(const String&) const;
  10859. float GetAttributeAnimationSpeed(const String&) const;
  10860. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10861. Variant GetAttributeDefault(const String&) const;
  10862. UIElement GetChild(const String&, bool = false) const;
  10863. UIElement GetChild(const StringHash&, const Variant& = Variant ( ), bool = false) const;
  10864. Array<UIElement> GetChildren(bool = false) const;
  10865. UIElement GetElementEventSender() const;
  10866. uint GetNumChildren(bool) const;
  10867. void InsertChild(uint, UIElement);
  10868. bool IsInside(IntVector2, bool);
  10869. bool IsInsideCombined(IntVector2, bool);
  10870. bool Load(File, bool = false);
  10871. bool Load(VectorBuffer&, bool = false);
  10872. bool LoadChildXML(XMLFile, XMLFile = null);
  10873. bool LoadChildXML(const XMLElement&, XMLFile = null, bool = false);
  10874. bool LoadXML(File);
  10875. bool LoadXML(VectorBuffer&);
  10876. bool LoadXML(XMLFile, XMLFile);
  10877. bool LoadXML(const XMLElement&, XMLFile, bool = false);
  10878. bool LoadXML(const XMLElement&, bool = false);
  10879. void MarkNetworkUpdate() const;
  10880. void Remove();
  10881. void RemoveAllChildren();
  10882. void RemoveChild(UIElement, uint = 0);
  10883. void RemoveChild(uint);
  10884. void RemoveInstanceDefault();
  10885. void ResetToDefault();
  10886. bool Save(File) const;
  10887. bool Save(VectorBuffer&) const;
  10888. bool SaveXML(File);
  10889. bool SaveXML(VectorBuffer&);
  10890. bool SaveXML(XMLElement&) const;
  10891. IntVector2 ScreenToElement(const IntVector2&);
  10892. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  10893. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10894. bool SetAttribute(const String&, const Variant&);
  10895. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10896. void SetAttributeAnimationSpeed(const String&, float);
  10897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10898. void SetFixedHeight(int);
  10899. void SetFixedSize(int, int);
  10900. void SetFixedWidth(int);
  10901. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect ( 0 , 0 , 0 , 0 ));
  10902. void SetMaxSize(int, int);
  10903. void SetMinSize(int, int);
  10904. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10905. void SetPosition(int, int);
  10906. void SetSize(int, int);
  10907. bool SetStyle(const String&, XMLFile = null);
  10908. bool SetStyle(const XMLElement&);
  10909. bool SetStyleAuto(XMLFile = null);
  10910. void UpdateLayout();
  10911. const Variant& GetVar(const StringHash&);
  10912. // Properties:
  10913. bool animationEnabled;
  10914. /* readonly */
  10915. Array<Variant> attributeDefaults;
  10916. /* readonly */
  10917. Array<AttributeInfo> attributeInfos;
  10918. Array<Variant> attributes;
  10919. /* readonly */
  10920. StringHash baseType;
  10921. bool bringToBack;
  10922. bool bringToFront;
  10923. /* readonly */
  10924. String category;
  10925. /* readonly */
  10926. IntVector2 childOffset;
  10927. /* readonly */
  10928. Array<UIElement> children;
  10929. IntRect clipBorder;
  10930. bool clipChildren;
  10931. /* writeonly */
  10932. Color color;
  10933. /* readonly */
  10934. bool colorGradient;
  10935. Array<Color> colors;
  10936. /* readonly */
  10937. IntRect combinedScreenRect;
  10938. XMLFile defaultStyle;
  10939. /* readonly */
  10940. float derivedOpacity;
  10941. uint dragDropMode;
  10942. bool editable;
  10943. bool elementEventSender;
  10944. bool enabled;
  10945. /* readonly */
  10946. bool fixedHeight;
  10947. bool fixedHeightResizing;
  10948. /* readonly */
  10949. bool fixedSize;
  10950. /* readonly */
  10951. bool fixedWidth;
  10952. bool fixedWidthResizing;
  10953. bool focus;
  10954. FocusMode focusMode;
  10955. int height;
  10956. HorizontalAlignment horizontalAlignment;
  10957. /* readonly */
  10958. bool hovering;
  10959. int indent;
  10960. int indentSpacing;
  10961. /* readonly */
  10962. int indentWidth;
  10963. bool internal;
  10964. IntRect layoutBorder;
  10965. LayoutMode layoutMode;
  10966. int layoutSpacing;
  10967. int maxHeight;
  10968. IntVector2 maxSize;
  10969. int maxWidth;
  10970. int minHeight;
  10971. IntVector2 minSize;
  10972. int minWidth;
  10973. bool modal;
  10974. Color modalFrameColor;
  10975. IntVector2 modalFrameSize;
  10976. Color modalShadeColor;
  10977. bool movable;
  10978. String name;
  10979. /* readonly */
  10980. uint numAllChildren;
  10981. /* readonly */
  10982. uint numAttributes;
  10983. /* readonly */
  10984. uint numChildren;
  10985. ObjectAnimation objectAnimation;
  10986. float opacity;
  10987. UIElement parent;
  10988. IntVector2 position;
  10989. int priority;
  10990. /* readonly */
  10991. int refs;
  10992. bool resizable;
  10993. IntRect resizeBorder;
  10994. /* readonly */
  10995. UIElement root;
  10996. /* readonly */
  10997. IntVector2 screenPosition;
  10998. bool selected;
  10999. IntVector2 size;
  11000. bool sortChildren;
  11001. String style;
  11002. bool temporary;
  11003. TraversalMode traversalMode;
  11004. /* readonly */
  11005. StringHash type;
  11006. /* readonly */
  11007. String typeName;
  11008. bool useDerivedOpacity;
  11009. /* readonly */
  11010. VariantMap vars;
  11011. VerticalAlignment verticalAlignment;
  11012. bool visible;
  11013. /* readonly */
  11014. int weakRefs;
  11015. int width;
  11016. };
  11017. class XMLElement
  11018. {
  11019. // Methods:
  11020. XMLElement CreateChild(const String&);
  11021. String GetAttribute(const String& = String ( )) const;
  11022. String GetAttributeLower(const String&) const;
  11023. Array<String> GetAttributeNames() const;
  11024. String GetAttributeUpper(const String&) const;
  11025. bool GetBool(const String&) const;
  11026. BoundingBox GetBoundingBox() const;
  11027. XMLElement GetChild(const String& = String ( )) const;
  11028. Color GetColor(const String&) const;
  11029. float GetFloat(const String&) const;
  11030. int GetInt(const String&) const;
  11031. Matrix3 GetMatrix3(const String&) const;
  11032. Matrix3x4 GetMatrix3x4(const String&) const;
  11033. Matrix4 GetMatrix4(const String&) const;
  11034. XMLElement GetNext(const String& = String ( )) const;
  11035. Quaternion GetQuaternion(const String&) const;
  11036. ResourceRef GetResourceRef() const;
  11037. ResourceRefList GetResourceRefList() const;
  11038. uint GetUInt(const String&) const;
  11039. String GetValue() const;
  11040. Variant GetVariant() const;
  11041. VariantMap GetVariantMap() const;
  11042. Array<Variant> GetVariantVector() const;
  11043. Vector2 GetVector2(const String&) const;
  11044. Vector3 GetVector3(const String&) const;
  11045. Vector4 GetVector4(const String&) const;
  11046. Variant GetVectorVariant(const String&) const;
  11047. bool HasAttribute(const String&) const;
  11048. bool HasChild(const String&) const;
  11049. bool RemoveAttribute(const String& = String ( ));
  11050. bool RemoveChild(const String&);
  11051. bool RemoveChild(const XMLElement&);
  11052. bool RemoveChildren(const String& = String ( ));
  11053. XPathResultSet Select(const String&);
  11054. XPathResultSet SelectPrepared(const XPathQuery&);
  11055. XMLElement SelectSingle(const String&);
  11056. XMLElement SelectSinglePrepared(const XPathQuery&);
  11057. bool SetAttribute(const String&);
  11058. bool SetAttribute(const String&, const String&);
  11059. bool SetBool(const String&, bool);
  11060. bool SetBoundingBox(const BoundingBox&);
  11061. bool SetColor(const String&, const Color&);
  11062. bool SetFloat(const String&, float);
  11063. bool SetInt(const String&, int);
  11064. bool SetMatrix3(const String&, const Matrix3&);
  11065. bool SetMatrix3x4(const String&, const Matrix3x4&);
  11066. bool SetMatrix4(const String&, const Matrix4&);
  11067. bool SetQuaternion(const String&, const Quaternion&);
  11068. bool SetResourceRef(const String&, const ResourceRef&);
  11069. bool SetResourceRefList(const String&, const ResourceRefList&);
  11070. bool SetUInt(const String&, uint);
  11071. bool SetValue(const String&);
  11072. bool SetVariant(const Variant&);
  11073. bool SetVariantMap(const VariantMap&);
  11074. bool SetVariantVector(Array<Variant>);
  11075. bool SetVector2(const String&, const Vector2&);
  11076. bool SetVector3(const String&, const Vector3&);
  11077. bool SetVector4(const String&, const Vector4&);
  11078. bool SetVectorVariant(const String&, const Variant&);
  11079. // Properties:
  11080. /* readonly */
  11081. XMLFile file;
  11082. /* readonly */
  11083. bool isNull;
  11084. /* readonly */
  11085. String name;
  11086. /* readonly */
  11087. XMLElement nextResult;
  11088. /* readonly */
  11089. bool notNull;
  11090. /* readonly */
  11091. uint numAttributes;
  11092. /* readonly */
  11093. XMLElement parent;
  11094. String value;
  11095. };
  11096. class XMLFile
  11097. {
  11098. // Methods:
  11099. XMLElement CreateRoot(const String&);
  11100. bool FromString(const String&);
  11101. XMLElement GetRoot(const String& = String ( ));
  11102. bool Load(File);
  11103. bool Load(VectorBuffer&);
  11104. void Patch(XMLElement);
  11105. void Patch(XMLFile);
  11106. bool Save(File) const;
  11107. bool Save(VectorBuffer&) const;
  11108. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11109. // Properties:
  11110. /* readonly */
  11111. StringHash baseType;
  11112. /* readonly */
  11113. String category;
  11114. /* readonly */
  11115. uint memoryUse;
  11116. String name;
  11117. /* readonly */
  11118. int refs;
  11119. /* readonly */
  11120. XMLElement root;
  11121. /* readonly */
  11122. StringHash type;
  11123. /* readonly */
  11124. String typeName;
  11125. /* readonly */
  11126. uint useTimer;
  11127. /* readonly */
  11128. int weakRefs;
  11129. };
  11130. class XPathQuery
  11131. {
  11132. // Methods:
  11133. void Bind();
  11134. void Clear();
  11135. XPathResultSet Evaluate(XMLElement);
  11136. bool EvaluateToBool(XMLElement);
  11137. float EvaluateToFloat(XMLElement);
  11138. String EvaluateToString(XMLElement);
  11139. bool SetQuery(const String&, const String& = String ( ), bool = true);
  11140. bool SetVariable(const String&, bool);
  11141. bool SetVariable(const String&, const String&);
  11142. bool SetVariable(const String&, const XPathResultSet&);
  11143. bool SetVariable(const String&, float);
  11144. // Properties:
  11145. String query;
  11146. };
  11147. class XPathResultSet
  11148. {
  11149. // Properties:
  11150. /* readonly */
  11151. bool empty;
  11152. /* readonly */
  11153. XMLElement firstResult;
  11154. /* readonly */
  11155. uint size;
  11156. };
  11157. class Zone
  11158. {
  11159. // Methods:
  11160. void ApplyAttributes();
  11161. void DrawDebugGeometry(DebugRenderer, bool);
  11162. Variant GetAttribute(const String&) const;
  11163. ValueAnimation GetAttributeAnimation(const String&) const;
  11164. float GetAttributeAnimationSpeed(const String&) const;
  11165. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  11166. Variant GetAttributeDefault(const String&) const;
  11167. bool IsInView(Camera) const;
  11168. bool Load(File, bool = false);
  11169. bool Load(VectorBuffer&, bool = false);
  11170. bool LoadXML(const XMLElement&, bool = false);
  11171. void MarkNetworkUpdate() const;
  11172. void Remove();
  11173. void RemoveInstanceDefault();
  11174. void ResetToDefault();
  11175. bool Save(File) const;
  11176. bool Save(VectorBuffer&) const;
  11177. bool SaveXML(XMLElement&) const;
  11178. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11179. bool SetAttribute(const String&, const Variant&);
  11180. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  11181. void SetAttributeAnimationSpeed(const String&, float);
  11182. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11183. // Properties:
  11184. Color ambientColor;
  11185. /* readonly */
  11186. Color ambientEndColor;
  11187. bool ambientGradient;
  11188. /* readonly */
  11189. Color ambientStartColor;
  11190. bool animationEnabled;
  11191. /* readonly */
  11192. Array<Variant> attributeDefaults;
  11193. /* readonly */
  11194. Array<AttributeInfo> attributeInfos;
  11195. Array<Variant> attributes;
  11196. /* readonly */
  11197. StringHash baseType;
  11198. BoundingBox boundingBox;
  11199. bool castShadows;
  11200. /* readonly */
  11201. String category;
  11202. float drawDistance;
  11203. bool enabled;
  11204. /* readonly */
  11205. bool enabledEffective;
  11206. Color fogColor;
  11207. float fogEnd;
  11208. float fogHeight;
  11209. float fogHeightScale;
  11210. float fogStart;
  11211. bool heightFog;
  11212. /* readonly */
  11213. uint id;
  11214. /* readonly */
  11215. bool inView;
  11216. /* readonly */
  11217. Matrix3x4 inverseWorldTransform;
  11218. uint lightMask;
  11219. float lodBias;
  11220. uint maxLights;
  11221. /* readonly */
  11222. Node node;
  11223. /* readonly */
  11224. uint numAttributes;
  11225. ObjectAnimation objectAnimation;
  11226. bool occludee;
  11227. bool occluder;
  11228. bool override;
  11229. int priority;
  11230. /* readonly */
  11231. int refs;
  11232. float shadowDistance;
  11233. uint shadowMask;
  11234. bool temporary;
  11235. /* readonly */
  11236. StringHash type;
  11237. /* readonly */
  11238. String typeName;
  11239. uint viewMask;
  11240. /* readonly */
  11241. int weakRefs;
  11242. /* readonly */
  11243. BoundingBox worldBoundingBox;
  11244. uint zoneMask;
  11245. Texture zoneTexture;
  11246. };
  11247. // Enumerations
  11248. enum BlendMode
  11249. {
  11250. BLEND_REPLACE,
  11251. BLEND_ADD,
  11252. BLEND_MULTIPLY,
  11253. BLEND_ALPHA,
  11254. BLEND_ADDALPHA,
  11255. BLEND_PREMULALPHA,
  11256. BLEND_INVDESTALPHA,
  11257. BLEND_SUBTRACT,
  11258. BLEND_SUBTRACTALPHA,
  11259. };
  11260. enum BodyType2D
  11261. {
  11262. BT_STATIC,
  11263. BT_DYNAMIC,
  11264. BT_KINEMATIC,
  11265. };
  11266. enum CollisionEventMode
  11267. {
  11268. COLLISION_NEVER,
  11269. COLLISION_ACTIVE,
  11270. COLLISION_ALWAYS,
  11271. };
  11272. enum CompareMode
  11273. {
  11274. CMP_ALWAYS,
  11275. CMP_EQUAL,
  11276. CMP_NOTEQUAL,
  11277. CMP_LESS,
  11278. CMP_LESSEQUAL,
  11279. CMP_GREATER,
  11280. CMP_GREATEREQUAL,
  11281. };
  11282. enum ConstraintType
  11283. {
  11284. CONSTRAINT_POINT,
  11285. CONSTRAINT_HINGE,
  11286. CONSTRAINT_SLIDER,
  11287. CONSTRAINT_CONETWIST,
  11288. };
  11289. enum Corner
  11290. {
  11291. C_TOPLEFT,
  11292. C_TOPRIGHT,
  11293. C_BOTTOMLEFT,
  11294. C_BOTTOMRIGHT,
  11295. };
  11296. enum CreateMode
  11297. {
  11298. REPLICATED,
  11299. LOCAL,
  11300. };
  11301. enum CubeMapFace
  11302. {
  11303. FACE_POSITIVE_X,
  11304. FACE_NEGATIVE_X,
  11305. FACE_POSITIVE_Y,
  11306. FACE_NEGATIVE_Y,
  11307. FACE_POSITIVE_Z,
  11308. FACE_NEGATIVE_Z,
  11309. };
  11310. enum CullMode
  11311. {
  11312. CULL_NONE,
  11313. CULL_CCW,
  11314. CULL_CW,
  11315. };
  11316. enum CursorShape
  11317. {
  11318. CS_NORMAL,
  11319. CS_RESIZEVERTICAL,
  11320. CS_RESIZEDIAGONAL_TOPRIGHT,
  11321. CS_RESIZEHORIZONTAL,
  11322. CS_RESIZEDIAGONAL_TOPLEFT,
  11323. CS_ACCEPTDROP,
  11324. CS_REJECTDROP,
  11325. CS_BUSY,
  11326. };
  11327. enum DumpMode
  11328. {
  11329. DOXYGEN,
  11330. C_HEADER,
  11331. };
  11332. enum EmitterType
  11333. {
  11334. EMITTER_SPHERE,
  11335. EMITTER_BOX,
  11336. };
  11337. enum EmitterType2D
  11338. {
  11339. EMITTER_TYPE_GRAVITY,
  11340. EMITTER_TYPE_RADIAL,
  11341. };
  11342. enum FaceCameraMode
  11343. {
  11344. FC_NONE,
  11345. FC_ROTATE_XYZ,
  11346. FC_ROTATE_Y,
  11347. FC_LOOKAT_XYZ,
  11348. FC_LOOKAT_Y,
  11349. };
  11350. enum FileMode
  11351. {
  11352. FILE_READ,
  11353. FILE_WRITE,
  11354. FILE_READWRITE,
  11355. };
  11356. enum FillMode
  11357. {
  11358. FILL_SOLID,
  11359. FILL_WIREFRAME,
  11360. FILL_POINT,
  11361. };
  11362. enum FocusMode
  11363. {
  11364. FM_NOTFOCUSABLE,
  11365. FM_RESETFOCUS,
  11366. FM_FOCUSABLE,
  11367. FM_FOCUSABLE_DEFOCUSABLE,
  11368. };
  11369. enum HighlightMode
  11370. {
  11371. HM_NEVER,
  11372. HM_FOCUS,
  11373. HM_ALWAYS,
  11374. };
  11375. enum HorizontalAlignment
  11376. {
  11377. HA_LEFT,
  11378. HA_CENTER,
  11379. HA_RIGHT,
  11380. };
  11381. enum HttpRequestState
  11382. {
  11383. HTTP_INITIALIZING,
  11384. HTTP_ERROR,
  11385. HTTP_OPEN,
  11386. HTTP_CLOSED,
  11387. };
  11388. enum InterpMethod
  11389. {
  11390. IM_LINEAR,
  11391. IM_SPLINE,
  11392. };
  11393. enum InterpolationMode
  11394. {
  11395. BEZIER_CURVE,
  11396. };
  11397. enum Intersection
  11398. {
  11399. OUTSIDE,
  11400. INTERSECTS,
  11401. INSIDE,
  11402. };
  11403. enum JSONValueType
  11404. {
  11405. JSON_ANY,
  11406. JSON_OBJECT,
  11407. JSON_ARRAY,
  11408. };
  11409. enum LayoutMode
  11410. {
  11411. LM_FREE,
  11412. LM_HORIZONTAL,
  11413. LM_VERTICAL,
  11414. };
  11415. enum LightType
  11416. {
  11417. LIGHT_DIRECTIONAL,
  11418. LIGHT_SPOT,
  11419. LIGHT_POINT,
  11420. };
  11421. enum LoadMode
  11422. {
  11423. LOAD_RESOURCES_ONLY,
  11424. LOAD_SCENE,
  11425. LOAD_SCENE_AND_RESOURCES,
  11426. };
  11427. enum LoopMode2D
  11428. {
  11429. LM_DEFAULT,
  11430. LM_FORCE_LOOPED,
  11431. LM_FORCE_CLAMPED,
  11432. };
  11433. enum Orientation
  11434. {
  11435. O_HORIZONTAL,
  11436. O_VERTICAL,
  11437. };
  11438. enum Orientation2D
  11439. {
  11440. O_ORTHOGONAL,
  11441. O_ISOMETRIC,
  11442. O_STAGGERED,
  11443. };
  11444. enum PassLightingMode
  11445. {
  11446. LIGHTING_UNLIT,
  11447. LIGHTING_PERVERTEX,
  11448. LIGHTING_PERPIXEL,
  11449. };
  11450. enum PrimitiveType
  11451. {
  11452. TRIANGLE_LIST,
  11453. LINE_LIST,
  11454. POINT_LIST,
  11455. TRIANGLE_STRIP,
  11456. LINE_STRIP,
  11457. TRIANGLE_FAN,
  11458. };
  11459. enum RayQueryLevel
  11460. {
  11461. RAY_AABB,
  11462. RAY_OBB,
  11463. RAY_TRIANGLE,
  11464. };
  11465. enum RenderCommandSortMode
  11466. {
  11467. SORT_FRONTTOBACK,
  11468. SORT_BACKTOFRONT,
  11469. };
  11470. enum RenderCommandType
  11471. {
  11472. CMD_NONE,
  11473. CMD_CLEAR,
  11474. CMD_SCENEPASS,
  11475. CMD_QUAD,
  11476. CMD_FORWARDLIGHTS,
  11477. CMD_LIGHTVOLUMES,
  11478. };
  11479. enum RenderSurfaceUpdateMode
  11480. {
  11481. SURFACE_MANUALUPDATE,
  11482. SURFACE_UPDATEVISIBLE,
  11483. SURFACE_UPDATEALWAYS,
  11484. };
  11485. enum RenderTargetSizeMode
  11486. {
  11487. SIZE_ABSOLUTE,
  11488. SIZE_VIEWPORTDIVISOR,
  11489. SIZE_VIEWPORTMULTIPLIER,
  11490. };
  11491. enum ShapeType
  11492. {
  11493. SHAPE_BOX,
  11494. SHAPE_SPHERE,
  11495. SHAPE_STATICPLANE,
  11496. SHAPE_CYLINDER,
  11497. SHAPE_CAPSULE,
  11498. SHAPE_CONE,
  11499. SHAPE_TRIANGLEMESH,
  11500. SHAPE_CONVEXHULL,
  11501. SHAPE_TERRAIN,
  11502. };
  11503. enum SoundType
  11504. {
  11505. SOUND_EFFECT,
  11506. SOUND_AMBIENT,
  11507. SOUND_VOICE,
  11508. SOUND_MUSIC,
  11509. SOUND_MASTER,
  11510. };
  11511. enum TextEffect
  11512. {
  11513. TE_NONE,
  11514. TE_SHADOW,
  11515. TE_STROKE,
  11516. };
  11517. enum TextureAddressMode
  11518. {
  11519. ADDRESS_WRAP,
  11520. ADDRESS_MIRROR,
  11521. ADDRESS_CLAMP,
  11522. ADDRESS_BORDER,
  11523. };
  11524. enum TextureCoordinate
  11525. {
  11526. COORD_U,
  11527. COORD_V,
  11528. COORD_W,
  11529. };
  11530. enum TextureFilterMode
  11531. {
  11532. FILTER_NEAREST,
  11533. FILTER_BILINEAR,
  11534. FILTER_TRILINEAR,
  11535. FILTER_ANISOTROPIC,
  11536. FILTER_DEFAULT,
  11537. };
  11538. enum TextureUnit
  11539. {
  11540. TU_DIFFUSE,
  11541. TU_NORMAL,
  11542. TU_SPECULAR,
  11543. TU_EMISSIVE,
  11544. TU_ENVIRONMENT,
  11545. TU_LIGHTRAMP,
  11546. TU_LIGHTSHAPE,
  11547. TU_SHADOWMAP,
  11548. TU_FACESELECT,
  11549. TU_INDIRECTION,
  11550. TU_ALBEDOBUFFER,
  11551. TU_NORMALBUFFER,
  11552. TU_DEPTHBUFFER,
  11553. TU_LIGHTBUFFER,
  11554. TU_VOLUMEMAP,
  11555. TU_ZONE,
  11556. MAX_MATERIAL_TEXTURE_UNITS,
  11557. MAX_TEXTURE_UNITS,
  11558. };
  11559. enum TextureUsage
  11560. {
  11561. TEXTURE_STATIC,
  11562. TEXTURE_DYNAMIC,
  11563. TEXTURE_RENDERTARGET,
  11564. TEXTURE_DEPTHSTENCIL,
  11565. };
  11566. enum TileMapLayerType2D
  11567. {
  11568. LT_TILE_LAYER,
  11569. LT_OBJECT_GROUP,
  11570. LT_IMAGE_LAYER,
  11571. LT_INVALID,
  11572. };
  11573. enum TileObjectType2D
  11574. {
  11575. OT_RECTANGLE,
  11576. OT_ELLIPSE,
  11577. OT_POLYGON,
  11578. OT_POLYLINE,
  11579. OT_TILE,
  11580. OT_INVALID,
  11581. };
  11582. enum TransformSpace
  11583. {
  11584. TS_LOCAL,
  11585. TS_PARENT,
  11586. TS_WORLD,
  11587. };
  11588. enum TraversalMode
  11589. {
  11590. TM_BREADTH_FIRST,
  11591. TM_DEPTH_FIRST,
  11592. };
  11593. enum VariantType
  11594. {
  11595. VAR_NONE,
  11596. VAR_INT,
  11597. VAR_BOOL,
  11598. VAR_FLOAT,
  11599. VAR_VECTOR2,
  11600. VAR_VECTOR3,
  11601. VAR_VECTOR4,
  11602. VAR_QUATERNION,
  11603. VAR_COLOR,
  11604. VAR_STRING,
  11605. VAR_BUFFER,
  11606. VAR_VOIDPTR,
  11607. VAR_RESOURCEREF,
  11608. VAR_RESOURCEREFLIST,
  11609. VAR_VARIANTVECTOR,
  11610. VAR_VARIANTMAP,
  11611. VAR_INTRECT,
  11612. VAR_INTVECTOR2,
  11613. VAR_PTR,
  11614. VAR_MATRIX3,
  11615. VAR_MATRIX3X4,
  11616. VAR_MATRIX4,
  11617. };
  11618. enum VerticalAlignment
  11619. {
  11620. VA_TOP,
  11621. VA_CENTER,
  11622. VA_BOTTOM,
  11623. };
  11624. enum WrapMode
  11625. {
  11626. WM_LOOP,
  11627. WM_ONCE,
  11628. WM_CLAMP,
  11629. };
  11630. // Global functions
  11631. float Abs(float);
  11632. float Acos(float);
  11633. String AddTrailingSlash(const String&);
  11634. float Asin(float);
  11635. float Atan(float);
  11636. float Atan2(float, float);
  11637. float Ceil(float);
  11638. float Clamp(float, float, float);
  11639. int Clamp(int, int, int);
  11640. void ClearDelayedExecute(const String& = String ( ));
  11641. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  11642. float Cos(float);
  11643. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  11644. void DelayedExecute(float, bool, const String&);
  11645. void DelayedExecute(float, bool, const String&, const Array<Variant>);
  11646. bool Equals(float, float);
  11647. void ErrorDialog(const String&, const String&);
  11648. float Floor(float);
  11649. uint GetAlphaFormat();
  11650. Array<String> GetArguments();
  11651. String GetConsoleInput();
  11652. uint GetDepthStencilFormat();
  11653. Object GetEventSender();
  11654. String GetExtension(const String&, bool = true);
  11655. String GetFileName(const String&);
  11656. String GetFileNameAndExtension(const String&, bool = false);
  11657. uint GetFloat16Format();
  11658. uint GetFloat32Format();
  11659. uint GetFormat(const String&);
  11660. String GetInternalPath(const String&);
  11661. uint GetLuminanceAlphaFormat();
  11662. uint GetLuminanceFormat();
  11663. uint GetNumLogicalCPUs();
  11664. uint GetNumPhysicalCPUs();
  11665. Array<String> GetObjectCategories();
  11666. Array<String> GetObjectsByCategory(const String&);
  11667. String GetParentPath(const String&);
  11668. String GetPath(const String&);
  11669. String GetPlatform();
  11670. uint GetRG16Format();
  11671. uint GetRGBA16Format();
  11672. uint GetRGBAFloat16Format();
  11673. uint GetRGBAFloat32Format();
  11674. uint GetRGBAFormat();
  11675. uint GetRGBFormat();
  11676. uint GetRGFloat16Format();
  11677. uint GetRGFloat32Format();
  11678. uint GetRandomSeed();
  11679. String GetTextureUnitName(TextureUnit);
  11680. bool IsAbsolutePath(const String&);
  11681. bool IsAlpha(uint);
  11682. bool IsDigit(uint);
  11683. bool IsNaN(float);
  11684. bool IsPowerOfTwo(uint);
  11685. String Join(Array<String>&, const String&);
  11686. float Lerp(float, float, float);
  11687. void MarkNetworkUpdate();
  11688. float Max(float, float);
  11689. int Max(int, int);
  11690. float Min(float, float);
  11691. int Min(int, int);
  11692. float Mod(float, float);
  11693. uint NextPowerOfTwo(uint);
  11694. void OpenConsoleWindow();
  11695. float Pow(float, float);
  11696. void Print(bool, bool = false);
  11697. void Print(const String&, bool = false);
  11698. void Print(const Variant&, bool = false);
  11699. void Print(float, bool = false);
  11700. void Print(int, bool = false);
  11701. void Print(uint, bool = false);
  11702. void PrintCallStack(bool = false);
  11703. float Random();
  11704. float Random(float);
  11705. float Random(float, float);
  11706. int RandomInt();
  11707. int RandomInt(int);
  11708. int RandomInt(int, int);
  11709. float RandomNormal(float, float);
  11710. void Remove();
  11711. String RemoveTrailingSlash(const String&);
  11712. String ReplaceExtension(const String&, const String&);
  11713. uint SDBMHash(uint, uint8);
  11714. void SendEvent(const String&, VariantMap& = VariantMap ( ));
  11715. void SetRandomSeed(uint);
  11716. float Sign(float);
  11717. float Sin(float);
  11718. float SmoothStep(float, float, float);
  11719. float Sqrt(float);
  11720. const String& GetTypeName(StringHash);
  11721. void SubscribeToEvent(Object, const String&, const String&);
  11722. void SubscribeToEvent(const String&, const String&);
  11723. float Tan(float);
  11724. uint ToLower(uint);
  11725. String ToStringHex(int);
  11726. uint ToUpper(uint);
  11727. void UnsubscribeFromAllEvents();
  11728. void UnsubscribeFromAllEventsExcept(Array<String>);
  11729. void UnsubscribeFromEvent(Object, const String&);
  11730. void UnsubscribeFromEvent(const String&);
  11731. void UnsubscribeFromEvents(Object);
  11732. // Global properties
  11733. Audio audio;
  11734. ResourceCache cache;
  11735. Console console;
  11736. DebugHud debugHud;
  11737. DebugRenderer debugRenderer;
  11738. Engine engine;
  11739. FileSystem fileSystem;
  11740. Graphics graphics;
  11741. Input input;
  11742. Log log;
  11743. Network network;
  11744. Node node;
  11745. Octree octree;
  11746. PhysicsWorld physicsWorld;
  11747. PhysicsWorld2D physicsWorld2D;
  11748. Renderer renderer;
  11749. ResourceCache resourceCache;
  11750. Scene scene;
  11751. Script script;
  11752. ScriptFile scriptFile;
  11753. ScriptInstance self;
  11754. Time time;
  11755. UI ui;
  11756. // Global constants
  11757. uint AM_COMPONENTID;
  11758. uint AM_DEFAULT;
  11759. uint AM_FILE;
  11760. uint AM_LATESTDATA;
  11761. uint AM_NET;
  11762. uint AM_NODEID;
  11763. uint AM_NODEIDVECTOR;
  11764. uint AM_NOEDIT;
  11765. Color BLACK;
  11766. Color BLUE;
  11767. int CONTROLLER_AXIS_LEFTX;
  11768. int CONTROLLER_AXIS_LEFTY;
  11769. int CONTROLLER_AXIS_RIGHTX;
  11770. int CONTROLLER_AXIS_RIGHTY;
  11771. int CONTROLLER_AXIS_TRIGGERLEFT;
  11772. int CONTROLLER_AXIS_TRIGGERRIGHT;
  11773. int CONTROLLER_BUTTON_A;
  11774. int CONTROLLER_BUTTON_B;
  11775. int CONTROLLER_BUTTON_BACK;
  11776. int CONTROLLER_BUTTON_DPAD_DOWN;
  11777. int CONTROLLER_BUTTON_DPAD_LEFT;
  11778. int CONTROLLER_BUTTON_DPAD_RIGHT;
  11779. int CONTROLLER_BUTTON_DPAD_UP;
  11780. int CONTROLLER_BUTTON_GUIDE;
  11781. int CONTROLLER_BUTTON_LEFTSHOULDER;
  11782. int CONTROLLER_BUTTON_LEFTSTICK;
  11783. int CONTROLLER_BUTTON_RIGHTSHOULDER;
  11784. int CONTROLLER_BUTTON_RIGHTSTICK;
  11785. int CONTROLLER_BUTTON_START;
  11786. int CONTROLLER_BUTTON_X;
  11787. int CONTROLLER_BUTTON_Y;
  11788. Color CYAN;
  11789. uint DD_DISABLED;
  11790. uint DD_SOURCE;
  11791. uint DD_SOURCE_AND_TARGET;
  11792. uint DD_TARGET;
  11793. uint DEBUGHUD_SHOW_ALL;
  11794. uint DEBUGHUD_SHOW_MODE;
  11795. uint DEBUGHUD_SHOW_NONE;
  11796. uint DEBUGHUD_SHOW_PROFILER;
  11797. uint DEBUGHUD_SHOW_STATS;
  11798. uint DEFAULT_LIGHTMASK;
  11799. uint DEFAULT_VIEWMASK;
  11800. uint DRAWABLE_ANY;
  11801. uint DRAWABLE_GEOMETRY;
  11802. uint DRAWABLE_LIGHT;
  11803. uint DRAWABLE_PROXYGEOMETRY;
  11804. uint DRAWABLE_ZONE;
  11805. uint FIRST_LOCAL_ID;
  11806. uint FIRST_REPLICATED_ID;
  11807. Color GRAY;
  11808. Color GREEN;
  11809. int HAT_CENTER;
  11810. int HAT_DOWN;
  11811. int HAT_LEFT;
  11812. int HAT_RIGHT;
  11813. int HAT_UP;
  11814. int KEY_0;
  11815. int KEY_1;
  11816. int KEY_2;
  11817. int KEY_3;
  11818. int KEY_4;
  11819. int KEY_5;
  11820. int KEY_6;
  11821. int KEY_7;
  11822. int KEY_8;
  11823. int KEY_9;
  11824. int KEY_A;
  11825. int KEY_ALT;
  11826. int KEY_APPLICATION;
  11827. int KEY_B;
  11828. int KEY_BACKSPACE;
  11829. int KEY_C;
  11830. int KEY_CAPSLOCK;
  11831. int KEY_CTRL;
  11832. int KEY_D;
  11833. int KEY_DELETE;
  11834. int KEY_DOWN;
  11835. int KEY_E;
  11836. int KEY_END;
  11837. int KEY_ESC;
  11838. int KEY_F;
  11839. int KEY_F1;
  11840. int KEY_F10;
  11841. int KEY_F11;
  11842. int KEY_F12;
  11843. int KEY_F13;
  11844. int KEY_F14;
  11845. int KEY_F15;
  11846. int KEY_F16;
  11847. int KEY_F17;
  11848. int KEY_F18;
  11849. int KEY_F19;
  11850. int KEY_F2;
  11851. int KEY_F20;
  11852. int KEY_F21;
  11853. int KEY_F22;
  11854. int KEY_F23;
  11855. int KEY_F24;
  11856. int KEY_F3;
  11857. int KEY_F4;
  11858. int KEY_F5;
  11859. int KEY_F6;
  11860. int KEY_F7;
  11861. int KEY_F8;
  11862. int KEY_F9;
  11863. int KEY_G;
  11864. int KEY_GUI;
  11865. int KEY_H;
  11866. int KEY_HOME;
  11867. int KEY_I;
  11868. int KEY_INSERT;
  11869. int KEY_J;
  11870. int KEY_K;
  11871. int KEY_KP_0;
  11872. int KEY_KP_1;
  11873. int KEY_KP_2;
  11874. int KEY_KP_3;
  11875. int KEY_KP_4;
  11876. int KEY_KP_5;
  11877. int KEY_KP_6;
  11878. int KEY_KP_7;
  11879. int KEY_KP_8;
  11880. int KEY_KP_9;
  11881. int KEY_KP_DIVIDE;
  11882. int KEY_KP_ENTER;
  11883. int KEY_KP_MINUS;
  11884. int KEY_KP_MULTIPLY;
  11885. int KEY_KP_PERIOD;
  11886. int KEY_KP_PLUS;
  11887. int KEY_L;
  11888. int KEY_LALT;
  11889. int KEY_LCTRL;
  11890. int KEY_LEFT;
  11891. int KEY_LGUI;
  11892. int KEY_LSHIFT;
  11893. int KEY_M;
  11894. int KEY_N;
  11895. int KEY_NUMLOCKCLEAR;
  11896. int KEY_O;
  11897. int KEY_P;
  11898. int KEY_PAGEDOWN;
  11899. int KEY_PAGEUP;
  11900. int KEY_PAUSE;
  11901. int KEY_PRINTSCREEN;
  11902. int KEY_Q;
  11903. int KEY_R;
  11904. int KEY_RALT;
  11905. int KEY_RCTRL;
  11906. int KEY_RETURN;
  11907. int KEY_RETURN2;
  11908. int KEY_RGUI;
  11909. int KEY_RIGHT;
  11910. int KEY_RSHIFT;
  11911. int KEY_S;
  11912. int KEY_SCROLLLOCK;
  11913. int KEY_SELECT;
  11914. int KEY_SHIFT;
  11915. int KEY_SPACE;
  11916. int KEY_T;
  11917. int KEY_TAB;
  11918. int KEY_U;
  11919. int KEY_UP;
  11920. int KEY_V;
  11921. int KEY_W;
  11922. int KEY_X;
  11923. int KEY_Y;
  11924. int KEY_Z;
  11925. uint LAST_LOCAL_ID;
  11926. uint LAST_REPLICATED_ID;
  11927. int LOG_DEBUG;
  11928. int LOG_ERROR;
  11929. int LOG_INFO;
  11930. int LOG_NONE;
  11931. int LOG_WARNING;
  11932. Color MAGENTA;
  11933. int MOUSEB_LEFT;
  11934. int MOUSEB_MIDDLE;
  11935. int MOUSEB_RIGHT;
  11936. float M_DEGTORAD;
  11937. float M_DEGTORAD_2;
  11938. float M_EPSILON;
  11939. float M_HALF_PI;
  11940. float M_INFINITY;
  11941. float M_LARGE_EPSILON;
  11942. float M_LARGE_VALUE;
  11943. int M_MAX_INT;
  11944. uint M_MAX_UNSIGNED;
  11945. int M_MIN_INT;
  11946. uint M_MIN_UNSIGNED;
  11947. float M_PI;
  11948. float M_RADTODEG;
  11949. float PIXEL_SIZE;
  11950. int QUALITY_HIGH;
  11951. int QUALITY_LOW;
  11952. int QUALITY_MAX;
  11953. int QUALITY_MEDIUM;
  11954. int QUAL_ALT;
  11955. int QUAL_ANY;
  11956. int QUAL_CTRL;
  11957. int QUAL_SHIFT;
  11958. Color RED;
  11959. int SCANCODE_0;
  11960. int SCANCODE_1;
  11961. int SCANCODE_2;
  11962. int SCANCODE_3;
  11963. int SCANCODE_4;
  11964. int SCANCODE_5;
  11965. int SCANCODE_6;
  11966. int SCANCODE_7;
  11967. int SCANCODE_8;
  11968. int SCANCODE_9;
  11969. int SCANCODE_A;
  11970. int SCANCODE_AC_BACK;
  11971. int SCANCODE_AC_BOOKMARKS;
  11972. int SCANCODE_AC_FORWARD;
  11973. int SCANCODE_AC_HOME;
  11974. int SCANCODE_AC_REFRESH;
  11975. int SCANCODE_AC_SEARCH;
  11976. int SCANCODE_AC_STOP;
  11977. int SCANCODE_AGAIN;
  11978. int SCANCODE_ALT;
  11979. int SCANCODE_ALTERASE;
  11980. int SCANCODE_APOSTROPHE;
  11981. int SCANCODE_APP1;
  11982. int SCANCODE_APP2;
  11983. int SCANCODE_APPLICATION;
  11984. int SCANCODE_AUDIOMUTE;
  11985. int SCANCODE_AUDIONEXT;
  11986. int SCANCODE_AUDIOPLAY;
  11987. int SCANCODE_AUDIOPREV;
  11988. int SCANCODE_AUDIOSTOP;
  11989. int SCANCODE_B;
  11990. int SCANCODE_BACKSLASH;
  11991. int SCANCODE_BACKSPACE;
  11992. int SCANCODE_BRIGHTNESSDOWN;
  11993. int SCANCODE_BRIGHTNESSUP;
  11994. int SCANCODE_C;
  11995. int SCANCODE_CALCULATOR;
  11996. int SCANCODE_CANCEL;
  11997. int SCANCODE_CAPSLOCK;
  11998. int SCANCODE_CLEAR;
  11999. int SCANCODE_CLEARAGAIN;
  12000. int SCANCODE_COMMA;
  12001. int SCANCODE_COMPUTER;
  12002. int SCANCODE_COPY;
  12003. int SCANCODE_CRSEL;
  12004. int SCANCODE_CTRL;
  12005. int SCANCODE_CURRENCYSUBUNIT;
  12006. int SCANCODE_CURRENCYUNIT;
  12007. int SCANCODE_CUT;
  12008. int SCANCODE_D;
  12009. int SCANCODE_DECIMALSEPARATOR;
  12010. int SCANCODE_DELETE;
  12011. int SCANCODE_DISPLAYSWITCH;
  12012. int SCANCODE_DOWN;
  12013. int SCANCODE_E;
  12014. int SCANCODE_EJECT;
  12015. int SCANCODE_END;
  12016. int SCANCODE_EQUALS;
  12017. int SCANCODE_ESCAPE;
  12018. int SCANCODE_EXECUTE;
  12019. int SCANCODE_EXSEL;
  12020. int SCANCODE_F;
  12021. int SCANCODE_F1;
  12022. int SCANCODE_F10;
  12023. int SCANCODE_F11;
  12024. int SCANCODE_F12;
  12025. int SCANCODE_F13;
  12026. int SCANCODE_F14;
  12027. int SCANCODE_F15;
  12028. int SCANCODE_F16;
  12029. int SCANCODE_F17;
  12030. int SCANCODE_F18;
  12031. int SCANCODE_F19;
  12032. int SCANCODE_F2;
  12033. int SCANCODE_F20;
  12034. int SCANCODE_F21;
  12035. int SCANCODE_F22;
  12036. int SCANCODE_F23;
  12037. int SCANCODE_F24;
  12038. int SCANCODE_F3;
  12039. int SCANCODE_F4;
  12040. int SCANCODE_F5;
  12041. int SCANCODE_F6;
  12042. int SCANCODE_F7;
  12043. int SCANCODE_F8;
  12044. int SCANCODE_F9;
  12045. int SCANCODE_FIND;
  12046. int SCANCODE_G;
  12047. int SCANCODE_GRAVE;
  12048. int SCANCODE_GUI;
  12049. int SCANCODE_H;
  12050. int SCANCODE_HELP;
  12051. int SCANCODE_HOME;
  12052. int SCANCODE_I;
  12053. int SCANCODE_INSERT;
  12054. int SCANCODE_INTERNATIONAL1;
  12055. int SCANCODE_INTERNATIONAL2;
  12056. int SCANCODE_INTERNATIONAL3;
  12057. int SCANCODE_INTERNATIONAL4;
  12058. int SCANCODE_INTERNATIONAL5;
  12059. int SCANCODE_INTERNATIONAL6;
  12060. int SCANCODE_INTERNATIONAL7;
  12061. int SCANCODE_INTERNATIONAL8;
  12062. int SCANCODE_INTERNATIONAL9;
  12063. int SCANCODE_J;
  12064. int SCANCODE_K;
  12065. int SCANCODE_KBDILLUMDOWN;
  12066. int SCANCODE_KBDILLUMTOGGLE;
  12067. int SCANCODE_KBDILLUMUP;
  12068. int SCANCODE_KP_0;
  12069. int SCANCODE_KP_00;
  12070. int SCANCODE_KP_000;
  12071. int SCANCODE_KP_1;
  12072. int SCANCODE_KP_2;
  12073. int SCANCODE_KP_3;
  12074. int SCANCODE_KP_4;
  12075. int SCANCODE_KP_5;
  12076. int SCANCODE_KP_6;
  12077. int SCANCODE_KP_7;
  12078. int SCANCODE_KP_8;
  12079. int SCANCODE_KP_9;
  12080. int SCANCODE_KP_A;
  12081. int SCANCODE_KP_AMPERSAND;
  12082. int SCANCODE_KP_AT;
  12083. int SCANCODE_KP_B;
  12084. int SCANCODE_KP_BACKSPACE;
  12085. int SCANCODE_KP_BINARY;
  12086. int SCANCODE_KP_C;
  12087. int SCANCODE_KP_CLEAR;
  12088. int SCANCODE_KP_CLEARENTRY;
  12089. int SCANCODE_KP_COLON;
  12090. int SCANCODE_KP_COMMA;
  12091. int SCANCODE_KP_D;
  12092. int SCANCODE_KP_DBLAMPERSAND;
  12093. int SCANCODE_KP_DBLVERTICALBAR;
  12094. int SCANCODE_KP_DECIMAL;
  12095. int SCANCODE_KP_DIVIDE;
  12096. int SCANCODE_KP_E;
  12097. int SCANCODE_KP_ENTER;
  12098. int SCANCODE_KP_EQUALS;
  12099. int SCANCODE_KP_EQUALSAS400;
  12100. int SCANCODE_KP_EXCLAM;
  12101. int SCANCODE_KP_F;
  12102. int SCANCODE_KP_GREATER;
  12103. int SCANCODE_KP_HASH;
  12104. int SCANCODE_KP_HEXADECIMAL;
  12105. int SCANCODE_KP_LEFTBRACE;
  12106. int SCANCODE_KP_LEFTPAREN;
  12107. int SCANCODE_KP_LESS;
  12108. int SCANCODE_KP_MEMADD;
  12109. int SCANCODE_KP_MEMCLEAR;
  12110. int SCANCODE_KP_MEMDIVIDE;
  12111. int SCANCODE_KP_MEMMULTIPLY;
  12112. int SCANCODE_KP_MEMRECALL;
  12113. int SCANCODE_KP_MEMSTORE;
  12114. int SCANCODE_KP_MEMSUBTRACT;
  12115. int SCANCODE_KP_MINUS;
  12116. int SCANCODE_KP_MULTIPLY;
  12117. int SCANCODE_KP_OCTAL;
  12118. int SCANCODE_KP_PERCENT;
  12119. int SCANCODE_KP_PERIOD;
  12120. int SCANCODE_KP_PLUS;
  12121. int SCANCODE_KP_PLUSMINUS;
  12122. int SCANCODE_KP_POWER;
  12123. int SCANCODE_KP_RIGHTBRACE;
  12124. int SCANCODE_KP_RIGHTPAREN;
  12125. int SCANCODE_KP_SPACE;
  12126. int SCANCODE_KP_TAB;
  12127. int SCANCODE_KP_VERTICALBAR;
  12128. int SCANCODE_KP_XOR;
  12129. int SCANCODE_L;
  12130. int SCANCODE_LALT;
  12131. int SCANCODE_LANG1;
  12132. int SCANCODE_LANG2;
  12133. int SCANCODE_LANG3;
  12134. int SCANCODE_LANG4;
  12135. int SCANCODE_LANG5;
  12136. int SCANCODE_LANG6;
  12137. int SCANCODE_LANG7;
  12138. int SCANCODE_LANG8;
  12139. int SCANCODE_LANG9;
  12140. int SCANCODE_LCTRL;
  12141. int SCANCODE_LEFT;
  12142. int SCANCODE_LEFTBRACKET;
  12143. int SCANCODE_LGUI;
  12144. int SCANCODE_LSHIFT;
  12145. int SCANCODE_M;
  12146. int SCANCODE_MAIL;
  12147. int SCANCODE_MEDIASELECT;
  12148. int SCANCODE_MENU;
  12149. int SCANCODE_MINUS;
  12150. int SCANCODE_MODE;
  12151. int SCANCODE_MUTE;
  12152. int SCANCODE_N;
  12153. int SCANCODE_NONUSBACKSLASH;
  12154. int SCANCODE_NONUSHASH;
  12155. int SCANCODE_NUMLOCKCLEAR;
  12156. int SCANCODE_O;
  12157. int SCANCODE_OPER;
  12158. int SCANCODE_OUT;
  12159. int SCANCODE_P;
  12160. int SCANCODE_PAGEDOWN;
  12161. int SCANCODE_PAGEUP;
  12162. int SCANCODE_PASTE;
  12163. int SCANCODE_PAUSE;
  12164. int SCANCODE_PERIOD;
  12165. int SCANCODE_POWER;
  12166. int SCANCODE_PRINTSCREEN;
  12167. int SCANCODE_PRIOR;
  12168. int SCANCODE_Q;
  12169. int SCANCODE_R;
  12170. int SCANCODE_RALT;
  12171. int SCANCODE_RCTRL;
  12172. int SCANCODE_RETURN;
  12173. int SCANCODE_RETURN2;
  12174. int SCANCODE_RGUI;
  12175. int SCANCODE_RIGHT;
  12176. int SCANCODE_RIGHTBRACKET;
  12177. int SCANCODE_RSHIFT;
  12178. int SCANCODE_S;
  12179. int SCANCODE_SCROLLLOCK;
  12180. int SCANCODE_SELECT;
  12181. int SCANCODE_SEMICOLON;
  12182. int SCANCODE_SEPARATOR;
  12183. int SCANCODE_SHIFT;
  12184. int SCANCODE_SLASH;
  12185. int SCANCODE_SLEEP;
  12186. int SCANCODE_SPACE;
  12187. int SCANCODE_STOP;
  12188. int SCANCODE_SYSREQ;
  12189. int SCANCODE_T;
  12190. int SCANCODE_TAB;
  12191. int SCANCODE_THOUSANDSSEPARATOR;
  12192. int SCANCODE_U;
  12193. int SCANCODE_UNDO;
  12194. int SCANCODE_UNKNOWN;
  12195. int SCANCODE_UP;
  12196. int SCANCODE_V;
  12197. int SCANCODE_VOLUMEDOWN;
  12198. int SCANCODE_VOLUMEUP;
  12199. int SCANCODE_W;
  12200. int SCANCODE_WWW;
  12201. int SCANCODE_X;
  12202. int SCANCODE_Y;
  12203. int SCANCODE_Z;
  12204. uint SCAN_DIRS;
  12205. uint SCAN_FILES;
  12206. uint SCAN_HIDDEN;
  12207. int SHADOWQUALITY_HIGH_16BIT;
  12208. int SHADOWQUALITY_HIGH_24BIT;
  12209. int SHADOWQUALITY_LOW_16BIT;
  12210. int SHADOWQUALITY_LOW_24BIT;
  12211. Color TRANSPARENT;
  12212. uint VO_DISABLE_OCCLUSION;
  12213. uint VO_DISABLE_SHADOWS;
  12214. uint VO_LOW_MATERIAL_QUALITY;
  12215. uint VO_NONE;
  12216. Color WHITE;
  12217. Color YELLOW;