UILuaAPI.cpp 439 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099
  1. /*
  2. ** Lua binding: UI
  3. ** Generated automatically by tolua++-1.0.92 on 07/02/13 20:27:51.
  4. */
  5. //
  6. // Copyright (c) 2008-2013 the Urho3D project.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall be included in
  16. // all copies or substantial portions of the Software.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #include "Precompiled.h"
  27. #include "tolua++.h"
  28. /* Exported function */
  29. TOLUA_API int tolua_UI_open (lua_State* tolua_S);
  30. #define TOLUA_RELEASE
  31. #include "UILuaAPI.h"
  32. #include "BorderImage.h"
  33. #include "Button.h"
  34. #include "CheckBox.h"
  35. #include "Cursor.h"
  36. #include "DropDownList.h"
  37. #include "FileSelector.h"
  38. #include "Font.h"
  39. #include "LineEdit.h"
  40. #include "ListView.h"
  41. #include "Menu.h"
  42. #include "ScrollBar.h"
  43. #include "ScrollView.h"
  44. #include "Slider.h"
  45. #include "Sprite.h"
  46. #include "Text.h"
  47. #include "Text3D.h"
  48. #include "UI.h"
  49. #include "UIElement.h"
  50. #include "Window.h"
  51. using namespace Urho3D;
  52. #pragma warning(disable:4800)
  53. /* function to release collected object via destructor */
  54. #ifdef __cplusplus
  55. static int tolua_collect_IntVector2 (lua_State* tolua_S)
  56. {
  57. IntVector2* self = (IntVector2*) tolua_tousertype(tolua_S,1,0);
  58. Mtolua_delete(self);
  59. return 0;
  60. }
  61. static int tolua_collect_IntRect (lua_State* tolua_S)
  62. {
  63. IntRect* self = (IntRect*) tolua_tousertype(tolua_S,1,0);
  64. Mtolua_delete(self);
  65. return 0;
  66. }
  67. static int tolua_collect_ResourceRef (lua_State* tolua_S)
  68. {
  69. ResourceRef* self = (ResourceRef*) tolua_tousertype(tolua_S,1,0);
  70. Mtolua_delete(self);
  71. return 0;
  72. }
  73. #endif
  74. /* function to register type */
  75. static void tolua_reg_types (lua_State* tolua_S)
  76. {
  77. tolua_usertype(tolua_S,"Matrix3x4");
  78. tolua_usertype(tolua_S,"FileSelector");
  79. tolua_usertype(tolua_S,"Vector<String>");
  80. tolua_usertype(tolua_S,"FileSelectorEntry");
  81. tolua_usertype(tolua_S,"ListView");
  82. tolua_usertype(tolua_S,"Texture");
  83. tolua_usertype(tolua_S,"IntRect");
  84. tolua_usertype(tolua_S,"CheckBox");
  85. tolua_usertype(tolua_S,"Sprite");
  86. tolua_usertype(tolua_S,"Object");
  87. tolua_usertype(tolua_S,"ScrollBar");
  88. tolua_usertype(tolua_S,"IntVector2");
  89. tolua_usertype(tolua_S,"String");
  90. tolua_usertype(tolua_S,"Resource");
  91. tolua_usertype(tolua_S,"Color");
  92. tolua_usertype(tolua_S,"Window");
  93. tolua_usertype(tolua_S,"Cursor");
  94. tolua_usertype(tolua_S,"Image");
  95. tolua_usertype(tolua_S,"Drawable");
  96. tolua_usertype(tolua_S,"Variant");
  97. tolua_usertype(tolua_S,"Button");
  98. tolua_usertype(tolua_S,"Material");
  99. tolua_usertype(tolua_S,"ShortStringHash");
  100. tolua_usertype(tolua_S,"ScrollView");
  101. tolua_usertype(tolua_S,"XMLElement");
  102. tolua_usertype(tolua_S,"Slider");
  103. tolua_usertype(tolua_S,"UIElement");
  104. tolua_usertype(tolua_S,"Serializer");
  105. tolua_usertype(tolua_S,"UI");
  106. tolua_usertype(tolua_S,"Text");
  107. tolua_usertype(tolua_S,"XMLFile");
  108. tolua_usertype(tolua_S,"Text3D");
  109. tolua_usertype(tolua_S,"ResourceRef");
  110. tolua_usertype(tolua_S,"Font");
  111. tolua_usertype(tolua_S,"Vector2");
  112. tolua_usertype(tolua_S,"DropDownList");
  113. tolua_usertype(tolua_S,"LineEdit");
  114. tolua_usertype(tolua_S,"Serializable");
  115. tolua_usertype(tolua_S,"Menu");
  116. tolua_usertype(tolua_S,"BorderImage");
  117. }
  118. /* method: SetTexture of class BorderImage */
  119. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetTexture00
  120. static int tolua_UI_BorderImage_SetTexture00(lua_State* tolua_S)
  121. {
  122. #ifndef TOLUA_RELEASE
  123. tolua_Error tolua_err;
  124. if (
  125. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  126. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  127. !tolua_isnoobj(tolua_S,3,&tolua_err)
  128. )
  129. goto tolua_lerror;
  130. else
  131. #endif
  132. {
  133. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  134. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  135. #ifndef TOLUA_RELEASE
  136. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTexture'", NULL);
  137. #endif
  138. {
  139. self->SetTexture(texture);
  140. }
  141. }
  142. return 0;
  143. #ifndef TOLUA_RELEASE
  144. tolua_lerror:
  145. tolua_error(tolua_S,"#ferror in function 'SetTexture'.",&tolua_err);
  146. return 0;
  147. #endif
  148. }
  149. #endif //#ifndef TOLUA_DISABLE
  150. /* method: SetImageRect of class BorderImage */
  151. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetImageRect00
  152. static int tolua_UI_BorderImage_SetImageRect00(lua_State* tolua_S)
  153. {
  154. #ifndef TOLUA_RELEASE
  155. tolua_Error tolua_err;
  156. if (
  157. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  158. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  159. !tolua_isnoobj(tolua_S,3,&tolua_err)
  160. )
  161. goto tolua_lerror;
  162. else
  163. #endif
  164. {
  165. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  166. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  167. #ifndef TOLUA_RELEASE
  168. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetImageRect'", NULL);
  169. #endif
  170. {
  171. self->SetImageRect(*rect);
  172. }
  173. }
  174. return 0;
  175. #ifndef TOLUA_RELEASE
  176. tolua_lerror:
  177. tolua_error(tolua_S,"#ferror in function 'SetImageRect'.",&tolua_err);
  178. return 0;
  179. #endif
  180. }
  181. #endif //#ifndef TOLUA_DISABLE
  182. /* method: SetFullImageRect of class BorderImage */
  183. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetFullImageRect00
  184. static int tolua_UI_BorderImage_SetFullImageRect00(lua_State* tolua_S)
  185. {
  186. #ifndef TOLUA_RELEASE
  187. tolua_Error tolua_err;
  188. if (
  189. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  190. !tolua_isnoobj(tolua_S,2,&tolua_err)
  191. )
  192. goto tolua_lerror;
  193. else
  194. #endif
  195. {
  196. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  197. #ifndef TOLUA_RELEASE
  198. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFullImageRect'", NULL);
  199. #endif
  200. {
  201. self->SetFullImageRect();
  202. }
  203. }
  204. return 0;
  205. #ifndef TOLUA_RELEASE
  206. tolua_lerror:
  207. tolua_error(tolua_S,"#ferror in function 'SetFullImageRect'.",&tolua_err);
  208. return 0;
  209. #endif
  210. }
  211. #endif //#ifndef TOLUA_DISABLE
  212. /* method: SetBorder of class BorderImage */
  213. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetBorder00
  214. static int tolua_UI_BorderImage_SetBorder00(lua_State* tolua_S)
  215. {
  216. #ifndef TOLUA_RELEASE
  217. tolua_Error tolua_err;
  218. if (
  219. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  220. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  221. !tolua_isnoobj(tolua_S,3,&tolua_err)
  222. )
  223. goto tolua_lerror;
  224. else
  225. #endif
  226. {
  227. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  228. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  229. #ifndef TOLUA_RELEASE
  230. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBorder'", NULL);
  231. #endif
  232. {
  233. self->SetBorder(*rect);
  234. }
  235. }
  236. return 0;
  237. #ifndef TOLUA_RELEASE
  238. tolua_lerror:
  239. tolua_error(tolua_S,"#ferror in function 'SetBorder'.",&tolua_err);
  240. return 0;
  241. #endif
  242. }
  243. #endif //#ifndef TOLUA_DISABLE
  244. /* method: SetHoverOffset of class BorderImage */
  245. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetHoverOffset00
  246. static int tolua_UI_BorderImage_SetHoverOffset00(lua_State* tolua_S)
  247. {
  248. #ifndef TOLUA_RELEASE
  249. tolua_Error tolua_err;
  250. if (
  251. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  252. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  253. !tolua_isnoobj(tolua_S,3,&tolua_err)
  254. )
  255. goto tolua_lerror;
  256. else
  257. #endif
  258. {
  259. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  260. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  261. #ifndef TOLUA_RELEASE
  262. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverOffset'", NULL);
  263. #endif
  264. {
  265. self->SetHoverOffset(*offset);
  266. }
  267. }
  268. return 0;
  269. #ifndef TOLUA_RELEASE
  270. tolua_lerror:
  271. tolua_error(tolua_S,"#ferror in function 'SetHoverOffset'.",&tolua_err);
  272. return 0;
  273. #endif
  274. }
  275. #endif //#ifndef TOLUA_DISABLE
  276. /* method: SetHoverOffset of class BorderImage */
  277. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetHoverOffset01
  278. static int tolua_UI_BorderImage_SetHoverOffset01(lua_State* tolua_S)
  279. {
  280. tolua_Error tolua_err;
  281. if (
  282. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  283. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  284. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  285. !tolua_isnoobj(tolua_S,4,&tolua_err)
  286. )
  287. goto tolua_lerror;
  288. else
  289. {
  290. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  291. int x = ((int) tolua_tonumber(tolua_S,2,0));
  292. int y = ((int) tolua_tonumber(tolua_S,3,0));
  293. #ifndef TOLUA_RELEASE
  294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverOffset'", NULL);
  295. #endif
  296. {
  297. self->SetHoverOffset(x,y);
  298. }
  299. }
  300. return 0;
  301. tolua_lerror:
  302. return tolua_UI_BorderImage_SetHoverOffset00(tolua_S);
  303. }
  304. #endif //#ifndef TOLUA_DISABLE
  305. /* method: SetBlendMode of class BorderImage */
  306. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetBlendMode00
  307. static int tolua_UI_BorderImage_SetBlendMode00(lua_State* tolua_S)
  308. {
  309. #ifndef TOLUA_RELEASE
  310. tolua_Error tolua_err;
  311. if (
  312. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  313. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  314. !tolua_isnoobj(tolua_S,3,&tolua_err)
  315. )
  316. goto tolua_lerror;
  317. else
  318. #endif
  319. {
  320. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  321. BlendMode mode = ((BlendMode) (int) tolua_tonumber(tolua_S,2,0));
  322. #ifndef TOLUA_RELEASE
  323. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBlendMode'", NULL);
  324. #endif
  325. {
  326. self->SetBlendMode(mode);
  327. }
  328. }
  329. return 0;
  330. #ifndef TOLUA_RELEASE
  331. tolua_lerror:
  332. tolua_error(tolua_S,"#ferror in function 'SetBlendMode'.",&tolua_err);
  333. return 0;
  334. #endif
  335. }
  336. #endif //#ifndef TOLUA_DISABLE
  337. /* method: SetTiled of class BorderImage */
  338. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_SetTiled00
  339. static int tolua_UI_BorderImage_SetTiled00(lua_State* tolua_S)
  340. {
  341. #ifndef TOLUA_RELEASE
  342. tolua_Error tolua_err;
  343. if (
  344. !tolua_isusertype(tolua_S,1,"BorderImage",0,&tolua_err) ||
  345. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  346. !tolua_isnoobj(tolua_S,3,&tolua_err)
  347. )
  348. goto tolua_lerror;
  349. else
  350. #endif
  351. {
  352. BorderImage* self = (BorderImage*) tolua_tousertype(tolua_S,1,0);
  353. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  354. #ifndef TOLUA_RELEASE
  355. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTiled'", NULL);
  356. #endif
  357. {
  358. self->SetTiled(enable);
  359. }
  360. }
  361. return 0;
  362. #ifndef TOLUA_RELEASE
  363. tolua_lerror:
  364. tolua_error(tolua_S,"#ferror in function 'SetTiled'.",&tolua_err);
  365. return 0;
  366. #endif
  367. }
  368. #endif //#ifndef TOLUA_DISABLE
  369. /* method: GetTexture of class BorderImage */
  370. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetTexture00
  371. static int tolua_UI_BorderImage_GetTexture00(lua_State* tolua_S)
  372. {
  373. #ifndef TOLUA_RELEASE
  374. tolua_Error tolua_err;
  375. if (
  376. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  377. !tolua_isnoobj(tolua_S,2,&tolua_err)
  378. )
  379. goto tolua_lerror;
  380. else
  381. #endif
  382. {
  383. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  384. #ifndef TOLUA_RELEASE
  385. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  386. #endif
  387. {
  388. Texture* tolua_ret = (Texture*) self->GetTexture();
  389. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  390. }
  391. }
  392. return 1;
  393. #ifndef TOLUA_RELEASE
  394. tolua_lerror:
  395. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  396. return 0;
  397. #endif
  398. }
  399. #endif //#ifndef TOLUA_DISABLE
  400. /* method: GetImageRect of class BorderImage */
  401. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetImageRect00
  402. static int tolua_UI_BorderImage_GetImageRect00(lua_State* tolua_S)
  403. {
  404. #ifndef TOLUA_RELEASE
  405. tolua_Error tolua_err;
  406. if (
  407. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  408. !tolua_isnoobj(tolua_S,2,&tolua_err)
  409. )
  410. goto tolua_lerror;
  411. else
  412. #endif
  413. {
  414. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  415. #ifndef TOLUA_RELEASE
  416. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetImageRect'", NULL);
  417. #endif
  418. {
  419. const IntRect& tolua_ret = (const IntRect&) self->GetImageRect();
  420. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  421. }
  422. }
  423. return 1;
  424. #ifndef TOLUA_RELEASE
  425. tolua_lerror:
  426. tolua_error(tolua_S,"#ferror in function 'GetImageRect'.",&tolua_err);
  427. return 0;
  428. #endif
  429. }
  430. #endif //#ifndef TOLUA_DISABLE
  431. /* method: GetBorder of class BorderImage */
  432. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetBorder00
  433. static int tolua_UI_BorderImage_GetBorder00(lua_State* tolua_S)
  434. {
  435. #ifndef TOLUA_RELEASE
  436. tolua_Error tolua_err;
  437. if (
  438. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  439. !tolua_isnoobj(tolua_S,2,&tolua_err)
  440. )
  441. goto tolua_lerror;
  442. else
  443. #endif
  444. {
  445. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  446. #ifndef TOLUA_RELEASE
  447. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBorder'", NULL);
  448. #endif
  449. {
  450. const IntRect& tolua_ret = (const IntRect&) self->GetBorder();
  451. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  452. }
  453. }
  454. return 1;
  455. #ifndef TOLUA_RELEASE
  456. tolua_lerror:
  457. tolua_error(tolua_S,"#ferror in function 'GetBorder'.",&tolua_err);
  458. return 0;
  459. #endif
  460. }
  461. #endif //#ifndef TOLUA_DISABLE
  462. /* method: GetHoverOffset of class BorderImage */
  463. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetHoverOffset00
  464. static int tolua_UI_BorderImage_GetHoverOffset00(lua_State* tolua_S)
  465. {
  466. #ifndef TOLUA_RELEASE
  467. tolua_Error tolua_err;
  468. if (
  469. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  470. !tolua_isnoobj(tolua_S,2,&tolua_err)
  471. )
  472. goto tolua_lerror;
  473. else
  474. #endif
  475. {
  476. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  477. #ifndef TOLUA_RELEASE
  478. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHoverOffset'", NULL);
  479. #endif
  480. {
  481. const IntVector2& tolua_ret = (const IntVector2&) self->GetHoverOffset();
  482. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  483. }
  484. }
  485. return 1;
  486. #ifndef TOLUA_RELEASE
  487. tolua_lerror:
  488. tolua_error(tolua_S,"#ferror in function 'GetHoverOffset'.",&tolua_err);
  489. return 0;
  490. #endif
  491. }
  492. #endif //#ifndef TOLUA_DISABLE
  493. /* method: GetBlendMode of class BorderImage */
  494. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_GetBlendMode00
  495. static int tolua_UI_BorderImage_GetBlendMode00(lua_State* tolua_S)
  496. {
  497. #ifndef TOLUA_RELEASE
  498. tolua_Error tolua_err;
  499. if (
  500. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  501. !tolua_isnoobj(tolua_S,2,&tolua_err)
  502. )
  503. goto tolua_lerror;
  504. else
  505. #endif
  506. {
  507. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  508. #ifndef TOLUA_RELEASE
  509. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBlendMode'", NULL);
  510. #endif
  511. {
  512. BlendMode tolua_ret = (BlendMode) self->GetBlendMode();
  513. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  514. }
  515. }
  516. return 1;
  517. #ifndef TOLUA_RELEASE
  518. tolua_lerror:
  519. tolua_error(tolua_S,"#ferror in function 'GetBlendMode'.",&tolua_err);
  520. return 0;
  521. #endif
  522. }
  523. #endif //#ifndef TOLUA_DISABLE
  524. /* method: IsTiled of class BorderImage */
  525. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage_IsTiled00
  526. static int tolua_UI_BorderImage_IsTiled00(lua_State* tolua_S)
  527. {
  528. #ifndef TOLUA_RELEASE
  529. tolua_Error tolua_err;
  530. if (
  531. !tolua_isusertype(tolua_S,1,"const BorderImage",0,&tolua_err) ||
  532. !tolua_isnoobj(tolua_S,2,&tolua_err)
  533. )
  534. goto tolua_lerror;
  535. else
  536. #endif
  537. {
  538. const BorderImage* self = (const BorderImage*) tolua_tousertype(tolua_S,1,0);
  539. #ifndef TOLUA_RELEASE
  540. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTiled'", NULL);
  541. #endif
  542. {
  543. bool tolua_ret = (bool) self->IsTiled();
  544. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  545. }
  546. }
  547. return 1;
  548. #ifndef TOLUA_RELEASE
  549. tolua_lerror:
  550. tolua_error(tolua_S,"#ferror in function 'IsTiled'.",&tolua_err);
  551. return 0;
  552. #endif
  553. }
  554. #endif //#ifndef TOLUA_DISABLE
  555. /* function: NewBorderImage */
  556. #ifndef TOLUA_DISABLE_tolua_UI_BorderImage00
  557. static int tolua_UI_BorderImage00(lua_State* tolua_S)
  558. {
  559. #ifndef TOLUA_RELEASE
  560. tolua_Error tolua_err;
  561. if (
  562. !tolua_isnoobj(tolua_S,1,&tolua_err)
  563. )
  564. goto tolua_lerror;
  565. else
  566. #endif
  567. {
  568. {
  569. BorderImage* tolua_ret = (BorderImage*) NewBorderImage();
  570. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  571. }
  572. }
  573. return 1;
  574. #ifndef TOLUA_RELEASE
  575. tolua_lerror:
  576. tolua_error(tolua_S,"#ferror in function 'BorderImage'.",&tolua_err);
  577. return 0;
  578. #endif
  579. }
  580. #endif //#ifndef TOLUA_DISABLE
  581. /* method: SetPressedOffset of class Button */
  582. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetPressedOffset00
  583. static int tolua_UI_Button_SetPressedOffset00(lua_State* tolua_S)
  584. {
  585. #ifndef TOLUA_RELEASE
  586. tolua_Error tolua_err;
  587. if (
  588. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  589. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  590. !tolua_isnoobj(tolua_S,3,&tolua_err)
  591. )
  592. goto tolua_lerror;
  593. else
  594. #endif
  595. {
  596. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  597. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  598. #ifndef TOLUA_RELEASE
  599. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPressedOffset'", NULL);
  600. #endif
  601. {
  602. self->SetPressedOffset(*offset);
  603. }
  604. }
  605. return 0;
  606. #ifndef TOLUA_RELEASE
  607. tolua_lerror:
  608. tolua_error(tolua_S,"#ferror in function 'SetPressedOffset'.",&tolua_err);
  609. return 0;
  610. #endif
  611. }
  612. #endif //#ifndef TOLUA_DISABLE
  613. /* method: SetPressedOffset of class Button */
  614. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetPressedOffset01
  615. static int tolua_UI_Button_SetPressedOffset01(lua_State* tolua_S)
  616. {
  617. tolua_Error tolua_err;
  618. if (
  619. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  620. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  621. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  622. !tolua_isnoobj(tolua_S,4,&tolua_err)
  623. )
  624. goto tolua_lerror;
  625. else
  626. {
  627. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  628. int x = ((int) tolua_tonumber(tolua_S,2,0));
  629. int y = ((int) tolua_tonumber(tolua_S,3,0));
  630. #ifndef TOLUA_RELEASE
  631. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPressedOffset'", NULL);
  632. #endif
  633. {
  634. self->SetPressedOffset(x,y);
  635. }
  636. }
  637. return 0;
  638. tolua_lerror:
  639. return tolua_UI_Button_SetPressedOffset00(tolua_S);
  640. }
  641. #endif //#ifndef TOLUA_DISABLE
  642. /* method: SetLabelOffset of class Button */
  643. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetLabelOffset00
  644. static int tolua_UI_Button_SetLabelOffset00(lua_State* tolua_S)
  645. {
  646. #ifndef TOLUA_RELEASE
  647. tolua_Error tolua_err;
  648. if (
  649. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  650. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  651. !tolua_isnoobj(tolua_S,3,&tolua_err)
  652. )
  653. goto tolua_lerror;
  654. else
  655. #endif
  656. {
  657. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  658. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  659. #ifndef TOLUA_RELEASE
  660. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLabelOffset'", NULL);
  661. #endif
  662. {
  663. self->SetLabelOffset(*offset);
  664. }
  665. }
  666. return 0;
  667. #ifndef TOLUA_RELEASE
  668. tolua_lerror:
  669. tolua_error(tolua_S,"#ferror in function 'SetLabelOffset'.",&tolua_err);
  670. return 0;
  671. #endif
  672. }
  673. #endif //#ifndef TOLUA_DISABLE
  674. /* method: SetLabelOffset of class Button */
  675. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetLabelOffset01
  676. static int tolua_UI_Button_SetLabelOffset01(lua_State* tolua_S)
  677. {
  678. tolua_Error tolua_err;
  679. if (
  680. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  681. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  682. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  683. !tolua_isnoobj(tolua_S,4,&tolua_err)
  684. )
  685. goto tolua_lerror;
  686. else
  687. {
  688. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  689. int x = ((int) tolua_tonumber(tolua_S,2,0));
  690. int y = ((int) tolua_tonumber(tolua_S,3,0));
  691. #ifndef TOLUA_RELEASE
  692. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLabelOffset'", NULL);
  693. #endif
  694. {
  695. self->SetLabelOffset(x,y);
  696. }
  697. }
  698. return 0;
  699. tolua_lerror:
  700. return tolua_UI_Button_SetLabelOffset00(tolua_S);
  701. }
  702. #endif //#ifndef TOLUA_DISABLE
  703. /* method: SetRepeat of class Button */
  704. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeat00
  705. static int tolua_UI_Button_SetRepeat00(lua_State* tolua_S)
  706. {
  707. #ifndef TOLUA_RELEASE
  708. tolua_Error tolua_err;
  709. if (
  710. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  711. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  712. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  713. !tolua_isnoobj(tolua_S,4,&tolua_err)
  714. )
  715. goto tolua_lerror;
  716. else
  717. #endif
  718. {
  719. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  720. float delay = ((float) tolua_tonumber(tolua_S,2,0));
  721. float rate = ((float) tolua_tonumber(tolua_S,3,0));
  722. #ifndef TOLUA_RELEASE
  723. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeat'", NULL);
  724. #endif
  725. {
  726. self->SetRepeat(delay,rate);
  727. }
  728. }
  729. return 0;
  730. #ifndef TOLUA_RELEASE
  731. tolua_lerror:
  732. tolua_error(tolua_S,"#ferror in function 'SetRepeat'.",&tolua_err);
  733. return 0;
  734. #endif
  735. }
  736. #endif //#ifndef TOLUA_DISABLE
  737. /* method: SetRepeatDelay of class Button */
  738. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeatDelay00
  739. static int tolua_UI_Button_SetRepeatDelay00(lua_State* tolua_S)
  740. {
  741. #ifndef TOLUA_RELEASE
  742. tolua_Error tolua_err;
  743. if (
  744. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  745. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  746. !tolua_isnoobj(tolua_S,3,&tolua_err)
  747. )
  748. goto tolua_lerror;
  749. else
  750. #endif
  751. {
  752. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  753. float delay = ((float) tolua_tonumber(tolua_S,2,0));
  754. #ifndef TOLUA_RELEASE
  755. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatDelay'", NULL);
  756. #endif
  757. {
  758. self->SetRepeatDelay(delay);
  759. }
  760. }
  761. return 0;
  762. #ifndef TOLUA_RELEASE
  763. tolua_lerror:
  764. tolua_error(tolua_S,"#ferror in function 'SetRepeatDelay'.",&tolua_err);
  765. return 0;
  766. #endif
  767. }
  768. #endif //#ifndef TOLUA_DISABLE
  769. /* method: SetRepeatRate of class Button */
  770. #ifndef TOLUA_DISABLE_tolua_UI_Button_SetRepeatRate00
  771. static int tolua_UI_Button_SetRepeatRate00(lua_State* tolua_S)
  772. {
  773. #ifndef TOLUA_RELEASE
  774. tolua_Error tolua_err;
  775. if (
  776. !tolua_isusertype(tolua_S,1,"Button",0,&tolua_err) ||
  777. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  778. !tolua_isnoobj(tolua_S,3,&tolua_err)
  779. )
  780. goto tolua_lerror;
  781. else
  782. #endif
  783. {
  784. Button* self = (Button*) tolua_tousertype(tolua_S,1,0);
  785. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  786. #ifndef TOLUA_RELEASE
  787. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatRate'", NULL);
  788. #endif
  789. {
  790. self->SetRepeatRate(rate);
  791. }
  792. }
  793. return 0;
  794. #ifndef TOLUA_RELEASE
  795. tolua_lerror:
  796. tolua_error(tolua_S,"#ferror in function 'SetRepeatRate'.",&tolua_err);
  797. return 0;
  798. #endif
  799. }
  800. #endif //#ifndef TOLUA_DISABLE
  801. /* method: GetPressedOffset of class Button */
  802. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetPressedOffset00
  803. static int tolua_UI_Button_GetPressedOffset00(lua_State* tolua_S)
  804. {
  805. #ifndef TOLUA_RELEASE
  806. tolua_Error tolua_err;
  807. if (
  808. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  809. !tolua_isnoobj(tolua_S,2,&tolua_err)
  810. )
  811. goto tolua_lerror;
  812. else
  813. #endif
  814. {
  815. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  816. #ifndef TOLUA_RELEASE
  817. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPressedOffset'", NULL);
  818. #endif
  819. {
  820. const IntVector2& tolua_ret = (const IntVector2&) self->GetPressedOffset();
  821. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  822. }
  823. }
  824. return 1;
  825. #ifndef TOLUA_RELEASE
  826. tolua_lerror:
  827. tolua_error(tolua_S,"#ferror in function 'GetPressedOffset'.",&tolua_err);
  828. return 0;
  829. #endif
  830. }
  831. #endif //#ifndef TOLUA_DISABLE
  832. /* method: GetLabelOffset of class Button */
  833. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetLabelOffset00
  834. static int tolua_UI_Button_GetLabelOffset00(lua_State* tolua_S)
  835. {
  836. #ifndef TOLUA_RELEASE
  837. tolua_Error tolua_err;
  838. if (
  839. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  840. !tolua_isnoobj(tolua_S,2,&tolua_err)
  841. )
  842. goto tolua_lerror;
  843. else
  844. #endif
  845. {
  846. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  847. #ifndef TOLUA_RELEASE
  848. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLabelOffset'", NULL);
  849. #endif
  850. {
  851. const IntVector2& tolua_ret = (const IntVector2&) self->GetLabelOffset();
  852. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  853. }
  854. }
  855. return 1;
  856. #ifndef TOLUA_RELEASE
  857. tolua_lerror:
  858. tolua_error(tolua_S,"#ferror in function 'GetLabelOffset'.",&tolua_err);
  859. return 0;
  860. #endif
  861. }
  862. #endif //#ifndef TOLUA_DISABLE
  863. /* method: GetRepeatDelay of class Button */
  864. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetRepeatDelay00
  865. static int tolua_UI_Button_GetRepeatDelay00(lua_State* tolua_S)
  866. {
  867. #ifndef TOLUA_RELEASE
  868. tolua_Error tolua_err;
  869. if (
  870. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  871. !tolua_isnoobj(tolua_S,2,&tolua_err)
  872. )
  873. goto tolua_lerror;
  874. else
  875. #endif
  876. {
  877. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  878. #ifndef TOLUA_RELEASE
  879. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatDelay'", NULL);
  880. #endif
  881. {
  882. float tolua_ret = (float) self->GetRepeatDelay();
  883. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  884. }
  885. }
  886. return 1;
  887. #ifndef TOLUA_RELEASE
  888. tolua_lerror:
  889. tolua_error(tolua_S,"#ferror in function 'GetRepeatDelay'.",&tolua_err);
  890. return 0;
  891. #endif
  892. }
  893. #endif //#ifndef TOLUA_DISABLE
  894. /* method: GetRepeatRate of class Button */
  895. #ifndef TOLUA_DISABLE_tolua_UI_Button_GetRepeatRate00
  896. static int tolua_UI_Button_GetRepeatRate00(lua_State* tolua_S)
  897. {
  898. #ifndef TOLUA_RELEASE
  899. tolua_Error tolua_err;
  900. if (
  901. !tolua_isusertype(tolua_S,1,"const Button",0,&tolua_err) ||
  902. !tolua_isnoobj(tolua_S,2,&tolua_err)
  903. )
  904. goto tolua_lerror;
  905. else
  906. #endif
  907. {
  908. const Button* self = (const Button*) tolua_tousertype(tolua_S,1,0);
  909. #ifndef TOLUA_RELEASE
  910. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatRate'", NULL);
  911. #endif
  912. {
  913. float tolua_ret = (float) self->GetRepeatRate();
  914. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  915. }
  916. }
  917. return 1;
  918. #ifndef TOLUA_RELEASE
  919. tolua_lerror:
  920. tolua_error(tolua_S,"#ferror in function 'GetRepeatRate'.",&tolua_err);
  921. return 0;
  922. #endif
  923. }
  924. #endif //#ifndef TOLUA_DISABLE
  925. /* function: NewButton */
  926. #ifndef TOLUA_DISABLE_tolua_UI_Button00
  927. static int tolua_UI_Button00(lua_State* tolua_S)
  928. {
  929. #ifndef TOLUA_RELEASE
  930. tolua_Error tolua_err;
  931. if (
  932. !tolua_isnoobj(tolua_S,1,&tolua_err)
  933. )
  934. goto tolua_lerror;
  935. else
  936. #endif
  937. {
  938. {
  939. Button* tolua_ret = (Button*) NewButton();
  940. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  941. }
  942. }
  943. return 1;
  944. #ifndef TOLUA_RELEASE
  945. tolua_lerror:
  946. tolua_error(tolua_S,"#ferror in function 'Button'.",&tolua_err);
  947. return 0;
  948. #endif
  949. }
  950. #endif //#ifndef TOLUA_DISABLE
  951. /* method: SetChecked of class CheckBox */
  952. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetChecked00
  953. static int tolua_UI_CheckBox_SetChecked00(lua_State* tolua_S)
  954. {
  955. #ifndef TOLUA_RELEASE
  956. tolua_Error tolua_err;
  957. if (
  958. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  959. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  960. !tolua_isnoobj(tolua_S,3,&tolua_err)
  961. )
  962. goto tolua_lerror;
  963. else
  964. #endif
  965. {
  966. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  967. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  968. #ifndef TOLUA_RELEASE
  969. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetChecked'", NULL);
  970. #endif
  971. {
  972. self->SetChecked(enable);
  973. }
  974. }
  975. return 0;
  976. #ifndef TOLUA_RELEASE
  977. tolua_lerror:
  978. tolua_error(tolua_S,"#ferror in function 'SetChecked'.",&tolua_err);
  979. return 0;
  980. #endif
  981. }
  982. #endif //#ifndef TOLUA_DISABLE
  983. /* method: SetCheckedOffset of class CheckBox */
  984. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetCheckedOffset00
  985. static int tolua_UI_CheckBox_SetCheckedOffset00(lua_State* tolua_S)
  986. {
  987. #ifndef TOLUA_RELEASE
  988. tolua_Error tolua_err;
  989. if (
  990. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  991. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  992. !tolua_isnoobj(tolua_S,3,&tolua_err)
  993. )
  994. goto tolua_lerror;
  995. else
  996. #endif
  997. {
  998. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  999. const IntVector2* rect = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  1000. #ifndef TOLUA_RELEASE
  1001. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCheckedOffset'", NULL);
  1002. #endif
  1003. {
  1004. self->SetCheckedOffset(*rect);
  1005. }
  1006. }
  1007. return 0;
  1008. #ifndef TOLUA_RELEASE
  1009. tolua_lerror:
  1010. tolua_error(tolua_S,"#ferror in function 'SetCheckedOffset'.",&tolua_err);
  1011. return 0;
  1012. #endif
  1013. }
  1014. #endif //#ifndef TOLUA_DISABLE
  1015. /* method: SetCheckedOffset of class CheckBox */
  1016. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_SetCheckedOffset01
  1017. static int tolua_UI_CheckBox_SetCheckedOffset01(lua_State* tolua_S)
  1018. {
  1019. tolua_Error tolua_err;
  1020. if (
  1021. !tolua_isusertype(tolua_S,1,"CheckBox",0,&tolua_err) ||
  1022. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1023. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1024. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1025. )
  1026. goto tolua_lerror;
  1027. else
  1028. {
  1029. CheckBox* self = (CheckBox*) tolua_tousertype(tolua_S,1,0);
  1030. int x = ((int) tolua_tonumber(tolua_S,2,0));
  1031. int y = ((int) tolua_tonumber(tolua_S,3,0));
  1032. #ifndef TOLUA_RELEASE
  1033. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCheckedOffset'", NULL);
  1034. #endif
  1035. {
  1036. self->SetCheckedOffset(x,y);
  1037. }
  1038. }
  1039. return 0;
  1040. tolua_lerror:
  1041. return tolua_UI_CheckBox_SetCheckedOffset00(tolua_S);
  1042. }
  1043. #endif //#ifndef TOLUA_DISABLE
  1044. /* method: IsChecked of class CheckBox */
  1045. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_IsChecked00
  1046. static int tolua_UI_CheckBox_IsChecked00(lua_State* tolua_S)
  1047. {
  1048. #ifndef TOLUA_RELEASE
  1049. tolua_Error tolua_err;
  1050. if (
  1051. !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
  1052. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1053. )
  1054. goto tolua_lerror;
  1055. else
  1056. #endif
  1057. {
  1058. const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
  1059. #ifndef TOLUA_RELEASE
  1060. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsChecked'", NULL);
  1061. #endif
  1062. {
  1063. bool tolua_ret = (bool) self->IsChecked();
  1064. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1065. }
  1066. }
  1067. return 1;
  1068. #ifndef TOLUA_RELEASE
  1069. tolua_lerror:
  1070. tolua_error(tolua_S,"#ferror in function 'IsChecked'.",&tolua_err);
  1071. return 0;
  1072. #endif
  1073. }
  1074. #endif //#ifndef TOLUA_DISABLE
  1075. /* method: GetCheckedOffset of class CheckBox */
  1076. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox_GetCheckedOffset00
  1077. static int tolua_UI_CheckBox_GetCheckedOffset00(lua_State* tolua_S)
  1078. {
  1079. #ifndef TOLUA_RELEASE
  1080. tolua_Error tolua_err;
  1081. if (
  1082. !tolua_isusertype(tolua_S,1,"const CheckBox",0,&tolua_err) ||
  1083. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1084. )
  1085. goto tolua_lerror;
  1086. else
  1087. #endif
  1088. {
  1089. const CheckBox* self = (const CheckBox*) tolua_tousertype(tolua_S,1,0);
  1090. #ifndef TOLUA_RELEASE
  1091. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCheckedOffset'", NULL);
  1092. #endif
  1093. {
  1094. const IntVector2& tolua_ret = (const IntVector2&) self->GetCheckedOffset();
  1095. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  1096. }
  1097. }
  1098. return 1;
  1099. #ifndef TOLUA_RELEASE
  1100. tolua_lerror:
  1101. tolua_error(tolua_S,"#ferror in function 'GetCheckedOffset'.",&tolua_err);
  1102. return 0;
  1103. #endif
  1104. }
  1105. #endif //#ifndef TOLUA_DISABLE
  1106. /* function: NewCheckBox */
  1107. #ifndef TOLUA_DISABLE_tolua_UI_CheckBox00
  1108. static int tolua_UI_CheckBox00(lua_State* tolua_S)
  1109. {
  1110. #ifndef TOLUA_RELEASE
  1111. tolua_Error tolua_err;
  1112. if (
  1113. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1114. )
  1115. goto tolua_lerror;
  1116. else
  1117. #endif
  1118. {
  1119. {
  1120. CheckBox* tolua_ret = (CheckBox*) NewCheckBox();
  1121. tolua_pushusertype(tolua_S,(void*)tolua_ret,"CheckBox");
  1122. }
  1123. }
  1124. return 1;
  1125. #ifndef TOLUA_RELEASE
  1126. tolua_lerror:
  1127. tolua_error(tolua_S,"#ferror in function 'CheckBox'.",&tolua_err);
  1128. return 0;
  1129. #endif
  1130. }
  1131. #endif //#ifndef TOLUA_DISABLE
  1132. /* method: DefineShape of class Cursor */
  1133. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_DefineShape00
  1134. static int tolua_UI_Cursor_DefineShape00(lua_State* tolua_S)
  1135. {
  1136. #ifndef TOLUA_RELEASE
  1137. tolua_Error tolua_err;
  1138. if (
  1139. !tolua_isusertype(tolua_S,1,"Cursor",0,&tolua_err) ||
  1140. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1141. !tolua_isusertype(tolua_S,3,"Image",0,&tolua_err) ||
  1142. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const IntRect",0,&tolua_err)) ||
  1143. (tolua_isvaluenil(tolua_S,5,&tolua_err) || !tolua_isusertype(tolua_S,5,"const IntVector2",0,&tolua_err)) ||
  1144. !tolua_isboolean(tolua_S,6,1,&tolua_err) ||
  1145. !tolua_isnoobj(tolua_S,7,&tolua_err)
  1146. )
  1147. goto tolua_lerror;
  1148. else
  1149. #endif
  1150. {
  1151. Cursor* self = (Cursor*) tolua_tousertype(tolua_S,1,0);
  1152. CursorShape shape = ((CursorShape) (int) tolua_tonumber(tolua_S,2,0));
  1153. Image* image = ((Image*) tolua_tousertype(tolua_S,3,0));
  1154. const IntRect* imageRect = ((const IntRect*) tolua_tousertype(tolua_S,4,0));
  1155. const IntVector2* hotSpot = ((const IntVector2*) tolua_tousertype(tolua_S,5,0));
  1156. bool osMouseVisible = ((bool) tolua_toboolean(tolua_S,6,false));
  1157. #ifndef TOLUA_RELEASE
  1158. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DefineShape'", NULL);
  1159. #endif
  1160. {
  1161. self->DefineShape(shape,image,*imageRect,*hotSpot,osMouseVisible);
  1162. }
  1163. }
  1164. return 0;
  1165. #ifndef TOLUA_RELEASE
  1166. tolua_lerror:
  1167. tolua_error(tolua_S,"#ferror in function 'DefineShape'.",&tolua_err);
  1168. return 0;
  1169. #endif
  1170. }
  1171. #endif //#ifndef TOLUA_DISABLE
  1172. /* method: SetShape of class Cursor */
  1173. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_SetShape00
  1174. static int tolua_UI_Cursor_SetShape00(lua_State* tolua_S)
  1175. {
  1176. #ifndef TOLUA_RELEASE
  1177. tolua_Error tolua_err;
  1178. if (
  1179. !tolua_isusertype(tolua_S,1,"Cursor",0,&tolua_err) ||
  1180. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1181. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1182. )
  1183. goto tolua_lerror;
  1184. else
  1185. #endif
  1186. {
  1187. Cursor* self = (Cursor*) tolua_tousertype(tolua_S,1,0);
  1188. CursorShape shape = ((CursorShape) (int) tolua_tonumber(tolua_S,2,0));
  1189. #ifndef TOLUA_RELEASE
  1190. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetShape'", NULL);
  1191. #endif
  1192. {
  1193. self->SetShape(shape);
  1194. }
  1195. }
  1196. return 0;
  1197. #ifndef TOLUA_RELEASE
  1198. tolua_lerror:
  1199. tolua_error(tolua_S,"#ferror in function 'SetShape'.",&tolua_err);
  1200. return 0;
  1201. #endif
  1202. }
  1203. #endif //#ifndef TOLUA_DISABLE
  1204. /* method: GetShape of class Cursor */
  1205. #ifndef TOLUA_DISABLE_tolua_UI_Cursor_GetShape00
  1206. static int tolua_UI_Cursor_GetShape00(lua_State* tolua_S)
  1207. {
  1208. #ifndef TOLUA_RELEASE
  1209. tolua_Error tolua_err;
  1210. if (
  1211. !tolua_isusertype(tolua_S,1,"const Cursor",0,&tolua_err) ||
  1212. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1213. )
  1214. goto tolua_lerror;
  1215. else
  1216. #endif
  1217. {
  1218. const Cursor* self = (const Cursor*) tolua_tousertype(tolua_S,1,0);
  1219. #ifndef TOLUA_RELEASE
  1220. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShape'", NULL);
  1221. #endif
  1222. {
  1223. CursorShape tolua_ret = (CursorShape) self->GetShape();
  1224. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1225. }
  1226. }
  1227. return 1;
  1228. #ifndef TOLUA_RELEASE
  1229. tolua_lerror:
  1230. tolua_error(tolua_S,"#ferror in function 'GetShape'.",&tolua_err);
  1231. return 0;
  1232. #endif
  1233. }
  1234. #endif //#ifndef TOLUA_DISABLE
  1235. /* function: NewCursor */
  1236. #ifndef TOLUA_DISABLE_tolua_UI_Cursor00
  1237. static int tolua_UI_Cursor00(lua_State* tolua_S)
  1238. {
  1239. #ifndef TOLUA_RELEASE
  1240. tolua_Error tolua_err;
  1241. if (
  1242. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1243. )
  1244. goto tolua_lerror;
  1245. else
  1246. #endif
  1247. {
  1248. {
  1249. Cursor* tolua_ret = (Cursor*) NewCursor();
  1250. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Cursor");
  1251. }
  1252. }
  1253. return 1;
  1254. #ifndef TOLUA_RELEASE
  1255. tolua_lerror:
  1256. tolua_error(tolua_S,"#ferror in function 'Cursor'.",&tolua_err);
  1257. return 0;
  1258. #endif
  1259. }
  1260. #endif //#ifndef TOLUA_DISABLE
  1261. /* method: AddItem of class DropDownList */
  1262. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_AddItem00
  1263. static int tolua_UI_DropDownList_AddItem00(lua_State* tolua_S)
  1264. {
  1265. #ifndef TOLUA_RELEASE
  1266. tolua_Error tolua_err;
  1267. if (
  1268. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1269. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  1270. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1271. )
  1272. goto tolua_lerror;
  1273. else
  1274. #endif
  1275. {
  1276. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1277. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  1278. #ifndef TOLUA_RELEASE
  1279. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItem'", NULL);
  1280. #endif
  1281. {
  1282. self->AddItem(item);
  1283. }
  1284. }
  1285. return 0;
  1286. #ifndef TOLUA_RELEASE
  1287. tolua_lerror:
  1288. tolua_error(tolua_S,"#ferror in function 'AddItem'.",&tolua_err);
  1289. return 0;
  1290. #endif
  1291. }
  1292. #endif //#ifndef TOLUA_DISABLE
  1293. /* method: InsertItem of class DropDownList */
  1294. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_InsertItem00
  1295. static int tolua_UI_DropDownList_InsertItem00(lua_State* tolua_S)
  1296. {
  1297. #ifndef TOLUA_RELEASE
  1298. tolua_Error tolua_err;
  1299. if (
  1300. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1301. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1302. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  1303. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1304. )
  1305. goto tolua_lerror;
  1306. else
  1307. #endif
  1308. {
  1309. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1310. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1311. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  1312. #ifndef TOLUA_RELEASE
  1313. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertItem'", NULL);
  1314. #endif
  1315. {
  1316. self->InsertItem(index,item);
  1317. }
  1318. }
  1319. return 0;
  1320. #ifndef TOLUA_RELEASE
  1321. tolua_lerror:
  1322. tolua_error(tolua_S,"#ferror in function 'InsertItem'.",&tolua_err);
  1323. return 0;
  1324. #endif
  1325. }
  1326. #endif //#ifndef TOLUA_DISABLE
  1327. /* method: RemoveItem of class DropDownList */
  1328. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveItem00
  1329. static int tolua_UI_DropDownList_RemoveItem00(lua_State* tolua_S)
  1330. {
  1331. #ifndef TOLUA_RELEASE
  1332. tolua_Error tolua_err;
  1333. if (
  1334. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1335. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  1336. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1337. )
  1338. goto tolua_lerror;
  1339. else
  1340. #endif
  1341. {
  1342. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1343. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  1344. #ifndef TOLUA_RELEASE
  1345. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  1346. #endif
  1347. {
  1348. self->RemoveItem(item);
  1349. }
  1350. }
  1351. return 0;
  1352. #ifndef TOLUA_RELEASE
  1353. tolua_lerror:
  1354. tolua_error(tolua_S,"#ferror in function 'RemoveItem'.",&tolua_err);
  1355. return 0;
  1356. #endif
  1357. }
  1358. #endif //#ifndef TOLUA_DISABLE
  1359. /* method: RemoveItem of class DropDownList */
  1360. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveItem01
  1361. static int tolua_UI_DropDownList_RemoveItem01(lua_State* tolua_S)
  1362. {
  1363. tolua_Error tolua_err;
  1364. if (
  1365. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1366. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1367. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1368. )
  1369. goto tolua_lerror;
  1370. else
  1371. {
  1372. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1373. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1374. #ifndef TOLUA_RELEASE
  1375. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  1376. #endif
  1377. {
  1378. self->RemoveItem(index);
  1379. }
  1380. }
  1381. return 0;
  1382. tolua_lerror:
  1383. return tolua_UI_DropDownList_RemoveItem00(tolua_S);
  1384. }
  1385. #endif //#ifndef TOLUA_DISABLE
  1386. /* method: RemoveAllItems of class DropDownList */
  1387. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_RemoveAllItems00
  1388. static int tolua_UI_DropDownList_RemoveAllItems00(lua_State* tolua_S)
  1389. {
  1390. #ifndef TOLUA_RELEASE
  1391. tolua_Error tolua_err;
  1392. if (
  1393. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1394. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1395. )
  1396. goto tolua_lerror;
  1397. else
  1398. #endif
  1399. {
  1400. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1401. #ifndef TOLUA_RELEASE
  1402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllItems'", NULL);
  1403. #endif
  1404. {
  1405. self->RemoveAllItems();
  1406. }
  1407. }
  1408. return 0;
  1409. #ifndef TOLUA_RELEASE
  1410. tolua_lerror:
  1411. tolua_error(tolua_S,"#ferror in function 'RemoveAllItems'.",&tolua_err);
  1412. return 0;
  1413. #endif
  1414. }
  1415. #endif //#ifndef TOLUA_DISABLE
  1416. /* method: SetSelection of class DropDownList */
  1417. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetSelection00
  1418. static int tolua_UI_DropDownList_SetSelection00(lua_State* tolua_S)
  1419. {
  1420. #ifndef TOLUA_RELEASE
  1421. tolua_Error tolua_err;
  1422. if (
  1423. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1424. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1425. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1426. )
  1427. goto tolua_lerror;
  1428. else
  1429. #endif
  1430. {
  1431. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1432. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1433. #ifndef TOLUA_RELEASE
  1434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  1435. #endif
  1436. {
  1437. self->SetSelection(index);
  1438. }
  1439. }
  1440. return 0;
  1441. #ifndef TOLUA_RELEASE
  1442. tolua_lerror:
  1443. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  1444. return 0;
  1445. #endif
  1446. }
  1447. #endif //#ifndef TOLUA_DISABLE
  1448. /* method: SetPlaceholderText of class DropDownList */
  1449. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetPlaceholderText00
  1450. static int tolua_UI_DropDownList_SetPlaceholderText00(lua_State* tolua_S)
  1451. {
  1452. #ifndef TOLUA_RELEASE
  1453. tolua_Error tolua_err;
  1454. if (
  1455. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1456. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1457. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1458. )
  1459. goto tolua_lerror;
  1460. else
  1461. #endif
  1462. {
  1463. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1464. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  1465. #ifndef TOLUA_RELEASE
  1466. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPlaceholderText'", NULL);
  1467. #endif
  1468. {
  1469. self->SetPlaceholderText(*text);
  1470. }
  1471. }
  1472. return 0;
  1473. #ifndef TOLUA_RELEASE
  1474. tolua_lerror:
  1475. tolua_error(tolua_S,"#ferror in function 'SetPlaceholderText'.",&tolua_err);
  1476. return 0;
  1477. #endif
  1478. }
  1479. #endif //#ifndef TOLUA_DISABLE
  1480. /* method: SetResizePopup of class DropDownList */
  1481. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_SetResizePopup00
  1482. static int tolua_UI_DropDownList_SetResizePopup00(lua_State* tolua_S)
  1483. {
  1484. #ifndef TOLUA_RELEASE
  1485. tolua_Error tolua_err;
  1486. if (
  1487. !tolua_isusertype(tolua_S,1,"DropDownList",0,&tolua_err) ||
  1488. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  1489. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1490. )
  1491. goto tolua_lerror;
  1492. else
  1493. #endif
  1494. {
  1495. DropDownList* self = (DropDownList*) tolua_tousertype(tolua_S,1,0);
  1496. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  1497. #ifndef TOLUA_RELEASE
  1498. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizePopup'", NULL);
  1499. #endif
  1500. {
  1501. self->SetResizePopup(enable);
  1502. }
  1503. }
  1504. return 0;
  1505. #ifndef TOLUA_RELEASE
  1506. tolua_lerror:
  1507. tolua_error(tolua_S,"#ferror in function 'SetResizePopup'.",&tolua_err);
  1508. return 0;
  1509. #endif
  1510. }
  1511. #endif //#ifndef TOLUA_DISABLE
  1512. /* method: GetNumItems of class DropDownList */
  1513. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetNumItems00
  1514. static int tolua_UI_DropDownList_GetNumItems00(lua_State* tolua_S)
  1515. {
  1516. #ifndef TOLUA_RELEASE
  1517. tolua_Error tolua_err;
  1518. if (
  1519. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1520. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1521. )
  1522. goto tolua_lerror;
  1523. else
  1524. #endif
  1525. {
  1526. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1527. #ifndef TOLUA_RELEASE
  1528. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumItems'", NULL);
  1529. #endif
  1530. {
  1531. unsigned tolua_ret = (unsigned) self->GetNumItems();
  1532. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1533. }
  1534. }
  1535. return 1;
  1536. #ifndef TOLUA_RELEASE
  1537. tolua_lerror:
  1538. tolua_error(tolua_S,"#ferror in function 'GetNumItems'.",&tolua_err);
  1539. return 0;
  1540. #endif
  1541. }
  1542. #endif //#ifndef TOLUA_DISABLE
  1543. /* method: GetItem of class DropDownList */
  1544. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetItem00
  1545. static int tolua_UI_DropDownList_GetItem00(lua_State* tolua_S)
  1546. {
  1547. #ifndef TOLUA_RELEASE
  1548. tolua_Error tolua_err;
  1549. if (
  1550. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1551. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1552. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1553. )
  1554. goto tolua_lerror;
  1555. else
  1556. #endif
  1557. {
  1558. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1559. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  1560. #ifndef TOLUA_RELEASE
  1561. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetItem'", NULL);
  1562. #endif
  1563. {
  1564. UIElement* tolua_ret = (UIElement*) self->GetItem(index);
  1565. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1566. }
  1567. }
  1568. return 1;
  1569. #ifndef TOLUA_RELEASE
  1570. tolua_lerror:
  1571. tolua_error(tolua_S,"#ferror in function 'GetItem'.",&tolua_err);
  1572. return 0;
  1573. #endif
  1574. }
  1575. #endif //#ifndef TOLUA_DISABLE
  1576. /* method: GetSelection of class DropDownList */
  1577. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetSelection00
  1578. static int tolua_UI_DropDownList_GetSelection00(lua_State* tolua_S)
  1579. {
  1580. #ifndef TOLUA_RELEASE
  1581. tolua_Error tolua_err;
  1582. if (
  1583. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1584. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1585. )
  1586. goto tolua_lerror;
  1587. else
  1588. #endif
  1589. {
  1590. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1591. #ifndef TOLUA_RELEASE
  1592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelection'", NULL);
  1593. #endif
  1594. {
  1595. unsigned tolua_ret = (unsigned) self->GetSelection();
  1596. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1597. }
  1598. }
  1599. return 1;
  1600. #ifndef TOLUA_RELEASE
  1601. tolua_lerror:
  1602. tolua_error(tolua_S,"#ferror in function 'GetSelection'.",&tolua_err);
  1603. return 0;
  1604. #endif
  1605. }
  1606. #endif //#ifndef TOLUA_DISABLE
  1607. /* method: GetSelectedItem of class DropDownList */
  1608. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetSelectedItem00
  1609. static int tolua_UI_DropDownList_GetSelectedItem00(lua_State* tolua_S)
  1610. {
  1611. #ifndef TOLUA_RELEASE
  1612. tolua_Error tolua_err;
  1613. if (
  1614. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1615. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1616. )
  1617. goto tolua_lerror;
  1618. else
  1619. #endif
  1620. {
  1621. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1622. #ifndef TOLUA_RELEASE
  1623. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectedItem'", NULL);
  1624. #endif
  1625. {
  1626. UIElement* tolua_ret = (UIElement*) self->GetSelectedItem();
  1627. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1628. }
  1629. }
  1630. return 1;
  1631. #ifndef TOLUA_RELEASE
  1632. tolua_lerror:
  1633. tolua_error(tolua_S,"#ferror in function 'GetSelectedItem'.",&tolua_err);
  1634. return 0;
  1635. #endif
  1636. }
  1637. #endif //#ifndef TOLUA_DISABLE
  1638. /* method: GetListView of class DropDownList */
  1639. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetListView00
  1640. static int tolua_UI_DropDownList_GetListView00(lua_State* tolua_S)
  1641. {
  1642. #ifndef TOLUA_RELEASE
  1643. tolua_Error tolua_err;
  1644. if (
  1645. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1646. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1647. )
  1648. goto tolua_lerror;
  1649. else
  1650. #endif
  1651. {
  1652. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1653. #ifndef TOLUA_RELEASE
  1654. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetListView'", NULL);
  1655. #endif
  1656. {
  1657. ListView* tolua_ret = (ListView*) self->GetListView();
  1658. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListView");
  1659. }
  1660. }
  1661. return 1;
  1662. #ifndef TOLUA_RELEASE
  1663. tolua_lerror:
  1664. tolua_error(tolua_S,"#ferror in function 'GetListView'.",&tolua_err);
  1665. return 0;
  1666. #endif
  1667. }
  1668. #endif //#ifndef TOLUA_DISABLE
  1669. /* method: GetPlaceholder of class DropDownList */
  1670. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetPlaceholder00
  1671. static int tolua_UI_DropDownList_GetPlaceholder00(lua_State* tolua_S)
  1672. {
  1673. #ifndef TOLUA_RELEASE
  1674. tolua_Error tolua_err;
  1675. if (
  1676. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1677. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1678. )
  1679. goto tolua_lerror;
  1680. else
  1681. #endif
  1682. {
  1683. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1684. #ifndef TOLUA_RELEASE
  1685. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPlaceholder'", NULL);
  1686. #endif
  1687. {
  1688. UIElement* tolua_ret = (UIElement*) self->GetPlaceholder();
  1689. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  1690. }
  1691. }
  1692. return 1;
  1693. #ifndef TOLUA_RELEASE
  1694. tolua_lerror:
  1695. tolua_error(tolua_S,"#ferror in function 'GetPlaceholder'.",&tolua_err);
  1696. return 0;
  1697. #endif
  1698. }
  1699. #endif //#ifndef TOLUA_DISABLE
  1700. /* method: GetPlaceholderText of class DropDownList */
  1701. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetPlaceholderText00
  1702. static int tolua_UI_DropDownList_GetPlaceholderText00(lua_State* tolua_S)
  1703. {
  1704. #ifndef TOLUA_RELEASE
  1705. tolua_Error tolua_err;
  1706. if (
  1707. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1708. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1709. )
  1710. goto tolua_lerror;
  1711. else
  1712. #endif
  1713. {
  1714. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1715. #ifndef TOLUA_RELEASE
  1716. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPlaceholderText'", NULL);
  1717. #endif
  1718. {
  1719. const String& tolua_ret = (const String&) self->GetPlaceholderText();
  1720. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  1721. }
  1722. }
  1723. return 1;
  1724. #ifndef TOLUA_RELEASE
  1725. tolua_lerror:
  1726. tolua_error(tolua_S,"#ferror in function 'GetPlaceholderText'.",&tolua_err);
  1727. return 0;
  1728. #endif
  1729. }
  1730. #endif //#ifndef TOLUA_DISABLE
  1731. /* method: GetResizePopup of class DropDownList */
  1732. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList_GetResizePopup00
  1733. static int tolua_UI_DropDownList_GetResizePopup00(lua_State* tolua_S)
  1734. {
  1735. #ifndef TOLUA_RELEASE
  1736. tolua_Error tolua_err;
  1737. if (
  1738. !tolua_isusertype(tolua_S,1,"const DropDownList",0,&tolua_err) ||
  1739. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1740. )
  1741. goto tolua_lerror;
  1742. else
  1743. #endif
  1744. {
  1745. const DropDownList* self = (const DropDownList*) tolua_tousertype(tolua_S,1,0);
  1746. #ifndef TOLUA_RELEASE
  1747. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizePopup'", NULL);
  1748. #endif
  1749. {
  1750. bool tolua_ret = (bool) self->GetResizePopup();
  1751. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1752. }
  1753. }
  1754. return 1;
  1755. #ifndef TOLUA_RELEASE
  1756. tolua_lerror:
  1757. tolua_error(tolua_S,"#ferror in function 'GetResizePopup'.",&tolua_err);
  1758. return 0;
  1759. #endif
  1760. }
  1761. #endif //#ifndef TOLUA_DISABLE
  1762. /* function: NewDropDownList */
  1763. #ifndef TOLUA_DISABLE_tolua_UI_DropDownList00
  1764. static int tolua_UI_DropDownList00(lua_State* tolua_S)
  1765. {
  1766. #ifndef TOLUA_RELEASE
  1767. tolua_Error tolua_err;
  1768. if (
  1769. !tolua_isnoobj(tolua_S,1,&tolua_err)
  1770. )
  1771. goto tolua_lerror;
  1772. else
  1773. #endif
  1774. {
  1775. {
  1776. DropDownList* tolua_ret = (DropDownList*) NewDropDownList();
  1777. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DropDownList");
  1778. }
  1779. }
  1780. return 1;
  1781. #ifndef TOLUA_RELEASE
  1782. tolua_lerror:
  1783. tolua_error(tolua_S,"#ferror in function 'DropDownList'.",&tolua_err);
  1784. return 0;
  1785. #endif
  1786. }
  1787. #endif //#ifndef TOLUA_DISABLE
  1788. /* get function: name_ of class FileSelectorEntry */
  1789. #ifndef TOLUA_DISABLE_tolua_get_FileSelectorEntry_name_
  1790. static int tolua_get_FileSelectorEntry_name_(lua_State* tolua_S)
  1791. {
  1792. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1793. #ifndef TOLUA_RELEASE
  1794. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  1795. #endif
  1796. tolua_pushusertype(tolua_S,(void*)&self->name_,"String");
  1797. return 1;
  1798. }
  1799. #endif //#ifndef TOLUA_DISABLE
  1800. /* set function: name_ of class FileSelectorEntry */
  1801. #ifndef TOLUA_DISABLE_tolua_set_FileSelectorEntry_name_
  1802. static int tolua_set_FileSelectorEntry_name_(lua_State* tolua_S)
  1803. {
  1804. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1805. #ifndef TOLUA_RELEASE
  1806. tolua_Error tolua_err;
  1807. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name_'",NULL);
  1808. if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"String",0,&tolua_err)))
  1809. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1810. #endif
  1811. self->name_ = *((String*) tolua_tousertype(tolua_S,2,0))
  1812. ;
  1813. return 0;
  1814. }
  1815. #endif //#ifndef TOLUA_DISABLE
  1816. /* get function: directory_ of class FileSelectorEntry */
  1817. #ifndef TOLUA_DISABLE_tolua_get_FileSelectorEntry_directory_
  1818. static int tolua_get_FileSelectorEntry_directory_(lua_State* tolua_S)
  1819. {
  1820. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1821. #ifndef TOLUA_RELEASE
  1822. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'directory_'",NULL);
  1823. #endif
  1824. tolua_pushboolean(tolua_S,(bool)self->directory_);
  1825. return 1;
  1826. }
  1827. #endif //#ifndef TOLUA_DISABLE
  1828. /* set function: directory_ of class FileSelectorEntry */
  1829. #ifndef TOLUA_DISABLE_tolua_set_FileSelectorEntry_directory_
  1830. static int tolua_set_FileSelectorEntry_directory_(lua_State* tolua_S)
  1831. {
  1832. FileSelectorEntry* self = (FileSelectorEntry*) tolua_tousertype(tolua_S,1,0);
  1833. #ifndef TOLUA_RELEASE
  1834. tolua_Error tolua_err;
  1835. if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'directory_'",NULL);
  1836. if (!tolua_isboolean(tolua_S,2,0,&tolua_err))
  1837. tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
  1838. #endif
  1839. self->directory_ = ((bool) tolua_toboolean(tolua_S,2,0))
  1840. ;
  1841. return 0;
  1842. }
  1843. #endif //#ifndef TOLUA_DISABLE
  1844. /* method: SetDefaultStyle of class FileSelector */
  1845. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetDefaultStyle00
  1846. static int tolua_UI_FileSelector_SetDefaultStyle00(lua_State* tolua_S)
  1847. {
  1848. #ifndef TOLUA_RELEASE
  1849. tolua_Error tolua_err;
  1850. if (
  1851. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1852. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  1853. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1854. )
  1855. goto tolua_lerror;
  1856. else
  1857. #endif
  1858. {
  1859. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1860. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  1861. #ifndef TOLUA_RELEASE
  1862. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  1863. #endif
  1864. {
  1865. self->SetDefaultStyle(style);
  1866. }
  1867. }
  1868. return 0;
  1869. #ifndef TOLUA_RELEASE
  1870. tolua_lerror:
  1871. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  1872. return 0;
  1873. #endif
  1874. }
  1875. #endif //#ifndef TOLUA_DISABLE
  1876. /* method: SetTitle of class FileSelector */
  1877. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetTitle00
  1878. static int tolua_UI_FileSelector_SetTitle00(lua_State* tolua_S)
  1879. {
  1880. #ifndef TOLUA_RELEASE
  1881. tolua_Error tolua_err;
  1882. if (
  1883. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1884. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1885. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1886. )
  1887. goto tolua_lerror;
  1888. else
  1889. #endif
  1890. {
  1891. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1892. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  1893. #ifndef TOLUA_RELEASE
  1894. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTitle'", NULL);
  1895. #endif
  1896. {
  1897. self->SetTitle(*text);
  1898. }
  1899. }
  1900. return 0;
  1901. #ifndef TOLUA_RELEASE
  1902. tolua_lerror:
  1903. tolua_error(tolua_S,"#ferror in function 'SetTitle'.",&tolua_err);
  1904. return 0;
  1905. #endif
  1906. }
  1907. #endif //#ifndef TOLUA_DISABLE
  1908. /* method: SetButtonTexts of class FileSelector */
  1909. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetButtonTexts00
  1910. static int tolua_UI_FileSelector_SetButtonTexts00(lua_State* tolua_S)
  1911. {
  1912. #ifndef TOLUA_RELEASE
  1913. tolua_Error tolua_err;
  1914. if (
  1915. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1916. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1917. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  1918. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1919. )
  1920. goto tolua_lerror;
  1921. else
  1922. #endif
  1923. {
  1924. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1925. const String* okText = ((const String*) tolua_tousertype(tolua_S,2,0));
  1926. const String* cancelText = ((const String*) tolua_tousertype(tolua_S,3,0));
  1927. #ifndef TOLUA_RELEASE
  1928. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetButtonTexts'", NULL);
  1929. #endif
  1930. {
  1931. self->SetButtonTexts(*okText,*cancelText);
  1932. }
  1933. }
  1934. return 0;
  1935. #ifndef TOLUA_RELEASE
  1936. tolua_lerror:
  1937. tolua_error(tolua_S,"#ferror in function 'SetButtonTexts'.",&tolua_err);
  1938. return 0;
  1939. #endif
  1940. }
  1941. #endif //#ifndef TOLUA_DISABLE
  1942. /* method: SetPath of class FileSelector */
  1943. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetPath00
  1944. static int tolua_UI_FileSelector_SetPath00(lua_State* tolua_S)
  1945. {
  1946. #ifndef TOLUA_RELEASE
  1947. tolua_Error tolua_err;
  1948. if (
  1949. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1950. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1951. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1952. )
  1953. goto tolua_lerror;
  1954. else
  1955. #endif
  1956. {
  1957. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1958. const String* path = ((const String*) tolua_tousertype(tolua_S,2,0));
  1959. #ifndef TOLUA_RELEASE
  1960. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPath'", NULL);
  1961. #endif
  1962. {
  1963. self->SetPath(*path);
  1964. }
  1965. }
  1966. return 0;
  1967. #ifndef TOLUA_RELEASE
  1968. tolua_lerror:
  1969. tolua_error(tolua_S,"#ferror in function 'SetPath'.",&tolua_err);
  1970. return 0;
  1971. #endif
  1972. }
  1973. #endif //#ifndef TOLUA_DISABLE
  1974. /* method: SetFileName of class FileSelector */
  1975. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetFileName00
  1976. static int tolua_UI_FileSelector_SetFileName00(lua_State* tolua_S)
  1977. {
  1978. #ifndef TOLUA_RELEASE
  1979. tolua_Error tolua_err;
  1980. if (
  1981. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  1982. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  1983. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1984. )
  1985. goto tolua_lerror;
  1986. else
  1987. #endif
  1988. {
  1989. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  1990. const String* fileName = ((const String*) tolua_tousertype(tolua_S,2,0));
  1991. #ifndef TOLUA_RELEASE
  1992. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFileName'", NULL);
  1993. #endif
  1994. {
  1995. self->SetFileName(*fileName);
  1996. }
  1997. }
  1998. return 0;
  1999. #ifndef TOLUA_RELEASE
  2000. tolua_lerror:
  2001. tolua_error(tolua_S,"#ferror in function 'SetFileName'.",&tolua_err);
  2002. return 0;
  2003. #endif
  2004. }
  2005. #endif //#ifndef TOLUA_DISABLE
  2006. /* method: SetFilters of class FileSelector */
  2007. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetFilters00
  2008. static int tolua_UI_FileSelector_SetFilters00(lua_State* tolua_S)
  2009. {
  2010. #ifndef TOLUA_RELEASE
  2011. tolua_Error tolua_err;
  2012. if (
  2013. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  2014. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector<String>",0,&tolua_err)) ||
  2015. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  2016. !tolua_isnoobj(tolua_S,4,&tolua_err)
  2017. )
  2018. goto tolua_lerror;
  2019. else
  2020. #endif
  2021. {
  2022. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  2023. const Vector<String>* filters = ((const Vector<String>*) tolua_tousertype(tolua_S,2,0));
  2024. unsigned defaultIndex = ((unsigned) tolua_tonumber(tolua_S,3,0));
  2025. #ifndef TOLUA_RELEASE
  2026. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFilters'", NULL);
  2027. #endif
  2028. {
  2029. self->SetFilters(*filters,defaultIndex);
  2030. }
  2031. }
  2032. return 0;
  2033. #ifndef TOLUA_RELEASE
  2034. tolua_lerror:
  2035. tolua_error(tolua_S,"#ferror in function 'SetFilters'.",&tolua_err);
  2036. return 0;
  2037. #endif
  2038. }
  2039. #endif //#ifndef TOLUA_DISABLE
  2040. /* method: SetDirectoryMode of class FileSelector */
  2041. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_SetDirectoryMode00
  2042. static int tolua_UI_FileSelector_SetDirectoryMode00(lua_State* tolua_S)
  2043. {
  2044. #ifndef TOLUA_RELEASE
  2045. tolua_Error tolua_err;
  2046. if (
  2047. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  2048. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2049. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2050. )
  2051. goto tolua_lerror;
  2052. else
  2053. #endif
  2054. {
  2055. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  2056. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2057. #ifndef TOLUA_RELEASE
  2058. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDirectoryMode'", NULL);
  2059. #endif
  2060. {
  2061. self->SetDirectoryMode(enable);
  2062. }
  2063. }
  2064. return 0;
  2065. #ifndef TOLUA_RELEASE
  2066. tolua_lerror:
  2067. tolua_error(tolua_S,"#ferror in function 'SetDirectoryMode'.",&tolua_err);
  2068. return 0;
  2069. #endif
  2070. }
  2071. #endif //#ifndef TOLUA_DISABLE
  2072. /* method: UpdateElements of class FileSelector */
  2073. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_UpdateElements00
  2074. static int tolua_UI_FileSelector_UpdateElements00(lua_State* tolua_S)
  2075. {
  2076. #ifndef TOLUA_RELEASE
  2077. tolua_Error tolua_err;
  2078. if (
  2079. !tolua_isusertype(tolua_S,1,"FileSelector",0,&tolua_err) ||
  2080. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2081. )
  2082. goto tolua_lerror;
  2083. else
  2084. #endif
  2085. {
  2086. FileSelector* self = (FileSelector*) tolua_tousertype(tolua_S,1,0);
  2087. #ifndef TOLUA_RELEASE
  2088. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateElements'", NULL);
  2089. #endif
  2090. {
  2091. self->UpdateElements();
  2092. }
  2093. }
  2094. return 0;
  2095. #ifndef TOLUA_RELEASE
  2096. tolua_lerror:
  2097. tolua_error(tolua_S,"#ferror in function 'UpdateElements'.",&tolua_err);
  2098. return 0;
  2099. #endif
  2100. }
  2101. #endif //#ifndef TOLUA_DISABLE
  2102. /* method: GetDefaultStyle of class FileSelector */
  2103. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetDefaultStyle00
  2104. static int tolua_UI_FileSelector_GetDefaultStyle00(lua_State* tolua_S)
  2105. {
  2106. #ifndef TOLUA_RELEASE
  2107. tolua_Error tolua_err;
  2108. if (
  2109. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2110. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2111. )
  2112. goto tolua_lerror;
  2113. else
  2114. #endif
  2115. {
  2116. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2117. #ifndef TOLUA_RELEASE
  2118. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  2119. #endif
  2120. {
  2121. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle();
  2122. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  2123. }
  2124. }
  2125. return 1;
  2126. #ifndef TOLUA_RELEASE
  2127. tolua_lerror:
  2128. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  2129. return 0;
  2130. #endif
  2131. }
  2132. #endif //#ifndef TOLUA_DISABLE
  2133. /* method: GetWindow of class FileSelector */
  2134. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetWindow00
  2135. static int tolua_UI_FileSelector_GetWindow00(lua_State* tolua_S)
  2136. {
  2137. #ifndef TOLUA_RELEASE
  2138. tolua_Error tolua_err;
  2139. if (
  2140. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2141. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2142. )
  2143. goto tolua_lerror;
  2144. else
  2145. #endif
  2146. {
  2147. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2148. #ifndef TOLUA_RELEASE
  2149. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWindow'", NULL);
  2150. #endif
  2151. {
  2152. Window* tolua_ret = (Window*) self->GetWindow();
  2153. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
  2154. }
  2155. }
  2156. return 1;
  2157. #ifndef TOLUA_RELEASE
  2158. tolua_lerror:
  2159. tolua_error(tolua_S,"#ferror in function 'GetWindow'.",&tolua_err);
  2160. return 0;
  2161. #endif
  2162. }
  2163. #endif //#ifndef TOLUA_DISABLE
  2164. /* method: GetTitleText of class FileSelector */
  2165. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetTitleText00
  2166. static int tolua_UI_FileSelector_GetTitleText00(lua_State* tolua_S)
  2167. {
  2168. #ifndef TOLUA_RELEASE
  2169. tolua_Error tolua_err;
  2170. if (
  2171. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2172. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2173. )
  2174. goto tolua_lerror;
  2175. else
  2176. #endif
  2177. {
  2178. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2179. #ifndef TOLUA_RELEASE
  2180. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTitleText'", NULL);
  2181. #endif
  2182. {
  2183. Text* tolua_ret = (Text*) self->GetTitleText();
  2184. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  2185. }
  2186. }
  2187. return 1;
  2188. #ifndef TOLUA_RELEASE
  2189. tolua_lerror:
  2190. tolua_error(tolua_S,"#ferror in function 'GetTitleText'.",&tolua_err);
  2191. return 0;
  2192. #endif
  2193. }
  2194. #endif //#ifndef TOLUA_DISABLE
  2195. /* method: GetFileList of class FileSelector */
  2196. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileList00
  2197. static int tolua_UI_FileSelector_GetFileList00(lua_State* tolua_S)
  2198. {
  2199. #ifndef TOLUA_RELEASE
  2200. tolua_Error tolua_err;
  2201. if (
  2202. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2203. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2204. )
  2205. goto tolua_lerror;
  2206. else
  2207. #endif
  2208. {
  2209. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2210. #ifndef TOLUA_RELEASE
  2211. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileList'", NULL);
  2212. #endif
  2213. {
  2214. ListView* tolua_ret = (ListView*) self->GetFileList();
  2215. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListView");
  2216. }
  2217. }
  2218. return 1;
  2219. #ifndef TOLUA_RELEASE
  2220. tolua_lerror:
  2221. tolua_error(tolua_S,"#ferror in function 'GetFileList'.",&tolua_err);
  2222. return 0;
  2223. #endif
  2224. }
  2225. #endif //#ifndef TOLUA_DISABLE
  2226. /* method: GetPathEdit of class FileSelector */
  2227. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetPathEdit00
  2228. static int tolua_UI_FileSelector_GetPathEdit00(lua_State* tolua_S)
  2229. {
  2230. #ifndef TOLUA_RELEASE
  2231. tolua_Error tolua_err;
  2232. if (
  2233. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2234. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2235. )
  2236. goto tolua_lerror;
  2237. else
  2238. #endif
  2239. {
  2240. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2241. #ifndef TOLUA_RELEASE
  2242. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPathEdit'", NULL);
  2243. #endif
  2244. {
  2245. LineEdit* tolua_ret = (LineEdit*) self->GetPathEdit();
  2246. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  2247. }
  2248. }
  2249. return 1;
  2250. #ifndef TOLUA_RELEASE
  2251. tolua_lerror:
  2252. tolua_error(tolua_S,"#ferror in function 'GetPathEdit'.",&tolua_err);
  2253. return 0;
  2254. #endif
  2255. }
  2256. #endif //#ifndef TOLUA_DISABLE
  2257. /* method: GetFileNameEdit of class FileSelector */
  2258. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileNameEdit00
  2259. static int tolua_UI_FileSelector_GetFileNameEdit00(lua_State* tolua_S)
  2260. {
  2261. #ifndef TOLUA_RELEASE
  2262. tolua_Error tolua_err;
  2263. if (
  2264. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2265. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2266. )
  2267. goto tolua_lerror;
  2268. else
  2269. #endif
  2270. {
  2271. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2272. #ifndef TOLUA_RELEASE
  2273. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileNameEdit'", NULL);
  2274. #endif
  2275. {
  2276. LineEdit* tolua_ret = (LineEdit*) self->GetFileNameEdit();
  2277. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  2278. }
  2279. }
  2280. return 1;
  2281. #ifndef TOLUA_RELEASE
  2282. tolua_lerror:
  2283. tolua_error(tolua_S,"#ferror in function 'GetFileNameEdit'.",&tolua_err);
  2284. return 0;
  2285. #endif
  2286. }
  2287. #endif //#ifndef TOLUA_DISABLE
  2288. /* method: GetFilterList of class FileSelector */
  2289. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilterList00
  2290. static int tolua_UI_FileSelector_GetFilterList00(lua_State* tolua_S)
  2291. {
  2292. #ifndef TOLUA_RELEASE
  2293. tolua_Error tolua_err;
  2294. if (
  2295. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2296. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2297. )
  2298. goto tolua_lerror;
  2299. else
  2300. #endif
  2301. {
  2302. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2303. #ifndef TOLUA_RELEASE
  2304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterList'", NULL);
  2305. #endif
  2306. {
  2307. DropDownList* tolua_ret = (DropDownList*) self->GetFilterList();
  2308. tolua_pushusertype(tolua_S,(void*)tolua_ret,"DropDownList");
  2309. }
  2310. }
  2311. return 1;
  2312. #ifndef TOLUA_RELEASE
  2313. tolua_lerror:
  2314. tolua_error(tolua_S,"#ferror in function 'GetFilterList'.",&tolua_err);
  2315. return 0;
  2316. #endif
  2317. }
  2318. #endif //#ifndef TOLUA_DISABLE
  2319. /* method: GetOKButton of class FileSelector */
  2320. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetOKButton00
  2321. static int tolua_UI_FileSelector_GetOKButton00(lua_State* tolua_S)
  2322. {
  2323. #ifndef TOLUA_RELEASE
  2324. tolua_Error tolua_err;
  2325. if (
  2326. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2327. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2328. )
  2329. goto tolua_lerror;
  2330. else
  2331. #endif
  2332. {
  2333. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2334. #ifndef TOLUA_RELEASE
  2335. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOKButton'", NULL);
  2336. #endif
  2337. {
  2338. Button* tolua_ret = (Button*) self->GetOKButton();
  2339. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2340. }
  2341. }
  2342. return 1;
  2343. #ifndef TOLUA_RELEASE
  2344. tolua_lerror:
  2345. tolua_error(tolua_S,"#ferror in function 'GetOKButton'.",&tolua_err);
  2346. return 0;
  2347. #endif
  2348. }
  2349. #endif //#ifndef TOLUA_DISABLE
  2350. /* method: GetCancelButton of class FileSelector */
  2351. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetCancelButton00
  2352. static int tolua_UI_FileSelector_GetCancelButton00(lua_State* tolua_S)
  2353. {
  2354. #ifndef TOLUA_RELEASE
  2355. tolua_Error tolua_err;
  2356. if (
  2357. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2358. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2359. )
  2360. goto tolua_lerror;
  2361. else
  2362. #endif
  2363. {
  2364. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2365. #ifndef TOLUA_RELEASE
  2366. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCancelButton'", NULL);
  2367. #endif
  2368. {
  2369. Button* tolua_ret = (Button*) self->GetCancelButton();
  2370. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2371. }
  2372. }
  2373. return 1;
  2374. #ifndef TOLUA_RELEASE
  2375. tolua_lerror:
  2376. tolua_error(tolua_S,"#ferror in function 'GetCancelButton'.",&tolua_err);
  2377. return 0;
  2378. #endif
  2379. }
  2380. #endif //#ifndef TOLUA_DISABLE
  2381. /* method: GetCloseButton of class FileSelector */
  2382. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetCloseButton00
  2383. static int tolua_UI_FileSelector_GetCloseButton00(lua_State* tolua_S)
  2384. {
  2385. #ifndef TOLUA_RELEASE
  2386. tolua_Error tolua_err;
  2387. if (
  2388. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2389. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2390. )
  2391. goto tolua_lerror;
  2392. else
  2393. #endif
  2394. {
  2395. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2396. #ifndef TOLUA_RELEASE
  2397. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCloseButton'", NULL);
  2398. #endif
  2399. {
  2400. Button* tolua_ret = (Button*) self->GetCloseButton();
  2401. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  2402. }
  2403. }
  2404. return 1;
  2405. #ifndef TOLUA_RELEASE
  2406. tolua_lerror:
  2407. tolua_error(tolua_S,"#ferror in function 'GetCloseButton'.",&tolua_err);
  2408. return 0;
  2409. #endif
  2410. }
  2411. #endif //#ifndef TOLUA_DISABLE
  2412. /* method: GetTitle of class FileSelector */
  2413. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetTitle00
  2414. static int tolua_UI_FileSelector_GetTitle00(lua_State* tolua_S)
  2415. {
  2416. #ifndef TOLUA_RELEASE
  2417. tolua_Error tolua_err;
  2418. if (
  2419. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2420. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2421. )
  2422. goto tolua_lerror;
  2423. else
  2424. #endif
  2425. {
  2426. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2427. #ifndef TOLUA_RELEASE
  2428. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTitle'", NULL);
  2429. #endif
  2430. {
  2431. const String& tolua_ret = (const String&) self->GetTitle();
  2432. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2433. }
  2434. }
  2435. return 1;
  2436. #ifndef TOLUA_RELEASE
  2437. tolua_lerror:
  2438. tolua_error(tolua_S,"#ferror in function 'GetTitle'.",&tolua_err);
  2439. return 0;
  2440. #endif
  2441. }
  2442. #endif //#ifndef TOLUA_DISABLE
  2443. /* method: GetPath of class FileSelector */
  2444. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetPath00
  2445. static int tolua_UI_FileSelector_GetPath00(lua_State* tolua_S)
  2446. {
  2447. #ifndef TOLUA_RELEASE
  2448. tolua_Error tolua_err;
  2449. if (
  2450. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2451. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2452. )
  2453. goto tolua_lerror;
  2454. else
  2455. #endif
  2456. {
  2457. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2458. #ifndef TOLUA_RELEASE
  2459. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPath'", NULL);
  2460. #endif
  2461. {
  2462. const String& tolua_ret = (const String&) self->GetPath();
  2463. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2464. }
  2465. }
  2466. return 1;
  2467. #ifndef TOLUA_RELEASE
  2468. tolua_lerror:
  2469. tolua_error(tolua_S,"#ferror in function 'GetPath'.",&tolua_err);
  2470. return 0;
  2471. #endif
  2472. }
  2473. #endif //#ifndef TOLUA_DISABLE
  2474. /* method: GetFileName of class FileSelector */
  2475. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFileName00
  2476. static int tolua_UI_FileSelector_GetFileName00(lua_State* tolua_S)
  2477. {
  2478. #ifndef TOLUA_RELEASE
  2479. tolua_Error tolua_err;
  2480. if (
  2481. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2482. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2483. )
  2484. goto tolua_lerror;
  2485. else
  2486. #endif
  2487. {
  2488. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2489. #ifndef TOLUA_RELEASE
  2490. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFileName'", NULL);
  2491. #endif
  2492. {
  2493. const String& tolua_ret = (const String&) self->GetFileName();
  2494. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2495. }
  2496. }
  2497. return 1;
  2498. #ifndef TOLUA_RELEASE
  2499. tolua_lerror:
  2500. tolua_error(tolua_S,"#ferror in function 'GetFileName'.",&tolua_err);
  2501. return 0;
  2502. #endif
  2503. }
  2504. #endif //#ifndef TOLUA_DISABLE
  2505. /* method: GetFilter of class FileSelector */
  2506. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilter00
  2507. static int tolua_UI_FileSelector_GetFilter00(lua_State* tolua_S)
  2508. {
  2509. #ifndef TOLUA_RELEASE
  2510. tolua_Error tolua_err;
  2511. if (
  2512. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2513. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2514. )
  2515. goto tolua_lerror;
  2516. else
  2517. #endif
  2518. {
  2519. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2520. #ifndef TOLUA_RELEASE
  2521. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilter'", NULL);
  2522. #endif
  2523. {
  2524. const String& tolua_ret = (const String&) self->GetFilter();
  2525. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2526. }
  2527. }
  2528. return 1;
  2529. #ifndef TOLUA_RELEASE
  2530. tolua_lerror:
  2531. tolua_error(tolua_S,"#ferror in function 'GetFilter'.",&tolua_err);
  2532. return 0;
  2533. #endif
  2534. }
  2535. #endif //#ifndef TOLUA_DISABLE
  2536. /* method: GetFilterIndex of class FileSelector */
  2537. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetFilterIndex00
  2538. static int tolua_UI_FileSelector_GetFilterIndex00(lua_State* tolua_S)
  2539. {
  2540. #ifndef TOLUA_RELEASE
  2541. tolua_Error tolua_err;
  2542. if (
  2543. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2544. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2545. )
  2546. goto tolua_lerror;
  2547. else
  2548. #endif
  2549. {
  2550. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2551. #ifndef TOLUA_RELEASE
  2552. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFilterIndex'", NULL);
  2553. #endif
  2554. {
  2555. unsigned tolua_ret = (unsigned) self->GetFilterIndex();
  2556. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2557. }
  2558. }
  2559. return 1;
  2560. #ifndef TOLUA_RELEASE
  2561. tolua_lerror:
  2562. tolua_error(tolua_S,"#ferror in function 'GetFilterIndex'.",&tolua_err);
  2563. return 0;
  2564. #endif
  2565. }
  2566. #endif //#ifndef TOLUA_DISABLE
  2567. /* method: GetDirectoryMode of class FileSelector */
  2568. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector_GetDirectoryMode00
  2569. static int tolua_UI_FileSelector_GetDirectoryMode00(lua_State* tolua_S)
  2570. {
  2571. #ifndef TOLUA_RELEASE
  2572. tolua_Error tolua_err;
  2573. if (
  2574. !tolua_isusertype(tolua_S,1,"const FileSelector",0,&tolua_err) ||
  2575. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2576. )
  2577. goto tolua_lerror;
  2578. else
  2579. #endif
  2580. {
  2581. const FileSelector* self = (const FileSelector*) tolua_tousertype(tolua_S,1,0);
  2582. #ifndef TOLUA_RELEASE
  2583. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDirectoryMode'", NULL);
  2584. #endif
  2585. {
  2586. bool tolua_ret = (bool) self->GetDirectoryMode();
  2587. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  2588. }
  2589. }
  2590. return 1;
  2591. #ifndef TOLUA_RELEASE
  2592. tolua_lerror:
  2593. tolua_error(tolua_S,"#ferror in function 'GetDirectoryMode'.",&tolua_err);
  2594. return 0;
  2595. #endif
  2596. }
  2597. #endif //#ifndef TOLUA_DISABLE
  2598. /* function: NewFileSelector */
  2599. #ifndef TOLUA_DISABLE_tolua_UI_FileSelector00
  2600. static int tolua_UI_FileSelector00(lua_State* tolua_S)
  2601. {
  2602. #ifndef TOLUA_RELEASE
  2603. tolua_Error tolua_err;
  2604. if (
  2605. !tolua_isnoobj(tolua_S,1,&tolua_err)
  2606. )
  2607. goto tolua_lerror;
  2608. else
  2609. #endif
  2610. {
  2611. {
  2612. FileSelector* tolua_ret = (FileSelector*) NewFileSelector();
  2613. tolua_pushusertype(tolua_S,(void*)tolua_ret,"FileSelector");
  2614. }
  2615. }
  2616. return 1;
  2617. #ifndef TOLUA_RELEASE
  2618. tolua_lerror:
  2619. tolua_error(tolua_S,"#ferror in function 'FileSelector'.",&tolua_err);
  2620. return 0;
  2621. #endif
  2622. }
  2623. #endif //#ifndef TOLUA_DISABLE
  2624. /* function: NewFont */
  2625. #ifndef TOLUA_DISABLE_tolua_UI_Font00
  2626. static int tolua_UI_Font00(lua_State* tolua_S)
  2627. {
  2628. #ifndef TOLUA_RELEASE
  2629. tolua_Error tolua_err;
  2630. if (
  2631. !tolua_isnoobj(tolua_S,1,&tolua_err)
  2632. )
  2633. goto tolua_lerror;
  2634. else
  2635. #endif
  2636. {
  2637. {
  2638. Font* tolua_ret = (Font*) NewFont();
  2639. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
  2640. }
  2641. }
  2642. return 1;
  2643. #ifndef TOLUA_RELEASE
  2644. tolua_lerror:
  2645. tolua_error(tolua_S,"#ferror in function 'Font'.",&tolua_err);
  2646. return 0;
  2647. #endif
  2648. }
  2649. #endif //#ifndef TOLUA_DISABLE
  2650. /* method: SetText of class LineEdit */
  2651. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetText00
  2652. static int tolua_UI_LineEdit_SetText00(lua_State* tolua_S)
  2653. {
  2654. #ifndef TOLUA_RELEASE
  2655. tolua_Error tolua_err;
  2656. if (
  2657. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2658. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  2659. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2660. )
  2661. goto tolua_lerror;
  2662. else
  2663. #endif
  2664. {
  2665. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2666. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  2667. #ifndef TOLUA_RELEASE
  2668. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  2669. #endif
  2670. {
  2671. self->SetText(*text);
  2672. }
  2673. }
  2674. return 0;
  2675. #ifndef TOLUA_RELEASE
  2676. tolua_lerror:
  2677. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  2678. return 0;
  2679. #endif
  2680. }
  2681. #endif //#ifndef TOLUA_DISABLE
  2682. /* method: SetCursorPosition of class LineEdit */
  2683. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorPosition00
  2684. static int tolua_UI_LineEdit_SetCursorPosition00(lua_State* tolua_S)
  2685. {
  2686. #ifndef TOLUA_RELEASE
  2687. tolua_Error tolua_err;
  2688. if (
  2689. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2690. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2691. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2692. )
  2693. goto tolua_lerror;
  2694. else
  2695. #endif
  2696. {
  2697. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2698. unsigned position = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2699. #ifndef TOLUA_RELEASE
  2700. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorPosition'", NULL);
  2701. #endif
  2702. {
  2703. self->SetCursorPosition(position);
  2704. }
  2705. }
  2706. return 0;
  2707. #ifndef TOLUA_RELEASE
  2708. tolua_lerror:
  2709. tolua_error(tolua_S,"#ferror in function 'SetCursorPosition'.",&tolua_err);
  2710. return 0;
  2711. #endif
  2712. }
  2713. #endif //#ifndef TOLUA_DISABLE
  2714. /* method: SetCursorBlinkRate of class LineEdit */
  2715. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorBlinkRate00
  2716. static int tolua_UI_LineEdit_SetCursorBlinkRate00(lua_State* tolua_S)
  2717. {
  2718. #ifndef TOLUA_RELEASE
  2719. tolua_Error tolua_err;
  2720. if (
  2721. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2722. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2723. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2724. )
  2725. goto tolua_lerror;
  2726. else
  2727. #endif
  2728. {
  2729. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2730. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  2731. #ifndef TOLUA_RELEASE
  2732. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorBlinkRate'", NULL);
  2733. #endif
  2734. {
  2735. self->SetCursorBlinkRate(rate);
  2736. }
  2737. }
  2738. return 0;
  2739. #ifndef TOLUA_RELEASE
  2740. tolua_lerror:
  2741. tolua_error(tolua_S,"#ferror in function 'SetCursorBlinkRate'.",&tolua_err);
  2742. return 0;
  2743. #endif
  2744. }
  2745. #endif //#ifndef TOLUA_DISABLE
  2746. /* method: SetMaxLength of class LineEdit */
  2747. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetMaxLength00
  2748. static int tolua_UI_LineEdit_SetMaxLength00(lua_State* tolua_S)
  2749. {
  2750. #ifndef TOLUA_RELEASE
  2751. tolua_Error tolua_err;
  2752. if (
  2753. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2754. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2755. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2756. )
  2757. goto tolua_lerror;
  2758. else
  2759. #endif
  2760. {
  2761. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2762. unsigned length = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2763. #ifndef TOLUA_RELEASE
  2764. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxLength'", NULL);
  2765. #endif
  2766. {
  2767. self->SetMaxLength(length);
  2768. }
  2769. }
  2770. return 0;
  2771. #ifndef TOLUA_RELEASE
  2772. tolua_lerror:
  2773. tolua_error(tolua_S,"#ferror in function 'SetMaxLength'.",&tolua_err);
  2774. return 0;
  2775. #endif
  2776. }
  2777. #endif //#ifndef TOLUA_DISABLE
  2778. /* method: SetEchoCharacter of class LineEdit */
  2779. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetEchoCharacter00
  2780. static int tolua_UI_LineEdit_SetEchoCharacter00(lua_State* tolua_S)
  2781. {
  2782. #ifndef TOLUA_RELEASE
  2783. tolua_Error tolua_err;
  2784. if (
  2785. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2786. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2787. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2788. )
  2789. goto tolua_lerror;
  2790. else
  2791. #endif
  2792. {
  2793. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2794. unsigned c = ((unsigned) tolua_tonumber(tolua_S,2,0));
  2795. #ifndef TOLUA_RELEASE
  2796. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEchoCharacter'", NULL);
  2797. #endif
  2798. {
  2799. self->SetEchoCharacter(c);
  2800. }
  2801. }
  2802. return 0;
  2803. #ifndef TOLUA_RELEASE
  2804. tolua_lerror:
  2805. tolua_error(tolua_S,"#ferror in function 'SetEchoCharacter'.",&tolua_err);
  2806. return 0;
  2807. #endif
  2808. }
  2809. #endif //#ifndef TOLUA_DISABLE
  2810. /* method: SetCursorMovable of class LineEdit */
  2811. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetCursorMovable00
  2812. static int tolua_UI_LineEdit_SetCursorMovable00(lua_State* tolua_S)
  2813. {
  2814. #ifndef TOLUA_RELEASE
  2815. tolua_Error tolua_err;
  2816. if (
  2817. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2818. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2819. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2820. )
  2821. goto tolua_lerror;
  2822. else
  2823. #endif
  2824. {
  2825. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2826. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2827. #ifndef TOLUA_RELEASE
  2828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursorMovable'", NULL);
  2829. #endif
  2830. {
  2831. self->SetCursorMovable(enable);
  2832. }
  2833. }
  2834. return 0;
  2835. #ifndef TOLUA_RELEASE
  2836. tolua_lerror:
  2837. tolua_error(tolua_S,"#ferror in function 'SetCursorMovable'.",&tolua_err);
  2838. return 0;
  2839. #endif
  2840. }
  2841. #endif //#ifndef TOLUA_DISABLE
  2842. /* method: SetTextSelectable of class LineEdit */
  2843. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetTextSelectable00
  2844. static int tolua_UI_LineEdit_SetTextSelectable00(lua_State* tolua_S)
  2845. {
  2846. #ifndef TOLUA_RELEASE
  2847. tolua_Error tolua_err;
  2848. if (
  2849. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2850. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2851. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2852. )
  2853. goto tolua_lerror;
  2854. else
  2855. #endif
  2856. {
  2857. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2858. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2859. #ifndef TOLUA_RELEASE
  2860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextSelectable'", NULL);
  2861. #endif
  2862. {
  2863. self->SetTextSelectable(enable);
  2864. }
  2865. }
  2866. return 0;
  2867. #ifndef TOLUA_RELEASE
  2868. tolua_lerror:
  2869. tolua_error(tolua_S,"#ferror in function 'SetTextSelectable'.",&tolua_err);
  2870. return 0;
  2871. #endif
  2872. }
  2873. #endif //#ifndef TOLUA_DISABLE
  2874. /* method: SetTextCopyable of class LineEdit */
  2875. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetTextCopyable00
  2876. static int tolua_UI_LineEdit_SetTextCopyable00(lua_State* tolua_S)
  2877. {
  2878. #ifndef TOLUA_RELEASE
  2879. tolua_Error tolua_err;
  2880. if (
  2881. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2882. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  2883. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2884. )
  2885. goto tolua_lerror;
  2886. else
  2887. #endif
  2888. {
  2889. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2890. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  2891. #ifndef TOLUA_RELEASE
  2892. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextCopyable'", NULL);
  2893. #endif
  2894. {
  2895. self->SetTextCopyable(enable);
  2896. }
  2897. }
  2898. return 0;
  2899. #ifndef TOLUA_RELEASE
  2900. tolua_lerror:
  2901. tolua_error(tolua_S,"#ferror in function 'SetTextCopyable'.",&tolua_err);
  2902. return 0;
  2903. #endif
  2904. }
  2905. #endif //#ifndef TOLUA_DISABLE
  2906. /* method: SetDoubleClickInterval of class LineEdit */
  2907. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_SetDoubleClickInterval00
  2908. static int tolua_UI_LineEdit_SetDoubleClickInterval00(lua_State* tolua_S)
  2909. {
  2910. #ifndef TOLUA_RELEASE
  2911. tolua_Error tolua_err;
  2912. if (
  2913. !tolua_isusertype(tolua_S,1,"LineEdit",0,&tolua_err) ||
  2914. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  2915. !tolua_isnoobj(tolua_S,3,&tolua_err)
  2916. )
  2917. goto tolua_lerror;
  2918. else
  2919. #endif
  2920. {
  2921. LineEdit* self = (LineEdit*) tolua_tousertype(tolua_S,1,0);
  2922. float interval = ((float) tolua_tonumber(tolua_S,2,0));
  2923. #ifndef TOLUA_RELEASE
  2924. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDoubleClickInterval'", NULL);
  2925. #endif
  2926. {
  2927. self->SetDoubleClickInterval(interval);
  2928. }
  2929. }
  2930. return 0;
  2931. #ifndef TOLUA_RELEASE
  2932. tolua_lerror:
  2933. tolua_error(tolua_S,"#ferror in function 'SetDoubleClickInterval'.",&tolua_err);
  2934. return 0;
  2935. #endif
  2936. }
  2937. #endif //#ifndef TOLUA_DISABLE
  2938. /* method: GetText of class LineEdit */
  2939. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetText00
  2940. static int tolua_UI_LineEdit_GetText00(lua_State* tolua_S)
  2941. {
  2942. #ifndef TOLUA_RELEASE
  2943. tolua_Error tolua_err;
  2944. if (
  2945. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2946. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2947. )
  2948. goto tolua_lerror;
  2949. else
  2950. #endif
  2951. {
  2952. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2953. #ifndef TOLUA_RELEASE
  2954. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  2955. #endif
  2956. {
  2957. const String& tolua_ret = (const String&) self->GetText();
  2958. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  2959. }
  2960. }
  2961. return 1;
  2962. #ifndef TOLUA_RELEASE
  2963. tolua_lerror:
  2964. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  2965. return 0;
  2966. #endif
  2967. }
  2968. #endif //#ifndef TOLUA_DISABLE
  2969. /* method: GetCursorPosition of class LineEdit */
  2970. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursorPosition00
  2971. static int tolua_UI_LineEdit_GetCursorPosition00(lua_State* tolua_S)
  2972. {
  2973. #ifndef TOLUA_RELEASE
  2974. tolua_Error tolua_err;
  2975. if (
  2976. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  2977. !tolua_isnoobj(tolua_S,2,&tolua_err)
  2978. )
  2979. goto tolua_lerror;
  2980. else
  2981. #endif
  2982. {
  2983. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  2984. #ifndef TOLUA_RELEASE
  2985. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorPosition'", NULL);
  2986. #endif
  2987. {
  2988. unsigned tolua_ret = (unsigned) self->GetCursorPosition();
  2989. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  2990. }
  2991. }
  2992. return 1;
  2993. #ifndef TOLUA_RELEASE
  2994. tolua_lerror:
  2995. tolua_error(tolua_S,"#ferror in function 'GetCursorPosition'.",&tolua_err);
  2996. return 0;
  2997. #endif
  2998. }
  2999. #endif //#ifndef TOLUA_DISABLE
  3000. /* method: GetCursorBlinkRate of class LineEdit */
  3001. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursorBlinkRate00
  3002. static int tolua_UI_LineEdit_GetCursorBlinkRate00(lua_State* tolua_S)
  3003. {
  3004. #ifndef TOLUA_RELEASE
  3005. tolua_Error tolua_err;
  3006. if (
  3007. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3008. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3009. )
  3010. goto tolua_lerror;
  3011. else
  3012. #endif
  3013. {
  3014. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3015. #ifndef TOLUA_RELEASE
  3016. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorBlinkRate'", NULL);
  3017. #endif
  3018. {
  3019. float tolua_ret = (float) self->GetCursorBlinkRate();
  3020. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3021. }
  3022. }
  3023. return 1;
  3024. #ifndef TOLUA_RELEASE
  3025. tolua_lerror:
  3026. tolua_error(tolua_S,"#ferror in function 'GetCursorBlinkRate'.",&tolua_err);
  3027. return 0;
  3028. #endif
  3029. }
  3030. #endif //#ifndef TOLUA_DISABLE
  3031. /* method: GetMaxLength of class LineEdit */
  3032. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetMaxLength00
  3033. static int tolua_UI_LineEdit_GetMaxLength00(lua_State* tolua_S)
  3034. {
  3035. #ifndef TOLUA_RELEASE
  3036. tolua_Error tolua_err;
  3037. if (
  3038. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3039. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3040. )
  3041. goto tolua_lerror;
  3042. else
  3043. #endif
  3044. {
  3045. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3046. #ifndef TOLUA_RELEASE
  3047. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxLength'", NULL);
  3048. #endif
  3049. {
  3050. unsigned tolua_ret = (unsigned) self->GetMaxLength();
  3051. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3052. }
  3053. }
  3054. return 1;
  3055. #ifndef TOLUA_RELEASE
  3056. tolua_lerror:
  3057. tolua_error(tolua_S,"#ferror in function 'GetMaxLength'.",&tolua_err);
  3058. return 0;
  3059. #endif
  3060. }
  3061. #endif //#ifndef TOLUA_DISABLE
  3062. /* method: GetEchoCharacter of class LineEdit */
  3063. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetEchoCharacter00
  3064. static int tolua_UI_LineEdit_GetEchoCharacter00(lua_State* tolua_S)
  3065. {
  3066. #ifndef TOLUA_RELEASE
  3067. tolua_Error tolua_err;
  3068. if (
  3069. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3070. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3071. )
  3072. goto tolua_lerror;
  3073. else
  3074. #endif
  3075. {
  3076. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3077. #ifndef TOLUA_RELEASE
  3078. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEchoCharacter'", NULL);
  3079. #endif
  3080. {
  3081. unsigned tolua_ret = (unsigned) self->GetEchoCharacter();
  3082. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3083. }
  3084. }
  3085. return 1;
  3086. #ifndef TOLUA_RELEASE
  3087. tolua_lerror:
  3088. tolua_error(tolua_S,"#ferror in function 'GetEchoCharacter'.",&tolua_err);
  3089. return 0;
  3090. #endif
  3091. }
  3092. #endif //#ifndef TOLUA_DISABLE
  3093. /* method: IsCursorMovable of class LineEdit */
  3094. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsCursorMovable00
  3095. static int tolua_UI_LineEdit_IsCursorMovable00(lua_State* tolua_S)
  3096. {
  3097. #ifndef TOLUA_RELEASE
  3098. tolua_Error tolua_err;
  3099. if (
  3100. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3101. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3102. )
  3103. goto tolua_lerror;
  3104. else
  3105. #endif
  3106. {
  3107. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3108. #ifndef TOLUA_RELEASE
  3109. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsCursorMovable'", NULL);
  3110. #endif
  3111. {
  3112. bool tolua_ret = (bool) self->IsCursorMovable();
  3113. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3114. }
  3115. }
  3116. return 1;
  3117. #ifndef TOLUA_RELEASE
  3118. tolua_lerror:
  3119. tolua_error(tolua_S,"#ferror in function 'IsCursorMovable'.",&tolua_err);
  3120. return 0;
  3121. #endif
  3122. }
  3123. #endif //#ifndef TOLUA_DISABLE
  3124. /* method: IsTextSelectable of class LineEdit */
  3125. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsTextSelectable00
  3126. static int tolua_UI_LineEdit_IsTextSelectable00(lua_State* tolua_S)
  3127. {
  3128. #ifndef TOLUA_RELEASE
  3129. tolua_Error tolua_err;
  3130. if (
  3131. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3132. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3133. )
  3134. goto tolua_lerror;
  3135. else
  3136. #endif
  3137. {
  3138. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3139. #ifndef TOLUA_RELEASE
  3140. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTextSelectable'", NULL);
  3141. #endif
  3142. {
  3143. bool tolua_ret = (bool) self->IsTextSelectable();
  3144. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3145. }
  3146. }
  3147. return 1;
  3148. #ifndef TOLUA_RELEASE
  3149. tolua_lerror:
  3150. tolua_error(tolua_S,"#ferror in function 'IsTextSelectable'.",&tolua_err);
  3151. return 0;
  3152. #endif
  3153. }
  3154. #endif //#ifndef TOLUA_DISABLE
  3155. /* method: IsTextCopyable of class LineEdit */
  3156. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_IsTextCopyable00
  3157. static int tolua_UI_LineEdit_IsTextCopyable00(lua_State* tolua_S)
  3158. {
  3159. #ifndef TOLUA_RELEASE
  3160. tolua_Error tolua_err;
  3161. if (
  3162. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3163. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3164. )
  3165. goto tolua_lerror;
  3166. else
  3167. #endif
  3168. {
  3169. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3170. #ifndef TOLUA_RELEASE
  3171. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTextCopyable'", NULL);
  3172. #endif
  3173. {
  3174. bool tolua_ret = (bool) self->IsTextCopyable();
  3175. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  3176. }
  3177. }
  3178. return 1;
  3179. #ifndef TOLUA_RELEASE
  3180. tolua_lerror:
  3181. tolua_error(tolua_S,"#ferror in function 'IsTextCopyable'.",&tolua_err);
  3182. return 0;
  3183. #endif
  3184. }
  3185. #endif //#ifndef TOLUA_DISABLE
  3186. /* method: GetTextElement of class LineEdit */
  3187. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetTextElement00
  3188. static int tolua_UI_LineEdit_GetTextElement00(lua_State* tolua_S)
  3189. {
  3190. #ifndef TOLUA_RELEASE
  3191. tolua_Error tolua_err;
  3192. if (
  3193. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3194. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3195. )
  3196. goto tolua_lerror;
  3197. else
  3198. #endif
  3199. {
  3200. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3201. #ifndef TOLUA_RELEASE
  3202. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextElement'", NULL);
  3203. #endif
  3204. {
  3205. Text* tolua_ret = (Text*) self->GetTextElement();
  3206. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  3207. }
  3208. }
  3209. return 1;
  3210. #ifndef TOLUA_RELEASE
  3211. tolua_lerror:
  3212. tolua_error(tolua_S,"#ferror in function 'GetTextElement'.",&tolua_err);
  3213. return 0;
  3214. #endif
  3215. }
  3216. #endif //#ifndef TOLUA_DISABLE
  3217. /* method: GetCursor of class LineEdit */
  3218. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetCursor00
  3219. static int tolua_UI_LineEdit_GetCursor00(lua_State* tolua_S)
  3220. {
  3221. #ifndef TOLUA_RELEASE
  3222. tolua_Error tolua_err;
  3223. if (
  3224. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3225. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3226. )
  3227. goto tolua_lerror;
  3228. else
  3229. #endif
  3230. {
  3231. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3232. #ifndef TOLUA_RELEASE
  3233. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursor'", NULL);
  3234. #endif
  3235. {
  3236. BorderImage* tolua_ret = (BorderImage*) self->GetCursor();
  3237. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  3238. }
  3239. }
  3240. return 1;
  3241. #ifndef TOLUA_RELEASE
  3242. tolua_lerror:
  3243. tolua_error(tolua_S,"#ferror in function 'GetCursor'.",&tolua_err);
  3244. return 0;
  3245. #endif
  3246. }
  3247. #endif //#ifndef TOLUA_DISABLE
  3248. /* method: GetDoubleClickInterval of class LineEdit */
  3249. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit_GetDoubleClickInterval00
  3250. static int tolua_UI_LineEdit_GetDoubleClickInterval00(lua_State* tolua_S)
  3251. {
  3252. #ifndef TOLUA_RELEASE
  3253. tolua_Error tolua_err;
  3254. if (
  3255. !tolua_isusertype(tolua_S,1,"const LineEdit",0,&tolua_err) ||
  3256. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3257. )
  3258. goto tolua_lerror;
  3259. else
  3260. #endif
  3261. {
  3262. const LineEdit* self = (const LineEdit*) tolua_tousertype(tolua_S,1,0);
  3263. #ifndef TOLUA_RELEASE
  3264. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDoubleClickInterval'", NULL);
  3265. #endif
  3266. {
  3267. float tolua_ret = (float) self->GetDoubleClickInterval();
  3268. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3269. }
  3270. }
  3271. return 1;
  3272. #ifndef TOLUA_RELEASE
  3273. tolua_lerror:
  3274. tolua_error(tolua_S,"#ferror in function 'GetDoubleClickInterval'.",&tolua_err);
  3275. return 0;
  3276. #endif
  3277. }
  3278. #endif //#ifndef TOLUA_DISABLE
  3279. /* function: NewLineEdit */
  3280. #ifndef TOLUA_DISABLE_tolua_UI_LineEdit00
  3281. static int tolua_UI_LineEdit00(lua_State* tolua_S)
  3282. {
  3283. #ifndef TOLUA_RELEASE
  3284. tolua_Error tolua_err;
  3285. if (
  3286. !tolua_isnoobj(tolua_S,1,&tolua_err)
  3287. )
  3288. goto tolua_lerror;
  3289. else
  3290. #endif
  3291. {
  3292. {
  3293. LineEdit* tolua_ret = (LineEdit*) NewLineEdit();
  3294. tolua_pushusertype(tolua_S,(void*)tolua_ret,"LineEdit");
  3295. }
  3296. }
  3297. return 1;
  3298. #ifndef TOLUA_RELEASE
  3299. tolua_lerror:
  3300. tolua_error(tolua_S,"#ferror in function 'LineEdit'.",&tolua_err);
  3301. return 0;
  3302. #endif
  3303. }
  3304. #endif //#ifndef TOLUA_DISABLE
  3305. /* method: AddItem of class ListView */
  3306. #ifndef TOLUA_DISABLE_tolua_UI_ListView_AddItem00
  3307. static int tolua_UI_ListView_AddItem00(lua_State* tolua_S)
  3308. {
  3309. #ifndef TOLUA_RELEASE
  3310. tolua_Error tolua_err;
  3311. if (
  3312. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3313. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3314. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3315. )
  3316. goto tolua_lerror;
  3317. else
  3318. #endif
  3319. {
  3320. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3321. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3322. #ifndef TOLUA_RELEASE
  3323. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddItem'", NULL);
  3324. #endif
  3325. {
  3326. self->AddItem(item);
  3327. }
  3328. }
  3329. return 0;
  3330. #ifndef TOLUA_RELEASE
  3331. tolua_lerror:
  3332. tolua_error(tolua_S,"#ferror in function 'AddItem'.",&tolua_err);
  3333. return 0;
  3334. #endif
  3335. }
  3336. #endif //#ifndef TOLUA_DISABLE
  3337. /* method: InsertItem of class ListView */
  3338. #ifndef TOLUA_DISABLE_tolua_UI_ListView_InsertItem00
  3339. static int tolua_UI_ListView_InsertItem00(lua_State* tolua_S)
  3340. {
  3341. #ifndef TOLUA_RELEASE
  3342. tolua_Error tolua_err;
  3343. if (
  3344. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3345. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3346. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  3347. !tolua_isusertype(tolua_S,4,"UIElement",1,&tolua_err) ||
  3348. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3349. )
  3350. goto tolua_lerror;
  3351. else
  3352. #endif
  3353. {
  3354. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3355. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3356. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  3357. UIElement* parentItem = ((UIElement*) tolua_tousertype(tolua_S,4,0));
  3358. #ifndef TOLUA_RELEASE
  3359. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertItem'", NULL);
  3360. #endif
  3361. {
  3362. self->InsertItem(index,item,parentItem);
  3363. }
  3364. }
  3365. return 0;
  3366. #ifndef TOLUA_RELEASE
  3367. tolua_lerror:
  3368. tolua_error(tolua_S,"#ferror in function 'InsertItem'.",&tolua_err);
  3369. return 0;
  3370. #endif
  3371. }
  3372. #endif //#ifndef TOLUA_DISABLE
  3373. /* method: RemoveItem of class ListView */
  3374. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveItem00
  3375. static int tolua_UI_ListView_RemoveItem00(lua_State* tolua_S)
  3376. {
  3377. #ifndef TOLUA_RELEASE
  3378. tolua_Error tolua_err;
  3379. if (
  3380. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3381. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3382. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  3383. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3384. )
  3385. goto tolua_lerror;
  3386. else
  3387. #endif
  3388. {
  3389. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3390. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3391. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,0));
  3392. #ifndef TOLUA_RELEASE
  3393. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  3394. #endif
  3395. {
  3396. self->RemoveItem(item,index);
  3397. }
  3398. }
  3399. return 0;
  3400. #ifndef TOLUA_RELEASE
  3401. tolua_lerror:
  3402. tolua_error(tolua_S,"#ferror in function 'RemoveItem'.",&tolua_err);
  3403. return 0;
  3404. #endif
  3405. }
  3406. #endif //#ifndef TOLUA_DISABLE
  3407. /* method: RemoveItem of class ListView */
  3408. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveItem01
  3409. static int tolua_UI_ListView_RemoveItem01(lua_State* tolua_S)
  3410. {
  3411. tolua_Error tolua_err;
  3412. if (
  3413. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3414. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3415. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3416. )
  3417. goto tolua_lerror;
  3418. else
  3419. {
  3420. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3421. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3422. #ifndef TOLUA_RELEASE
  3423. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveItem'", NULL);
  3424. #endif
  3425. {
  3426. self->RemoveItem(index);
  3427. }
  3428. }
  3429. return 0;
  3430. tolua_lerror:
  3431. return tolua_UI_ListView_RemoveItem00(tolua_S);
  3432. }
  3433. #endif //#ifndef TOLUA_DISABLE
  3434. /* method: RemoveAllItems of class ListView */
  3435. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveAllItems00
  3436. static int tolua_UI_ListView_RemoveAllItems00(lua_State* tolua_S)
  3437. {
  3438. #ifndef TOLUA_RELEASE
  3439. tolua_Error tolua_err;
  3440. if (
  3441. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3442. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3443. )
  3444. goto tolua_lerror;
  3445. else
  3446. #endif
  3447. {
  3448. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3449. #ifndef TOLUA_RELEASE
  3450. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllItems'", NULL);
  3451. #endif
  3452. {
  3453. self->RemoveAllItems();
  3454. }
  3455. }
  3456. return 0;
  3457. #ifndef TOLUA_RELEASE
  3458. tolua_lerror:
  3459. tolua_error(tolua_S,"#ferror in function 'RemoveAllItems'.",&tolua_err);
  3460. return 0;
  3461. #endif
  3462. }
  3463. #endif //#ifndef TOLUA_DISABLE
  3464. /* method: SetSelection of class ListView */
  3465. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetSelection00
  3466. static int tolua_UI_ListView_SetSelection00(lua_State* tolua_S)
  3467. {
  3468. #ifndef TOLUA_RELEASE
  3469. tolua_Error tolua_err;
  3470. if (
  3471. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3472. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3473. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3474. )
  3475. goto tolua_lerror;
  3476. else
  3477. #endif
  3478. {
  3479. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3480. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3481. #ifndef TOLUA_RELEASE
  3482. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  3483. #endif
  3484. {
  3485. self->SetSelection(index);
  3486. }
  3487. }
  3488. return 0;
  3489. #ifndef TOLUA_RELEASE
  3490. tolua_lerror:
  3491. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  3492. return 0;
  3493. #endif
  3494. }
  3495. #endif //#ifndef TOLUA_DISABLE
  3496. /* method: AddSelection of class ListView */
  3497. #ifndef TOLUA_DISABLE_tolua_UI_ListView_AddSelection00
  3498. static int tolua_UI_ListView_AddSelection00(lua_State* tolua_S)
  3499. {
  3500. #ifndef TOLUA_RELEASE
  3501. tolua_Error tolua_err;
  3502. if (
  3503. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3504. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3505. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3506. )
  3507. goto tolua_lerror;
  3508. else
  3509. #endif
  3510. {
  3511. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3512. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3513. #ifndef TOLUA_RELEASE
  3514. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddSelection'", NULL);
  3515. #endif
  3516. {
  3517. self->AddSelection(index);
  3518. }
  3519. }
  3520. return 0;
  3521. #ifndef TOLUA_RELEASE
  3522. tolua_lerror:
  3523. tolua_error(tolua_S,"#ferror in function 'AddSelection'.",&tolua_err);
  3524. return 0;
  3525. #endif
  3526. }
  3527. #endif //#ifndef TOLUA_DISABLE
  3528. /* method: RemoveSelection of class ListView */
  3529. #ifndef TOLUA_DISABLE_tolua_UI_ListView_RemoveSelection00
  3530. static int tolua_UI_ListView_RemoveSelection00(lua_State* tolua_S)
  3531. {
  3532. #ifndef TOLUA_RELEASE
  3533. tolua_Error tolua_err;
  3534. if (
  3535. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3536. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3537. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3538. )
  3539. goto tolua_lerror;
  3540. else
  3541. #endif
  3542. {
  3543. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3544. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3545. #ifndef TOLUA_RELEASE
  3546. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveSelection'", NULL);
  3547. #endif
  3548. {
  3549. self->RemoveSelection(index);
  3550. }
  3551. }
  3552. return 0;
  3553. #ifndef TOLUA_RELEASE
  3554. tolua_lerror:
  3555. tolua_error(tolua_S,"#ferror in function 'RemoveSelection'.",&tolua_err);
  3556. return 0;
  3557. #endif
  3558. }
  3559. #endif //#ifndef TOLUA_DISABLE
  3560. /* method: ToggleSelection of class ListView */
  3561. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ToggleSelection00
  3562. static int tolua_UI_ListView_ToggleSelection00(lua_State* tolua_S)
  3563. {
  3564. #ifndef TOLUA_RELEASE
  3565. tolua_Error tolua_err;
  3566. if (
  3567. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3568. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3569. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3570. )
  3571. goto tolua_lerror;
  3572. else
  3573. #endif
  3574. {
  3575. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3576. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3577. #ifndef TOLUA_RELEASE
  3578. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleSelection'", NULL);
  3579. #endif
  3580. {
  3581. self->ToggleSelection(index);
  3582. }
  3583. }
  3584. return 0;
  3585. #ifndef TOLUA_RELEASE
  3586. tolua_lerror:
  3587. tolua_error(tolua_S,"#ferror in function 'ToggleSelection'.",&tolua_err);
  3588. return 0;
  3589. #endif
  3590. }
  3591. #endif //#ifndef TOLUA_DISABLE
  3592. /* method: ChangeSelection of class ListView */
  3593. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ChangeSelection00
  3594. static int tolua_UI_ListView_ChangeSelection00(lua_State* tolua_S)
  3595. {
  3596. #ifndef TOLUA_RELEASE
  3597. tolua_Error tolua_err;
  3598. if (
  3599. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3600. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3601. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  3602. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3603. )
  3604. goto tolua_lerror;
  3605. else
  3606. #endif
  3607. {
  3608. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3609. int delta = ((int) tolua_tonumber(tolua_S,2,0));
  3610. bool additive = ((bool) tolua_toboolean(tolua_S,3,false));
  3611. #ifndef TOLUA_RELEASE
  3612. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeSelection'", NULL);
  3613. #endif
  3614. {
  3615. self->ChangeSelection(delta,additive);
  3616. }
  3617. }
  3618. return 0;
  3619. #ifndef TOLUA_RELEASE
  3620. tolua_lerror:
  3621. tolua_error(tolua_S,"#ferror in function 'ChangeSelection'.",&tolua_err);
  3622. return 0;
  3623. #endif
  3624. }
  3625. #endif //#ifndef TOLUA_DISABLE
  3626. /* method: ClearSelection of class ListView */
  3627. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ClearSelection00
  3628. static int tolua_UI_ListView_ClearSelection00(lua_State* tolua_S)
  3629. {
  3630. #ifndef TOLUA_RELEASE
  3631. tolua_Error tolua_err;
  3632. if (
  3633. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3634. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3635. )
  3636. goto tolua_lerror;
  3637. else
  3638. #endif
  3639. {
  3640. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3641. #ifndef TOLUA_RELEASE
  3642. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearSelection'", NULL);
  3643. #endif
  3644. {
  3645. self->ClearSelection();
  3646. }
  3647. }
  3648. return 0;
  3649. #ifndef TOLUA_RELEASE
  3650. tolua_lerror:
  3651. tolua_error(tolua_S,"#ferror in function 'ClearSelection'.",&tolua_err);
  3652. return 0;
  3653. #endif
  3654. }
  3655. #endif //#ifndef TOLUA_DISABLE
  3656. /* method: SetHighlightMode of class ListView */
  3657. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetHighlightMode00
  3658. static int tolua_UI_ListView_SetHighlightMode00(lua_State* tolua_S)
  3659. {
  3660. #ifndef TOLUA_RELEASE
  3661. tolua_Error tolua_err;
  3662. if (
  3663. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3664. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3665. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3666. )
  3667. goto tolua_lerror;
  3668. else
  3669. #endif
  3670. {
  3671. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3672. HighlightMode mode = ((HighlightMode) (int) tolua_tonumber(tolua_S,2,0));
  3673. #ifndef TOLUA_RELEASE
  3674. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHighlightMode'", NULL);
  3675. #endif
  3676. {
  3677. self->SetHighlightMode(mode);
  3678. }
  3679. }
  3680. return 0;
  3681. #ifndef TOLUA_RELEASE
  3682. tolua_lerror:
  3683. tolua_error(tolua_S,"#ferror in function 'SetHighlightMode'.",&tolua_err);
  3684. return 0;
  3685. #endif
  3686. }
  3687. #endif //#ifndef TOLUA_DISABLE
  3688. /* method: SetMultiselect of class ListView */
  3689. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetMultiselect00
  3690. static int tolua_UI_ListView_SetMultiselect00(lua_State* tolua_S)
  3691. {
  3692. #ifndef TOLUA_RELEASE
  3693. tolua_Error tolua_err;
  3694. if (
  3695. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3696. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3697. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3698. )
  3699. goto tolua_lerror;
  3700. else
  3701. #endif
  3702. {
  3703. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3704. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3705. #ifndef TOLUA_RELEASE
  3706. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMultiselect'", NULL);
  3707. #endif
  3708. {
  3709. self->SetMultiselect(enable);
  3710. }
  3711. }
  3712. return 0;
  3713. #ifndef TOLUA_RELEASE
  3714. tolua_lerror:
  3715. tolua_error(tolua_S,"#ferror in function 'SetMultiselect'.",&tolua_err);
  3716. return 0;
  3717. #endif
  3718. }
  3719. #endif //#ifndef TOLUA_DISABLE
  3720. /* method: SetHierarchyMode of class ListView */
  3721. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetHierarchyMode00
  3722. static int tolua_UI_ListView_SetHierarchyMode00(lua_State* tolua_S)
  3723. {
  3724. #ifndef TOLUA_RELEASE
  3725. tolua_Error tolua_err;
  3726. if (
  3727. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3728. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3729. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3730. )
  3731. goto tolua_lerror;
  3732. else
  3733. #endif
  3734. {
  3735. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3736. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3737. #ifndef TOLUA_RELEASE
  3738. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHierarchyMode'", NULL);
  3739. #endif
  3740. {
  3741. self->SetHierarchyMode(enable);
  3742. }
  3743. }
  3744. return 0;
  3745. #ifndef TOLUA_RELEASE
  3746. tolua_lerror:
  3747. tolua_error(tolua_S,"#ferror in function 'SetHierarchyMode'.",&tolua_err);
  3748. return 0;
  3749. #endif
  3750. }
  3751. #endif //#ifndef TOLUA_DISABLE
  3752. /* method: SetBaseIndent of class ListView */
  3753. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetBaseIndent00
  3754. static int tolua_UI_ListView_SetBaseIndent00(lua_State* tolua_S)
  3755. {
  3756. #ifndef TOLUA_RELEASE
  3757. tolua_Error tolua_err;
  3758. if (
  3759. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3760. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3761. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3762. )
  3763. goto tolua_lerror;
  3764. else
  3765. #endif
  3766. {
  3767. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3768. int baseIndent = ((int) tolua_tonumber(tolua_S,2,0));
  3769. #ifndef TOLUA_RELEASE
  3770. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBaseIndent'", NULL);
  3771. #endif
  3772. {
  3773. self->SetBaseIndent(baseIndent);
  3774. }
  3775. }
  3776. return 0;
  3777. #ifndef TOLUA_RELEASE
  3778. tolua_lerror:
  3779. tolua_error(tolua_S,"#ferror in function 'SetBaseIndent'.",&tolua_err);
  3780. return 0;
  3781. #endif
  3782. }
  3783. #endif //#ifndef TOLUA_DISABLE
  3784. /* method: SetClearSelectionOnDefocus of class ListView */
  3785. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetClearSelectionOnDefocus00
  3786. static int tolua_UI_ListView_SetClearSelectionOnDefocus00(lua_State* tolua_S)
  3787. {
  3788. #ifndef TOLUA_RELEASE
  3789. tolua_Error tolua_err;
  3790. if (
  3791. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3792. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  3793. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3794. )
  3795. goto tolua_lerror;
  3796. else
  3797. #endif
  3798. {
  3799. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3800. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  3801. #ifndef TOLUA_RELEASE
  3802. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClearSelectionOnDefocus'", NULL);
  3803. #endif
  3804. {
  3805. self->SetClearSelectionOnDefocus(enable);
  3806. }
  3807. }
  3808. return 0;
  3809. #ifndef TOLUA_RELEASE
  3810. tolua_lerror:
  3811. tolua_error(tolua_S,"#ferror in function 'SetClearSelectionOnDefocus'.",&tolua_err);
  3812. return 0;
  3813. #endif
  3814. }
  3815. #endif //#ifndef TOLUA_DISABLE
  3816. /* method: SetDoubleClickInterval of class ListView */
  3817. #ifndef TOLUA_DISABLE_tolua_UI_ListView_SetDoubleClickInterval00
  3818. static int tolua_UI_ListView_SetDoubleClickInterval00(lua_State* tolua_S)
  3819. {
  3820. #ifndef TOLUA_RELEASE
  3821. tolua_Error tolua_err;
  3822. if (
  3823. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3824. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3825. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3826. )
  3827. goto tolua_lerror;
  3828. else
  3829. #endif
  3830. {
  3831. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3832. float interval = ((float) tolua_tonumber(tolua_S,2,0));
  3833. #ifndef TOLUA_RELEASE
  3834. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDoubleClickInterval'", NULL);
  3835. #endif
  3836. {
  3837. self->SetDoubleClickInterval(interval);
  3838. }
  3839. }
  3840. return 0;
  3841. #ifndef TOLUA_RELEASE
  3842. tolua_lerror:
  3843. tolua_error(tolua_S,"#ferror in function 'SetDoubleClickInterval'.",&tolua_err);
  3844. return 0;
  3845. #endif
  3846. }
  3847. #endif //#ifndef TOLUA_DISABLE
  3848. /* method: Expand of class ListView */
  3849. #ifndef TOLUA_DISABLE_tolua_UI_ListView_Expand00
  3850. static int tolua_UI_ListView_Expand00(lua_State* tolua_S)
  3851. {
  3852. #ifndef TOLUA_RELEASE
  3853. tolua_Error tolua_err;
  3854. if (
  3855. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3856. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3857. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  3858. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  3859. !tolua_isnoobj(tolua_S,5,&tolua_err)
  3860. )
  3861. goto tolua_lerror;
  3862. else
  3863. #endif
  3864. {
  3865. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3866. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3867. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  3868. bool recursive = ((bool) tolua_toboolean(tolua_S,4,false));
  3869. #ifndef TOLUA_RELEASE
  3870. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Expand'", NULL);
  3871. #endif
  3872. {
  3873. self->Expand(index,enable,recursive);
  3874. }
  3875. }
  3876. return 0;
  3877. #ifndef TOLUA_RELEASE
  3878. tolua_lerror:
  3879. tolua_error(tolua_S,"#ferror in function 'Expand'.",&tolua_err);
  3880. return 0;
  3881. #endif
  3882. }
  3883. #endif //#ifndef TOLUA_DISABLE
  3884. /* method: ToggleExpand of class ListView */
  3885. #ifndef TOLUA_DISABLE_tolua_UI_ListView_ToggleExpand00
  3886. static int tolua_UI_ListView_ToggleExpand00(lua_State* tolua_S)
  3887. {
  3888. #ifndef TOLUA_RELEASE
  3889. tolua_Error tolua_err;
  3890. if (
  3891. !tolua_isusertype(tolua_S,1,"ListView",0,&tolua_err) ||
  3892. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3893. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  3894. !tolua_isnoobj(tolua_S,4,&tolua_err)
  3895. )
  3896. goto tolua_lerror;
  3897. else
  3898. #endif
  3899. {
  3900. ListView* self = (ListView*) tolua_tousertype(tolua_S,1,0);
  3901. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3902. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  3903. #ifndef TOLUA_RELEASE
  3904. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ToggleExpand'", NULL);
  3905. #endif
  3906. {
  3907. self->ToggleExpand(index,recursive);
  3908. }
  3909. }
  3910. return 0;
  3911. #ifndef TOLUA_RELEASE
  3912. tolua_lerror:
  3913. tolua_error(tolua_S,"#ferror in function 'ToggleExpand'.",&tolua_err);
  3914. return 0;
  3915. #endif
  3916. }
  3917. #endif //#ifndef TOLUA_DISABLE
  3918. /* method: GetNumItems of class ListView */
  3919. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetNumItems00
  3920. static int tolua_UI_ListView_GetNumItems00(lua_State* tolua_S)
  3921. {
  3922. #ifndef TOLUA_RELEASE
  3923. tolua_Error tolua_err;
  3924. if (
  3925. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3926. !tolua_isnoobj(tolua_S,2,&tolua_err)
  3927. )
  3928. goto tolua_lerror;
  3929. else
  3930. #endif
  3931. {
  3932. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3933. #ifndef TOLUA_RELEASE
  3934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumItems'", NULL);
  3935. #endif
  3936. {
  3937. unsigned tolua_ret = (unsigned) self->GetNumItems();
  3938. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  3939. }
  3940. }
  3941. return 1;
  3942. #ifndef TOLUA_RELEASE
  3943. tolua_lerror:
  3944. tolua_error(tolua_S,"#ferror in function 'GetNumItems'.",&tolua_err);
  3945. return 0;
  3946. #endif
  3947. }
  3948. #endif //#ifndef TOLUA_DISABLE
  3949. /* method: GetItem of class ListView */
  3950. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetItem00
  3951. static int tolua_UI_ListView_GetItem00(lua_State* tolua_S)
  3952. {
  3953. #ifndef TOLUA_RELEASE
  3954. tolua_Error tolua_err;
  3955. if (
  3956. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3957. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  3958. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3959. )
  3960. goto tolua_lerror;
  3961. else
  3962. #endif
  3963. {
  3964. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3965. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  3966. #ifndef TOLUA_RELEASE
  3967. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetItem'", NULL);
  3968. #endif
  3969. {
  3970. UIElement* tolua_ret = (UIElement*) self->GetItem(index);
  3971. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  3972. }
  3973. }
  3974. return 1;
  3975. #ifndef TOLUA_RELEASE
  3976. tolua_lerror:
  3977. tolua_error(tolua_S,"#ferror in function 'GetItem'.",&tolua_err);
  3978. return 0;
  3979. #endif
  3980. }
  3981. #endif //#ifndef TOLUA_DISABLE
  3982. /* method: FindItem of class ListView */
  3983. #ifndef TOLUA_DISABLE_tolua_UI_ListView_FindItem00
  3984. static int tolua_UI_ListView_FindItem00(lua_State* tolua_S)
  3985. {
  3986. #ifndef TOLUA_RELEASE
  3987. tolua_Error tolua_err;
  3988. if (
  3989. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  3990. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  3991. !tolua_isnoobj(tolua_S,3,&tolua_err)
  3992. )
  3993. goto tolua_lerror;
  3994. else
  3995. #endif
  3996. {
  3997. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  3998. UIElement* item = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  3999. #ifndef TOLUA_RELEASE
  4000. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindItem'", NULL);
  4001. #endif
  4002. {
  4003. unsigned tolua_ret = (unsigned) self->FindItem(item);
  4004. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4005. }
  4006. }
  4007. return 1;
  4008. #ifndef TOLUA_RELEASE
  4009. tolua_lerror:
  4010. tolua_error(tolua_S,"#ferror in function 'FindItem'.",&tolua_err);
  4011. return 0;
  4012. #endif
  4013. }
  4014. #endif //#ifndef TOLUA_DISABLE
  4015. /* method: GetSelection of class ListView */
  4016. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetSelection00
  4017. static int tolua_UI_ListView_GetSelection00(lua_State* tolua_S)
  4018. {
  4019. #ifndef TOLUA_RELEASE
  4020. tolua_Error tolua_err;
  4021. if (
  4022. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4023. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4024. )
  4025. goto tolua_lerror;
  4026. else
  4027. #endif
  4028. {
  4029. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4030. #ifndef TOLUA_RELEASE
  4031. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelection'", NULL);
  4032. #endif
  4033. {
  4034. unsigned tolua_ret = (unsigned) self->GetSelection();
  4035. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4036. }
  4037. }
  4038. return 1;
  4039. #ifndef TOLUA_RELEASE
  4040. tolua_lerror:
  4041. tolua_error(tolua_S,"#ferror in function 'GetSelection'.",&tolua_err);
  4042. return 0;
  4043. #endif
  4044. }
  4045. #endif //#ifndef TOLUA_DISABLE
  4046. /* method: GetSelectedItem of class ListView */
  4047. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetSelectedItem00
  4048. static int tolua_UI_ListView_GetSelectedItem00(lua_State* tolua_S)
  4049. {
  4050. #ifndef TOLUA_RELEASE
  4051. tolua_Error tolua_err;
  4052. if (
  4053. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4054. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4055. )
  4056. goto tolua_lerror;
  4057. else
  4058. #endif
  4059. {
  4060. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4061. #ifndef TOLUA_RELEASE
  4062. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectedItem'", NULL);
  4063. #endif
  4064. {
  4065. UIElement* tolua_ret = (UIElement*) self->GetSelectedItem();
  4066. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  4067. }
  4068. }
  4069. return 1;
  4070. #ifndef TOLUA_RELEASE
  4071. tolua_lerror:
  4072. tolua_error(tolua_S,"#ferror in function 'GetSelectedItem'.",&tolua_err);
  4073. return 0;
  4074. #endif
  4075. }
  4076. #endif //#ifndef TOLUA_DISABLE
  4077. /* method: IsSelected of class ListView */
  4078. #ifndef TOLUA_DISABLE_tolua_UI_ListView_IsSelected00
  4079. static int tolua_UI_ListView_IsSelected00(lua_State* tolua_S)
  4080. {
  4081. #ifndef TOLUA_RELEASE
  4082. tolua_Error tolua_err;
  4083. if (
  4084. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4085. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4086. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4087. )
  4088. goto tolua_lerror;
  4089. else
  4090. #endif
  4091. {
  4092. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4093. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  4094. #ifndef TOLUA_RELEASE
  4095. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSelected'", NULL);
  4096. #endif
  4097. {
  4098. bool tolua_ret = (bool) self->IsSelected(index);
  4099. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4100. }
  4101. }
  4102. return 1;
  4103. #ifndef TOLUA_RELEASE
  4104. tolua_lerror:
  4105. tolua_error(tolua_S,"#ferror in function 'IsSelected'.",&tolua_err);
  4106. return 0;
  4107. #endif
  4108. }
  4109. #endif //#ifndef TOLUA_DISABLE
  4110. /* method: IsExpanded of class ListView */
  4111. #ifndef TOLUA_DISABLE_tolua_UI_ListView_IsExpanded00
  4112. static int tolua_UI_ListView_IsExpanded00(lua_State* tolua_S)
  4113. {
  4114. #ifndef TOLUA_RELEASE
  4115. tolua_Error tolua_err;
  4116. if (
  4117. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4118. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4119. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4120. )
  4121. goto tolua_lerror;
  4122. else
  4123. #endif
  4124. {
  4125. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4126. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  4127. #ifndef TOLUA_RELEASE
  4128. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsExpanded'", NULL);
  4129. #endif
  4130. {
  4131. bool tolua_ret = (bool) self->IsExpanded(index);
  4132. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4133. }
  4134. }
  4135. return 1;
  4136. #ifndef TOLUA_RELEASE
  4137. tolua_lerror:
  4138. tolua_error(tolua_S,"#ferror in function 'IsExpanded'.",&tolua_err);
  4139. return 0;
  4140. #endif
  4141. }
  4142. #endif //#ifndef TOLUA_DISABLE
  4143. /* method: GetHighlightMode of class ListView */
  4144. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetHighlightMode00
  4145. static int tolua_UI_ListView_GetHighlightMode00(lua_State* tolua_S)
  4146. {
  4147. #ifndef TOLUA_RELEASE
  4148. tolua_Error tolua_err;
  4149. if (
  4150. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4151. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4152. )
  4153. goto tolua_lerror;
  4154. else
  4155. #endif
  4156. {
  4157. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4158. #ifndef TOLUA_RELEASE
  4159. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHighlightMode'", NULL);
  4160. #endif
  4161. {
  4162. HighlightMode tolua_ret = (HighlightMode) self->GetHighlightMode();
  4163. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4164. }
  4165. }
  4166. return 1;
  4167. #ifndef TOLUA_RELEASE
  4168. tolua_lerror:
  4169. tolua_error(tolua_S,"#ferror in function 'GetHighlightMode'.",&tolua_err);
  4170. return 0;
  4171. #endif
  4172. }
  4173. #endif //#ifndef TOLUA_DISABLE
  4174. /* method: GetMultiselect of class ListView */
  4175. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetMultiselect00
  4176. static int tolua_UI_ListView_GetMultiselect00(lua_State* tolua_S)
  4177. {
  4178. #ifndef TOLUA_RELEASE
  4179. tolua_Error tolua_err;
  4180. if (
  4181. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4182. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4183. )
  4184. goto tolua_lerror;
  4185. else
  4186. #endif
  4187. {
  4188. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4189. #ifndef TOLUA_RELEASE
  4190. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMultiselect'", NULL);
  4191. #endif
  4192. {
  4193. bool tolua_ret = (bool) self->GetMultiselect();
  4194. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4195. }
  4196. }
  4197. return 1;
  4198. #ifndef TOLUA_RELEASE
  4199. tolua_lerror:
  4200. tolua_error(tolua_S,"#ferror in function 'GetMultiselect'.",&tolua_err);
  4201. return 0;
  4202. #endif
  4203. }
  4204. #endif //#ifndef TOLUA_DISABLE
  4205. /* method: GetClearSelectionOnDefocus of class ListView */
  4206. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetClearSelectionOnDefocus00
  4207. static int tolua_UI_ListView_GetClearSelectionOnDefocus00(lua_State* tolua_S)
  4208. {
  4209. #ifndef TOLUA_RELEASE
  4210. tolua_Error tolua_err;
  4211. if (
  4212. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4213. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4214. )
  4215. goto tolua_lerror;
  4216. else
  4217. #endif
  4218. {
  4219. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4220. #ifndef TOLUA_RELEASE
  4221. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClearSelectionOnDefocus'", NULL);
  4222. #endif
  4223. {
  4224. bool tolua_ret = (bool) self->GetClearSelectionOnDefocus();
  4225. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4226. }
  4227. }
  4228. return 1;
  4229. #ifndef TOLUA_RELEASE
  4230. tolua_lerror:
  4231. tolua_error(tolua_S,"#ferror in function 'GetClearSelectionOnDefocus'.",&tolua_err);
  4232. return 0;
  4233. #endif
  4234. }
  4235. #endif //#ifndef TOLUA_DISABLE
  4236. /* method: GetHierarchyMode of class ListView */
  4237. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetHierarchyMode00
  4238. static int tolua_UI_ListView_GetHierarchyMode00(lua_State* tolua_S)
  4239. {
  4240. #ifndef TOLUA_RELEASE
  4241. tolua_Error tolua_err;
  4242. if (
  4243. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4244. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4245. )
  4246. goto tolua_lerror;
  4247. else
  4248. #endif
  4249. {
  4250. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4251. #ifndef TOLUA_RELEASE
  4252. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHierarchyMode'", NULL);
  4253. #endif
  4254. {
  4255. bool tolua_ret = (bool) self->GetHierarchyMode();
  4256. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4257. }
  4258. }
  4259. return 1;
  4260. #ifndef TOLUA_RELEASE
  4261. tolua_lerror:
  4262. tolua_error(tolua_S,"#ferror in function 'GetHierarchyMode'.",&tolua_err);
  4263. return 0;
  4264. #endif
  4265. }
  4266. #endif //#ifndef TOLUA_DISABLE
  4267. /* method: GetBaseIndent of class ListView */
  4268. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetBaseIndent00
  4269. static int tolua_UI_ListView_GetBaseIndent00(lua_State* tolua_S)
  4270. {
  4271. #ifndef TOLUA_RELEASE
  4272. tolua_Error tolua_err;
  4273. if (
  4274. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4275. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4276. )
  4277. goto tolua_lerror;
  4278. else
  4279. #endif
  4280. {
  4281. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4282. #ifndef TOLUA_RELEASE
  4283. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBaseIndent'", NULL);
  4284. #endif
  4285. {
  4286. int tolua_ret = (int) self->GetBaseIndent();
  4287. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4288. }
  4289. }
  4290. return 1;
  4291. #ifndef TOLUA_RELEASE
  4292. tolua_lerror:
  4293. tolua_error(tolua_S,"#ferror in function 'GetBaseIndent'.",&tolua_err);
  4294. return 0;
  4295. #endif
  4296. }
  4297. #endif //#ifndef TOLUA_DISABLE
  4298. /* method: GetDoubleClickInterval of class ListView */
  4299. #ifndef TOLUA_DISABLE_tolua_UI_ListView_GetDoubleClickInterval00
  4300. static int tolua_UI_ListView_GetDoubleClickInterval00(lua_State* tolua_S)
  4301. {
  4302. #ifndef TOLUA_RELEASE
  4303. tolua_Error tolua_err;
  4304. if (
  4305. !tolua_isusertype(tolua_S,1,"const ListView",0,&tolua_err) ||
  4306. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4307. )
  4308. goto tolua_lerror;
  4309. else
  4310. #endif
  4311. {
  4312. const ListView* self = (const ListView*) tolua_tousertype(tolua_S,1,0);
  4313. #ifndef TOLUA_RELEASE
  4314. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDoubleClickInterval'", NULL);
  4315. #endif
  4316. {
  4317. float tolua_ret = (float) self->GetDoubleClickInterval();
  4318. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4319. }
  4320. }
  4321. return 1;
  4322. #ifndef TOLUA_RELEASE
  4323. tolua_lerror:
  4324. tolua_error(tolua_S,"#ferror in function 'GetDoubleClickInterval'.",&tolua_err);
  4325. return 0;
  4326. #endif
  4327. }
  4328. #endif //#ifndef TOLUA_DISABLE
  4329. /* function: NewListView */
  4330. #ifndef TOLUA_DISABLE_tolua_UI_ListView00
  4331. static int tolua_UI_ListView00(lua_State* tolua_S)
  4332. {
  4333. #ifndef TOLUA_RELEASE
  4334. tolua_Error tolua_err;
  4335. if (
  4336. !tolua_isnoobj(tolua_S,1,&tolua_err)
  4337. )
  4338. goto tolua_lerror;
  4339. else
  4340. #endif
  4341. {
  4342. {
  4343. ListView* tolua_ret = (ListView*) NewListView();
  4344. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ListView");
  4345. }
  4346. }
  4347. return 1;
  4348. #ifndef TOLUA_RELEASE
  4349. tolua_lerror:
  4350. tolua_error(tolua_S,"#ferror in function 'ListView'.",&tolua_err);
  4351. return 0;
  4352. #endif
  4353. }
  4354. #endif //#ifndef TOLUA_DISABLE
  4355. /* method: SetPopup of class Menu */
  4356. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopup00
  4357. static int tolua_UI_Menu_SetPopup00(lua_State* tolua_S)
  4358. {
  4359. #ifndef TOLUA_RELEASE
  4360. tolua_Error tolua_err;
  4361. if (
  4362. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4363. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  4364. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4365. )
  4366. goto tolua_lerror;
  4367. else
  4368. #endif
  4369. {
  4370. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4371. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  4372. #ifndef TOLUA_RELEASE
  4373. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopup'", NULL);
  4374. #endif
  4375. {
  4376. self->SetPopup(element);
  4377. }
  4378. }
  4379. return 0;
  4380. #ifndef TOLUA_RELEASE
  4381. tolua_lerror:
  4382. tolua_error(tolua_S,"#ferror in function 'SetPopup'.",&tolua_err);
  4383. return 0;
  4384. #endif
  4385. }
  4386. #endif //#ifndef TOLUA_DISABLE
  4387. /* method: SetPopupOffset of class Menu */
  4388. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopupOffset00
  4389. static int tolua_UI_Menu_SetPopupOffset00(lua_State* tolua_S)
  4390. {
  4391. #ifndef TOLUA_RELEASE
  4392. tolua_Error tolua_err;
  4393. if (
  4394. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4395. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  4396. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4397. )
  4398. goto tolua_lerror;
  4399. else
  4400. #endif
  4401. {
  4402. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4403. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  4404. #ifndef TOLUA_RELEASE
  4405. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopupOffset'", NULL);
  4406. #endif
  4407. {
  4408. self->SetPopupOffset(*offset);
  4409. }
  4410. }
  4411. return 0;
  4412. #ifndef TOLUA_RELEASE
  4413. tolua_lerror:
  4414. tolua_error(tolua_S,"#ferror in function 'SetPopupOffset'.",&tolua_err);
  4415. return 0;
  4416. #endif
  4417. }
  4418. #endif //#ifndef TOLUA_DISABLE
  4419. /* method: SetPopupOffset of class Menu */
  4420. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetPopupOffset01
  4421. static int tolua_UI_Menu_SetPopupOffset01(lua_State* tolua_S)
  4422. {
  4423. tolua_Error tolua_err;
  4424. if (
  4425. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4426. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4427. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4428. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4429. )
  4430. goto tolua_lerror;
  4431. else
  4432. {
  4433. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4434. int x = ((int) tolua_tonumber(tolua_S,2,0));
  4435. int y = ((int) tolua_tonumber(tolua_S,3,0));
  4436. #ifndef TOLUA_RELEASE
  4437. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPopupOffset'", NULL);
  4438. #endif
  4439. {
  4440. self->SetPopupOffset(x,y);
  4441. }
  4442. }
  4443. return 0;
  4444. tolua_lerror:
  4445. return tolua_UI_Menu_SetPopupOffset00(tolua_S);
  4446. }
  4447. #endif //#ifndef TOLUA_DISABLE
  4448. /* method: ShowPopup of class Menu */
  4449. #ifndef TOLUA_DISABLE_tolua_UI_Menu_ShowPopup00
  4450. static int tolua_UI_Menu_ShowPopup00(lua_State* tolua_S)
  4451. {
  4452. #ifndef TOLUA_RELEASE
  4453. tolua_Error tolua_err;
  4454. if (
  4455. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4456. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  4457. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4458. )
  4459. goto tolua_lerror;
  4460. else
  4461. #endif
  4462. {
  4463. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4464. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  4465. #ifndef TOLUA_RELEASE
  4466. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ShowPopup'", NULL);
  4467. #endif
  4468. {
  4469. self->ShowPopup(enable);
  4470. }
  4471. }
  4472. return 0;
  4473. #ifndef TOLUA_RELEASE
  4474. tolua_lerror:
  4475. tolua_error(tolua_S,"#ferror in function 'ShowPopup'.",&tolua_err);
  4476. return 0;
  4477. #endif
  4478. }
  4479. #endif //#ifndef TOLUA_DISABLE
  4480. /* method: SetAccelerator of class Menu */
  4481. #ifndef TOLUA_DISABLE_tolua_UI_Menu_SetAccelerator00
  4482. static int tolua_UI_Menu_SetAccelerator00(lua_State* tolua_S)
  4483. {
  4484. #ifndef TOLUA_RELEASE
  4485. tolua_Error tolua_err;
  4486. if (
  4487. !tolua_isusertype(tolua_S,1,"Menu",0,&tolua_err) ||
  4488. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4489. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  4490. !tolua_isnoobj(tolua_S,4,&tolua_err)
  4491. )
  4492. goto tolua_lerror;
  4493. else
  4494. #endif
  4495. {
  4496. Menu* self = (Menu*) tolua_tousertype(tolua_S,1,0);
  4497. int key = ((int) tolua_tonumber(tolua_S,2,0));
  4498. int qualifiers = ((int) tolua_tonumber(tolua_S,3,0));
  4499. #ifndef TOLUA_RELEASE
  4500. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAccelerator'", NULL);
  4501. #endif
  4502. {
  4503. self->SetAccelerator(key,qualifiers);
  4504. }
  4505. }
  4506. return 0;
  4507. #ifndef TOLUA_RELEASE
  4508. tolua_lerror:
  4509. tolua_error(tolua_S,"#ferror in function 'SetAccelerator'.",&tolua_err);
  4510. return 0;
  4511. #endif
  4512. }
  4513. #endif //#ifndef TOLUA_DISABLE
  4514. /* method: GetPopup of class Menu */
  4515. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetPopup00
  4516. static int tolua_UI_Menu_GetPopup00(lua_State* tolua_S)
  4517. {
  4518. #ifndef TOLUA_RELEASE
  4519. tolua_Error tolua_err;
  4520. if (
  4521. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4522. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4523. )
  4524. goto tolua_lerror;
  4525. else
  4526. #endif
  4527. {
  4528. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4529. #ifndef TOLUA_RELEASE
  4530. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPopup'", NULL);
  4531. #endif
  4532. {
  4533. UIElement* tolua_ret = (UIElement*) self->GetPopup();
  4534. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  4535. }
  4536. }
  4537. return 1;
  4538. #ifndef TOLUA_RELEASE
  4539. tolua_lerror:
  4540. tolua_error(tolua_S,"#ferror in function 'GetPopup'.",&tolua_err);
  4541. return 0;
  4542. #endif
  4543. }
  4544. #endif //#ifndef TOLUA_DISABLE
  4545. /* method: GetPopupOffset of class Menu */
  4546. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetPopupOffset00
  4547. static int tolua_UI_Menu_GetPopupOffset00(lua_State* tolua_S)
  4548. {
  4549. #ifndef TOLUA_RELEASE
  4550. tolua_Error tolua_err;
  4551. if (
  4552. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4553. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4554. )
  4555. goto tolua_lerror;
  4556. else
  4557. #endif
  4558. {
  4559. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4560. #ifndef TOLUA_RELEASE
  4561. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPopupOffset'", NULL);
  4562. #endif
  4563. {
  4564. const IntVector2& tolua_ret = (const IntVector2&) self->GetPopupOffset();
  4565. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  4566. }
  4567. }
  4568. return 1;
  4569. #ifndef TOLUA_RELEASE
  4570. tolua_lerror:
  4571. tolua_error(tolua_S,"#ferror in function 'GetPopupOffset'.",&tolua_err);
  4572. return 0;
  4573. #endif
  4574. }
  4575. #endif //#ifndef TOLUA_DISABLE
  4576. /* method: GetShowPopup of class Menu */
  4577. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetShowPopup00
  4578. static int tolua_UI_Menu_GetShowPopup00(lua_State* tolua_S)
  4579. {
  4580. #ifndef TOLUA_RELEASE
  4581. tolua_Error tolua_err;
  4582. if (
  4583. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4584. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4585. )
  4586. goto tolua_lerror;
  4587. else
  4588. #endif
  4589. {
  4590. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4591. #ifndef TOLUA_RELEASE
  4592. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetShowPopup'", NULL);
  4593. #endif
  4594. {
  4595. bool tolua_ret = (bool) self->GetShowPopup();
  4596. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  4597. }
  4598. }
  4599. return 1;
  4600. #ifndef TOLUA_RELEASE
  4601. tolua_lerror:
  4602. tolua_error(tolua_S,"#ferror in function 'GetShowPopup'.",&tolua_err);
  4603. return 0;
  4604. #endif
  4605. }
  4606. #endif //#ifndef TOLUA_DISABLE
  4607. /* method: GetAcceleratorKey of class Menu */
  4608. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetAcceleratorKey00
  4609. static int tolua_UI_Menu_GetAcceleratorKey00(lua_State* tolua_S)
  4610. {
  4611. #ifndef TOLUA_RELEASE
  4612. tolua_Error tolua_err;
  4613. if (
  4614. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4615. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4616. )
  4617. goto tolua_lerror;
  4618. else
  4619. #endif
  4620. {
  4621. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4622. #ifndef TOLUA_RELEASE
  4623. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAcceleratorKey'", NULL);
  4624. #endif
  4625. {
  4626. int tolua_ret = (int) self->GetAcceleratorKey();
  4627. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4628. }
  4629. }
  4630. return 1;
  4631. #ifndef TOLUA_RELEASE
  4632. tolua_lerror:
  4633. tolua_error(tolua_S,"#ferror in function 'GetAcceleratorKey'.",&tolua_err);
  4634. return 0;
  4635. #endif
  4636. }
  4637. #endif //#ifndef TOLUA_DISABLE
  4638. /* method: GetAcceleratorQualifiers of class Menu */
  4639. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetAcceleratorQualifiers00
  4640. static int tolua_UI_Menu_GetAcceleratorQualifiers00(lua_State* tolua_S)
  4641. {
  4642. #ifndef TOLUA_RELEASE
  4643. tolua_Error tolua_err;
  4644. if (
  4645. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4646. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4647. )
  4648. goto tolua_lerror;
  4649. else
  4650. #endif
  4651. {
  4652. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4653. #ifndef TOLUA_RELEASE
  4654. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAcceleratorQualifiers'", NULL);
  4655. #endif
  4656. {
  4657. int tolua_ret = (int) self->GetAcceleratorQualifiers();
  4658. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4659. }
  4660. }
  4661. return 1;
  4662. #ifndef TOLUA_RELEASE
  4663. tolua_lerror:
  4664. tolua_error(tolua_S,"#ferror in function 'GetAcceleratorQualifiers'.",&tolua_err);
  4665. return 0;
  4666. #endif
  4667. }
  4668. #endif //#ifndef TOLUA_DISABLE
  4669. /* method: GetAcceleratorQualifiers of class Menu */
  4670. #ifndef TOLUA_DISABLE_tolua_UI_Menu_GetAcceleratorQualifiers01
  4671. static int tolua_UI_Menu_GetAcceleratorQualifiers01(lua_State* tolua_S)
  4672. {
  4673. tolua_Error tolua_err;
  4674. if (
  4675. !tolua_isusertype(tolua_S,1,"const Menu",0,&tolua_err) ||
  4676. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4677. )
  4678. goto tolua_lerror;
  4679. else
  4680. {
  4681. const Menu* self = (const Menu*) tolua_tousertype(tolua_S,1,0);
  4682. #ifndef TOLUA_RELEASE
  4683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAcceleratorQualifiers'", NULL);
  4684. #endif
  4685. {
  4686. int tolua_ret = (int) self->GetAcceleratorQualifiers();
  4687. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4688. }
  4689. }
  4690. return 1;
  4691. tolua_lerror:
  4692. return tolua_UI_Menu_GetAcceleratorQualifiers00(tolua_S);
  4693. }
  4694. #endif //#ifndef TOLUA_DISABLE
  4695. /* function: NewMenu */
  4696. #ifndef TOLUA_DISABLE_tolua_UI_Menu00
  4697. static int tolua_UI_Menu00(lua_State* tolua_S)
  4698. {
  4699. #ifndef TOLUA_RELEASE
  4700. tolua_Error tolua_err;
  4701. if (
  4702. !tolua_isnoobj(tolua_S,1,&tolua_err)
  4703. )
  4704. goto tolua_lerror;
  4705. else
  4706. #endif
  4707. {
  4708. {
  4709. Menu* tolua_ret = (Menu*) NewMenu();
  4710. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Menu");
  4711. }
  4712. }
  4713. return 1;
  4714. #ifndef TOLUA_RELEASE
  4715. tolua_lerror:
  4716. tolua_error(tolua_S,"#ferror in function 'Menu'.",&tolua_err);
  4717. return 0;
  4718. #endif
  4719. }
  4720. #endif //#ifndef TOLUA_DISABLE
  4721. /* method: SetOrientation of class ScrollBar */
  4722. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetOrientation00
  4723. static int tolua_UI_ScrollBar_SetOrientation00(lua_State* tolua_S)
  4724. {
  4725. #ifndef TOLUA_RELEASE
  4726. tolua_Error tolua_err;
  4727. if (
  4728. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4729. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4730. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4731. )
  4732. goto tolua_lerror;
  4733. else
  4734. #endif
  4735. {
  4736. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4737. Orientation orientation = ((Orientation) (int) tolua_tonumber(tolua_S,2,0));
  4738. #ifndef TOLUA_RELEASE
  4739. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrientation'", NULL);
  4740. #endif
  4741. {
  4742. self->SetOrientation(orientation);
  4743. }
  4744. }
  4745. return 0;
  4746. #ifndef TOLUA_RELEASE
  4747. tolua_lerror:
  4748. tolua_error(tolua_S,"#ferror in function 'SetOrientation'.",&tolua_err);
  4749. return 0;
  4750. #endif
  4751. }
  4752. #endif //#ifndef TOLUA_DISABLE
  4753. /* method: SetRange of class ScrollBar */
  4754. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetRange00
  4755. static int tolua_UI_ScrollBar_SetRange00(lua_State* tolua_S)
  4756. {
  4757. #ifndef TOLUA_RELEASE
  4758. tolua_Error tolua_err;
  4759. if (
  4760. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4761. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4762. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4763. )
  4764. goto tolua_lerror;
  4765. else
  4766. #endif
  4767. {
  4768. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4769. float range = ((float) tolua_tonumber(tolua_S,2,0));
  4770. #ifndef TOLUA_RELEASE
  4771. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  4772. #endif
  4773. {
  4774. self->SetRange(range);
  4775. }
  4776. }
  4777. return 0;
  4778. #ifndef TOLUA_RELEASE
  4779. tolua_lerror:
  4780. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  4781. return 0;
  4782. #endif
  4783. }
  4784. #endif //#ifndef TOLUA_DISABLE
  4785. /* method: SetValue of class ScrollBar */
  4786. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetValue00
  4787. static int tolua_UI_ScrollBar_SetValue00(lua_State* tolua_S)
  4788. {
  4789. #ifndef TOLUA_RELEASE
  4790. tolua_Error tolua_err;
  4791. if (
  4792. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4793. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4794. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4795. )
  4796. goto tolua_lerror;
  4797. else
  4798. #endif
  4799. {
  4800. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4801. float value = ((float) tolua_tonumber(tolua_S,2,0));
  4802. #ifndef TOLUA_RELEASE
  4803. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetValue'", NULL);
  4804. #endif
  4805. {
  4806. self->SetValue(value);
  4807. }
  4808. }
  4809. return 0;
  4810. #ifndef TOLUA_RELEASE
  4811. tolua_lerror:
  4812. tolua_error(tolua_S,"#ferror in function 'SetValue'.",&tolua_err);
  4813. return 0;
  4814. #endif
  4815. }
  4816. #endif //#ifndef TOLUA_DISABLE
  4817. /* method: ChangeValue of class ScrollBar */
  4818. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_ChangeValue00
  4819. static int tolua_UI_ScrollBar_ChangeValue00(lua_State* tolua_S)
  4820. {
  4821. #ifndef TOLUA_RELEASE
  4822. tolua_Error tolua_err;
  4823. if (
  4824. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4825. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4826. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4827. )
  4828. goto tolua_lerror;
  4829. else
  4830. #endif
  4831. {
  4832. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4833. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  4834. #ifndef TOLUA_RELEASE
  4835. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeValue'", NULL);
  4836. #endif
  4837. {
  4838. self->ChangeValue(delta);
  4839. }
  4840. }
  4841. return 0;
  4842. #ifndef TOLUA_RELEASE
  4843. tolua_lerror:
  4844. tolua_error(tolua_S,"#ferror in function 'ChangeValue'.",&tolua_err);
  4845. return 0;
  4846. #endif
  4847. }
  4848. #endif //#ifndef TOLUA_DISABLE
  4849. /* method: SetScrollStep of class ScrollBar */
  4850. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetScrollStep00
  4851. static int tolua_UI_ScrollBar_SetScrollStep00(lua_State* tolua_S)
  4852. {
  4853. #ifndef TOLUA_RELEASE
  4854. tolua_Error tolua_err;
  4855. if (
  4856. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4857. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4858. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4859. )
  4860. goto tolua_lerror;
  4861. else
  4862. #endif
  4863. {
  4864. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4865. float step = ((float) tolua_tonumber(tolua_S,2,0));
  4866. #ifndef TOLUA_RELEASE
  4867. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollStep'", NULL);
  4868. #endif
  4869. {
  4870. self->SetScrollStep(step);
  4871. }
  4872. }
  4873. return 0;
  4874. #ifndef TOLUA_RELEASE
  4875. tolua_lerror:
  4876. tolua_error(tolua_S,"#ferror in function 'SetScrollStep'.",&tolua_err);
  4877. return 0;
  4878. #endif
  4879. }
  4880. #endif //#ifndef TOLUA_DISABLE
  4881. /* method: SetStepFactor of class ScrollBar */
  4882. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_SetStepFactor00
  4883. static int tolua_UI_ScrollBar_SetStepFactor00(lua_State* tolua_S)
  4884. {
  4885. #ifndef TOLUA_RELEASE
  4886. tolua_Error tolua_err;
  4887. if (
  4888. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4889. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  4890. !tolua_isnoobj(tolua_S,3,&tolua_err)
  4891. )
  4892. goto tolua_lerror;
  4893. else
  4894. #endif
  4895. {
  4896. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4897. float factor = ((float) tolua_tonumber(tolua_S,2,0));
  4898. #ifndef TOLUA_RELEASE
  4899. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStepFactor'", NULL);
  4900. #endif
  4901. {
  4902. self->SetStepFactor(factor);
  4903. }
  4904. }
  4905. return 0;
  4906. #ifndef TOLUA_RELEASE
  4907. tolua_lerror:
  4908. tolua_error(tolua_S,"#ferror in function 'SetStepFactor'.",&tolua_err);
  4909. return 0;
  4910. #endif
  4911. }
  4912. #endif //#ifndef TOLUA_DISABLE
  4913. /* method: StepBack of class ScrollBar */
  4914. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_StepBack00
  4915. static int tolua_UI_ScrollBar_StepBack00(lua_State* tolua_S)
  4916. {
  4917. #ifndef TOLUA_RELEASE
  4918. tolua_Error tolua_err;
  4919. if (
  4920. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4921. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4922. )
  4923. goto tolua_lerror;
  4924. else
  4925. #endif
  4926. {
  4927. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4928. #ifndef TOLUA_RELEASE
  4929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StepBack'", NULL);
  4930. #endif
  4931. {
  4932. self->StepBack();
  4933. }
  4934. }
  4935. return 0;
  4936. #ifndef TOLUA_RELEASE
  4937. tolua_lerror:
  4938. tolua_error(tolua_S,"#ferror in function 'StepBack'.",&tolua_err);
  4939. return 0;
  4940. #endif
  4941. }
  4942. #endif //#ifndef TOLUA_DISABLE
  4943. /* method: StepForward of class ScrollBar */
  4944. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_StepForward00
  4945. static int tolua_UI_ScrollBar_StepForward00(lua_State* tolua_S)
  4946. {
  4947. #ifndef TOLUA_RELEASE
  4948. tolua_Error tolua_err;
  4949. if (
  4950. !tolua_isusertype(tolua_S,1,"ScrollBar",0,&tolua_err) ||
  4951. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4952. )
  4953. goto tolua_lerror;
  4954. else
  4955. #endif
  4956. {
  4957. ScrollBar* self = (ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4958. #ifndef TOLUA_RELEASE
  4959. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'StepForward'", NULL);
  4960. #endif
  4961. {
  4962. self->StepForward();
  4963. }
  4964. }
  4965. return 0;
  4966. #ifndef TOLUA_RELEASE
  4967. tolua_lerror:
  4968. tolua_error(tolua_S,"#ferror in function 'StepForward'.",&tolua_err);
  4969. return 0;
  4970. #endif
  4971. }
  4972. #endif //#ifndef TOLUA_DISABLE
  4973. /* method: GetOrientation of class ScrollBar */
  4974. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetOrientation00
  4975. static int tolua_UI_ScrollBar_GetOrientation00(lua_State* tolua_S)
  4976. {
  4977. #ifndef TOLUA_RELEASE
  4978. tolua_Error tolua_err;
  4979. if (
  4980. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  4981. !tolua_isnoobj(tolua_S,2,&tolua_err)
  4982. )
  4983. goto tolua_lerror;
  4984. else
  4985. #endif
  4986. {
  4987. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  4988. #ifndef TOLUA_RELEASE
  4989. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrientation'", NULL);
  4990. #endif
  4991. {
  4992. Orientation tolua_ret = (Orientation) self->GetOrientation();
  4993. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  4994. }
  4995. }
  4996. return 1;
  4997. #ifndef TOLUA_RELEASE
  4998. tolua_lerror:
  4999. tolua_error(tolua_S,"#ferror in function 'GetOrientation'.",&tolua_err);
  5000. return 0;
  5001. #endif
  5002. }
  5003. #endif //#ifndef TOLUA_DISABLE
  5004. /* method: GetRange of class ScrollBar */
  5005. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetRange00
  5006. static int tolua_UI_ScrollBar_GetRange00(lua_State* tolua_S)
  5007. {
  5008. #ifndef TOLUA_RELEASE
  5009. tolua_Error tolua_err;
  5010. if (
  5011. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5012. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5013. )
  5014. goto tolua_lerror;
  5015. else
  5016. #endif
  5017. {
  5018. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5019. #ifndef TOLUA_RELEASE
  5020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  5021. #endif
  5022. {
  5023. float tolua_ret = (float) self->GetRange();
  5024. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5025. }
  5026. }
  5027. return 1;
  5028. #ifndef TOLUA_RELEASE
  5029. tolua_lerror:
  5030. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  5031. return 0;
  5032. #endif
  5033. }
  5034. #endif //#ifndef TOLUA_DISABLE
  5035. /* method: GetValue of class ScrollBar */
  5036. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetValue00
  5037. static int tolua_UI_ScrollBar_GetValue00(lua_State* tolua_S)
  5038. {
  5039. #ifndef TOLUA_RELEASE
  5040. tolua_Error tolua_err;
  5041. if (
  5042. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5043. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5044. )
  5045. goto tolua_lerror;
  5046. else
  5047. #endif
  5048. {
  5049. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5050. #ifndef TOLUA_RELEASE
  5051. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValue'", NULL);
  5052. #endif
  5053. {
  5054. float tolua_ret = (float) self->GetValue();
  5055. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5056. }
  5057. }
  5058. return 1;
  5059. #ifndef TOLUA_RELEASE
  5060. tolua_lerror:
  5061. tolua_error(tolua_S,"#ferror in function 'GetValue'.",&tolua_err);
  5062. return 0;
  5063. #endif
  5064. }
  5065. #endif //#ifndef TOLUA_DISABLE
  5066. /* method: GetScrollStep of class ScrollBar */
  5067. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetScrollStep00
  5068. static int tolua_UI_ScrollBar_GetScrollStep00(lua_State* tolua_S)
  5069. {
  5070. #ifndef TOLUA_RELEASE
  5071. tolua_Error tolua_err;
  5072. if (
  5073. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5074. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5075. )
  5076. goto tolua_lerror;
  5077. else
  5078. #endif
  5079. {
  5080. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5081. #ifndef TOLUA_RELEASE
  5082. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollStep'", NULL);
  5083. #endif
  5084. {
  5085. float tolua_ret = (float) self->GetScrollStep();
  5086. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5087. }
  5088. }
  5089. return 1;
  5090. #ifndef TOLUA_RELEASE
  5091. tolua_lerror:
  5092. tolua_error(tolua_S,"#ferror in function 'GetScrollStep'.",&tolua_err);
  5093. return 0;
  5094. #endif
  5095. }
  5096. #endif //#ifndef TOLUA_DISABLE
  5097. /* method: GetStepFactor of class ScrollBar */
  5098. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetStepFactor00
  5099. static int tolua_UI_ScrollBar_GetStepFactor00(lua_State* tolua_S)
  5100. {
  5101. #ifndef TOLUA_RELEASE
  5102. tolua_Error tolua_err;
  5103. if (
  5104. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5105. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5106. )
  5107. goto tolua_lerror;
  5108. else
  5109. #endif
  5110. {
  5111. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5112. #ifndef TOLUA_RELEASE
  5113. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetStepFactor'", NULL);
  5114. #endif
  5115. {
  5116. float tolua_ret = (float) self->GetStepFactor();
  5117. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5118. }
  5119. }
  5120. return 1;
  5121. #ifndef TOLUA_RELEASE
  5122. tolua_lerror:
  5123. tolua_error(tolua_S,"#ferror in function 'GetStepFactor'.",&tolua_err);
  5124. return 0;
  5125. #endif
  5126. }
  5127. #endif //#ifndef TOLUA_DISABLE
  5128. /* method: GetEffectiveScrollStep of class ScrollBar */
  5129. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetEffectiveScrollStep00
  5130. static int tolua_UI_ScrollBar_GetEffectiveScrollStep00(lua_State* tolua_S)
  5131. {
  5132. #ifndef TOLUA_RELEASE
  5133. tolua_Error tolua_err;
  5134. if (
  5135. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5136. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5137. )
  5138. goto tolua_lerror;
  5139. else
  5140. #endif
  5141. {
  5142. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5143. #ifndef TOLUA_RELEASE
  5144. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetEffectiveScrollStep'", NULL);
  5145. #endif
  5146. {
  5147. float tolua_ret = (float) self->GetEffectiveScrollStep();
  5148. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5149. }
  5150. }
  5151. return 1;
  5152. #ifndef TOLUA_RELEASE
  5153. tolua_lerror:
  5154. tolua_error(tolua_S,"#ferror in function 'GetEffectiveScrollStep'.",&tolua_err);
  5155. return 0;
  5156. #endif
  5157. }
  5158. #endif //#ifndef TOLUA_DISABLE
  5159. /* method: GetBackButton of class ScrollBar */
  5160. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetBackButton00
  5161. static int tolua_UI_ScrollBar_GetBackButton00(lua_State* tolua_S)
  5162. {
  5163. #ifndef TOLUA_RELEASE
  5164. tolua_Error tolua_err;
  5165. if (
  5166. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5167. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5168. )
  5169. goto tolua_lerror;
  5170. else
  5171. #endif
  5172. {
  5173. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5174. #ifndef TOLUA_RELEASE
  5175. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBackButton'", NULL);
  5176. #endif
  5177. {
  5178. Button* tolua_ret = (Button*) self->GetBackButton();
  5179. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  5180. }
  5181. }
  5182. return 1;
  5183. #ifndef TOLUA_RELEASE
  5184. tolua_lerror:
  5185. tolua_error(tolua_S,"#ferror in function 'GetBackButton'.",&tolua_err);
  5186. return 0;
  5187. #endif
  5188. }
  5189. #endif //#ifndef TOLUA_DISABLE
  5190. /* method: GetForwardButton of class ScrollBar */
  5191. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetForwardButton00
  5192. static int tolua_UI_ScrollBar_GetForwardButton00(lua_State* tolua_S)
  5193. {
  5194. #ifndef TOLUA_RELEASE
  5195. tolua_Error tolua_err;
  5196. if (
  5197. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5198. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5199. )
  5200. goto tolua_lerror;
  5201. else
  5202. #endif
  5203. {
  5204. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5205. #ifndef TOLUA_RELEASE
  5206. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetForwardButton'", NULL);
  5207. #endif
  5208. {
  5209. Button* tolua_ret = (Button*) self->GetForwardButton();
  5210. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Button");
  5211. }
  5212. }
  5213. return 1;
  5214. #ifndef TOLUA_RELEASE
  5215. tolua_lerror:
  5216. tolua_error(tolua_S,"#ferror in function 'GetForwardButton'.",&tolua_err);
  5217. return 0;
  5218. #endif
  5219. }
  5220. #endif //#ifndef TOLUA_DISABLE
  5221. /* method: GetSlider of class ScrollBar */
  5222. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar_GetSlider00
  5223. static int tolua_UI_ScrollBar_GetSlider00(lua_State* tolua_S)
  5224. {
  5225. #ifndef TOLUA_RELEASE
  5226. tolua_Error tolua_err;
  5227. if (
  5228. !tolua_isusertype(tolua_S,1,"const ScrollBar",0,&tolua_err) ||
  5229. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5230. )
  5231. goto tolua_lerror;
  5232. else
  5233. #endif
  5234. {
  5235. const ScrollBar* self = (const ScrollBar*) tolua_tousertype(tolua_S,1,0);
  5236. #ifndef TOLUA_RELEASE
  5237. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSlider'", NULL);
  5238. #endif
  5239. {
  5240. Slider* tolua_ret = (Slider*) self->GetSlider();
  5241. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Slider");
  5242. }
  5243. }
  5244. return 1;
  5245. #ifndef TOLUA_RELEASE
  5246. tolua_lerror:
  5247. tolua_error(tolua_S,"#ferror in function 'GetSlider'.",&tolua_err);
  5248. return 0;
  5249. #endif
  5250. }
  5251. #endif //#ifndef TOLUA_DISABLE
  5252. /* function: NewScrollBar */
  5253. #ifndef TOLUA_DISABLE_tolua_UI_ScrollBar00
  5254. static int tolua_UI_ScrollBar00(lua_State* tolua_S)
  5255. {
  5256. #ifndef TOLUA_RELEASE
  5257. tolua_Error tolua_err;
  5258. if (
  5259. !tolua_isnoobj(tolua_S,1,&tolua_err)
  5260. )
  5261. goto tolua_lerror;
  5262. else
  5263. #endif
  5264. {
  5265. {
  5266. ScrollBar* tolua_ret = (ScrollBar*) NewScrollBar();
  5267. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollBar");
  5268. }
  5269. }
  5270. return 1;
  5271. #ifndef TOLUA_RELEASE
  5272. tolua_lerror:
  5273. tolua_error(tolua_S,"#ferror in function 'ScrollBar'.",&tolua_err);
  5274. return 0;
  5275. #endif
  5276. }
  5277. #endif //#ifndef TOLUA_DISABLE
  5278. /* method: SetContentElement of class ScrollView */
  5279. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetContentElement00
  5280. static int tolua_UI_ScrollView_SetContentElement00(lua_State* tolua_S)
  5281. {
  5282. #ifndef TOLUA_RELEASE
  5283. tolua_Error tolua_err;
  5284. if (
  5285. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5286. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  5287. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5288. )
  5289. goto tolua_lerror;
  5290. else
  5291. #endif
  5292. {
  5293. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5294. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  5295. #ifndef TOLUA_RELEASE
  5296. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetContentElement'", NULL);
  5297. #endif
  5298. {
  5299. self->SetContentElement(element);
  5300. }
  5301. }
  5302. return 0;
  5303. #ifndef TOLUA_RELEASE
  5304. tolua_lerror:
  5305. tolua_error(tolua_S,"#ferror in function 'SetContentElement'.",&tolua_err);
  5306. return 0;
  5307. #endif
  5308. }
  5309. #endif //#ifndef TOLUA_DISABLE
  5310. /* method: SetViewPosition of class ScrollView */
  5311. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPosition00
  5312. static int tolua_UI_ScrollView_SetViewPosition00(lua_State* tolua_S)
  5313. {
  5314. #ifndef TOLUA_RELEASE
  5315. tolua_Error tolua_err;
  5316. if (
  5317. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5318. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  5319. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5320. )
  5321. goto tolua_lerror;
  5322. else
  5323. #endif
  5324. {
  5325. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5326. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  5327. #ifndef TOLUA_RELEASE
  5328. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPosition'", NULL);
  5329. #endif
  5330. {
  5331. self->SetViewPosition(*position);
  5332. }
  5333. }
  5334. return 0;
  5335. #ifndef TOLUA_RELEASE
  5336. tolua_lerror:
  5337. tolua_error(tolua_S,"#ferror in function 'SetViewPosition'.",&tolua_err);
  5338. return 0;
  5339. #endif
  5340. }
  5341. #endif //#ifndef TOLUA_DISABLE
  5342. /* method: SetViewPosition of class ScrollView */
  5343. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPosition01
  5344. static int tolua_UI_ScrollView_SetViewPosition01(lua_State* tolua_S)
  5345. {
  5346. tolua_Error tolua_err;
  5347. if (
  5348. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5349. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5350. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  5351. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5352. )
  5353. goto tolua_lerror;
  5354. else
  5355. {
  5356. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5357. int x = ((int) tolua_tonumber(tolua_S,2,0));
  5358. int y = ((int) tolua_tonumber(tolua_S,3,0));
  5359. #ifndef TOLUA_RELEASE
  5360. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPosition'", NULL);
  5361. #endif
  5362. {
  5363. self->SetViewPosition(x,y);
  5364. }
  5365. }
  5366. return 0;
  5367. tolua_lerror:
  5368. return tolua_UI_ScrollView_SetViewPosition00(tolua_S);
  5369. }
  5370. #endif //#ifndef TOLUA_DISABLE
  5371. /* method: SetScrollBarsVisible of class ScrollView */
  5372. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollBarsVisible00
  5373. static int tolua_UI_ScrollView_SetScrollBarsVisible00(lua_State* tolua_S)
  5374. {
  5375. #ifndef TOLUA_RELEASE
  5376. tolua_Error tolua_err;
  5377. if (
  5378. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5379. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5380. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  5381. !tolua_isnoobj(tolua_S,4,&tolua_err)
  5382. )
  5383. goto tolua_lerror;
  5384. else
  5385. #endif
  5386. {
  5387. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5388. bool horizontal = ((bool) tolua_toboolean(tolua_S,2,0));
  5389. bool vertical = ((bool) tolua_toboolean(tolua_S,3,0));
  5390. #ifndef TOLUA_RELEASE
  5391. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollBarsVisible'", NULL);
  5392. #endif
  5393. {
  5394. self->SetScrollBarsVisible(horizontal,vertical);
  5395. }
  5396. }
  5397. return 0;
  5398. #ifndef TOLUA_RELEASE
  5399. tolua_lerror:
  5400. tolua_error(tolua_S,"#ferror in function 'SetScrollBarsVisible'.",&tolua_err);
  5401. return 0;
  5402. #endif
  5403. }
  5404. #endif //#ifndef TOLUA_DISABLE
  5405. /* method: SetScrollBarsAutoVisible of class ScrollView */
  5406. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollBarsAutoVisible00
  5407. static int tolua_UI_ScrollView_SetScrollBarsAutoVisible00(lua_State* tolua_S)
  5408. {
  5409. #ifndef TOLUA_RELEASE
  5410. tolua_Error tolua_err;
  5411. if (
  5412. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5413. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  5414. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5415. )
  5416. goto tolua_lerror;
  5417. else
  5418. #endif
  5419. {
  5420. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5421. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  5422. #ifndef TOLUA_RELEASE
  5423. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollBarsAutoVisible'", NULL);
  5424. #endif
  5425. {
  5426. self->SetScrollBarsAutoVisible(enable);
  5427. }
  5428. }
  5429. return 0;
  5430. #ifndef TOLUA_RELEASE
  5431. tolua_lerror:
  5432. tolua_error(tolua_S,"#ferror in function 'SetScrollBarsAutoVisible'.",&tolua_err);
  5433. return 0;
  5434. #endif
  5435. }
  5436. #endif //#ifndef TOLUA_DISABLE
  5437. /* method: SetScrollStep of class ScrollView */
  5438. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetScrollStep00
  5439. static int tolua_UI_ScrollView_SetScrollStep00(lua_State* tolua_S)
  5440. {
  5441. #ifndef TOLUA_RELEASE
  5442. tolua_Error tolua_err;
  5443. if (
  5444. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5445. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5446. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5447. )
  5448. goto tolua_lerror;
  5449. else
  5450. #endif
  5451. {
  5452. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5453. float step = ((float) tolua_tonumber(tolua_S,2,0));
  5454. #ifndef TOLUA_RELEASE
  5455. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScrollStep'", NULL);
  5456. #endif
  5457. {
  5458. self->SetScrollStep(step);
  5459. }
  5460. }
  5461. return 0;
  5462. #ifndef TOLUA_RELEASE
  5463. tolua_lerror:
  5464. tolua_error(tolua_S,"#ferror in function 'SetScrollStep'.",&tolua_err);
  5465. return 0;
  5466. #endif
  5467. }
  5468. #endif //#ifndef TOLUA_DISABLE
  5469. /* method: SetPageStep of class ScrollView */
  5470. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetPageStep00
  5471. static int tolua_UI_ScrollView_SetPageStep00(lua_State* tolua_S)
  5472. {
  5473. #ifndef TOLUA_RELEASE
  5474. tolua_Error tolua_err;
  5475. if (
  5476. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5477. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5478. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5479. )
  5480. goto tolua_lerror;
  5481. else
  5482. #endif
  5483. {
  5484. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5485. float step = ((float) tolua_tonumber(tolua_S,2,0));
  5486. #ifndef TOLUA_RELEASE
  5487. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPageStep'", NULL);
  5488. #endif
  5489. {
  5490. self->SetPageStep(step);
  5491. }
  5492. }
  5493. return 0;
  5494. #ifndef TOLUA_RELEASE
  5495. tolua_lerror:
  5496. tolua_error(tolua_S,"#ferror in function 'SetPageStep'.",&tolua_err);
  5497. return 0;
  5498. #endif
  5499. }
  5500. #endif //#ifndef TOLUA_DISABLE
  5501. /* method: GetViewPosition of class ScrollView */
  5502. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetViewPosition00
  5503. static int tolua_UI_ScrollView_GetViewPosition00(lua_State* tolua_S)
  5504. {
  5505. #ifndef TOLUA_RELEASE
  5506. tolua_Error tolua_err;
  5507. if (
  5508. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5509. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5510. )
  5511. goto tolua_lerror;
  5512. else
  5513. #endif
  5514. {
  5515. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5516. #ifndef TOLUA_RELEASE
  5517. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetViewPosition'", NULL);
  5518. #endif
  5519. {
  5520. const IntVector2& tolua_ret = (const IntVector2&) self->GetViewPosition();
  5521. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  5522. }
  5523. }
  5524. return 1;
  5525. #ifndef TOLUA_RELEASE
  5526. tolua_lerror:
  5527. tolua_error(tolua_S,"#ferror in function 'GetViewPosition'.",&tolua_err);
  5528. return 0;
  5529. #endif
  5530. }
  5531. #endif //#ifndef TOLUA_DISABLE
  5532. /* method: GetContentElement of class ScrollView */
  5533. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetContentElement00
  5534. static int tolua_UI_ScrollView_GetContentElement00(lua_State* tolua_S)
  5535. {
  5536. #ifndef TOLUA_RELEASE
  5537. tolua_Error tolua_err;
  5538. if (
  5539. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5540. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5541. )
  5542. goto tolua_lerror;
  5543. else
  5544. #endif
  5545. {
  5546. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5547. #ifndef TOLUA_RELEASE
  5548. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetContentElement'", NULL);
  5549. #endif
  5550. {
  5551. UIElement* tolua_ret = (UIElement*) self->GetContentElement();
  5552. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  5553. }
  5554. }
  5555. return 1;
  5556. #ifndef TOLUA_RELEASE
  5557. tolua_lerror:
  5558. tolua_error(tolua_S,"#ferror in function 'GetContentElement'.",&tolua_err);
  5559. return 0;
  5560. #endif
  5561. }
  5562. #endif //#ifndef TOLUA_DISABLE
  5563. /* method: GetHorizontalScrollBar of class ScrollView */
  5564. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetHorizontalScrollBar00
  5565. static int tolua_UI_ScrollView_GetHorizontalScrollBar00(lua_State* tolua_S)
  5566. {
  5567. #ifndef TOLUA_RELEASE
  5568. tolua_Error tolua_err;
  5569. if (
  5570. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5571. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5572. )
  5573. goto tolua_lerror;
  5574. else
  5575. #endif
  5576. {
  5577. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5578. #ifndef TOLUA_RELEASE
  5579. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalScrollBar'", NULL);
  5580. #endif
  5581. {
  5582. ScrollBar* tolua_ret = (ScrollBar*) self->GetHorizontalScrollBar();
  5583. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollBar");
  5584. }
  5585. }
  5586. return 1;
  5587. #ifndef TOLUA_RELEASE
  5588. tolua_lerror:
  5589. tolua_error(tolua_S,"#ferror in function 'GetHorizontalScrollBar'.",&tolua_err);
  5590. return 0;
  5591. #endif
  5592. }
  5593. #endif //#ifndef TOLUA_DISABLE
  5594. /* method: GetVerticalScrollBar of class ScrollView */
  5595. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetVerticalScrollBar00
  5596. static int tolua_UI_ScrollView_GetVerticalScrollBar00(lua_State* tolua_S)
  5597. {
  5598. #ifndef TOLUA_RELEASE
  5599. tolua_Error tolua_err;
  5600. if (
  5601. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5602. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5603. )
  5604. goto tolua_lerror;
  5605. else
  5606. #endif
  5607. {
  5608. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5609. #ifndef TOLUA_RELEASE
  5610. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalScrollBar'", NULL);
  5611. #endif
  5612. {
  5613. ScrollBar* tolua_ret = (ScrollBar*) self->GetVerticalScrollBar();
  5614. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollBar");
  5615. }
  5616. }
  5617. return 1;
  5618. #ifndef TOLUA_RELEASE
  5619. tolua_lerror:
  5620. tolua_error(tolua_S,"#ferror in function 'GetVerticalScrollBar'.",&tolua_err);
  5621. return 0;
  5622. #endif
  5623. }
  5624. #endif //#ifndef TOLUA_DISABLE
  5625. /* method: GetScrollPanel of class ScrollView */
  5626. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollPanel00
  5627. static int tolua_UI_ScrollView_GetScrollPanel00(lua_State* tolua_S)
  5628. {
  5629. #ifndef TOLUA_RELEASE
  5630. tolua_Error tolua_err;
  5631. if (
  5632. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5633. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5634. )
  5635. goto tolua_lerror;
  5636. else
  5637. #endif
  5638. {
  5639. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5640. #ifndef TOLUA_RELEASE
  5641. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollPanel'", NULL);
  5642. #endif
  5643. {
  5644. BorderImage* tolua_ret = (BorderImage*) self->GetScrollPanel();
  5645. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  5646. }
  5647. }
  5648. return 1;
  5649. #ifndef TOLUA_RELEASE
  5650. tolua_lerror:
  5651. tolua_error(tolua_S,"#ferror in function 'GetScrollPanel'.",&tolua_err);
  5652. return 0;
  5653. #endif
  5654. }
  5655. #endif //#ifndef TOLUA_DISABLE
  5656. /* method: GetScrollBarsAutoVisible of class ScrollView */
  5657. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollBarsAutoVisible00
  5658. static int tolua_UI_ScrollView_GetScrollBarsAutoVisible00(lua_State* tolua_S)
  5659. {
  5660. #ifndef TOLUA_RELEASE
  5661. tolua_Error tolua_err;
  5662. if (
  5663. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5664. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5665. )
  5666. goto tolua_lerror;
  5667. else
  5668. #endif
  5669. {
  5670. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5671. #ifndef TOLUA_RELEASE
  5672. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollBarsAutoVisible'", NULL);
  5673. #endif
  5674. {
  5675. bool tolua_ret = (bool) self->GetScrollBarsAutoVisible();
  5676. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  5677. }
  5678. }
  5679. return 1;
  5680. #ifndef TOLUA_RELEASE
  5681. tolua_lerror:
  5682. tolua_error(tolua_S,"#ferror in function 'GetScrollBarsAutoVisible'.",&tolua_err);
  5683. return 0;
  5684. #endif
  5685. }
  5686. #endif //#ifndef TOLUA_DISABLE
  5687. /* method: GetScrollStep of class ScrollView */
  5688. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetScrollStep00
  5689. static int tolua_UI_ScrollView_GetScrollStep00(lua_State* tolua_S)
  5690. {
  5691. #ifndef TOLUA_RELEASE
  5692. tolua_Error tolua_err;
  5693. if (
  5694. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5695. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5696. )
  5697. goto tolua_lerror;
  5698. else
  5699. #endif
  5700. {
  5701. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5702. #ifndef TOLUA_RELEASE
  5703. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScrollStep'", NULL);
  5704. #endif
  5705. {
  5706. float tolua_ret = (float) self->GetScrollStep();
  5707. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5708. }
  5709. }
  5710. return 1;
  5711. #ifndef TOLUA_RELEASE
  5712. tolua_lerror:
  5713. tolua_error(tolua_S,"#ferror in function 'GetScrollStep'.",&tolua_err);
  5714. return 0;
  5715. #endif
  5716. }
  5717. #endif //#ifndef TOLUA_DISABLE
  5718. /* method: GetPageStep of class ScrollView */
  5719. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_GetPageStep00
  5720. static int tolua_UI_ScrollView_GetPageStep00(lua_State* tolua_S)
  5721. {
  5722. #ifndef TOLUA_RELEASE
  5723. tolua_Error tolua_err;
  5724. if (
  5725. !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) ||
  5726. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5727. )
  5728. goto tolua_lerror;
  5729. else
  5730. #endif
  5731. {
  5732. const ScrollView* self = (const ScrollView*) tolua_tousertype(tolua_S,1,0);
  5733. #ifndef TOLUA_RELEASE
  5734. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPageStep'", NULL);
  5735. #endif
  5736. {
  5737. float tolua_ret = (float) self->GetPageStep();
  5738. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5739. }
  5740. }
  5741. return 1;
  5742. #ifndef TOLUA_RELEASE
  5743. tolua_lerror:
  5744. tolua_error(tolua_S,"#ferror in function 'GetPageStep'.",&tolua_err);
  5745. return 0;
  5746. #endif
  5747. }
  5748. #endif //#ifndef TOLUA_DISABLE
  5749. /* method: SetViewPositionAttr of class ScrollView */
  5750. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView_SetViewPositionAttr00
  5751. static int tolua_UI_ScrollView_SetViewPositionAttr00(lua_State* tolua_S)
  5752. {
  5753. #ifndef TOLUA_RELEASE
  5754. tolua_Error tolua_err;
  5755. if (
  5756. !tolua_isusertype(tolua_S,1,"ScrollView",0,&tolua_err) ||
  5757. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  5758. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5759. )
  5760. goto tolua_lerror;
  5761. else
  5762. #endif
  5763. {
  5764. ScrollView* self = (ScrollView*) tolua_tousertype(tolua_S,1,0);
  5765. const IntVector2* value = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  5766. #ifndef TOLUA_RELEASE
  5767. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetViewPositionAttr'", NULL);
  5768. #endif
  5769. {
  5770. self->SetViewPositionAttr(*value);
  5771. }
  5772. }
  5773. return 0;
  5774. #ifndef TOLUA_RELEASE
  5775. tolua_lerror:
  5776. tolua_error(tolua_S,"#ferror in function 'SetViewPositionAttr'.",&tolua_err);
  5777. return 0;
  5778. #endif
  5779. }
  5780. #endif //#ifndef TOLUA_DISABLE
  5781. /* function: NewScrollView */
  5782. #ifndef TOLUA_DISABLE_tolua_UI_ScrollView00
  5783. static int tolua_UI_ScrollView00(lua_State* tolua_S)
  5784. {
  5785. #ifndef TOLUA_RELEASE
  5786. tolua_Error tolua_err;
  5787. if (
  5788. !tolua_isnoobj(tolua_S,1,&tolua_err)
  5789. )
  5790. goto tolua_lerror;
  5791. else
  5792. #endif
  5793. {
  5794. {
  5795. ScrollView* tolua_ret = (ScrollView*) NewScrollView();
  5796. tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScrollView");
  5797. }
  5798. }
  5799. return 1;
  5800. #ifndef TOLUA_RELEASE
  5801. tolua_lerror:
  5802. tolua_error(tolua_S,"#ferror in function 'ScrollView'.",&tolua_err);
  5803. return 0;
  5804. #endif
  5805. }
  5806. #endif //#ifndef TOLUA_DISABLE
  5807. /* method: SetOrientation of class Slider */
  5808. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetOrientation00
  5809. static int tolua_UI_Slider_SetOrientation00(lua_State* tolua_S)
  5810. {
  5811. #ifndef TOLUA_RELEASE
  5812. tolua_Error tolua_err;
  5813. if (
  5814. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5815. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5816. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5817. )
  5818. goto tolua_lerror;
  5819. else
  5820. #endif
  5821. {
  5822. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5823. Orientation orientation = ((Orientation) (int) tolua_tonumber(tolua_S,2,0));
  5824. #ifndef TOLUA_RELEASE
  5825. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOrientation'", NULL);
  5826. #endif
  5827. {
  5828. self->SetOrientation(orientation);
  5829. }
  5830. }
  5831. return 0;
  5832. #ifndef TOLUA_RELEASE
  5833. tolua_lerror:
  5834. tolua_error(tolua_S,"#ferror in function 'SetOrientation'.",&tolua_err);
  5835. return 0;
  5836. #endif
  5837. }
  5838. #endif //#ifndef TOLUA_DISABLE
  5839. /* method: SetRange of class Slider */
  5840. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetRange00
  5841. static int tolua_UI_Slider_SetRange00(lua_State* tolua_S)
  5842. {
  5843. #ifndef TOLUA_RELEASE
  5844. tolua_Error tolua_err;
  5845. if (
  5846. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5847. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5848. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5849. )
  5850. goto tolua_lerror;
  5851. else
  5852. #endif
  5853. {
  5854. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5855. float range = ((float) tolua_tonumber(tolua_S,2,0));
  5856. #ifndef TOLUA_RELEASE
  5857. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRange'", NULL);
  5858. #endif
  5859. {
  5860. self->SetRange(range);
  5861. }
  5862. }
  5863. return 0;
  5864. #ifndef TOLUA_RELEASE
  5865. tolua_lerror:
  5866. tolua_error(tolua_S,"#ferror in function 'SetRange'.",&tolua_err);
  5867. return 0;
  5868. #endif
  5869. }
  5870. #endif //#ifndef TOLUA_DISABLE
  5871. /* method: SetValue of class Slider */
  5872. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetValue00
  5873. static int tolua_UI_Slider_SetValue00(lua_State* tolua_S)
  5874. {
  5875. #ifndef TOLUA_RELEASE
  5876. tolua_Error tolua_err;
  5877. if (
  5878. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5879. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5880. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5881. )
  5882. goto tolua_lerror;
  5883. else
  5884. #endif
  5885. {
  5886. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5887. float value = ((float) tolua_tonumber(tolua_S,2,0));
  5888. #ifndef TOLUA_RELEASE
  5889. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetValue'", NULL);
  5890. #endif
  5891. {
  5892. self->SetValue(value);
  5893. }
  5894. }
  5895. return 0;
  5896. #ifndef TOLUA_RELEASE
  5897. tolua_lerror:
  5898. tolua_error(tolua_S,"#ferror in function 'SetValue'.",&tolua_err);
  5899. return 0;
  5900. #endif
  5901. }
  5902. #endif //#ifndef TOLUA_DISABLE
  5903. /* method: ChangeValue of class Slider */
  5904. #ifndef TOLUA_DISABLE_tolua_UI_Slider_ChangeValue00
  5905. static int tolua_UI_Slider_ChangeValue00(lua_State* tolua_S)
  5906. {
  5907. #ifndef TOLUA_RELEASE
  5908. tolua_Error tolua_err;
  5909. if (
  5910. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5911. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5912. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5913. )
  5914. goto tolua_lerror;
  5915. else
  5916. #endif
  5917. {
  5918. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5919. float delta = ((float) tolua_tonumber(tolua_S,2,0));
  5920. #ifndef TOLUA_RELEASE
  5921. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ChangeValue'", NULL);
  5922. #endif
  5923. {
  5924. self->ChangeValue(delta);
  5925. }
  5926. }
  5927. return 0;
  5928. #ifndef TOLUA_RELEASE
  5929. tolua_lerror:
  5930. tolua_error(tolua_S,"#ferror in function 'ChangeValue'.",&tolua_err);
  5931. return 0;
  5932. #endif
  5933. }
  5934. #endif //#ifndef TOLUA_DISABLE
  5935. /* method: SetRepeatRate of class Slider */
  5936. #ifndef TOLUA_DISABLE_tolua_UI_Slider_SetRepeatRate00
  5937. static int tolua_UI_Slider_SetRepeatRate00(lua_State* tolua_S)
  5938. {
  5939. #ifndef TOLUA_RELEASE
  5940. tolua_Error tolua_err;
  5941. if (
  5942. !tolua_isusertype(tolua_S,1,"Slider",0,&tolua_err) ||
  5943. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  5944. !tolua_isnoobj(tolua_S,3,&tolua_err)
  5945. )
  5946. goto tolua_lerror;
  5947. else
  5948. #endif
  5949. {
  5950. Slider* self = (Slider*) tolua_tousertype(tolua_S,1,0);
  5951. float rate = ((float) tolua_tonumber(tolua_S,2,0));
  5952. #ifndef TOLUA_RELEASE
  5953. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRepeatRate'", NULL);
  5954. #endif
  5955. {
  5956. self->SetRepeatRate(rate);
  5957. }
  5958. }
  5959. return 0;
  5960. #ifndef TOLUA_RELEASE
  5961. tolua_lerror:
  5962. tolua_error(tolua_S,"#ferror in function 'SetRepeatRate'.",&tolua_err);
  5963. return 0;
  5964. #endif
  5965. }
  5966. #endif //#ifndef TOLUA_DISABLE
  5967. /* method: GetOrientation of class Slider */
  5968. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetOrientation00
  5969. static int tolua_UI_Slider_GetOrientation00(lua_State* tolua_S)
  5970. {
  5971. #ifndef TOLUA_RELEASE
  5972. tolua_Error tolua_err;
  5973. if (
  5974. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  5975. !tolua_isnoobj(tolua_S,2,&tolua_err)
  5976. )
  5977. goto tolua_lerror;
  5978. else
  5979. #endif
  5980. {
  5981. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  5982. #ifndef TOLUA_RELEASE
  5983. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOrientation'", NULL);
  5984. #endif
  5985. {
  5986. Orientation tolua_ret = (Orientation) self->GetOrientation();
  5987. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  5988. }
  5989. }
  5990. return 1;
  5991. #ifndef TOLUA_RELEASE
  5992. tolua_lerror:
  5993. tolua_error(tolua_S,"#ferror in function 'GetOrientation'.",&tolua_err);
  5994. return 0;
  5995. #endif
  5996. }
  5997. #endif //#ifndef TOLUA_DISABLE
  5998. /* method: GetRange of class Slider */
  5999. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetRange00
  6000. static int tolua_UI_Slider_GetRange00(lua_State* tolua_S)
  6001. {
  6002. #ifndef TOLUA_RELEASE
  6003. tolua_Error tolua_err;
  6004. if (
  6005. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  6006. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6007. )
  6008. goto tolua_lerror;
  6009. else
  6010. #endif
  6011. {
  6012. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  6013. #ifndef TOLUA_RELEASE
  6014. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRange'", NULL);
  6015. #endif
  6016. {
  6017. float tolua_ret = (float) self->GetRange();
  6018. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6019. }
  6020. }
  6021. return 1;
  6022. #ifndef TOLUA_RELEASE
  6023. tolua_lerror:
  6024. tolua_error(tolua_S,"#ferror in function 'GetRange'.",&tolua_err);
  6025. return 0;
  6026. #endif
  6027. }
  6028. #endif //#ifndef TOLUA_DISABLE
  6029. /* method: GetValue of class Slider */
  6030. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetValue00
  6031. static int tolua_UI_Slider_GetValue00(lua_State* tolua_S)
  6032. {
  6033. #ifndef TOLUA_RELEASE
  6034. tolua_Error tolua_err;
  6035. if (
  6036. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  6037. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6038. )
  6039. goto tolua_lerror;
  6040. else
  6041. #endif
  6042. {
  6043. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  6044. #ifndef TOLUA_RELEASE
  6045. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetValue'", NULL);
  6046. #endif
  6047. {
  6048. float tolua_ret = (float) self->GetValue();
  6049. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6050. }
  6051. }
  6052. return 1;
  6053. #ifndef TOLUA_RELEASE
  6054. tolua_lerror:
  6055. tolua_error(tolua_S,"#ferror in function 'GetValue'.",&tolua_err);
  6056. return 0;
  6057. #endif
  6058. }
  6059. #endif //#ifndef TOLUA_DISABLE
  6060. /* method: GetKnob of class Slider */
  6061. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetKnob00
  6062. static int tolua_UI_Slider_GetKnob00(lua_State* tolua_S)
  6063. {
  6064. #ifndef TOLUA_RELEASE
  6065. tolua_Error tolua_err;
  6066. if (
  6067. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  6068. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6069. )
  6070. goto tolua_lerror;
  6071. else
  6072. #endif
  6073. {
  6074. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  6075. #ifndef TOLUA_RELEASE
  6076. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetKnob'", NULL);
  6077. #endif
  6078. {
  6079. BorderImage* tolua_ret = (BorderImage*) self->GetKnob();
  6080. tolua_pushusertype(tolua_S,(void*)tolua_ret,"BorderImage");
  6081. }
  6082. }
  6083. return 1;
  6084. #ifndef TOLUA_RELEASE
  6085. tolua_lerror:
  6086. tolua_error(tolua_S,"#ferror in function 'GetKnob'.",&tolua_err);
  6087. return 0;
  6088. #endif
  6089. }
  6090. #endif //#ifndef TOLUA_DISABLE
  6091. /* method: GetRepeatRate of class Slider */
  6092. #ifndef TOLUA_DISABLE_tolua_UI_Slider_GetRepeatRate00
  6093. static int tolua_UI_Slider_GetRepeatRate00(lua_State* tolua_S)
  6094. {
  6095. #ifndef TOLUA_RELEASE
  6096. tolua_Error tolua_err;
  6097. if (
  6098. !tolua_isusertype(tolua_S,1,"const Slider",0,&tolua_err) ||
  6099. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6100. )
  6101. goto tolua_lerror;
  6102. else
  6103. #endif
  6104. {
  6105. const Slider* self = (const Slider*) tolua_tousertype(tolua_S,1,0);
  6106. #ifndef TOLUA_RELEASE
  6107. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRepeatRate'", NULL);
  6108. #endif
  6109. {
  6110. float tolua_ret = (float) self->GetRepeatRate();
  6111. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6112. }
  6113. }
  6114. return 1;
  6115. #ifndef TOLUA_RELEASE
  6116. tolua_lerror:
  6117. tolua_error(tolua_S,"#ferror in function 'GetRepeatRate'.",&tolua_err);
  6118. return 0;
  6119. #endif
  6120. }
  6121. #endif //#ifndef TOLUA_DISABLE
  6122. /* function: NewSlider */
  6123. #ifndef TOLUA_DISABLE_tolua_UI_Slider00
  6124. static int tolua_UI_Slider00(lua_State* tolua_S)
  6125. {
  6126. #ifndef TOLUA_RELEASE
  6127. tolua_Error tolua_err;
  6128. if (
  6129. !tolua_isnoobj(tolua_S,1,&tolua_err)
  6130. )
  6131. goto tolua_lerror;
  6132. else
  6133. #endif
  6134. {
  6135. {
  6136. Slider* tolua_ret = (Slider*) NewSlider();
  6137. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Slider");
  6138. }
  6139. }
  6140. return 1;
  6141. #ifndef TOLUA_RELEASE
  6142. tolua_lerror:
  6143. tolua_error(tolua_S,"#ferror in function 'Slider'.",&tolua_err);
  6144. return 0;
  6145. #endif
  6146. }
  6147. #endif //#ifndef TOLUA_DISABLE
  6148. /* method: SetPosition of class Sprite */
  6149. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetPosition00
  6150. static int tolua_UI_Sprite_SetPosition00(lua_State* tolua_S)
  6151. {
  6152. #ifndef TOLUA_RELEASE
  6153. tolua_Error tolua_err;
  6154. if (
  6155. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6156. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  6157. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6158. )
  6159. goto tolua_lerror;
  6160. else
  6161. #endif
  6162. {
  6163. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6164. const Vector2* position = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  6165. #ifndef TOLUA_RELEASE
  6166. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  6167. #endif
  6168. {
  6169. self->SetPosition(*position);
  6170. }
  6171. }
  6172. return 0;
  6173. #ifndef TOLUA_RELEASE
  6174. tolua_lerror:
  6175. tolua_error(tolua_S,"#ferror in function 'SetPosition'.",&tolua_err);
  6176. return 0;
  6177. #endif
  6178. }
  6179. #endif //#ifndef TOLUA_DISABLE
  6180. /* method: SetPosition of class Sprite */
  6181. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetPosition01
  6182. static int tolua_UI_Sprite_SetPosition01(lua_State* tolua_S)
  6183. {
  6184. tolua_Error tolua_err;
  6185. if (
  6186. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6187. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6188. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6189. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6190. )
  6191. goto tolua_lerror;
  6192. else
  6193. {
  6194. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6195. float x = ((float) tolua_tonumber(tolua_S,2,0));
  6196. float y = ((float) tolua_tonumber(tolua_S,3,0));
  6197. #ifndef TOLUA_RELEASE
  6198. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  6199. #endif
  6200. {
  6201. self->SetPosition(x,y);
  6202. }
  6203. }
  6204. return 0;
  6205. tolua_lerror:
  6206. return tolua_UI_Sprite_SetPosition00(tolua_S);
  6207. }
  6208. #endif //#ifndef TOLUA_DISABLE
  6209. /* method: SetHotSpot of class Sprite */
  6210. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetHotSpot00
  6211. static int tolua_UI_Sprite_SetHotSpot00(lua_State* tolua_S)
  6212. {
  6213. #ifndef TOLUA_RELEASE
  6214. tolua_Error tolua_err;
  6215. if (
  6216. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6217. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  6218. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6219. )
  6220. goto tolua_lerror;
  6221. else
  6222. #endif
  6223. {
  6224. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6225. const IntVector2* hotSpot = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  6226. #ifndef TOLUA_RELEASE
  6227. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHotSpot'", NULL);
  6228. #endif
  6229. {
  6230. self->SetHotSpot(*hotSpot);
  6231. }
  6232. }
  6233. return 0;
  6234. #ifndef TOLUA_RELEASE
  6235. tolua_lerror:
  6236. tolua_error(tolua_S,"#ferror in function 'SetHotSpot'.",&tolua_err);
  6237. return 0;
  6238. #endif
  6239. }
  6240. #endif //#ifndef TOLUA_DISABLE
  6241. /* method: SetHotSpot of class Sprite */
  6242. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetHotSpot01
  6243. static int tolua_UI_Sprite_SetHotSpot01(lua_State* tolua_S)
  6244. {
  6245. tolua_Error tolua_err;
  6246. if (
  6247. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6248. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6249. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6250. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6251. )
  6252. goto tolua_lerror;
  6253. else
  6254. {
  6255. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6256. int x = ((int) tolua_tonumber(tolua_S,2,0));
  6257. int y = ((int) tolua_tonumber(tolua_S,3,0));
  6258. #ifndef TOLUA_RELEASE
  6259. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHotSpot'", NULL);
  6260. #endif
  6261. {
  6262. self->SetHotSpot(x,y);
  6263. }
  6264. }
  6265. return 0;
  6266. tolua_lerror:
  6267. return tolua_UI_Sprite_SetHotSpot00(tolua_S);
  6268. }
  6269. #endif //#ifndef TOLUA_DISABLE
  6270. /* method: SetScale of class Sprite */
  6271. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale00
  6272. static int tolua_UI_Sprite_SetScale00(lua_State* tolua_S)
  6273. {
  6274. #ifndef TOLUA_RELEASE
  6275. tolua_Error tolua_err;
  6276. if (
  6277. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6278. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Vector2",0,&tolua_err)) ||
  6279. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6280. )
  6281. goto tolua_lerror;
  6282. else
  6283. #endif
  6284. {
  6285. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6286. const Vector2* scale = ((const Vector2*) tolua_tousertype(tolua_S,2,0));
  6287. #ifndef TOLUA_RELEASE
  6288. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  6289. #endif
  6290. {
  6291. self->SetScale(*scale);
  6292. }
  6293. }
  6294. return 0;
  6295. #ifndef TOLUA_RELEASE
  6296. tolua_lerror:
  6297. tolua_error(tolua_S,"#ferror in function 'SetScale'.",&tolua_err);
  6298. return 0;
  6299. #endif
  6300. }
  6301. #endif //#ifndef TOLUA_DISABLE
  6302. /* method: SetScale of class Sprite */
  6303. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale01
  6304. static int tolua_UI_Sprite_SetScale01(lua_State* tolua_S)
  6305. {
  6306. tolua_Error tolua_err;
  6307. if (
  6308. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6309. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6310. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  6311. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6312. )
  6313. goto tolua_lerror;
  6314. else
  6315. {
  6316. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6317. float x = ((float) tolua_tonumber(tolua_S,2,0));
  6318. float y = ((float) tolua_tonumber(tolua_S,3,0));
  6319. #ifndef TOLUA_RELEASE
  6320. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  6321. #endif
  6322. {
  6323. self->SetScale(x,y);
  6324. }
  6325. }
  6326. return 0;
  6327. tolua_lerror:
  6328. return tolua_UI_Sprite_SetScale00(tolua_S);
  6329. }
  6330. #endif //#ifndef TOLUA_DISABLE
  6331. /* method: SetScale of class Sprite */
  6332. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetScale02
  6333. static int tolua_UI_Sprite_SetScale02(lua_State* tolua_S)
  6334. {
  6335. tolua_Error tolua_err;
  6336. if (
  6337. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6338. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6339. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6340. )
  6341. goto tolua_lerror;
  6342. else
  6343. {
  6344. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6345. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  6346. #ifndef TOLUA_RELEASE
  6347. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetScale'", NULL);
  6348. #endif
  6349. {
  6350. self->SetScale(scale);
  6351. }
  6352. }
  6353. return 0;
  6354. tolua_lerror:
  6355. return tolua_UI_Sprite_SetScale01(tolua_S);
  6356. }
  6357. #endif //#ifndef TOLUA_DISABLE
  6358. /* method: SetRotation of class Sprite */
  6359. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetRotation00
  6360. static int tolua_UI_Sprite_SetRotation00(lua_State* tolua_S)
  6361. {
  6362. #ifndef TOLUA_RELEASE
  6363. tolua_Error tolua_err;
  6364. if (
  6365. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6366. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6367. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6368. )
  6369. goto tolua_lerror;
  6370. else
  6371. #endif
  6372. {
  6373. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6374. float angle = ((float) tolua_tonumber(tolua_S,2,0));
  6375. #ifndef TOLUA_RELEASE
  6376. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRotation'", NULL);
  6377. #endif
  6378. {
  6379. self->SetRotation(angle);
  6380. }
  6381. }
  6382. return 0;
  6383. #ifndef TOLUA_RELEASE
  6384. tolua_lerror:
  6385. tolua_error(tolua_S,"#ferror in function 'SetRotation'.",&tolua_err);
  6386. return 0;
  6387. #endif
  6388. }
  6389. #endif //#ifndef TOLUA_DISABLE
  6390. /* method: SetTexture of class Sprite */
  6391. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetTexture00
  6392. static int tolua_UI_Sprite_SetTexture00(lua_State* tolua_S)
  6393. {
  6394. #ifndef TOLUA_RELEASE
  6395. tolua_Error tolua_err;
  6396. if (
  6397. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6398. !tolua_isusertype(tolua_S,2,"Texture",0,&tolua_err) ||
  6399. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6400. )
  6401. goto tolua_lerror;
  6402. else
  6403. #endif
  6404. {
  6405. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6406. Texture* texture = ((Texture*) tolua_tousertype(tolua_S,2,0));
  6407. #ifndef TOLUA_RELEASE
  6408. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTexture'", NULL);
  6409. #endif
  6410. {
  6411. self->SetTexture(texture);
  6412. }
  6413. }
  6414. return 0;
  6415. #ifndef TOLUA_RELEASE
  6416. tolua_lerror:
  6417. tolua_error(tolua_S,"#ferror in function 'SetTexture'.",&tolua_err);
  6418. return 0;
  6419. #endif
  6420. }
  6421. #endif //#ifndef TOLUA_DISABLE
  6422. /* method: SetImageRect of class Sprite */
  6423. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetImageRect00
  6424. static int tolua_UI_Sprite_SetImageRect00(lua_State* tolua_S)
  6425. {
  6426. #ifndef TOLUA_RELEASE
  6427. tolua_Error tolua_err;
  6428. if (
  6429. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6430. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  6431. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6432. )
  6433. goto tolua_lerror;
  6434. else
  6435. #endif
  6436. {
  6437. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6438. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  6439. #ifndef TOLUA_RELEASE
  6440. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetImageRect'", NULL);
  6441. #endif
  6442. {
  6443. self->SetImageRect(*rect);
  6444. }
  6445. }
  6446. return 0;
  6447. #ifndef TOLUA_RELEASE
  6448. tolua_lerror:
  6449. tolua_error(tolua_S,"#ferror in function 'SetImageRect'.",&tolua_err);
  6450. return 0;
  6451. #endif
  6452. }
  6453. #endif //#ifndef TOLUA_DISABLE
  6454. /* method: SetFullImageRect of class Sprite */
  6455. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetFullImageRect00
  6456. static int tolua_UI_Sprite_SetFullImageRect00(lua_State* tolua_S)
  6457. {
  6458. #ifndef TOLUA_RELEASE
  6459. tolua_Error tolua_err;
  6460. if (
  6461. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6462. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6463. )
  6464. goto tolua_lerror;
  6465. else
  6466. #endif
  6467. {
  6468. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6469. #ifndef TOLUA_RELEASE
  6470. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFullImageRect'", NULL);
  6471. #endif
  6472. {
  6473. self->SetFullImageRect();
  6474. }
  6475. }
  6476. return 0;
  6477. #ifndef TOLUA_RELEASE
  6478. tolua_lerror:
  6479. tolua_error(tolua_S,"#ferror in function 'SetFullImageRect'.",&tolua_err);
  6480. return 0;
  6481. #endif
  6482. }
  6483. #endif //#ifndef TOLUA_DISABLE
  6484. /* method: SetBlendMode of class Sprite */
  6485. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetBlendMode00
  6486. static int tolua_UI_Sprite_SetBlendMode00(lua_State* tolua_S)
  6487. {
  6488. #ifndef TOLUA_RELEASE
  6489. tolua_Error tolua_err;
  6490. if (
  6491. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6492. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6493. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6494. )
  6495. goto tolua_lerror;
  6496. else
  6497. #endif
  6498. {
  6499. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6500. BlendMode mode = ((BlendMode) (int) tolua_tonumber(tolua_S,2,0));
  6501. #ifndef TOLUA_RELEASE
  6502. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBlendMode'", NULL);
  6503. #endif
  6504. {
  6505. self->SetBlendMode(mode);
  6506. }
  6507. }
  6508. return 0;
  6509. #ifndef TOLUA_RELEASE
  6510. tolua_lerror:
  6511. tolua_error(tolua_S,"#ferror in function 'SetBlendMode'.",&tolua_err);
  6512. return 0;
  6513. #endif
  6514. }
  6515. #endif //#ifndef TOLUA_DISABLE
  6516. /* method: GetPosition of class Sprite */
  6517. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetPosition00
  6518. static int tolua_UI_Sprite_GetPosition00(lua_State* tolua_S)
  6519. {
  6520. #ifndef TOLUA_RELEASE
  6521. tolua_Error tolua_err;
  6522. if (
  6523. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6524. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6525. )
  6526. goto tolua_lerror;
  6527. else
  6528. #endif
  6529. {
  6530. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6531. #ifndef TOLUA_RELEASE
  6532. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPosition'", NULL);
  6533. #endif
  6534. {
  6535. const Vector2& tolua_ret = (const Vector2&) self->GetPosition();
  6536. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  6537. }
  6538. }
  6539. return 1;
  6540. #ifndef TOLUA_RELEASE
  6541. tolua_lerror:
  6542. tolua_error(tolua_S,"#ferror in function 'GetPosition'.",&tolua_err);
  6543. return 0;
  6544. #endif
  6545. }
  6546. #endif //#ifndef TOLUA_DISABLE
  6547. /* method: GetHotSpot of class Sprite */
  6548. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetHotSpot00
  6549. static int tolua_UI_Sprite_GetHotSpot00(lua_State* tolua_S)
  6550. {
  6551. #ifndef TOLUA_RELEASE
  6552. tolua_Error tolua_err;
  6553. if (
  6554. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6555. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6556. )
  6557. goto tolua_lerror;
  6558. else
  6559. #endif
  6560. {
  6561. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6562. #ifndef TOLUA_RELEASE
  6563. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHotSpot'", NULL);
  6564. #endif
  6565. {
  6566. const IntVector2& tolua_ret = (const IntVector2&) self->GetHotSpot();
  6567. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  6568. }
  6569. }
  6570. return 1;
  6571. #ifndef TOLUA_RELEASE
  6572. tolua_lerror:
  6573. tolua_error(tolua_S,"#ferror in function 'GetHotSpot'.",&tolua_err);
  6574. return 0;
  6575. #endif
  6576. }
  6577. #endif //#ifndef TOLUA_DISABLE
  6578. /* method: GetScale of class Sprite */
  6579. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetScale00
  6580. static int tolua_UI_Sprite_GetScale00(lua_State* tolua_S)
  6581. {
  6582. #ifndef TOLUA_RELEASE
  6583. tolua_Error tolua_err;
  6584. if (
  6585. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6586. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6587. )
  6588. goto tolua_lerror;
  6589. else
  6590. #endif
  6591. {
  6592. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6593. #ifndef TOLUA_RELEASE
  6594. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetScale'", NULL);
  6595. #endif
  6596. {
  6597. const Vector2& tolua_ret = (const Vector2&) self->GetScale();
  6598. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Vector2");
  6599. }
  6600. }
  6601. return 1;
  6602. #ifndef TOLUA_RELEASE
  6603. tolua_lerror:
  6604. tolua_error(tolua_S,"#ferror in function 'GetScale'.",&tolua_err);
  6605. return 0;
  6606. #endif
  6607. }
  6608. #endif //#ifndef TOLUA_DISABLE
  6609. /* method: GetRotation of class Sprite */
  6610. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetRotation00
  6611. static int tolua_UI_Sprite_GetRotation00(lua_State* tolua_S)
  6612. {
  6613. #ifndef TOLUA_RELEASE
  6614. tolua_Error tolua_err;
  6615. if (
  6616. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6617. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6618. )
  6619. goto tolua_lerror;
  6620. else
  6621. #endif
  6622. {
  6623. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6624. #ifndef TOLUA_RELEASE
  6625. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRotation'", NULL);
  6626. #endif
  6627. {
  6628. float tolua_ret = (float) self->GetRotation();
  6629. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6630. }
  6631. }
  6632. return 1;
  6633. #ifndef TOLUA_RELEASE
  6634. tolua_lerror:
  6635. tolua_error(tolua_S,"#ferror in function 'GetRotation'.",&tolua_err);
  6636. return 0;
  6637. #endif
  6638. }
  6639. #endif //#ifndef TOLUA_DISABLE
  6640. /* method: GetTexture of class Sprite */
  6641. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTexture00
  6642. static int tolua_UI_Sprite_GetTexture00(lua_State* tolua_S)
  6643. {
  6644. #ifndef TOLUA_RELEASE
  6645. tolua_Error tolua_err;
  6646. if (
  6647. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6648. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6649. )
  6650. goto tolua_lerror;
  6651. else
  6652. #endif
  6653. {
  6654. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6655. #ifndef TOLUA_RELEASE
  6656. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTexture'", NULL);
  6657. #endif
  6658. {
  6659. Texture* tolua_ret = (Texture*) self->GetTexture();
  6660. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Texture");
  6661. }
  6662. }
  6663. return 1;
  6664. #ifndef TOLUA_RELEASE
  6665. tolua_lerror:
  6666. tolua_error(tolua_S,"#ferror in function 'GetTexture'.",&tolua_err);
  6667. return 0;
  6668. #endif
  6669. }
  6670. #endif //#ifndef TOLUA_DISABLE
  6671. /* method: GetImageRect of class Sprite */
  6672. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetImageRect00
  6673. static int tolua_UI_Sprite_GetImageRect00(lua_State* tolua_S)
  6674. {
  6675. #ifndef TOLUA_RELEASE
  6676. tolua_Error tolua_err;
  6677. if (
  6678. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6679. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6680. )
  6681. goto tolua_lerror;
  6682. else
  6683. #endif
  6684. {
  6685. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6686. #ifndef TOLUA_RELEASE
  6687. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetImageRect'", NULL);
  6688. #endif
  6689. {
  6690. const IntRect& tolua_ret = (const IntRect&) self->GetImageRect();
  6691. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  6692. }
  6693. }
  6694. return 1;
  6695. #ifndef TOLUA_RELEASE
  6696. tolua_lerror:
  6697. tolua_error(tolua_S,"#ferror in function 'GetImageRect'.",&tolua_err);
  6698. return 0;
  6699. #endif
  6700. }
  6701. #endif //#ifndef TOLUA_DISABLE
  6702. /* method: GetBlendMode of class Sprite */
  6703. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetBlendMode00
  6704. static int tolua_UI_Sprite_GetBlendMode00(lua_State* tolua_S)
  6705. {
  6706. #ifndef TOLUA_RELEASE
  6707. tolua_Error tolua_err;
  6708. if (
  6709. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6710. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6711. )
  6712. goto tolua_lerror;
  6713. else
  6714. #endif
  6715. {
  6716. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6717. #ifndef TOLUA_RELEASE
  6718. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBlendMode'", NULL);
  6719. #endif
  6720. {
  6721. BlendMode tolua_ret = (BlendMode) self->GetBlendMode();
  6722. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  6723. }
  6724. }
  6725. return 1;
  6726. #ifndef TOLUA_RELEASE
  6727. tolua_lerror:
  6728. tolua_error(tolua_S,"#ferror in function 'GetBlendMode'.",&tolua_err);
  6729. return 0;
  6730. #endif
  6731. }
  6732. #endif //#ifndef TOLUA_DISABLE
  6733. /* method: SetTextureAttr of class Sprite */
  6734. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_SetTextureAttr00
  6735. static int tolua_UI_Sprite_SetTextureAttr00(lua_State* tolua_S)
  6736. {
  6737. #ifndef TOLUA_RELEASE
  6738. tolua_Error tolua_err;
  6739. if (
  6740. !tolua_isusertype(tolua_S,1,"Sprite",0,&tolua_err) ||
  6741. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ResourceRef",0,&tolua_err)) ||
  6742. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6743. )
  6744. goto tolua_lerror;
  6745. else
  6746. #endif
  6747. {
  6748. Sprite* self = (Sprite*) tolua_tousertype(tolua_S,1,0);
  6749. ResourceRef value = *((ResourceRef*) tolua_tousertype(tolua_S,2,0));
  6750. #ifndef TOLUA_RELEASE
  6751. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextureAttr'", NULL);
  6752. #endif
  6753. {
  6754. self->SetTextureAttr(value);
  6755. }
  6756. }
  6757. return 0;
  6758. #ifndef TOLUA_RELEASE
  6759. tolua_lerror:
  6760. tolua_error(tolua_S,"#ferror in function 'SetTextureAttr'.",&tolua_err);
  6761. return 0;
  6762. #endif
  6763. }
  6764. #endif //#ifndef TOLUA_DISABLE
  6765. /* method: GetTextureAttr of class Sprite */
  6766. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTextureAttr00
  6767. static int tolua_UI_Sprite_GetTextureAttr00(lua_State* tolua_S)
  6768. {
  6769. #ifndef TOLUA_RELEASE
  6770. tolua_Error tolua_err;
  6771. if (
  6772. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6773. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6774. )
  6775. goto tolua_lerror;
  6776. else
  6777. #endif
  6778. {
  6779. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6780. #ifndef TOLUA_RELEASE
  6781. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextureAttr'", NULL);
  6782. #endif
  6783. {
  6784. ResourceRef tolua_ret = (ResourceRef) self->GetTextureAttr();
  6785. {
  6786. #ifdef __cplusplus
  6787. void* tolua_obj = Mtolua_new((ResourceRef)(tolua_ret));
  6788. tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
  6789. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6790. #else
  6791. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(ResourceRef));
  6792. tolua_pushusertype(tolua_S,tolua_obj,"ResourceRef");
  6793. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  6794. #endif
  6795. }
  6796. }
  6797. }
  6798. return 1;
  6799. #ifndef TOLUA_RELEASE
  6800. tolua_lerror:
  6801. tolua_error(tolua_S,"#ferror in function 'GetTextureAttr'.",&tolua_err);
  6802. return 0;
  6803. #endif
  6804. }
  6805. #endif //#ifndef TOLUA_DISABLE
  6806. /* method: GetTransform of class Sprite */
  6807. #ifndef TOLUA_DISABLE_tolua_UI_Sprite_GetTransform00
  6808. static int tolua_UI_Sprite_GetTransform00(lua_State* tolua_S)
  6809. {
  6810. #ifndef TOLUA_RELEASE
  6811. tolua_Error tolua_err;
  6812. if (
  6813. !tolua_isusertype(tolua_S,1,"const Sprite",0,&tolua_err) ||
  6814. !tolua_isnoobj(tolua_S,2,&tolua_err)
  6815. )
  6816. goto tolua_lerror;
  6817. else
  6818. #endif
  6819. {
  6820. const Sprite* self = (const Sprite*) tolua_tousertype(tolua_S,1,0);
  6821. #ifndef TOLUA_RELEASE
  6822. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTransform'", NULL);
  6823. #endif
  6824. {
  6825. const Matrix3x4& tolua_ret = (const Matrix3x4&) self->GetTransform();
  6826. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Matrix3x4");
  6827. }
  6828. }
  6829. return 1;
  6830. #ifndef TOLUA_RELEASE
  6831. tolua_lerror:
  6832. tolua_error(tolua_S,"#ferror in function 'GetTransform'.",&tolua_err);
  6833. return 0;
  6834. #endif
  6835. }
  6836. #endif //#ifndef TOLUA_DISABLE
  6837. /* function: NewSprite */
  6838. #ifndef TOLUA_DISABLE_tolua_UI_Sprite00
  6839. static int tolua_UI_Sprite00(lua_State* tolua_S)
  6840. {
  6841. #ifndef TOLUA_RELEASE
  6842. tolua_Error tolua_err;
  6843. if (
  6844. !tolua_isnoobj(tolua_S,1,&tolua_err)
  6845. )
  6846. goto tolua_lerror;
  6847. else
  6848. #endif
  6849. {
  6850. {
  6851. Sprite* tolua_ret = (Sprite*) NewSprite();
  6852. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Sprite");
  6853. }
  6854. }
  6855. return 1;
  6856. #ifndef TOLUA_RELEASE
  6857. tolua_lerror:
  6858. tolua_error(tolua_S,"#ferror in function 'Sprite'.",&tolua_err);
  6859. return 0;
  6860. #endif
  6861. }
  6862. #endif //#ifndef TOLUA_DISABLE
  6863. /* method: SetFont of class Text */
  6864. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetFont00
  6865. static int tolua_UI_Text_SetFont00(lua_State* tolua_S)
  6866. {
  6867. #ifndef TOLUA_RELEASE
  6868. tolua_Error tolua_err;
  6869. if (
  6870. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6871. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  6872. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  6873. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6874. )
  6875. goto tolua_lerror;
  6876. else
  6877. #endif
  6878. {
  6879. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6880. const String* fontName = ((const String*) tolua_tousertype(tolua_S,2,0));
  6881. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  6882. #ifndef TOLUA_RELEASE
  6883. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  6884. #endif
  6885. {
  6886. bool tolua_ret = (bool) self->SetFont(*fontName,size);
  6887. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6888. }
  6889. }
  6890. return 1;
  6891. #ifndef TOLUA_RELEASE
  6892. tolua_lerror:
  6893. tolua_error(tolua_S,"#ferror in function 'SetFont'.",&tolua_err);
  6894. return 0;
  6895. #endif
  6896. }
  6897. #endif //#ifndef TOLUA_DISABLE
  6898. /* method: SetFont of class Text */
  6899. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetFont01
  6900. static int tolua_UI_Text_SetFont01(lua_State* tolua_S)
  6901. {
  6902. tolua_Error tolua_err;
  6903. if (
  6904. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6905. !tolua_isusertype(tolua_S,2,"Font",0,&tolua_err) ||
  6906. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  6907. !tolua_isnoobj(tolua_S,4,&tolua_err)
  6908. )
  6909. goto tolua_lerror;
  6910. else
  6911. {
  6912. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6913. Font* font = ((Font*) tolua_tousertype(tolua_S,2,0));
  6914. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  6915. #ifndef TOLUA_RELEASE
  6916. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  6917. #endif
  6918. {
  6919. bool tolua_ret = (bool) self->SetFont(font,size);
  6920. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  6921. }
  6922. }
  6923. return 1;
  6924. tolua_lerror:
  6925. return tolua_UI_Text_SetFont00(tolua_S);
  6926. }
  6927. #endif //#ifndef TOLUA_DISABLE
  6928. /* method: SetText of class Text */
  6929. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetText00
  6930. static int tolua_UI_Text_SetText00(lua_State* tolua_S)
  6931. {
  6932. #ifndef TOLUA_RELEASE
  6933. tolua_Error tolua_err;
  6934. if (
  6935. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6936. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  6937. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6938. )
  6939. goto tolua_lerror;
  6940. else
  6941. #endif
  6942. {
  6943. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6944. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  6945. #ifndef TOLUA_RELEASE
  6946. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  6947. #endif
  6948. {
  6949. self->SetText(*text);
  6950. }
  6951. }
  6952. return 0;
  6953. #ifndef TOLUA_RELEASE
  6954. tolua_lerror:
  6955. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  6956. return 0;
  6957. #endif
  6958. }
  6959. #endif //#ifndef TOLUA_DISABLE
  6960. /* method: SetTextAlignment of class Text */
  6961. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetTextAlignment00
  6962. static int tolua_UI_Text_SetTextAlignment00(lua_State* tolua_S)
  6963. {
  6964. #ifndef TOLUA_RELEASE
  6965. tolua_Error tolua_err;
  6966. if (
  6967. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  6968. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  6969. !tolua_isnoobj(tolua_S,3,&tolua_err)
  6970. )
  6971. goto tolua_lerror;
  6972. else
  6973. #endif
  6974. {
  6975. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  6976. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  6977. #ifndef TOLUA_RELEASE
  6978. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextAlignment'", NULL);
  6979. #endif
  6980. {
  6981. self->SetTextAlignment(align);
  6982. }
  6983. }
  6984. return 0;
  6985. #ifndef TOLUA_RELEASE
  6986. tolua_lerror:
  6987. tolua_error(tolua_S,"#ferror in function 'SetTextAlignment'.",&tolua_err);
  6988. return 0;
  6989. #endif
  6990. }
  6991. #endif //#ifndef TOLUA_DISABLE
  6992. /* method: SetRowSpacing of class Text */
  6993. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetRowSpacing00
  6994. static int tolua_UI_Text_SetRowSpacing00(lua_State* tolua_S)
  6995. {
  6996. #ifndef TOLUA_RELEASE
  6997. tolua_Error tolua_err;
  6998. if (
  6999. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7000. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7001. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7002. )
  7003. goto tolua_lerror;
  7004. else
  7005. #endif
  7006. {
  7007. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7008. float spacing = ((float) tolua_tonumber(tolua_S,2,0));
  7009. #ifndef TOLUA_RELEASE
  7010. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRowSpacing'", NULL);
  7011. #endif
  7012. {
  7013. self->SetRowSpacing(spacing);
  7014. }
  7015. }
  7016. return 0;
  7017. #ifndef TOLUA_RELEASE
  7018. tolua_lerror:
  7019. tolua_error(tolua_S,"#ferror in function 'SetRowSpacing'.",&tolua_err);
  7020. return 0;
  7021. #endif
  7022. }
  7023. #endif //#ifndef TOLUA_DISABLE
  7024. /* method: SetWordwrap of class Text */
  7025. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetWordwrap00
  7026. static int tolua_UI_Text_SetWordwrap00(lua_State* tolua_S)
  7027. {
  7028. #ifndef TOLUA_RELEASE
  7029. tolua_Error tolua_err;
  7030. if (
  7031. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7032. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7033. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7034. )
  7035. goto tolua_lerror;
  7036. else
  7037. #endif
  7038. {
  7039. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7040. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7041. #ifndef TOLUA_RELEASE
  7042. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWordwrap'", NULL);
  7043. #endif
  7044. {
  7045. self->SetWordwrap(enable);
  7046. }
  7047. }
  7048. return 0;
  7049. #ifndef TOLUA_RELEASE
  7050. tolua_lerror:
  7051. tolua_error(tolua_S,"#ferror in function 'SetWordwrap'.",&tolua_err);
  7052. return 0;
  7053. #endif
  7054. }
  7055. #endif //#ifndef TOLUA_DISABLE
  7056. /* method: SetSelection of class Text */
  7057. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetSelection00
  7058. static int tolua_UI_Text_SetSelection00(lua_State* tolua_S)
  7059. {
  7060. #ifndef TOLUA_RELEASE
  7061. tolua_Error tolua_err;
  7062. if (
  7063. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7064. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7065. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  7066. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7067. )
  7068. goto tolua_lerror;
  7069. else
  7070. #endif
  7071. {
  7072. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7073. unsigned start = ((unsigned) tolua_tonumber(tolua_S,2,0));
  7074. unsigned length = ((unsigned) tolua_tonumber(tolua_S,3,M_MAX_UNSIGNED));
  7075. #ifndef TOLUA_RELEASE
  7076. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelection'", NULL);
  7077. #endif
  7078. {
  7079. self->SetSelection(start,length);
  7080. }
  7081. }
  7082. return 0;
  7083. #ifndef TOLUA_RELEASE
  7084. tolua_lerror:
  7085. tolua_error(tolua_S,"#ferror in function 'SetSelection'.",&tolua_err);
  7086. return 0;
  7087. #endif
  7088. }
  7089. #endif //#ifndef TOLUA_DISABLE
  7090. /* method: ClearSelection of class Text */
  7091. #ifndef TOLUA_DISABLE_tolua_UI_Text_ClearSelection00
  7092. static int tolua_UI_Text_ClearSelection00(lua_State* tolua_S)
  7093. {
  7094. #ifndef TOLUA_RELEASE
  7095. tolua_Error tolua_err;
  7096. if (
  7097. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7098. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7099. )
  7100. goto tolua_lerror;
  7101. else
  7102. #endif
  7103. {
  7104. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7105. #ifndef TOLUA_RELEASE
  7106. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ClearSelection'", NULL);
  7107. #endif
  7108. {
  7109. self->ClearSelection();
  7110. }
  7111. }
  7112. return 0;
  7113. #ifndef TOLUA_RELEASE
  7114. tolua_lerror:
  7115. tolua_error(tolua_S,"#ferror in function 'ClearSelection'.",&tolua_err);
  7116. return 0;
  7117. #endif
  7118. }
  7119. #endif //#ifndef TOLUA_DISABLE
  7120. /* method: SetSelectionColor of class Text */
  7121. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetSelectionColor00
  7122. static int tolua_UI_Text_SetSelectionColor00(lua_State* tolua_S)
  7123. {
  7124. #ifndef TOLUA_RELEASE
  7125. tolua_Error tolua_err;
  7126. if (
  7127. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7128. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  7129. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7130. )
  7131. goto tolua_lerror;
  7132. else
  7133. #endif
  7134. {
  7135. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7136. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  7137. #ifndef TOLUA_RELEASE
  7138. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelectionColor'", NULL);
  7139. #endif
  7140. {
  7141. self->SetSelectionColor(*color);
  7142. }
  7143. }
  7144. return 0;
  7145. #ifndef TOLUA_RELEASE
  7146. tolua_lerror:
  7147. tolua_error(tolua_S,"#ferror in function 'SetSelectionColor'.",&tolua_err);
  7148. return 0;
  7149. #endif
  7150. }
  7151. #endif //#ifndef TOLUA_DISABLE
  7152. /* method: SetHoverColor of class Text */
  7153. #ifndef TOLUA_DISABLE_tolua_UI_Text_SetHoverColor00
  7154. static int tolua_UI_Text_SetHoverColor00(lua_State* tolua_S)
  7155. {
  7156. #ifndef TOLUA_RELEASE
  7157. tolua_Error tolua_err;
  7158. if (
  7159. !tolua_isusertype(tolua_S,1,"Text",0,&tolua_err) ||
  7160. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  7161. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7162. )
  7163. goto tolua_lerror;
  7164. else
  7165. #endif
  7166. {
  7167. Text* self = (Text*) tolua_tousertype(tolua_S,1,0);
  7168. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  7169. #ifndef TOLUA_RELEASE
  7170. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHoverColor'", NULL);
  7171. #endif
  7172. {
  7173. self->SetHoverColor(*color);
  7174. }
  7175. }
  7176. return 0;
  7177. #ifndef TOLUA_RELEASE
  7178. tolua_lerror:
  7179. tolua_error(tolua_S,"#ferror in function 'SetHoverColor'.",&tolua_err);
  7180. return 0;
  7181. #endif
  7182. }
  7183. #endif //#ifndef TOLUA_DISABLE
  7184. /* method: GetFont of class Text */
  7185. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetFont00
  7186. static int tolua_UI_Text_GetFont00(lua_State* tolua_S)
  7187. {
  7188. #ifndef TOLUA_RELEASE
  7189. tolua_Error tolua_err;
  7190. if (
  7191. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7192. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7193. )
  7194. goto tolua_lerror;
  7195. else
  7196. #endif
  7197. {
  7198. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7199. #ifndef TOLUA_RELEASE
  7200. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFont'", NULL);
  7201. #endif
  7202. {
  7203. Font* tolua_ret = (Font*) self->GetFont();
  7204. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
  7205. }
  7206. }
  7207. return 1;
  7208. #ifndef TOLUA_RELEASE
  7209. tolua_lerror:
  7210. tolua_error(tolua_S,"#ferror in function 'GetFont'.",&tolua_err);
  7211. return 0;
  7212. #endif
  7213. }
  7214. #endif //#ifndef TOLUA_DISABLE
  7215. /* method: GetFontSize of class Text */
  7216. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetFontSize00
  7217. static int tolua_UI_Text_GetFontSize00(lua_State* tolua_S)
  7218. {
  7219. #ifndef TOLUA_RELEASE
  7220. tolua_Error tolua_err;
  7221. if (
  7222. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7223. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7224. )
  7225. goto tolua_lerror;
  7226. else
  7227. #endif
  7228. {
  7229. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7230. #ifndef TOLUA_RELEASE
  7231. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFontSize'", NULL);
  7232. #endif
  7233. {
  7234. int tolua_ret = (int) self->GetFontSize();
  7235. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7236. }
  7237. }
  7238. return 1;
  7239. #ifndef TOLUA_RELEASE
  7240. tolua_lerror:
  7241. tolua_error(tolua_S,"#ferror in function 'GetFontSize'.",&tolua_err);
  7242. return 0;
  7243. #endif
  7244. }
  7245. #endif //#ifndef TOLUA_DISABLE
  7246. /* method: GetText of class Text */
  7247. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetText00
  7248. static int tolua_UI_Text_GetText00(lua_State* tolua_S)
  7249. {
  7250. #ifndef TOLUA_RELEASE
  7251. tolua_Error tolua_err;
  7252. if (
  7253. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7254. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7255. )
  7256. goto tolua_lerror;
  7257. else
  7258. #endif
  7259. {
  7260. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7261. #ifndef TOLUA_RELEASE
  7262. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  7263. #endif
  7264. {
  7265. const String& tolua_ret = (const String&) self->GetText();
  7266. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  7267. }
  7268. }
  7269. return 1;
  7270. #ifndef TOLUA_RELEASE
  7271. tolua_lerror:
  7272. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  7273. return 0;
  7274. #endif
  7275. }
  7276. #endif //#ifndef TOLUA_DISABLE
  7277. /* method: GetTextAlignment of class Text */
  7278. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetTextAlignment00
  7279. static int tolua_UI_Text_GetTextAlignment00(lua_State* tolua_S)
  7280. {
  7281. #ifndef TOLUA_RELEASE
  7282. tolua_Error tolua_err;
  7283. if (
  7284. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7285. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7286. )
  7287. goto tolua_lerror;
  7288. else
  7289. #endif
  7290. {
  7291. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7292. #ifndef TOLUA_RELEASE
  7293. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextAlignment'", NULL);
  7294. #endif
  7295. {
  7296. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetTextAlignment();
  7297. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7298. }
  7299. }
  7300. return 1;
  7301. #ifndef TOLUA_RELEASE
  7302. tolua_lerror:
  7303. tolua_error(tolua_S,"#ferror in function 'GetTextAlignment'.",&tolua_err);
  7304. return 0;
  7305. #endif
  7306. }
  7307. #endif //#ifndef TOLUA_DISABLE
  7308. /* method: GetRowSpacing of class Text */
  7309. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetRowSpacing00
  7310. static int tolua_UI_Text_GetRowSpacing00(lua_State* tolua_S)
  7311. {
  7312. #ifndef TOLUA_RELEASE
  7313. tolua_Error tolua_err;
  7314. if (
  7315. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7316. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7317. )
  7318. goto tolua_lerror;
  7319. else
  7320. #endif
  7321. {
  7322. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7323. #ifndef TOLUA_RELEASE
  7324. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowSpacing'", NULL);
  7325. #endif
  7326. {
  7327. float tolua_ret = (float) self->GetRowSpacing();
  7328. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7329. }
  7330. }
  7331. return 1;
  7332. #ifndef TOLUA_RELEASE
  7333. tolua_lerror:
  7334. tolua_error(tolua_S,"#ferror in function 'GetRowSpacing'.",&tolua_err);
  7335. return 0;
  7336. #endif
  7337. }
  7338. #endif //#ifndef TOLUA_DISABLE
  7339. /* method: GetWordwrap of class Text */
  7340. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetWordwrap00
  7341. static int tolua_UI_Text_GetWordwrap00(lua_State* tolua_S)
  7342. {
  7343. #ifndef TOLUA_RELEASE
  7344. tolua_Error tolua_err;
  7345. if (
  7346. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7347. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7348. )
  7349. goto tolua_lerror;
  7350. else
  7351. #endif
  7352. {
  7353. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7354. #ifndef TOLUA_RELEASE
  7355. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWordwrap'", NULL);
  7356. #endif
  7357. {
  7358. bool tolua_ret = (bool) self->GetWordwrap();
  7359. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7360. }
  7361. }
  7362. return 1;
  7363. #ifndef TOLUA_RELEASE
  7364. tolua_lerror:
  7365. tolua_error(tolua_S,"#ferror in function 'GetWordwrap'.",&tolua_err);
  7366. return 0;
  7367. #endif
  7368. }
  7369. #endif //#ifndef TOLUA_DISABLE
  7370. /* method: GetSelectionStart of class Text */
  7371. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionStart00
  7372. static int tolua_UI_Text_GetSelectionStart00(lua_State* tolua_S)
  7373. {
  7374. #ifndef TOLUA_RELEASE
  7375. tolua_Error tolua_err;
  7376. if (
  7377. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7378. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7379. )
  7380. goto tolua_lerror;
  7381. else
  7382. #endif
  7383. {
  7384. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7385. #ifndef TOLUA_RELEASE
  7386. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionStart'", NULL);
  7387. #endif
  7388. {
  7389. unsigned tolua_ret = (unsigned) self->GetSelectionStart();
  7390. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7391. }
  7392. }
  7393. return 1;
  7394. #ifndef TOLUA_RELEASE
  7395. tolua_lerror:
  7396. tolua_error(tolua_S,"#ferror in function 'GetSelectionStart'.",&tolua_err);
  7397. return 0;
  7398. #endif
  7399. }
  7400. #endif //#ifndef TOLUA_DISABLE
  7401. /* method: GetSelectionLength of class Text */
  7402. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionLength00
  7403. static int tolua_UI_Text_GetSelectionLength00(lua_State* tolua_S)
  7404. {
  7405. #ifndef TOLUA_RELEASE
  7406. tolua_Error tolua_err;
  7407. if (
  7408. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7409. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7410. )
  7411. goto tolua_lerror;
  7412. else
  7413. #endif
  7414. {
  7415. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7416. #ifndef TOLUA_RELEASE
  7417. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionLength'", NULL);
  7418. #endif
  7419. {
  7420. unsigned tolua_ret = (unsigned) self->GetSelectionLength();
  7421. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7422. }
  7423. }
  7424. return 1;
  7425. #ifndef TOLUA_RELEASE
  7426. tolua_lerror:
  7427. tolua_error(tolua_S,"#ferror in function 'GetSelectionLength'.",&tolua_err);
  7428. return 0;
  7429. #endif
  7430. }
  7431. #endif //#ifndef TOLUA_DISABLE
  7432. /* method: GetSelectionColor of class Text */
  7433. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetSelectionColor00
  7434. static int tolua_UI_Text_GetSelectionColor00(lua_State* tolua_S)
  7435. {
  7436. #ifndef TOLUA_RELEASE
  7437. tolua_Error tolua_err;
  7438. if (
  7439. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7440. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7441. )
  7442. goto tolua_lerror;
  7443. else
  7444. #endif
  7445. {
  7446. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7447. #ifndef TOLUA_RELEASE
  7448. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSelectionColor'", NULL);
  7449. #endif
  7450. {
  7451. const Color& tolua_ret = (const Color&) self->GetSelectionColor();
  7452. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  7453. }
  7454. }
  7455. return 1;
  7456. #ifndef TOLUA_RELEASE
  7457. tolua_lerror:
  7458. tolua_error(tolua_S,"#ferror in function 'GetSelectionColor'.",&tolua_err);
  7459. return 0;
  7460. #endif
  7461. }
  7462. #endif //#ifndef TOLUA_DISABLE
  7463. /* method: GetHoverColor of class Text */
  7464. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetHoverColor00
  7465. static int tolua_UI_Text_GetHoverColor00(lua_State* tolua_S)
  7466. {
  7467. #ifndef TOLUA_RELEASE
  7468. tolua_Error tolua_err;
  7469. if (
  7470. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7471. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7472. )
  7473. goto tolua_lerror;
  7474. else
  7475. #endif
  7476. {
  7477. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7478. #ifndef TOLUA_RELEASE
  7479. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHoverColor'", NULL);
  7480. #endif
  7481. {
  7482. const Color& tolua_ret = (const Color&) self->GetHoverColor();
  7483. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  7484. }
  7485. }
  7486. return 1;
  7487. #ifndef TOLUA_RELEASE
  7488. tolua_lerror:
  7489. tolua_error(tolua_S,"#ferror in function 'GetHoverColor'.",&tolua_err);
  7490. return 0;
  7491. #endif
  7492. }
  7493. #endif //#ifndef TOLUA_DISABLE
  7494. /* method: GetRowHeight of class Text */
  7495. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetRowHeight00
  7496. static int tolua_UI_Text_GetRowHeight00(lua_State* tolua_S)
  7497. {
  7498. #ifndef TOLUA_RELEASE
  7499. tolua_Error tolua_err;
  7500. if (
  7501. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7502. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7503. )
  7504. goto tolua_lerror;
  7505. else
  7506. #endif
  7507. {
  7508. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7509. #ifndef TOLUA_RELEASE
  7510. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowHeight'", NULL);
  7511. #endif
  7512. {
  7513. int tolua_ret = (int) self->GetRowHeight();
  7514. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7515. }
  7516. }
  7517. return 1;
  7518. #ifndef TOLUA_RELEASE
  7519. tolua_lerror:
  7520. tolua_error(tolua_S,"#ferror in function 'GetRowHeight'.",&tolua_err);
  7521. return 0;
  7522. #endif
  7523. }
  7524. #endif //#ifndef TOLUA_DISABLE
  7525. /* method: GetNumRows of class Text */
  7526. #ifndef TOLUA_DISABLE_tolua_UI_Text_GetNumRows00
  7527. static int tolua_UI_Text_GetNumRows00(lua_State* tolua_S)
  7528. {
  7529. #ifndef TOLUA_RELEASE
  7530. tolua_Error tolua_err;
  7531. if (
  7532. !tolua_isusertype(tolua_S,1,"const Text",0,&tolua_err) ||
  7533. !tolua_isnoobj(tolua_S,2,&tolua_err)
  7534. )
  7535. goto tolua_lerror;
  7536. else
  7537. #endif
  7538. {
  7539. const Text* self = (const Text*) tolua_tousertype(tolua_S,1,0);
  7540. #ifndef TOLUA_RELEASE
  7541. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumRows'", NULL);
  7542. #endif
  7543. {
  7544. unsigned tolua_ret = (unsigned) self->GetNumRows();
  7545. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  7546. }
  7547. }
  7548. return 1;
  7549. #ifndef TOLUA_RELEASE
  7550. tolua_lerror:
  7551. tolua_error(tolua_S,"#ferror in function 'GetNumRows'.",&tolua_err);
  7552. return 0;
  7553. #endif
  7554. }
  7555. #endif //#ifndef TOLUA_DISABLE
  7556. /* function: NewText */
  7557. #ifndef TOLUA_DISABLE_tolua_UI_Text00
  7558. static int tolua_UI_Text00(lua_State* tolua_S)
  7559. {
  7560. #ifndef TOLUA_RELEASE
  7561. tolua_Error tolua_err;
  7562. if (
  7563. !tolua_isnoobj(tolua_S,1,&tolua_err)
  7564. )
  7565. goto tolua_lerror;
  7566. else
  7567. #endif
  7568. {
  7569. {
  7570. Text* tolua_ret = (Text*) NewText();
  7571. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text");
  7572. }
  7573. }
  7574. return 1;
  7575. #ifndef TOLUA_RELEASE
  7576. tolua_lerror:
  7577. tolua_error(tolua_S,"#ferror in function 'Text'.",&tolua_err);
  7578. return 0;
  7579. #endif
  7580. }
  7581. #endif //#ifndef TOLUA_DISABLE
  7582. /* method: SetFont of class Text3D */
  7583. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFont00
  7584. static int tolua_UI_Text3D_SetFont00(lua_State* tolua_S)
  7585. {
  7586. #ifndef TOLUA_RELEASE
  7587. tolua_Error tolua_err;
  7588. if (
  7589. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7590. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  7591. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  7592. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7593. )
  7594. goto tolua_lerror;
  7595. else
  7596. #endif
  7597. {
  7598. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7599. const String* fontName = ((const String*) tolua_tousertype(tolua_S,2,0));
  7600. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  7601. #ifndef TOLUA_RELEASE
  7602. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  7603. #endif
  7604. {
  7605. bool tolua_ret = (bool) self->SetFont(*fontName,size);
  7606. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7607. }
  7608. }
  7609. return 1;
  7610. #ifndef TOLUA_RELEASE
  7611. tolua_lerror:
  7612. tolua_error(tolua_S,"#ferror in function 'SetFont'.",&tolua_err);
  7613. return 0;
  7614. #endif
  7615. }
  7616. #endif //#ifndef TOLUA_DISABLE
  7617. /* method: SetFont of class Text3D */
  7618. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFont01
  7619. static int tolua_UI_Text3D_SetFont01(lua_State* tolua_S)
  7620. {
  7621. tolua_Error tolua_err;
  7622. if (
  7623. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7624. !tolua_isusertype(tolua_S,2,"Font",0,&tolua_err) ||
  7625. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  7626. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7627. )
  7628. goto tolua_lerror;
  7629. else
  7630. {
  7631. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7632. Font* font = ((Font*) tolua_tousertype(tolua_S,2,0));
  7633. int size = ((int) tolua_tonumber(tolua_S,3,DEFAULT_FONT_SIZE));
  7634. #ifndef TOLUA_RELEASE
  7635. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFont'", NULL);
  7636. #endif
  7637. {
  7638. bool tolua_ret = (bool) self->SetFont(font,size);
  7639. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  7640. }
  7641. }
  7642. return 1;
  7643. tolua_lerror:
  7644. return tolua_UI_Text3D_SetFont00(tolua_S);
  7645. }
  7646. #endif //#ifndef TOLUA_DISABLE
  7647. /* method: SetMaterial of class Text3D */
  7648. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetMaterial00
  7649. static int tolua_UI_Text3D_SetMaterial00(lua_State* tolua_S)
  7650. {
  7651. #ifndef TOLUA_RELEASE
  7652. tolua_Error tolua_err;
  7653. if (
  7654. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7655. !tolua_isusertype(tolua_S,2,"Material",0,&tolua_err) ||
  7656. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7657. )
  7658. goto tolua_lerror;
  7659. else
  7660. #endif
  7661. {
  7662. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7663. Material* material = ((Material*) tolua_tousertype(tolua_S,2,0));
  7664. #ifndef TOLUA_RELEASE
  7665. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaterial'", NULL);
  7666. #endif
  7667. {
  7668. self->SetMaterial(material);
  7669. }
  7670. }
  7671. return 0;
  7672. #ifndef TOLUA_RELEASE
  7673. tolua_lerror:
  7674. tolua_error(tolua_S,"#ferror in function 'SetMaterial'.",&tolua_err);
  7675. return 0;
  7676. #endif
  7677. }
  7678. #endif //#ifndef TOLUA_DISABLE
  7679. /* method: SetText of class Text3D */
  7680. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetText00
  7681. static int tolua_UI_Text3D_SetText00(lua_State* tolua_S)
  7682. {
  7683. #ifndef TOLUA_RELEASE
  7684. tolua_Error tolua_err;
  7685. if (
  7686. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7687. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  7688. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7689. )
  7690. goto tolua_lerror;
  7691. else
  7692. #endif
  7693. {
  7694. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7695. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  7696. #ifndef TOLUA_RELEASE
  7697. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetText'", NULL);
  7698. #endif
  7699. {
  7700. self->SetText(*text);
  7701. }
  7702. }
  7703. return 0;
  7704. #ifndef TOLUA_RELEASE
  7705. tolua_lerror:
  7706. tolua_error(tolua_S,"#ferror in function 'SetText'.",&tolua_err);
  7707. return 0;
  7708. #endif
  7709. }
  7710. #endif //#ifndef TOLUA_DISABLE
  7711. /* method: SetAlignment of class Text3D */
  7712. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetAlignment00
  7713. static int tolua_UI_Text3D_SetAlignment00(lua_State* tolua_S)
  7714. {
  7715. #ifndef TOLUA_RELEASE
  7716. tolua_Error tolua_err;
  7717. if (
  7718. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7719. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7720. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  7721. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7722. )
  7723. goto tolua_lerror;
  7724. else
  7725. #endif
  7726. {
  7727. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7728. HorizontalAlignment hAlign = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7729. VerticalAlignment vAlign = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,3,0));
  7730. #ifndef TOLUA_RELEASE
  7731. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAlignment'", NULL);
  7732. #endif
  7733. {
  7734. self->SetAlignment(hAlign,vAlign);
  7735. }
  7736. }
  7737. return 0;
  7738. #ifndef TOLUA_RELEASE
  7739. tolua_lerror:
  7740. tolua_error(tolua_S,"#ferror in function 'SetAlignment'.",&tolua_err);
  7741. return 0;
  7742. #endif
  7743. }
  7744. #endif //#ifndef TOLUA_DISABLE
  7745. /* method: SetHorizontalAlignment of class Text3D */
  7746. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetHorizontalAlignment00
  7747. static int tolua_UI_Text3D_SetHorizontalAlignment00(lua_State* tolua_S)
  7748. {
  7749. #ifndef TOLUA_RELEASE
  7750. tolua_Error tolua_err;
  7751. if (
  7752. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7753. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7754. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7755. )
  7756. goto tolua_lerror;
  7757. else
  7758. #endif
  7759. {
  7760. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7761. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7762. #ifndef TOLUA_RELEASE
  7763. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHorizontalAlignment'", NULL);
  7764. #endif
  7765. {
  7766. self->SetHorizontalAlignment(align);
  7767. }
  7768. }
  7769. return 0;
  7770. #ifndef TOLUA_RELEASE
  7771. tolua_lerror:
  7772. tolua_error(tolua_S,"#ferror in function 'SetHorizontalAlignment'.",&tolua_err);
  7773. return 0;
  7774. #endif
  7775. }
  7776. #endif //#ifndef TOLUA_DISABLE
  7777. /* method: SetVerticalAlignment of class Text3D */
  7778. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetVerticalAlignment00
  7779. static int tolua_UI_Text3D_SetVerticalAlignment00(lua_State* tolua_S)
  7780. {
  7781. #ifndef TOLUA_RELEASE
  7782. tolua_Error tolua_err;
  7783. if (
  7784. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7785. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7786. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7787. )
  7788. goto tolua_lerror;
  7789. else
  7790. #endif
  7791. {
  7792. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7793. VerticalAlignment align = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7794. #ifndef TOLUA_RELEASE
  7795. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVerticalAlignment'", NULL);
  7796. #endif
  7797. {
  7798. self->SetVerticalAlignment(align);
  7799. }
  7800. }
  7801. return 0;
  7802. #ifndef TOLUA_RELEASE
  7803. tolua_lerror:
  7804. tolua_error(tolua_S,"#ferror in function 'SetVerticalAlignment'.",&tolua_err);
  7805. return 0;
  7806. #endif
  7807. }
  7808. #endif //#ifndef TOLUA_DISABLE
  7809. /* method: SetTextAlignment of class Text3D */
  7810. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetTextAlignment00
  7811. static int tolua_UI_Text3D_SetTextAlignment00(lua_State* tolua_S)
  7812. {
  7813. #ifndef TOLUA_RELEASE
  7814. tolua_Error tolua_err;
  7815. if (
  7816. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7817. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7818. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7819. )
  7820. goto tolua_lerror;
  7821. else
  7822. #endif
  7823. {
  7824. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7825. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  7826. #ifndef TOLUA_RELEASE
  7827. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTextAlignment'", NULL);
  7828. #endif
  7829. {
  7830. self->SetTextAlignment(align);
  7831. }
  7832. }
  7833. return 0;
  7834. #ifndef TOLUA_RELEASE
  7835. tolua_lerror:
  7836. tolua_error(tolua_S,"#ferror in function 'SetTextAlignment'.",&tolua_err);
  7837. return 0;
  7838. #endif
  7839. }
  7840. #endif //#ifndef TOLUA_DISABLE
  7841. /* method: SetRowSpacing of class Text3D */
  7842. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetRowSpacing00
  7843. static int tolua_UI_Text3D_SetRowSpacing00(lua_State* tolua_S)
  7844. {
  7845. #ifndef TOLUA_RELEASE
  7846. tolua_Error tolua_err;
  7847. if (
  7848. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7849. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7850. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7851. )
  7852. goto tolua_lerror;
  7853. else
  7854. #endif
  7855. {
  7856. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7857. float spacing = ((float) tolua_tonumber(tolua_S,2,0));
  7858. #ifndef TOLUA_RELEASE
  7859. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetRowSpacing'", NULL);
  7860. #endif
  7861. {
  7862. self->SetRowSpacing(spacing);
  7863. }
  7864. }
  7865. return 0;
  7866. #ifndef TOLUA_RELEASE
  7867. tolua_lerror:
  7868. tolua_error(tolua_S,"#ferror in function 'SetRowSpacing'.",&tolua_err);
  7869. return 0;
  7870. #endif
  7871. }
  7872. #endif //#ifndef TOLUA_DISABLE
  7873. /* method: SetWordwrap of class Text3D */
  7874. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetWordwrap00
  7875. static int tolua_UI_Text3D_SetWordwrap00(lua_State* tolua_S)
  7876. {
  7877. #ifndef TOLUA_RELEASE
  7878. tolua_Error tolua_err;
  7879. if (
  7880. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7881. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  7882. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7883. )
  7884. goto tolua_lerror;
  7885. else
  7886. #endif
  7887. {
  7888. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7889. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  7890. #ifndef TOLUA_RELEASE
  7891. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWordwrap'", NULL);
  7892. #endif
  7893. {
  7894. self->SetWordwrap(enable);
  7895. }
  7896. }
  7897. return 0;
  7898. #ifndef TOLUA_RELEASE
  7899. tolua_lerror:
  7900. tolua_error(tolua_S,"#ferror in function 'SetWordwrap'.",&tolua_err);
  7901. return 0;
  7902. #endif
  7903. }
  7904. #endif //#ifndef TOLUA_DISABLE
  7905. /* method: SetWidth of class Text3D */
  7906. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetWidth00
  7907. static int tolua_UI_Text3D_SetWidth00(lua_State* tolua_S)
  7908. {
  7909. #ifndef TOLUA_RELEASE
  7910. tolua_Error tolua_err;
  7911. if (
  7912. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7913. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7914. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7915. )
  7916. goto tolua_lerror;
  7917. else
  7918. #endif
  7919. {
  7920. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7921. int width = ((int) tolua_tonumber(tolua_S,2,0));
  7922. #ifndef TOLUA_RELEASE
  7923. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWidth'", NULL);
  7924. #endif
  7925. {
  7926. self->SetWidth(width);
  7927. }
  7928. }
  7929. return 0;
  7930. #ifndef TOLUA_RELEASE
  7931. tolua_lerror:
  7932. tolua_error(tolua_S,"#ferror in function 'SetWidth'.",&tolua_err);
  7933. return 0;
  7934. #endif
  7935. }
  7936. #endif //#ifndef TOLUA_DISABLE
  7937. /* method: SetColor of class Text3D */
  7938. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetColor00
  7939. static int tolua_UI_Text3D_SetColor00(lua_State* tolua_S)
  7940. {
  7941. #ifndef TOLUA_RELEASE
  7942. tolua_Error tolua_err;
  7943. if (
  7944. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7945. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  7946. !tolua_isnoobj(tolua_S,3,&tolua_err)
  7947. )
  7948. goto tolua_lerror;
  7949. else
  7950. #endif
  7951. {
  7952. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7953. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  7954. #ifndef TOLUA_RELEASE
  7955. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  7956. #endif
  7957. {
  7958. self->SetColor(*color);
  7959. }
  7960. }
  7961. return 0;
  7962. #ifndef TOLUA_RELEASE
  7963. tolua_lerror:
  7964. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  7965. return 0;
  7966. #endif
  7967. }
  7968. #endif //#ifndef TOLUA_DISABLE
  7969. /* method: SetColor of class Text3D */
  7970. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetColor01
  7971. static int tolua_UI_Text3D_SetColor01(lua_State* tolua_S)
  7972. {
  7973. tolua_Error tolua_err;
  7974. if (
  7975. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  7976. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  7977. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  7978. !tolua_isnoobj(tolua_S,4,&tolua_err)
  7979. )
  7980. goto tolua_lerror;
  7981. else
  7982. {
  7983. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  7984. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  7985. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  7986. #ifndef TOLUA_RELEASE
  7987. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  7988. #endif
  7989. {
  7990. self->SetColor(corner,*color);
  7991. }
  7992. }
  7993. return 0;
  7994. tolua_lerror:
  7995. return tolua_UI_Text3D_SetColor00(tolua_S);
  7996. }
  7997. #endif //#ifndef TOLUA_DISABLE
  7998. /* method: SetOpacity of class Text3D */
  7999. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetOpacity00
  8000. static int tolua_UI_Text3D_SetOpacity00(lua_State* tolua_S)
  8001. {
  8002. #ifndef TOLUA_RELEASE
  8003. tolua_Error tolua_err;
  8004. if (
  8005. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  8006. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8007. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8008. )
  8009. goto tolua_lerror;
  8010. else
  8011. #endif
  8012. {
  8013. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  8014. float opacity = ((float) tolua_tonumber(tolua_S,2,0));
  8015. #ifndef TOLUA_RELEASE
  8016. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOpacity'", NULL);
  8017. #endif
  8018. {
  8019. self->SetOpacity(opacity);
  8020. }
  8021. }
  8022. return 0;
  8023. #ifndef TOLUA_RELEASE
  8024. tolua_lerror:
  8025. tolua_error(tolua_S,"#ferror in function 'SetOpacity'.",&tolua_err);
  8026. return 0;
  8027. #endif
  8028. }
  8029. #endif //#ifndef TOLUA_DISABLE
  8030. /* method: SetFaceCamera of class Text3D */
  8031. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_SetFaceCamera00
  8032. static int tolua_UI_Text3D_SetFaceCamera00(lua_State* tolua_S)
  8033. {
  8034. #ifndef TOLUA_RELEASE
  8035. tolua_Error tolua_err;
  8036. if (
  8037. !tolua_isusertype(tolua_S,1,"Text3D",0,&tolua_err) ||
  8038. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  8039. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8040. )
  8041. goto tolua_lerror;
  8042. else
  8043. #endif
  8044. {
  8045. Text3D* self = (Text3D*) tolua_tousertype(tolua_S,1,0);
  8046. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  8047. #ifndef TOLUA_RELEASE
  8048. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFaceCamera'", NULL);
  8049. #endif
  8050. {
  8051. self->SetFaceCamera(enable);
  8052. }
  8053. }
  8054. return 0;
  8055. #ifndef TOLUA_RELEASE
  8056. tolua_lerror:
  8057. tolua_error(tolua_S,"#ferror in function 'SetFaceCamera'.",&tolua_err);
  8058. return 0;
  8059. #endif
  8060. }
  8061. #endif //#ifndef TOLUA_DISABLE
  8062. /* method: GetFont of class Text3D */
  8063. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFont00
  8064. static int tolua_UI_Text3D_GetFont00(lua_State* tolua_S)
  8065. {
  8066. #ifndef TOLUA_RELEASE
  8067. tolua_Error tolua_err;
  8068. if (
  8069. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8070. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8071. )
  8072. goto tolua_lerror;
  8073. else
  8074. #endif
  8075. {
  8076. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8077. #ifndef TOLUA_RELEASE
  8078. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFont'", NULL);
  8079. #endif
  8080. {
  8081. Font* tolua_ret = (Font*) self->GetFont();
  8082. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Font");
  8083. }
  8084. }
  8085. return 1;
  8086. #ifndef TOLUA_RELEASE
  8087. tolua_lerror:
  8088. tolua_error(tolua_S,"#ferror in function 'GetFont'.",&tolua_err);
  8089. return 0;
  8090. #endif
  8091. }
  8092. #endif //#ifndef TOLUA_DISABLE
  8093. /* method: GetMaterial of class Text3D */
  8094. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetMaterial00
  8095. static int tolua_UI_Text3D_GetMaterial00(lua_State* tolua_S)
  8096. {
  8097. #ifndef TOLUA_RELEASE
  8098. tolua_Error tolua_err;
  8099. if (
  8100. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8101. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8102. )
  8103. goto tolua_lerror;
  8104. else
  8105. #endif
  8106. {
  8107. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8108. #ifndef TOLUA_RELEASE
  8109. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaterial'", NULL);
  8110. #endif
  8111. {
  8112. Material* tolua_ret = (Material*) self->GetMaterial();
  8113. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Material");
  8114. }
  8115. }
  8116. return 1;
  8117. #ifndef TOLUA_RELEASE
  8118. tolua_lerror:
  8119. tolua_error(tolua_S,"#ferror in function 'GetMaterial'.",&tolua_err);
  8120. return 0;
  8121. #endif
  8122. }
  8123. #endif //#ifndef TOLUA_DISABLE
  8124. /* method: GetFontSize of class Text3D */
  8125. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFontSize00
  8126. static int tolua_UI_Text3D_GetFontSize00(lua_State* tolua_S)
  8127. {
  8128. #ifndef TOLUA_RELEASE
  8129. tolua_Error tolua_err;
  8130. if (
  8131. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8132. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8133. )
  8134. goto tolua_lerror;
  8135. else
  8136. #endif
  8137. {
  8138. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8139. #ifndef TOLUA_RELEASE
  8140. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFontSize'", NULL);
  8141. #endif
  8142. {
  8143. int tolua_ret = (int) self->GetFontSize();
  8144. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8145. }
  8146. }
  8147. return 1;
  8148. #ifndef TOLUA_RELEASE
  8149. tolua_lerror:
  8150. tolua_error(tolua_S,"#ferror in function 'GetFontSize'.",&tolua_err);
  8151. return 0;
  8152. #endif
  8153. }
  8154. #endif //#ifndef TOLUA_DISABLE
  8155. /* method: GetText of class Text3D */
  8156. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetText00
  8157. static int tolua_UI_Text3D_GetText00(lua_State* tolua_S)
  8158. {
  8159. #ifndef TOLUA_RELEASE
  8160. tolua_Error tolua_err;
  8161. if (
  8162. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8163. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8164. )
  8165. goto tolua_lerror;
  8166. else
  8167. #endif
  8168. {
  8169. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8170. #ifndef TOLUA_RELEASE
  8171. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetText'", NULL);
  8172. #endif
  8173. {
  8174. const String& tolua_ret = (const String&) self->GetText();
  8175. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  8176. }
  8177. }
  8178. return 1;
  8179. #ifndef TOLUA_RELEASE
  8180. tolua_lerror:
  8181. tolua_error(tolua_S,"#ferror in function 'GetText'.",&tolua_err);
  8182. return 0;
  8183. #endif
  8184. }
  8185. #endif //#ifndef TOLUA_DISABLE
  8186. /* method: GetTextAlignment of class Text3D */
  8187. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetTextAlignment00
  8188. static int tolua_UI_Text3D_GetTextAlignment00(lua_State* tolua_S)
  8189. {
  8190. #ifndef TOLUA_RELEASE
  8191. tolua_Error tolua_err;
  8192. if (
  8193. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8194. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8195. )
  8196. goto tolua_lerror;
  8197. else
  8198. #endif
  8199. {
  8200. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8201. #ifndef TOLUA_RELEASE
  8202. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTextAlignment'", NULL);
  8203. #endif
  8204. {
  8205. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetTextAlignment();
  8206. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8207. }
  8208. }
  8209. return 1;
  8210. #ifndef TOLUA_RELEASE
  8211. tolua_lerror:
  8212. tolua_error(tolua_S,"#ferror in function 'GetTextAlignment'.",&tolua_err);
  8213. return 0;
  8214. #endif
  8215. }
  8216. #endif //#ifndef TOLUA_DISABLE
  8217. /* method: GetHorizontalAlignment of class Text3D */
  8218. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetHorizontalAlignment00
  8219. static int tolua_UI_Text3D_GetHorizontalAlignment00(lua_State* tolua_S)
  8220. {
  8221. #ifndef TOLUA_RELEASE
  8222. tolua_Error tolua_err;
  8223. if (
  8224. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8225. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8226. )
  8227. goto tolua_lerror;
  8228. else
  8229. #endif
  8230. {
  8231. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8232. #ifndef TOLUA_RELEASE
  8233. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalAlignment'", NULL);
  8234. #endif
  8235. {
  8236. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetHorizontalAlignment();
  8237. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8238. }
  8239. }
  8240. return 1;
  8241. #ifndef TOLUA_RELEASE
  8242. tolua_lerror:
  8243. tolua_error(tolua_S,"#ferror in function 'GetHorizontalAlignment'.",&tolua_err);
  8244. return 0;
  8245. #endif
  8246. }
  8247. #endif //#ifndef TOLUA_DISABLE
  8248. /* method: GetVerticalAlignment of class Text3D */
  8249. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetVerticalAlignment00
  8250. static int tolua_UI_Text3D_GetVerticalAlignment00(lua_State* tolua_S)
  8251. {
  8252. #ifndef TOLUA_RELEASE
  8253. tolua_Error tolua_err;
  8254. if (
  8255. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8256. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8257. )
  8258. goto tolua_lerror;
  8259. else
  8260. #endif
  8261. {
  8262. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8263. #ifndef TOLUA_RELEASE
  8264. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalAlignment'", NULL);
  8265. #endif
  8266. {
  8267. VerticalAlignment tolua_ret = (VerticalAlignment) self->GetVerticalAlignment();
  8268. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8269. }
  8270. }
  8271. return 1;
  8272. #ifndef TOLUA_RELEASE
  8273. tolua_lerror:
  8274. tolua_error(tolua_S,"#ferror in function 'GetVerticalAlignment'.",&tolua_err);
  8275. return 0;
  8276. #endif
  8277. }
  8278. #endif //#ifndef TOLUA_DISABLE
  8279. /* method: GetRowSpacing of class Text3D */
  8280. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetRowSpacing00
  8281. static int tolua_UI_Text3D_GetRowSpacing00(lua_State* tolua_S)
  8282. {
  8283. #ifndef TOLUA_RELEASE
  8284. tolua_Error tolua_err;
  8285. if (
  8286. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8287. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8288. )
  8289. goto tolua_lerror;
  8290. else
  8291. #endif
  8292. {
  8293. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8294. #ifndef TOLUA_RELEASE
  8295. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowSpacing'", NULL);
  8296. #endif
  8297. {
  8298. float tolua_ret = (float) self->GetRowSpacing();
  8299. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8300. }
  8301. }
  8302. return 1;
  8303. #ifndef TOLUA_RELEASE
  8304. tolua_lerror:
  8305. tolua_error(tolua_S,"#ferror in function 'GetRowSpacing'.",&tolua_err);
  8306. return 0;
  8307. #endif
  8308. }
  8309. #endif //#ifndef TOLUA_DISABLE
  8310. /* method: GetWordwrap of class Text3D */
  8311. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetWordwrap00
  8312. static int tolua_UI_Text3D_GetWordwrap00(lua_State* tolua_S)
  8313. {
  8314. #ifndef TOLUA_RELEASE
  8315. tolua_Error tolua_err;
  8316. if (
  8317. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8318. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8319. )
  8320. goto tolua_lerror;
  8321. else
  8322. #endif
  8323. {
  8324. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8325. #ifndef TOLUA_RELEASE
  8326. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWordwrap'", NULL);
  8327. #endif
  8328. {
  8329. bool tolua_ret = (bool) self->GetWordwrap();
  8330. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8331. }
  8332. }
  8333. return 1;
  8334. #ifndef TOLUA_RELEASE
  8335. tolua_lerror:
  8336. tolua_error(tolua_S,"#ferror in function 'GetWordwrap'.",&tolua_err);
  8337. return 0;
  8338. #endif
  8339. }
  8340. #endif //#ifndef TOLUA_DISABLE
  8341. /* method: GetWidth of class Text3D */
  8342. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetWidth00
  8343. static int tolua_UI_Text3D_GetWidth00(lua_State* tolua_S)
  8344. {
  8345. #ifndef TOLUA_RELEASE
  8346. tolua_Error tolua_err;
  8347. if (
  8348. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8349. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8350. )
  8351. goto tolua_lerror;
  8352. else
  8353. #endif
  8354. {
  8355. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8356. #ifndef TOLUA_RELEASE
  8357. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  8358. #endif
  8359. {
  8360. int tolua_ret = (int) self->GetWidth();
  8361. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8362. }
  8363. }
  8364. return 1;
  8365. #ifndef TOLUA_RELEASE
  8366. tolua_lerror:
  8367. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  8368. return 0;
  8369. #endif
  8370. }
  8371. #endif //#ifndef TOLUA_DISABLE
  8372. /* method: GetRowHeight of class Text3D */
  8373. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetRowHeight00
  8374. static int tolua_UI_Text3D_GetRowHeight00(lua_State* tolua_S)
  8375. {
  8376. #ifndef TOLUA_RELEASE
  8377. tolua_Error tolua_err;
  8378. if (
  8379. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8380. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8381. )
  8382. goto tolua_lerror;
  8383. else
  8384. #endif
  8385. {
  8386. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8387. #ifndef TOLUA_RELEASE
  8388. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRowHeight'", NULL);
  8389. #endif
  8390. {
  8391. int tolua_ret = (int) self->GetRowHeight();
  8392. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8393. }
  8394. }
  8395. return 1;
  8396. #ifndef TOLUA_RELEASE
  8397. tolua_lerror:
  8398. tolua_error(tolua_S,"#ferror in function 'GetRowHeight'.",&tolua_err);
  8399. return 0;
  8400. #endif
  8401. }
  8402. #endif //#ifndef TOLUA_DISABLE
  8403. /* method: GetNumRows of class Text3D */
  8404. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetNumRows00
  8405. static int tolua_UI_Text3D_GetNumRows00(lua_State* tolua_S)
  8406. {
  8407. #ifndef TOLUA_RELEASE
  8408. tolua_Error tolua_err;
  8409. if (
  8410. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8411. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8412. )
  8413. goto tolua_lerror;
  8414. else
  8415. #endif
  8416. {
  8417. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8418. #ifndef TOLUA_RELEASE
  8419. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumRows'", NULL);
  8420. #endif
  8421. {
  8422. unsigned tolua_ret = (unsigned) self->GetNumRows();
  8423. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8424. }
  8425. }
  8426. return 1;
  8427. #ifndef TOLUA_RELEASE
  8428. tolua_lerror:
  8429. tolua_error(tolua_S,"#ferror in function 'GetNumRows'.",&tolua_err);
  8430. return 0;
  8431. #endif
  8432. }
  8433. #endif //#ifndef TOLUA_DISABLE
  8434. /* method: GetColor of class Text3D */
  8435. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetColor00
  8436. static int tolua_UI_Text3D_GetColor00(lua_State* tolua_S)
  8437. {
  8438. #ifndef TOLUA_RELEASE
  8439. tolua_Error tolua_err;
  8440. if (
  8441. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8442. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8443. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8444. )
  8445. goto tolua_lerror;
  8446. else
  8447. #endif
  8448. {
  8449. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8450. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  8451. #ifndef TOLUA_RELEASE
  8452. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  8453. #endif
  8454. {
  8455. const Color& tolua_ret = (const Color&) self->GetColor(corner);
  8456. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  8457. }
  8458. }
  8459. return 1;
  8460. #ifndef TOLUA_RELEASE
  8461. tolua_lerror:
  8462. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  8463. return 0;
  8464. #endif
  8465. }
  8466. #endif //#ifndef TOLUA_DISABLE
  8467. /* method: GetOpacity of class Text3D */
  8468. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetOpacity00
  8469. static int tolua_UI_Text3D_GetOpacity00(lua_State* tolua_S)
  8470. {
  8471. #ifndef TOLUA_RELEASE
  8472. tolua_Error tolua_err;
  8473. if (
  8474. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8475. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8476. )
  8477. goto tolua_lerror;
  8478. else
  8479. #endif
  8480. {
  8481. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8482. #ifndef TOLUA_RELEASE
  8483. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOpacity'", NULL);
  8484. #endif
  8485. {
  8486. float tolua_ret = (float) self->GetOpacity();
  8487. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  8488. }
  8489. }
  8490. return 1;
  8491. #ifndef TOLUA_RELEASE
  8492. tolua_lerror:
  8493. tolua_error(tolua_S,"#ferror in function 'GetOpacity'.",&tolua_err);
  8494. return 0;
  8495. #endif
  8496. }
  8497. #endif //#ifndef TOLUA_DISABLE
  8498. /* method: GetFaceCamera of class Text3D */
  8499. #ifndef TOLUA_DISABLE_tolua_UI_Text3D_GetFaceCamera00
  8500. static int tolua_UI_Text3D_GetFaceCamera00(lua_State* tolua_S)
  8501. {
  8502. #ifndef TOLUA_RELEASE
  8503. tolua_Error tolua_err;
  8504. if (
  8505. !tolua_isusertype(tolua_S,1,"const Text3D",0,&tolua_err) ||
  8506. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8507. )
  8508. goto tolua_lerror;
  8509. else
  8510. #endif
  8511. {
  8512. const Text3D* self = (const Text3D*) tolua_tousertype(tolua_S,1,0);
  8513. #ifndef TOLUA_RELEASE
  8514. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFaceCamera'", NULL);
  8515. #endif
  8516. {
  8517. bool tolua_ret = (bool) self->GetFaceCamera();
  8518. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8519. }
  8520. }
  8521. return 1;
  8522. #ifndef TOLUA_RELEASE
  8523. tolua_lerror:
  8524. tolua_error(tolua_S,"#ferror in function 'GetFaceCamera'.",&tolua_err);
  8525. return 0;
  8526. #endif
  8527. }
  8528. #endif //#ifndef TOLUA_DISABLE
  8529. /* function: NewText3D */
  8530. #ifndef TOLUA_DISABLE_tolua_UI_Text3D00
  8531. static int tolua_UI_Text3D00(lua_State* tolua_S)
  8532. {
  8533. #ifndef TOLUA_RELEASE
  8534. tolua_Error tolua_err;
  8535. if (
  8536. !tolua_isnoobj(tolua_S,1,&tolua_err)
  8537. )
  8538. goto tolua_lerror;
  8539. else
  8540. #endif
  8541. {
  8542. {
  8543. Text3D* tolua_ret = (Text3D*) NewText3D();
  8544. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Text3D");
  8545. }
  8546. }
  8547. return 1;
  8548. #ifndef TOLUA_RELEASE
  8549. tolua_lerror:
  8550. tolua_error(tolua_S,"#ferror in function 'Text3D'.",&tolua_err);
  8551. return 0;
  8552. #endif
  8553. }
  8554. #endif //#ifndef TOLUA_DISABLE
  8555. /* method: SetCursor of class UI */
  8556. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetCursor00
  8557. static int tolua_UI_UI_SetCursor00(lua_State* tolua_S)
  8558. {
  8559. #ifndef TOLUA_RELEASE
  8560. tolua_Error tolua_err;
  8561. if (
  8562. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8563. !tolua_isusertype(tolua_S,2,"Cursor",0,&tolua_err) ||
  8564. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8565. )
  8566. goto tolua_lerror;
  8567. else
  8568. #endif
  8569. {
  8570. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8571. Cursor* cursor = ((Cursor*) tolua_tousertype(tolua_S,2,0));
  8572. #ifndef TOLUA_RELEASE
  8573. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetCursor'", NULL);
  8574. #endif
  8575. {
  8576. self->SetCursor(cursor);
  8577. }
  8578. }
  8579. return 0;
  8580. #ifndef TOLUA_RELEASE
  8581. tolua_lerror:
  8582. tolua_error(tolua_S,"#ferror in function 'SetCursor'.",&tolua_err);
  8583. return 0;
  8584. #endif
  8585. }
  8586. #endif //#ifndef TOLUA_DISABLE
  8587. /* method: SetFocusElement of class UI */
  8588. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetFocusElement00
  8589. static int tolua_UI_UI_SetFocusElement00(lua_State* tolua_S)
  8590. {
  8591. #ifndef TOLUA_RELEASE
  8592. tolua_Error tolua_err;
  8593. if (
  8594. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8595. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8596. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8597. )
  8598. goto tolua_lerror;
  8599. else
  8600. #endif
  8601. {
  8602. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8603. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8604. #ifndef TOLUA_RELEASE
  8605. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocusElement'", NULL);
  8606. #endif
  8607. {
  8608. self->SetFocusElement(element);
  8609. }
  8610. }
  8611. return 0;
  8612. #ifndef TOLUA_RELEASE
  8613. tolua_lerror:
  8614. tolua_error(tolua_S,"#ferror in function 'SetFocusElement'.",&tolua_err);
  8615. return 0;
  8616. #endif
  8617. }
  8618. #endif //#ifndef TOLUA_DISABLE
  8619. /* method: SetModalElement of class UI */
  8620. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetModalElement00
  8621. static int tolua_UI_UI_SetModalElement00(lua_State* tolua_S)
  8622. {
  8623. #ifndef TOLUA_RELEASE
  8624. tolua_Error tolua_err;
  8625. if (
  8626. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8627. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8628. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  8629. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8630. )
  8631. goto tolua_lerror;
  8632. else
  8633. #endif
  8634. {
  8635. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8636. UIElement* modalElement = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8637. bool enable = ((bool) tolua_toboolean(tolua_S,3,0));
  8638. #ifndef TOLUA_RELEASE
  8639. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalElement'", NULL);
  8640. #endif
  8641. {
  8642. bool tolua_ret = (bool) self->SetModalElement(modalElement,enable);
  8643. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8644. }
  8645. }
  8646. return 1;
  8647. #ifndef TOLUA_RELEASE
  8648. tolua_lerror:
  8649. tolua_error(tolua_S,"#ferror in function 'SetModalElement'.",&tolua_err);
  8650. return 0;
  8651. #endif
  8652. }
  8653. #endif //#ifndef TOLUA_DISABLE
  8654. /* method: Clear of class UI */
  8655. #ifndef TOLUA_DISABLE_tolua_UI_UI_Clear00
  8656. static int tolua_UI_UI_Clear00(lua_State* tolua_S)
  8657. {
  8658. #ifndef TOLUA_RELEASE
  8659. tolua_Error tolua_err;
  8660. if (
  8661. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8662. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8663. )
  8664. goto tolua_lerror;
  8665. else
  8666. #endif
  8667. {
  8668. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8669. #ifndef TOLUA_RELEASE
  8670. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Clear'", NULL);
  8671. #endif
  8672. {
  8673. self->Clear();
  8674. }
  8675. }
  8676. return 0;
  8677. #ifndef TOLUA_RELEASE
  8678. tolua_lerror:
  8679. tolua_error(tolua_S,"#ferror in function 'Clear'.",&tolua_err);
  8680. return 0;
  8681. #endif
  8682. }
  8683. #endif //#ifndef TOLUA_DISABLE
  8684. /* method: Update of class UI */
  8685. #ifndef TOLUA_DISABLE_tolua_UI_UI_Update00
  8686. static int tolua_UI_UI_Update00(lua_State* tolua_S)
  8687. {
  8688. #ifndef TOLUA_RELEASE
  8689. tolua_Error tolua_err;
  8690. if (
  8691. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8692. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  8693. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8694. )
  8695. goto tolua_lerror;
  8696. else
  8697. #endif
  8698. {
  8699. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8700. float timeStep = ((float) tolua_tonumber(tolua_S,2,0));
  8701. #ifndef TOLUA_RELEASE
  8702. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Update'", NULL);
  8703. #endif
  8704. {
  8705. self->Update(timeStep);
  8706. }
  8707. }
  8708. return 0;
  8709. #ifndef TOLUA_RELEASE
  8710. tolua_lerror:
  8711. tolua_error(tolua_S,"#ferror in function 'Update'.",&tolua_err);
  8712. return 0;
  8713. #endif
  8714. }
  8715. #endif //#ifndef TOLUA_DISABLE
  8716. /* method: RenderUpdate of class UI */
  8717. #ifndef TOLUA_DISABLE_tolua_UI_UI_RenderUpdate00
  8718. static int tolua_UI_UI_RenderUpdate00(lua_State* tolua_S)
  8719. {
  8720. #ifndef TOLUA_RELEASE
  8721. tolua_Error tolua_err;
  8722. if (
  8723. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8724. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8725. )
  8726. goto tolua_lerror;
  8727. else
  8728. #endif
  8729. {
  8730. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8731. #ifndef TOLUA_RELEASE
  8732. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RenderUpdate'", NULL);
  8733. #endif
  8734. {
  8735. self->RenderUpdate();
  8736. }
  8737. }
  8738. return 0;
  8739. #ifndef TOLUA_RELEASE
  8740. tolua_lerror:
  8741. tolua_error(tolua_S,"#ferror in function 'RenderUpdate'.",&tolua_err);
  8742. return 0;
  8743. #endif
  8744. }
  8745. #endif //#ifndef TOLUA_DISABLE
  8746. /* method: Render of class UI */
  8747. #ifndef TOLUA_DISABLE_tolua_UI_UI_Render00
  8748. static int tolua_UI_UI_Render00(lua_State* tolua_S)
  8749. {
  8750. #ifndef TOLUA_RELEASE
  8751. tolua_Error tolua_err;
  8752. if (
  8753. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8754. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8755. )
  8756. goto tolua_lerror;
  8757. else
  8758. #endif
  8759. {
  8760. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8761. #ifndef TOLUA_RELEASE
  8762. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Render'", NULL);
  8763. #endif
  8764. {
  8765. self->Render();
  8766. }
  8767. }
  8768. return 0;
  8769. #ifndef TOLUA_RELEASE
  8770. tolua_lerror:
  8771. tolua_error(tolua_S,"#ferror in function 'Render'.",&tolua_err);
  8772. return 0;
  8773. #endif
  8774. }
  8775. #endif //#ifndef TOLUA_DISABLE
  8776. /* method: DebugDraw of class UI */
  8777. #ifndef TOLUA_DISABLE_tolua_UI_UI_DebugDraw00
  8778. static int tolua_UI_UI_DebugDraw00(lua_State* tolua_S)
  8779. {
  8780. #ifndef TOLUA_RELEASE
  8781. tolua_Error tolua_err;
  8782. if (
  8783. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8784. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  8785. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8786. )
  8787. goto tolua_lerror;
  8788. else
  8789. #endif
  8790. {
  8791. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8792. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  8793. #ifndef TOLUA_RELEASE
  8794. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DebugDraw'", NULL);
  8795. #endif
  8796. {
  8797. self->DebugDraw(element);
  8798. }
  8799. }
  8800. return 0;
  8801. #ifndef TOLUA_RELEASE
  8802. tolua_lerror:
  8803. tolua_error(tolua_S,"#ferror in function 'DebugDraw'.",&tolua_err);
  8804. return 0;
  8805. #endif
  8806. }
  8807. #endif //#ifndef TOLUA_DISABLE
  8808. /* method: SaveLayout of class UI */
  8809. #ifndef TOLUA_DISABLE_tolua_UI_UI_SaveLayout00
  8810. static int tolua_UI_UI_SaveLayout00(lua_State* tolua_S)
  8811. {
  8812. #ifndef TOLUA_RELEASE
  8813. tolua_Error tolua_err;
  8814. if (
  8815. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8816. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"Serializer",0,&tolua_err)) ||
  8817. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  8818. !tolua_isnoobj(tolua_S,4,&tolua_err)
  8819. )
  8820. goto tolua_lerror;
  8821. else
  8822. #endif
  8823. {
  8824. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8825. Serializer* dest = ((Serializer*) tolua_tousertype(tolua_S,2,0));
  8826. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  8827. #ifndef TOLUA_RELEASE
  8828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SaveLayout'", NULL);
  8829. #endif
  8830. {
  8831. bool tolua_ret = (bool) self->SaveLayout(*dest,element);
  8832. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  8833. }
  8834. }
  8835. return 1;
  8836. #ifndef TOLUA_RELEASE
  8837. tolua_lerror:
  8838. tolua_error(tolua_S,"#ferror in function 'SaveLayout'.",&tolua_err);
  8839. return 0;
  8840. #endif
  8841. }
  8842. #endif //#ifndef TOLUA_DISABLE
  8843. /* method: SetClipBoardText of class UI */
  8844. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetClipBoardText00
  8845. static int tolua_UI_UI_SetClipBoardText00(lua_State* tolua_S)
  8846. {
  8847. #ifndef TOLUA_RELEASE
  8848. tolua_Error tolua_err;
  8849. if (
  8850. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8851. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  8852. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8853. )
  8854. goto tolua_lerror;
  8855. else
  8856. #endif
  8857. {
  8858. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8859. const String* text = ((const String*) tolua_tousertype(tolua_S,2,0));
  8860. #ifndef TOLUA_RELEASE
  8861. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipBoardText'", NULL);
  8862. #endif
  8863. {
  8864. self->SetClipBoardText(*text);
  8865. }
  8866. }
  8867. return 0;
  8868. #ifndef TOLUA_RELEASE
  8869. tolua_lerror:
  8870. tolua_error(tolua_S,"#ferror in function 'SetClipBoardText'.",&tolua_err);
  8871. return 0;
  8872. #endif
  8873. }
  8874. #endif //#ifndef TOLUA_DISABLE
  8875. /* method: SetNonFocusedMouseWheel of class UI */
  8876. #ifndef TOLUA_DISABLE_tolua_UI_UI_SetNonFocusedMouseWheel00
  8877. static int tolua_UI_UI_SetNonFocusedMouseWheel00(lua_State* tolua_S)
  8878. {
  8879. #ifndef TOLUA_RELEASE
  8880. tolua_Error tolua_err;
  8881. if (
  8882. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  8883. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  8884. !tolua_isnoobj(tolua_S,3,&tolua_err)
  8885. )
  8886. goto tolua_lerror;
  8887. else
  8888. #endif
  8889. {
  8890. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  8891. bool nonFocusedMouseWheel = ((bool) tolua_toboolean(tolua_S,2,0));
  8892. #ifndef TOLUA_RELEASE
  8893. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetNonFocusedMouseWheel'", NULL);
  8894. #endif
  8895. {
  8896. self->SetNonFocusedMouseWheel(nonFocusedMouseWheel);
  8897. }
  8898. }
  8899. return 0;
  8900. #ifndef TOLUA_RELEASE
  8901. tolua_lerror:
  8902. tolua_error(tolua_S,"#ferror in function 'SetNonFocusedMouseWheel'.",&tolua_err);
  8903. return 0;
  8904. #endif
  8905. }
  8906. #endif //#ifndef TOLUA_DISABLE
  8907. /* method: GetRoot of class UI */
  8908. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetRoot00
  8909. static int tolua_UI_UI_GetRoot00(lua_State* tolua_S)
  8910. {
  8911. #ifndef TOLUA_RELEASE
  8912. tolua_Error tolua_err;
  8913. if (
  8914. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8915. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8916. )
  8917. goto tolua_lerror;
  8918. else
  8919. #endif
  8920. {
  8921. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8922. #ifndef TOLUA_RELEASE
  8923. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
  8924. #endif
  8925. {
  8926. UIElement* tolua_ret = (UIElement*) self->GetRoot();
  8927. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8928. }
  8929. }
  8930. return 1;
  8931. #ifndef TOLUA_RELEASE
  8932. tolua_lerror:
  8933. tolua_error(tolua_S,"#ferror in function 'GetRoot'.",&tolua_err);
  8934. return 0;
  8935. #endif
  8936. }
  8937. #endif //#ifndef TOLUA_DISABLE
  8938. /* method: GetRootModalElement of class UI */
  8939. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetRootModalElement00
  8940. static int tolua_UI_UI_GetRootModalElement00(lua_State* tolua_S)
  8941. {
  8942. #ifndef TOLUA_RELEASE
  8943. tolua_Error tolua_err;
  8944. if (
  8945. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8946. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8947. )
  8948. goto tolua_lerror;
  8949. else
  8950. #endif
  8951. {
  8952. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8953. #ifndef TOLUA_RELEASE
  8954. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRootModalElement'", NULL);
  8955. #endif
  8956. {
  8957. UIElement* tolua_ret = (UIElement*) self->GetRootModalElement();
  8958. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  8959. }
  8960. }
  8961. return 1;
  8962. #ifndef TOLUA_RELEASE
  8963. tolua_lerror:
  8964. tolua_error(tolua_S,"#ferror in function 'GetRootModalElement'.",&tolua_err);
  8965. return 0;
  8966. #endif
  8967. }
  8968. #endif //#ifndef TOLUA_DISABLE
  8969. /* method: GetCursor of class UI */
  8970. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetCursor00
  8971. static int tolua_UI_UI_GetCursor00(lua_State* tolua_S)
  8972. {
  8973. #ifndef TOLUA_RELEASE
  8974. tolua_Error tolua_err;
  8975. if (
  8976. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  8977. !tolua_isnoobj(tolua_S,2,&tolua_err)
  8978. )
  8979. goto tolua_lerror;
  8980. else
  8981. #endif
  8982. {
  8983. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  8984. #ifndef TOLUA_RELEASE
  8985. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursor'", NULL);
  8986. #endif
  8987. {
  8988. Cursor* tolua_ret = (Cursor*) self->GetCursor();
  8989. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Cursor");
  8990. }
  8991. }
  8992. return 1;
  8993. #ifndef TOLUA_RELEASE
  8994. tolua_lerror:
  8995. tolua_error(tolua_S,"#ferror in function 'GetCursor'.",&tolua_err);
  8996. return 0;
  8997. #endif
  8998. }
  8999. #endif //#ifndef TOLUA_DISABLE
  9000. /* method: GetElementAt of class UI */
  9001. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetElementAt00
  9002. static int tolua_UI_UI_GetElementAt00(lua_State* tolua_S)
  9003. {
  9004. #ifndef TOLUA_RELEASE
  9005. tolua_Error tolua_err;
  9006. if (
  9007. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  9008. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9009. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  9010. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9011. )
  9012. goto tolua_lerror;
  9013. else
  9014. #endif
  9015. {
  9016. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  9017. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9018. bool enabledOnly = ((bool) tolua_toboolean(tolua_S,3,true));
  9019. #ifndef TOLUA_RELEASE
  9020. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementAt'", NULL);
  9021. #endif
  9022. {
  9023. UIElement* tolua_ret = (UIElement*) self->GetElementAt(*position,enabledOnly);
  9024. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  9025. }
  9026. }
  9027. return 1;
  9028. #ifndef TOLUA_RELEASE
  9029. tolua_lerror:
  9030. tolua_error(tolua_S,"#ferror in function 'GetElementAt'.",&tolua_err);
  9031. return 0;
  9032. #endif
  9033. }
  9034. #endif //#ifndef TOLUA_DISABLE
  9035. /* method: GetElementAt of class UI */
  9036. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetElementAt01
  9037. static int tolua_UI_UI_GetElementAt01(lua_State* tolua_S)
  9038. {
  9039. tolua_Error tolua_err;
  9040. if (
  9041. !tolua_isusertype(tolua_S,1,"UI",0,&tolua_err) ||
  9042. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9043. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9044. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  9045. !tolua_isnoobj(tolua_S,5,&tolua_err)
  9046. )
  9047. goto tolua_lerror;
  9048. else
  9049. {
  9050. UI* self = (UI*) tolua_tousertype(tolua_S,1,0);
  9051. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9052. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9053. bool enabledOnly = ((bool) tolua_toboolean(tolua_S,4,true));
  9054. #ifndef TOLUA_RELEASE
  9055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementAt'", NULL);
  9056. #endif
  9057. {
  9058. UIElement* tolua_ret = (UIElement*) self->GetElementAt(x,y,enabledOnly);
  9059. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  9060. }
  9061. }
  9062. return 1;
  9063. tolua_lerror:
  9064. return tolua_UI_UI_GetElementAt00(tolua_S);
  9065. }
  9066. #endif //#ifndef TOLUA_DISABLE
  9067. /* method: GetFocusElement of class UI */
  9068. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetFocusElement00
  9069. static int tolua_UI_UI_GetFocusElement00(lua_State* tolua_S)
  9070. {
  9071. #ifndef TOLUA_RELEASE
  9072. tolua_Error tolua_err;
  9073. if (
  9074. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9075. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9076. )
  9077. goto tolua_lerror;
  9078. else
  9079. #endif
  9080. {
  9081. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9082. #ifndef TOLUA_RELEASE
  9083. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFocusElement'", NULL);
  9084. #endif
  9085. {
  9086. UIElement* tolua_ret = (UIElement*) self->GetFocusElement();
  9087. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  9088. }
  9089. }
  9090. return 1;
  9091. #ifndef TOLUA_RELEASE
  9092. tolua_lerror:
  9093. tolua_error(tolua_S,"#ferror in function 'GetFocusElement'.",&tolua_err);
  9094. return 0;
  9095. #endif
  9096. }
  9097. #endif //#ifndef TOLUA_DISABLE
  9098. /* method: GetFrontElement of class UI */
  9099. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetFrontElement00
  9100. static int tolua_UI_UI_GetFrontElement00(lua_State* tolua_S)
  9101. {
  9102. #ifndef TOLUA_RELEASE
  9103. tolua_Error tolua_err;
  9104. if (
  9105. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9106. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9107. )
  9108. goto tolua_lerror;
  9109. else
  9110. #endif
  9111. {
  9112. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9113. #ifndef TOLUA_RELEASE
  9114. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFrontElement'", NULL);
  9115. #endif
  9116. {
  9117. UIElement* tolua_ret = (UIElement*) self->GetFrontElement();
  9118. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  9119. }
  9120. }
  9121. return 1;
  9122. #ifndef TOLUA_RELEASE
  9123. tolua_lerror:
  9124. tolua_error(tolua_S,"#ferror in function 'GetFrontElement'.",&tolua_err);
  9125. return 0;
  9126. #endif
  9127. }
  9128. #endif //#ifndef TOLUA_DISABLE
  9129. /* method: GetCursorPosition of class UI */
  9130. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetCursorPosition00
  9131. static int tolua_UI_UI_GetCursorPosition00(lua_State* tolua_S)
  9132. {
  9133. #ifndef TOLUA_RELEASE
  9134. tolua_Error tolua_err;
  9135. if (
  9136. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9137. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9138. )
  9139. goto tolua_lerror;
  9140. else
  9141. #endif
  9142. {
  9143. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9144. #ifndef TOLUA_RELEASE
  9145. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCursorPosition'", NULL);
  9146. #endif
  9147. {
  9148. IntVector2 tolua_ret = (IntVector2) self->GetCursorPosition();
  9149. {
  9150. #ifdef __cplusplus
  9151. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  9152. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  9153. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9154. #else
  9155. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  9156. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  9157. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  9158. #endif
  9159. }
  9160. }
  9161. }
  9162. return 1;
  9163. #ifndef TOLUA_RELEASE
  9164. tolua_lerror:
  9165. tolua_error(tolua_S,"#ferror in function 'GetCursorPosition'.",&tolua_err);
  9166. return 0;
  9167. #endif
  9168. }
  9169. #endif //#ifndef TOLUA_DISABLE
  9170. /* method: GetClipBoardText of class UI */
  9171. #ifndef TOLUA_DISABLE_tolua_UI_UI_GetClipBoardText00
  9172. static int tolua_UI_UI_GetClipBoardText00(lua_State* tolua_S)
  9173. {
  9174. #ifndef TOLUA_RELEASE
  9175. tolua_Error tolua_err;
  9176. if (
  9177. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9178. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9179. )
  9180. goto tolua_lerror;
  9181. else
  9182. #endif
  9183. {
  9184. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9185. #ifndef TOLUA_RELEASE
  9186. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipBoardText'", NULL);
  9187. #endif
  9188. {
  9189. const String& tolua_ret = (const String&) self->GetClipBoardText();
  9190. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  9191. }
  9192. }
  9193. return 1;
  9194. #ifndef TOLUA_RELEASE
  9195. tolua_lerror:
  9196. tolua_error(tolua_S,"#ferror in function 'GetClipBoardText'.",&tolua_err);
  9197. return 0;
  9198. #endif
  9199. }
  9200. #endif //#ifndef TOLUA_DISABLE
  9201. /* method: IsNonFocusedMouseWheel of class UI */
  9202. #ifndef TOLUA_DISABLE_tolua_UI_UI_IsNonFocusedMouseWheel00
  9203. static int tolua_UI_UI_IsNonFocusedMouseWheel00(lua_State* tolua_S)
  9204. {
  9205. #ifndef TOLUA_RELEASE
  9206. tolua_Error tolua_err;
  9207. if (
  9208. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9209. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9210. )
  9211. goto tolua_lerror;
  9212. else
  9213. #endif
  9214. {
  9215. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9216. #ifndef TOLUA_RELEASE
  9217. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsNonFocusedMouseWheel'", NULL);
  9218. #endif
  9219. {
  9220. bool tolua_ret = (bool) self->IsNonFocusedMouseWheel();
  9221. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9222. }
  9223. }
  9224. return 1;
  9225. #ifndef TOLUA_RELEASE
  9226. tolua_lerror:
  9227. tolua_error(tolua_S,"#ferror in function 'IsNonFocusedMouseWheel'.",&tolua_err);
  9228. return 0;
  9229. #endif
  9230. }
  9231. #endif //#ifndef TOLUA_DISABLE
  9232. /* method: HasModalElement of class UI */
  9233. #ifndef TOLUA_DISABLE_tolua_UI_UI_HasModalElement00
  9234. static int tolua_UI_UI_HasModalElement00(lua_State* tolua_S)
  9235. {
  9236. #ifndef TOLUA_RELEASE
  9237. tolua_Error tolua_err;
  9238. if (
  9239. !tolua_isusertype(tolua_S,1,"const UI",0,&tolua_err) ||
  9240. !tolua_isnoobj(tolua_S,2,&tolua_err)
  9241. )
  9242. goto tolua_lerror;
  9243. else
  9244. #endif
  9245. {
  9246. const UI* self = (const UI*) tolua_tousertype(tolua_S,1,0);
  9247. #ifndef TOLUA_RELEASE
  9248. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasModalElement'", NULL);
  9249. #endif
  9250. {
  9251. bool tolua_ret = (bool) self->HasModalElement();
  9252. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  9253. }
  9254. }
  9255. return 1;
  9256. #ifndef TOLUA_RELEASE
  9257. tolua_lerror:
  9258. tolua_error(tolua_S,"#ferror in function 'HasModalElement'.",&tolua_err);
  9259. return 0;
  9260. #endif
  9261. }
  9262. #endif //#ifndef TOLUA_DISABLE
  9263. /* function: GetUI */
  9264. #ifndef TOLUA_DISABLE_tolua_UI_GetUI00
  9265. static int tolua_UI_GetUI00(lua_State* tolua_S)
  9266. {
  9267. #ifndef TOLUA_RELEASE
  9268. tolua_Error tolua_err;
  9269. if (
  9270. !tolua_isnoobj(tolua_S,1,&tolua_err)
  9271. )
  9272. goto tolua_lerror;
  9273. else
  9274. #endif
  9275. {
  9276. {
  9277. UI* tolua_ret = (UI*) GetUI();
  9278. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UI");
  9279. }
  9280. }
  9281. return 1;
  9282. #ifndef TOLUA_RELEASE
  9283. tolua_lerror:
  9284. tolua_error(tolua_S,"#ferror in function 'GetUI'.",&tolua_err);
  9285. return 0;
  9286. #endif
  9287. }
  9288. #endif //#ifndef TOLUA_DISABLE
  9289. /* get function: DD_DISABLED */
  9290. #ifndef TOLUA_DISABLE_tolua_get_DD_DISABLED
  9291. static int tolua_get_DD_DISABLED(lua_State* tolua_S)
  9292. {
  9293. tolua_pushnumber(tolua_S,(lua_Number)DD_DISABLED);
  9294. return 1;
  9295. }
  9296. #endif //#ifndef TOLUA_DISABLE
  9297. /* get function: DD_SOURCE */
  9298. #ifndef TOLUA_DISABLE_tolua_get_DD_SOURCE
  9299. static int tolua_get_DD_SOURCE(lua_State* tolua_S)
  9300. {
  9301. tolua_pushnumber(tolua_S,(lua_Number)DD_SOURCE);
  9302. return 1;
  9303. }
  9304. #endif //#ifndef TOLUA_DISABLE
  9305. /* get function: DD_TARGET */
  9306. #ifndef TOLUA_DISABLE_tolua_get_DD_TARGET
  9307. static int tolua_get_DD_TARGET(lua_State* tolua_S)
  9308. {
  9309. tolua_pushnumber(tolua_S,(lua_Number)DD_TARGET);
  9310. return 1;
  9311. }
  9312. #endif //#ifndef TOLUA_DISABLE
  9313. /* get function: DD_SOURCE_AND_TARGET */
  9314. #ifndef TOLUA_DISABLE_tolua_get_DD_SOURCE_AND_TARGET
  9315. static int tolua_get_DD_SOURCE_AND_TARGET(lua_State* tolua_S)
  9316. {
  9317. tolua_pushnumber(tolua_S,(lua_Number)DD_SOURCE_AND_TARGET);
  9318. return 1;
  9319. }
  9320. #endif //#ifndef TOLUA_DISABLE
  9321. /* method: SetName of class UIElement */
  9322. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetName00
  9323. static int tolua_UI_UIElement_SetName00(lua_State* tolua_S)
  9324. {
  9325. #ifndef TOLUA_RELEASE
  9326. tolua_Error tolua_err;
  9327. if (
  9328. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9329. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  9330. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9331. )
  9332. goto tolua_lerror;
  9333. else
  9334. #endif
  9335. {
  9336. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9337. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  9338. #ifndef TOLUA_RELEASE
  9339. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetName'", NULL);
  9340. #endif
  9341. {
  9342. self->SetName(*name);
  9343. }
  9344. }
  9345. return 0;
  9346. #ifndef TOLUA_RELEASE
  9347. tolua_lerror:
  9348. tolua_error(tolua_S,"#ferror in function 'SetName'.",&tolua_err);
  9349. return 0;
  9350. #endif
  9351. }
  9352. #endif //#ifndef TOLUA_DISABLE
  9353. /* method: SetPosition of class UIElement */
  9354. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPosition00
  9355. static int tolua_UI_UIElement_SetPosition00(lua_State* tolua_S)
  9356. {
  9357. #ifndef TOLUA_RELEASE
  9358. tolua_Error tolua_err;
  9359. if (
  9360. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9361. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9362. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9363. )
  9364. goto tolua_lerror;
  9365. else
  9366. #endif
  9367. {
  9368. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9369. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9370. #ifndef TOLUA_RELEASE
  9371. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  9372. #endif
  9373. {
  9374. self->SetPosition(*position);
  9375. }
  9376. }
  9377. return 0;
  9378. #ifndef TOLUA_RELEASE
  9379. tolua_lerror:
  9380. tolua_error(tolua_S,"#ferror in function 'SetPosition'.",&tolua_err);
  9381. return 0;
  9382. #endif
  9383. }
  9384. #endif //#ifndef TOLUA_DISABLE
  9385. /* method: SetPosition of class UIElement */
  9386. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPosition01
  9387. static int tolua_UI_UIElement_SetPosition01(lua_State* tolua_S)
  9388. {
  9389. tolua_Error tolua_err;
  9390. if (
  9391. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9392. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9393. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9394. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9395. )
  9396. goto tolua_lerror;
  9397. else
  9398. {
  9399. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9400. int x = ((int) tolua_tonumber(tolua_S,2,0));
  9401. int y = ((int) tolua_tonumber(tolua_S,3,0));
  9402. #ifndef TOLUA_RELEASE
  9403. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPosition'", NULL);
  9404. #endif
  9405. {
  9406. self->SetPosition(x,y);
  9407. }
  9408. }
  9409. return 0;
  9410. tolua_lerror:
  9411. return tolua_UI_UIElement_SetPosition00(tolua_S);
  9412. }
  9413. #endif //#ifndef TOLUA_DISABLE
  9414. /* method: SetSize of class UIElement */
  9415. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSize00
  9416. static int tolua_UI_UIElement_SetSize00(lua_State* tolua_S)
  9417. {
  9418. #ifndef TOLUA_RELEASE
  9419. tolua_Error tolua_err;
  9420. if (
  9421. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9422. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9423. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9424. )
  9425. goto tolua_lerror;
  9426. else
  9427. #endif
  9428. {
  9429. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9430. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9431. #ifndef TOLUA_RELEASE
  9432. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSize'", NULL);
  9433. #endif
  9434. {
  9435. self->SetSize(*size);
  9436. }
  9437. }
  9438. return 0;
  9439. #ifndef TOLUA_RELEASE
  9440. tolua_lerror:
  9441. tolua_error(tolua_S,"#ferror in function 'SetSize'.",&tolua_err);
  9442. return 0;
  9443. #endif
  9444. }
  9445. #endif //#ifndef TOLUA_DISABLE
  9446. /* method: SetSize of class UIElement */
  9447. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSize01
  9448. static int tolua_UI_UIElement_SetSize01(lua_State* tolua_S)
  9449. {
  9450. tolua_Error tolua_err;
  9451. if (
  9452. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9453. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9454. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9455. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9456. )
  9457. goto tolua_lerror;
  9458. else
  9459. {
  9460. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9461. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9462. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9463. #ifndef TOLUA_RELEASE
  9464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSize'", NULL);
  9465. #endif
  9466. {
  9467. self->SetSize(width,height);
  9468. }
  9469. }
  9470. return 0;
  9471. tolua_lerror:
  9472. return tolua_UI_UIElement_SetSize00(tolua_S);
  9473. }
  9474. #endif //#ifndef TOLUA_DISABLE
  9475. /* method: SetWidth of class UIElement */
  9476. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetWidth00
  9477. static int tolua_UI_UIElement_SetWidth00(lua_State* tolua_S)
  9478. {
  9479. #ifndef TOLUA_RELEASE
  9480. tolua_Error tolua_err;
  9481. if (
  9482. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9483. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9484. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9485. )
  9486. goto tolua_lerror;
  9487. else
  9488. #endif
  9489. {
  9490. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9491. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9492. #ifndef TOLUA_RELEASE
  9493. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWidth'", NULL);
  9494. #endif
  9495. {
  9496. self->SetWidth(width);
  9497. }
  9498. }
  9499. return 0;
  9500. #ifndef TOLUA_RELEASE
  9501. tolua_lerror:
  9502. tolua_error(tolua_S,"#ferror in function 'SetWidth'.",&tolua_err);
  9503. return 0;
  9504. #endif
  9505. }
  9506. #endif //#ifndef TOLUA_DISABLE
  9507. /* method: SetHeight of class UIElement */
  9508. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHeight00
  9509. static int tolua_UI_UIElement_SetHeight00(lua_State* tolua_S)
  9510. {
  9511. #ifndef TOLUA_RELEASE
  9512. tolua_Error tolua_err;
  9513. if (
  9514. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9515. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9516. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9517. )
  9518. goto tolua_lerror;
  9519. else
  9520. #endif
  9521. {
  9522. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9523. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9524. #ifndef TOLUA_RELEASE
  9525. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHeight'", NULL);
  9526. #endif
  9527. {
  9528. self->SetHeight(height);
  9529. }
  9530. }
  9531. return 0;
  9532. #ifndef TOLUA_RELEASE
  9533. tolua_lerror:
  9534. tolua_error(tolua_S,"#ferror in function 'SetHeight'.",&tolua_err);
  9535. return 0;
  9536. #endif
  9537. }
  9538. #endif //#ifndef TOLUA_DISABLE
  9539. /* method: SetMinSize of class UIElement */
  9540. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinSize00
  9541. static int tolua_UI_UIElement_SetMinSize00(lua_State* tolua_S)
  9542. {
  9543. #ifndef TOLUA_RELEASE
  9544. tolua_Error tolua_err;
  9545. if (
  9546. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9547. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9548. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9549. )
  9550. goto tolua_lerror;
  9551. else
  9552. #endif
  9553. {
  9554. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9555. const IntVector2* minSize = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9556. #ifndef TOLUA_RELEASE
  9557. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinSize'", NULL);
  9558. #endif
  9559. {
  9560. self->SetMinSize(*minSize);
  9561. }
  9562. }
  9563. return 0;
  9564. #ifndef TOLUA_RELEASE
  9565. tolua_lerror:
  9566. tolua_error(tolua_S,"#ferror in function 'SetMinSize'.",&tolua_err);
  9567. return 0;
  9568. #endif
  9569. }
  9570. #endif //#ifndef TOLUA_DISABLE
  9571. /* method: SetMinSize of class UIElement */
  9572. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinSize01
  9573. static int tolua_UI_UIElement_SetMinSize01(lua_State* tolua_S)
  9574. {
  9575. tolua_Error tolua_err;
  9576. if (
  9577. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9578. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9579. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9580. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9581. )
  9582. goto tolua_lerror;
  9583. else
  9584. {
  9585. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9586. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9587. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9588. #ifndef TOLUA_RELEASE
  9589. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinSize'", NULL);
  9590. #endif
  9591. {
  9592. self->SetMinSize(width,height);
  9593. }
  9594. }
  9595. return 0;
  9596. tolua_lerror:
  9597. return tolua_UI_UIElement_SetMinSize00(tolua_S);
  9598. }
  9599. #endif //#ifndef TOLUA_DISABLE
  9600. /* method: SetMinWidth of class UIElement */
  9601. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinWidth00
  9602. static int tolua_UI_UIElement_SetMinWidth00(lua_State* tolua_S)
  9603. {
  9604. #ifndef TOLUA_RELEASE
  9605. tolua_Error tolua_err;
  9606. if (
  9607. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9608. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9609. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9610. )
  9611. goto tolua_lerror;
  9612. else
  9613. #endif
  9614. {
  9615. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9616. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9617. #ifndef TOLUA_RELEASE
  9618. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinWidth'", NULL);
  9619. #endif
  9620. {
  9621. self->SetMinWidth(width);
  9622. }
  9623. }
  9624. return 0;
  9625. #ifndef TOLUA_RELEASE
  9626. tolua_lerror:
  9627. tolua_error(tolua_S,"#ferror in function 'SetMinWidth'.",&tolua_err);
  9628. return 0;
  9629. #endif
  9630. }
  9631. #endif //#ifndef TOLUA_DISABLE
  9632. /* method: SetMinHeight of class UIElement */
  9633. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMinHeight00
  9634. static int tolua_UI_UIElement_SetMinHeight00(lua_State* tolua_S)
  9635. {
  9636. #ifndef TOLUA_RELEASE
  9637. tolua_Error tolua_err;
  9638. if (
  9639. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9640. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9641. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9642. )
  9643. goto tolua_lerror;
  9644. else
  9645. #endif
  9646. {
  9647. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9648. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9649. #ifndef TOLUA_RELEASE
  9650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMinHeight'", NULL);
  9651. #endif
  9652. {
  9653. self->SetMinHeight(height);
  9654. }
  9655. }
  9656. return 0;
  9657. #ifndef TOLUA_RELEASE
  9658. tolua_lerror:
  9659. tolua_error(tolua_S,"#ferror in function 'SetMinHeight'.",&tolua_err);
  9660. return 0;
  9661. #endif
  9662. }
  9663. #endif //#ifndef TOLUA_DISABLE
  9664. /* method: SetMaxSize of class UIElement */
  9665. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxSize00
  9666. static int tolua_UI_UIElement_SetMaxSize00(lua_State* tolua_S)
  9667. {
  9668. #ifndef TOLUA_RELEASE
  9669. tolua_Error tolua_err;
  9670. if (
  9671. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9672. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9673. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9674. )
  9675. goto tolua_lerror;
  9676. else
  9677. #endif
  9678. {
  9679. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9680. const IntVector2* maxSize = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9681. #ifndef TOLUA_RELEASE
  9682. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSize'", NULL);
  9683. #endif
  9684. {
  9685. self->SetMaxSize(*maxSize);
  9686. }
  9687. }
  9688. return 0;
  9689. #ifndef TOLUA_RELEASE
  9690. tolua_lerror:
  9691. tolua_error(tolua_S,"#ferror in function 'SetMaxSize'.",&tolua_err);
  9692. return 0;
  9693. #endif
  9694. }
  9695. #endif //#ifndef TOLUA_DISABLE
  9696. /* method: SetMaxSize of class UIElement */
  9697. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxSize01
  9698. static int tolua_UI_UIElement_SetMaxSize01(lua_State* tolua_S)
  9699. {
  9700. tolua_Error tolua_err;
  9701. if (
  9702. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9703. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9704. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9705. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9706. )
  9707. goto tolua_lerror;
  9708. else
  9709. {
  9710. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9711. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9712. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9713. #ifndef TOLUA_RELEASE
  9714. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxSize'", NULL);
  9715. #endif
  9716. {
  9717. self->SetMaxSize(width,height);
  9718. }
  9719. }
  9720. return 0;
  9721. tolua_lerror:
  9722. return tolua_UI_UIElement_SetMaxSize00(tolua_S);
  9723. }
  9724. #endif //#ifndef TOLUA_DISABLE
  9725. /* method: SetMaxWidth of class UIElement */
  9726. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxWidth00
  9727. static int tolua_UI_UIElement_SetMaxWidth00(lua_State* tolua_S)
  9728. {
  9729. #ifndef TOLUA_RELEASE
  9730. tolua_Error tolua_err;
  9731. if (
  9732. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9733. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9734. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9735. )
  9736. goto tolua_lerror;
  9737. else
  9738. #endif
  9739. {
  9740. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9741. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9742. #ifndef TOLUA_RELEASE
  9743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxWidth'", NULL);
  9744. #endif
  9745. {
  9746. self->SetMaxWidth(width);
  9747. }
  9748. }
  9749. return 0;
  9750. #ifndef TOLUA_RELEASE
  9751. tolua_lerror:
  9752. tolua_error(tolua_S,"#ferror in function 'SetMaxWidth'.",&tolua_err);
  9753. return 0;
  9754. #endif
  9755. }
  9756. #endif //#ifndef TOLUA_DISABLE
  9757. /* method: SetMaxHeight of class UIElement */
  9758. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetMaxHeight00
  9759. static int tolua_UI_UIElement_SetMaxHeight00(lua_State* tolua_S)
  9760. {
  9761. #ifndef TOLUA_RELEASE
  9762. tolua_Error tolua_err;
  9763. if (
  9764. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9765. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9766. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9767. )
  9768. goto tolua_lerror;
  9769. else
  9770. #endif
  9771. {
  9772. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9773. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9774. #ifndef TOLUA_RELEASE
  9775. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMaxHeight'", NULL);
  9776. #endif
  9777. {
  9778. self->SetMaxHeight(height);
  9779. }
  9780. }
  9781. return 0;
  9782. #ifndef TOLUA_RELEASE
  9783. tolua_lerror:
  9784. tolua_error(tolua_S,"#ferror in function 'SetMaxHeight'.",&tolua_err);
  9785. return 0;
  9786. #endif
  9787. }
  9788. #endif //#ifndef TOLUA_DISABLE
  9789. /* method: SetFixedSize of class UIElement */
  9790. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedSize00
  9791. static int tolua_UI_UIElement_SetFixedSize00(lua_State* tolua_S)
  9792. {
  9793. #ifndef TOLUA_RELEASE
  9794. tolua_Error tolua_err;
  9795. if (
  9796. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9797. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  9798. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9799. )
  9800. goto tolua_lerror;
  9801. else
  9802. #endif
  9803. {
  9804. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9805. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  9806. #ifndef TOLUA_RELEASE
  9807. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedSize'", NULL);
  9808. #endif
  9809. {
  9810. self->SetFixedSize(*size);
  9811. }
  9812. }
  9813. return 0;
  9814. #ifndef TOLUA_RELEASE
  9815. tolua_lerror:
  9816. tolua_error(tolua_S,"#ferror in function 'SetFixedSize'.",&tolua_err);
  9817. return 0;
  9818. #endif
  9819. }
  9820. #endif //#ifndef TOLUA_DISABLE
  9821. /* method: SetFixedSize of class UIElement */
  9822. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedSize01
  9823. static int tolua_UI_UIElement_SetFixedSize01(lua_State* tolua_S)
  9824. {
  9825. tolua_Error tolua_err;
  9826. if (
  9827. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9828. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9829. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9830. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9831. )
  9832. goto tolua_lerror;
  9833. else
  9834. {
  9835. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9836. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9837. int height = ((int) tolua_tonumber(tolua_S,3,0));
  9838. #ifndef TOLUA_RELEASE
  9839. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedSize'", NULL);
  9840. #endif
  9841. {
  9842. self->SetFixedSize(width,height);
  9843. }
  9844. }
  9845. return 0;
  9846. tolua_lerror:
  9847. return tolua_UI_UIElement_SetFixedSize00(tolua_S);
  9848. }
  9849. #endif //#ifndef TOLUA_DISABLE
  9850. /* method: SetFixedWidth of class UIElement */
  9851. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedWidth00
  9852. static int tolua_UI_UIElement_SetFixedWidth00(lua_State* tolua_S)
  9853. {
  9854. #ifndef TOLUA_RELEASE
  9855. tolua_Error tolua_err;
  9856. if (
  9857. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9858. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9859. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9860. )
  9861. goto tolua_lerror;
  9862. else
  9863. #endif
  9864. {
  9865. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9866. int width = ((int) tolua_tonumber(tolua_S,2,0));
  9867. #ifndef TOLUA_RELEASE
  9868. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedWidth'", NULL);
  9869. #endif
  9870. {
  9871. self->SetFixedWidth(width);
  9872. }
  9873. }
  9874. return 0;
  9875. #ifndef TOLUA_RELEASE
  9876. tolua_lerror:
  9877. tolua_error(tolua_S,"#ferror in function 'SetFixedWidth'.",&tolua_err);
  9878. return 0;
  9879. #endif
  9880. }
  9881. #endif //#ifndef TOLUA_DISABLE
  9882. /* method: SetFixedHeight of class UIElement */
  9883. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFixedHeight00
  9884. static int tolua_UI_UIElement_SetFixedHeight00(lua_State* tolua_S)
  9885. {
  9886. #ifndef TOLUA_RELEASE
  9887. tolua_Error tolua_err;
  9888. if (
  9889. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9890. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9891. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9892. )
  9893. goto tolua_lerror;
  9894. else
  9895. #endif
  9896. {
  9897. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9898. int height = ((int) tolua_tonumber(tolua_S,2,0));
  9899. #ifndef TOLUA_RELEASE
  9900. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFixedHeight'", NULL);
  9901. #endif
  9902. {
  9903. self->SetFixedHeight(height);
  9904. }
  9905. }
  9906. return 0;
  9907. #ifndef TOLUA_RELEASE
  9908. tolua_lerror:
  9909. tolua_error(tolua_S,"#ferror in function 'SetFixedHeight'.",&tolua_err);
  9910. return 0;
  9911. #endif
  9912. }
  9913. #endif //#ifndef TOLUA_DISABLE
  9914. /* method: SetAlignment of class UIElement */
  9915. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetAlignment00
  9916. static int tolua_UI_UIElement_SetAlignment00(lua_State* tolua_S)
  9917. {
  9918. #ifndef TOLUA_RELEASE
  9919. tolua_Error tolua_err;
  9920. if (
  9921. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9922. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9923. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  9924. !tolua_isnoobj(tolua_S,4,&tolua_err)
  9925. )
  9926. goto tolua_lerror;
  9927. else
  9928. #endif
  9929. {
  9930. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9931. HorizontalAlignment hAlign = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9932. VerticalAlignment vAlign = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,3,0));
  9933. #ifndef TOLUA_RELEASE
  9934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetAlignment'", NULL);
  9935. #endif
  9936. {
  9937. self->SetAlignment(hAlign,vAlign);
  9938. }
  9939. }
  9940. return 0;
  9941. #ifndef TOLUA_RELEASE
  9942. tolua_lerror:
  9943. tolua_error(tolua_S,"#ferror in function 'SetAlignment'.",&tolua_err);
  9944. return 0;
  9945. #endif
  9946. }
  9947. #endif //#ifndef TOLUA_DISABLE
  9948. /* method: SetHorizontalAlignment of class UIElement */
  9949. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHorizontalAlignment00
  9950. static int tolua_UI_UIElement_SetHorizontalAlignment00(lua_State* tolua_S)
  9951. {
  9952. #ifndef TOLUA_RELEASE
  9953. tolua_Error tolua_err;
  9954. if (
  9955. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9956. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9957. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9958. )
  9959. goto tolua_lerror;
  9960. else
  9961. #endif
  9962. {
  9963. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9964. HorizontalAlignment align = ((HorizontalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9965. #ifndef TOLUA_RELEASE
  9966. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHorizontalAlignment'", NULL);
  9967. #endif
  9968. {
  9969. self->SetHorizontalAlignment(align);
  9970. }
  9971. }
  9972. return 0;
  9973. #ifndef TOLUA_RELEASE
  9974. tolua_lerror:
  9975. tolua_error(tolua_S,"#ferror in function 'SetHorizontalAlignment'.",&tolua_err);
  9976. return 0;
  9977. #endif
  9978. }
  9979. #endif //#ifndef TOLUA_DISABLE
  9980. /* method: SetVerticalAlignment of class UIElement */
  9981. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVerticalAlignment00
  9982. static int tolua_UI_UIElement_SetVerticalAlignment00(lua_State* tolua_S)
  9983. {
  9984. #ifndef TOLUA_RELEASE
  9985. tolua_Error tolua_err;
  9986. if (
  9987. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  9988. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  9989. !tolua_isnoobj(tolua_S,3,&tolua_err)
  9990. )
  9991. goto tolua_lerror;
  9992. else
  9993. #endif
  9994. {
  9995. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  9996. VerticalAlignment align = ((VerticalAlignment) (int) tolua_tonumber(tolua_S,2,0));
  9997. #ifndef TOLUA_RELEASE
  9998. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVerticalAlignment'", NULL);
  9999. #endif
  10000. {
  10001. self->SetVerticalAlignment(align);
  10002. }
  10003. }
  10004. return 0;
  10005. #ifndef TOLUA_RELEASE
  10006. tolua_lerror:
  10007. tolua_error(tolua_S,"#ferror in function 'SetVerticalAlignment'.",&tolua_err);
  10008. return 0;
  10009. #endif
  10010. }
  10011. #endif //#ifndef TOLUA_DISABLE
  10012. /* method: SetClipBorder of class UIElement */
  10013. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetClipBorder00
  10014. static int tolua_UI_UIElement_SetClipBorder00(lua_State* tolua_S)
  10015. {
  10016. #ifndef TOLUA_RELEASE
  10017. tolua_Error tolua_err;
  10018. if (
  10019. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10020. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  10021. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10022. )
  10023. goto tolua_lerror;
  10024. else
  10025. #endif
  10026. {
  10027. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10028. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  10029. #ifndef TOLUA_RELEASE
  10030. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipBorder'", NULL);
  10031. #endif
  10032. {
  10033. self->SetClipBorder(*rect);
  10034. }
  10035. }
  10036. return 0;
  10037. #ifndef TOLUA_RELEASE
  10038. tolua_lerror:
  10039. tolua_error(tolua_S,"#ferror in function 'SetClipBorder'.",&tolua_err);
  10040. return 0;
  10041. #endif
  10042. }
  10043. #endif //#ifndef TOLUA_DISABLE
  10044. /* method: SetColor of class UIElement */
  10045. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetColor00
  10046. static int tolua_UI_UIElement_SetColor00(lua_State* tolua_S)
  10047. {
  10048. #ifndef TOLUA_RELEASE
  10049. tolua_Error tolua_err;
  10050. if (
  10051. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10052. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  10053. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10054. )
  10055. goto tolua_lerror;
  10056. else
  10057. #endif
  10058. {
  10059. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10060. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  10061. #ifndef TOLUA_RELEASE
  10062. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  10063. #endif
  10064. {
  10065. self->SetColor(*color);
  10066. }
  10067. }
  10068. return 0;
  10069. #ifndef TOLUA_RELEASE
  10070. tolua_lerror:
  10071. tolua_error(tolua_S,"#ferror in function 'SetColor'.",&tolua_err);
  10072. return 0;
  10073. #endif
  10074. }
  10075. #endif //#ifndef TOLUA_DISABLE
  10076. /* method: SetColor of class UIElement */
  10077. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetColor01
  10078. static int tolua_UI_UIElement_SetColor01(lua_State* tolua_S)
  10079. {
  10080. tolua_Error tolua_err;
  10081. if (
  10082. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10083. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10084. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Color",0,&tolua_err)) ||
  10085. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10086. )
  10087. goto tolua_lerror;
  10088. else
  10089. {
  10090. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10091. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  10092. const Color* color = ((const Color*) tolua_tousertype(tolua_S,3,0));
  10093. #ifndef TOLUA_RELEASE
  10094. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetColor'", NULL);
  10095. #endif
  10096. {
  10097. self->SetColor(corner,*color);
  10098. }
  10099. }
  10100. return 0;
  10101. tolua_lerror:
  10102. return tolua_UI_UIElement_SetColor00(tolua_S);
  10103. }
  10104. #endif //#ifndef TOLUA_DISABLE
  10105. /* method: SetPriority of class UIElement */
  10106. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetPriority00
  10107. static int tolua_UI_UIElement_SetPriority00(lua_State* tolua_S)
  10108. {
  10109. #ifndef TOLUA_RELEASE
  10110. tolua_Error tolua_err;
  10111. if (
  10112. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10113. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10114. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10115. )
  10116. goto tolua_lerror;
  10117. else
  10118. #endif
  10119. {
  10120. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10121. int priority = ((int) tolua_tonumber(tolua_S,2,0));
  10122. #ifndef TOLUA_RELEASE
  10123. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetPriority'", NULL);
  10124. #endif
  10125. {
  10126. self->SetPriority(priority);
  10127. }
  10128. }
  10129. return 0;
  10130. #ifndef TOLUA_RELEASE
  10131. tolua_lerror:
  10132. tolua_error(tolua_S,"#ferror in function 'SetPriority'.",&tolua_err);
  10133. return 0;
  10134. #endif
  10135. }
  10136. #endif //#ifndef TOLUA_DISABLE
  10137. /* method: SetOpacity of class UIElement */
  10138. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetOpacity00
  10139. static int tolua_UI_UIElement_SetOpacity00(lua_State* tolua_S)
  10140. {
  10141. #ifndef TOLUA_RELEASE
  10142. tolua_Error tolua_err;
  10143. if (
  10144. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10145. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10146. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10147. )
  10148. goto tolua_lerror;
  10149. else
  10150. #endif
  10151. {
  10152. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10153. float opacity = ((float) tolua_tonumber(tolua_S,2,0));
  10154. #ifndef TOLUA_RELEASE
  10155. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetOpacity'", NULL);
  10156. #endif
  10157. {
  10158. self->SetOpacity(opacity);
  10159. }
  10160. }
  10161. return 0;
  10162. #ifndef TOLUA_RELEASE
  10163. tolua_lerror:
  10164. tolua_error(tolua_S,"#ferror in function 'SetOpacity'.",&tolua_err);
  10165. return 0;
  10166. #endif
  10167. }
  10168. #endif //#ifndef TOLUA_DISABLE
  10169. /* method: SetBringToFront of class UIElement */
  10170. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetBringToFront00
  10171. static int tolua_UI_UIElement_SetBringToFront00(lua_State* tolua_S)
  10172. {
  10173. #ifndef TOLUA_RELEASE
  10174. tolua_Error tolua_err;
  10175. if (
  10176. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10177. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10178. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10179. )
  10180. goto tolua_lerror;
  10181. else
  10182. #endif
  10183. {
  10184. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10185. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10186. #ifndef TOLUA_RELEASE
  10187. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBringToFront'", NULL);
  10188. #endif
  10189. {
  10190. self->SetBringToFront(enable);
  10191. }
  10192. }
  10193. return 0;
  10194. #ifndef TOLUA_RELEASE
  10195. tolua_lerror:
  10196. tolua_error(tolua_S,"#ferror in function 'SetBringToFront'.",&tolua_err);
  10197. return 0;
  10198. #endif
  10199. }
  10200. #endif //#ifndef TOLUA_DISABLE
  10201. /* method: SetBringToBack of class UIElement */
  10202. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetBringToBack00
  10203. static int tolua_UI_UIElement_SetBringToBack00(lua_State* tolua_S)
  10204. {
  10205. #ifndef TOLUA_RELEASE
  10206. tolua_Error tolua_err;
  10207. if (
  10208. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10209. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10210. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10211. )
  10212. goto tolua_lerror;
  10213. else
  10214. #endif
  10215. {
  10216. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10217. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10218. #ifndef TOLUA_RELEASE
  10219. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetBringToBack'", NULL);
  10220. #endif
  10221. {
  10222. self->SetBringToBack(enable);
  10223. }
  10224. }
  10225. return 0;
  10226. #ifndef TOLUA_RELEASE
  10227. tolua_lerror:
  10228. tolua_error(tolua_S,"#ferror in function 'SetBringToBack'.",&tolua_err);
  10229. return 0;
  10230. #endif
  10231. }
  10232. #endif //#ifndef TOLUA_DISABLE
  10233. /* method: SetClipChildren of class UIElement */
  10234. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetClipChildren00
  10235. static int tolua_UI_UIElement_SetClipChildren00(lua_State* tolua_S)
  10236. {
  10237. #ifndef TOLUA_RELEASE
  10238. tolua_Error tolua_err;
  10239. if (
  10240. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10241. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10242. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10243. )
  10244. goto tolua_lerror;
  10245. else
  10246. #endif
  10247. {
  10248. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10249. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10250. #ifndef TOLUA_RELEASE
  10251. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetClipChildren'", NULL);
  10252. #endif
  10253. {
  10254. self->SetClipChildren(enable);
  10255. }
  10256. }
  10257. return 0;
  10258. #ifndef TOLUA_RELEASE
  10259. tolua_lerror:
  10260. tolua_error(tolua_S,"#ferror in function 'SetClipChildren'.",&tolua_err);
  10261. return 0;
  10262. #endif
  10263. }
  10264. #endif //#ifndef TOLUA_DISABLE
  10265. /* method: SetSortChildren of class UIElement */
  10266. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSortChildren00
  10267. static int tolua_UI_UIElement_SetSortChildren00(lua_State* tolua_S)
  10268. {
  10269. #ifndef TOLUA_RELEASE
  10270. tolua_Error tolua_err;
  10271. if (
  10272. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10273. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10274. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10275. )
  10276. goto tolua_lerror;
  10277. else
  10278. #endif
  10279. {
  10280. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10281. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10282. #ifndef TOLUA_RELEASE
  10283. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSortChildren'", NULL);
  10284. #endif
  10285. {
  10286. self->SetSortChildren(enable);
  10287. }
  10288. }
  10289. return 0;
  10290. #ifndef TOLUA_RELEASE
  10291. tolua_lerror:
  10292. tolua_error(tolua_S,"#ferror in function 'SetSortChildren'.",&tolua_err);
  10293. return 0;
  10294. #endif
  10295. }
  10296. #endif //#ifndef TOLUA_DISABLE
  10297. /* method: SetUseDerivedOpacity of class UIElement */
  10298. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetUseDerivedOpacity00
  10299. static int tolua_UI_UIElement_SetUseDerivedOpacity00(lua_State* tolua_S)
  10300. {
  10301. #ifndef TOLUA_RELEASE
  10302. tolua_Error tolua_err;
  10303. if (
  10304. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10305. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10306. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10307. )
  10308. goto tolua_lerror;
  10309. else
  10310. #endif
  10311. {
  10312. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10313. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10314. #ifndef TOLUA_RELEASE
  10315. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetUseDerivedOpacity'", NULL);
  10316. #endif
  10317. {
  10318. self->SetUseDerivedOpacity(enable);
  10319. }
  10320. }
  10321. return 0;
  10322. #ifndef TOLUA_RELEASE
  10323. tolua_lerror:
  10324. tolua_error(tolua_S,"#ferror in function 'SetUseDerivedOpacity'.",&tolua_err);
  10325. return 0;
  10326. #endif
  10327. }
  10328. #endif //#ifndef TOLUA_DISABLE
  10329. /* method: SetEnabled of class UIElement */
  10330. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetEnabled00
  10331. static int tolua_UI_UIElement_SetEnabled00(lua_State* tolua_S)
  10332. {
  10333. #ifndef TOLUA_RELEASE
  10334. tolua_Error tolua_err;
  10335. if (
  10336. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10337. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10338. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10339. )
  10340. goto tolua_lerror;
  10341. else
  10342. #endif
  10343. {
  10344. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10345. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10346. #ifndef TOLUA_RELEASE
  10347. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetEnabled'", NULL);
  10348. #endif
  10349. {
  10350. self->SetEnabled(enable);
  10351. }
  10352. }
  10353. return 0;
  10354. #ifndef TOLUA_RELEASE
  10355. tolua_lerror:
  10356. tolua_error(tolua_S,"#ferror in function 'SetEnabled'.",&tolua_err);
  10357. return 0;
  10358. #endif
  10359. }
  10360. #endif //#ifndef TOLUA_DISABLE
  10361. /* method: SetFocus of class UIElement */
  10362. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFocus00
  10363. static int tolua_UI_UIElement_SetFocus00(lua_State* tolua_S)
  10364. {
  10365. #ifndef TOLUA_RELEASE
  10366. tolua_Error tolua_err;
  10367. if (
  10368. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10369. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10370. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10371. )
  10372. goto tolua_lerror;
  10373. else
  10374. #endif
  10375. {
  10376. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10377. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10378. #ifndef TOLUA_RELEASE
  10379. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocus'", NULL);
  10380. #endif
  10381. {
  10382. self->SetFocus(enable);
  10383. }
  10384. }
  10385. return 0;
  10386. #ifndef TOLUA_RELEASE
  10387. tolua_lerror:
  10388. tolua_error(tolua_S,"#ferror in function 'SetFocus'.",&tolua_err);
  10389. return 0;
  10390. #endif
  10391. }
  10392. #endif //#ifndef TOLUA_DISABLE
  10393. /* method: SetSelected of class UIElement */
  10394. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetSelected00
  10395. static int tolua_UI_UIElement_SetSelected00(lua_State* tolua_S)
  10396. {
  10397. #ifndef TOLUA_RELEASE
  10398. tolua_Error tolua_err;
  10399. if (
  10400. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10401. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10402. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10403. )
  10404. goto tolua_lerror;
  10405. else
  10406. #endif
  10407. {
  10408. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10409. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10410. #ifndef TOLUA_RELEASE
  10411. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetSelected'", NULL);
  10412. #endif
  10413. {
  10414. self->SetSelected(enable);
  10415. }
  10416. }
  10417. return 0;
  10418. #ifndef TOLUA_RELEASE
  10419. tolua_lerror:
  10420. tolua_error(tolua_S,"#ferror in function 'SetSelected'.",&tolua_err);
  10421. return 0;
  10422. #endif
  10423. }
  10424. #endif //#ifndef TOLUA_DISABLE
  10425. /* method: SetVisible of class UIElement */
  10426. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVisible00
  10427. static int tolua_UI_UIElement_SetVisible00(lua_State* tolua_S)
  10428. {
  10429. #ifndef TOLUA_RELEASE
  10430. tolua_Error tolua_err;
  10431. if (
  10432. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10433. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  10434. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10435. )
  10436. goto tolua_lerror;
  10437. else
  10438. #endif
  10439. {
  10440. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10441. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  10442. #ifndef TOLUA_RELEASE
  10443. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVisible'", NULL);
  10444. #endif
  10445. {
  10446. self->SetVisible(enable);
  10447. }
  10448. }
  10449. return 0;
  10450. #ifndef TOLUA_RELEASE
  10451. tolua_lerror:
  10452. tolua_error(tolua_S,"#ferror in function 'SetVisible'.",&tolua_err);
  10453. return 0;
  10454. #endif
  10455. }
  10456. #endif //#ifndef TOLUA_DISABLE
  10457. /* method: SetFocusMode of class UIElement */
  10458. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetFocusMode00
  10459. static int tolua_UI_UIElement_SetFocusMode00(lua_State* tolua_S)
  10460. {
  10461. #ifndef TOLUA_RELEASE
  10462. tolua_Error tolua_err;
  10463. if (
  10464. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10465. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10466. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10467. )
  10468. goto tolua_lerror;
  10469. else
  10470. #endif
  10471. {
  10472. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10473. FocusMode mode = ((FocusMode) (int) tolua_tonumber(tolua_S,2,0));
  10474. #ifndef TOLUA_RELEASE
  10475. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetFocusMode'", NULL);
  10476. #endif
  10477. {
  10478. self->SetFocusMode(mode);
  10479. }
  10480. }
  10481. return 0;
  10482. #ifndef TOLUA_RELEASE
  10483. tolua_lerror:
  10484. tolua_error(tolua_S,"#ferror in function 'SetFocusMode'.",&tolua_err);
  10485. return 0;
  10486. #endif
  10487. }
  10488. #endif //#ifndef TOLUA_DISABLE
  10489. /* method: SetDragDropMode of class UIElement */
  10490. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetDragDropMode00
  10491. static int tolua_UI_UIElement_SetDragDropMode00(lua_State* tolua_S)
  10492. {
  10493. #ifndef TOLUA_RELEASE
  10494. tolua_Error tolua_err;
  10495. if (
  10496. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10497. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10498. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10499. )
  10500. goto tolua_lerror;
  10501. else
  10502. #endif
  10503. {
  10504. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10505. unsigned mode = ((unsigned) tolua_tonumber(tolua_S,2,0));
  10506. #ifndef TOLUA_RELEASE
  10507. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDragDropMode'", NULL);
  10508. #endif
  10509. {
  10510. self->SetDragDropMode(mode);
  10511. }
  10512. }
  10513. return 0;
  10514. #ifndef TOLUA_RELEASE
  10515. tolua_lerror:
  10516. tolua_error(tolua_S,"#ferror in function 'SetDragDropMode'.",&tolua_err);
  10517. return 0;
  10518. #endif
  10519. }
  10520. #endif //#ifndef TOLUA_DISABLE
  10521. /* method: SetStyle of class UIElement */
  10522. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyle00
  10523. static int tolua_UI_UIElement_SetStyle00(lua_State* tolua_S)
  10524. {
  10525. #ifndef TOLUA_RELEASE
  10526. tolua_Error tolua_err;
  10527. if (
  10528. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10529. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  10530. !tolua_isusertype(tolua_S,3,"XMLFile",1,&tolua_err) ||
  10531. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10532. )
  10533. goto tolua_lerror;
  10534. else
  10535. #endif
  10536. {
  10537. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10538. const String* styleName = ((const String*) tolua_tousertype(tolua_S,2,0));
  10539. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,3,0));
  10540. #ifndef TOLUA_RELEASE
  10541. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyle'", NULL);
  10542. #endif
  10543. {
  10544. bool tolua_ret = (bool) self->SetStyle(*styleName,file);
  10545. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10546. }
  10547. }
  10548. return 1;
  10549. #ifndef TOLUA_RELEASE
  10550. tolua_lerror:
  10551. tolua_error(tolua_S,"#ferror in function 'SetStyle'.",&tolua_err);
  10552. return 0;
  10553. #endif
  10554. }
  10555. #endif //#ifndef TOLUA_DISABLE
  10556. /* method: SetStyle of class UIElement */
  10557. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyle01
  10558. static int tolua_UI_UIElement_SetStyle01(lua_State* tolua_S)
  10559. {
  10560. tolua_Error tolua_err;
  10561. if (
  10562. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10563. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const XMLElement",0,&tolua_err)) ||
  10564. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10565. )
  10566. goto tolua_lerror;
  10567. else
  10568. {
  10569. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10570. const XMLElement* element = ((const XMLElement*) tolua_tousertype(tolua_S,2,0));
  10571. #ifndef TOLUA_RELEASE
  10572. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyle'", NULL);
  10573. #endif
  10574. {
  10575. bool tolua_ret = (bool) self->SetStyle(*element);
  10576. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10577. }
  10578. }
  10579. return 1;
  10580. tolua_lerror:
  10581. return tolua_UI_UIElement_SetStyle00(tolua_S);
  10582. }
  10583. #endif //#ifndef TOLUA_DISABLE
  10584. /* method: SetStyleAuto of class UIElement */
  10585. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetStyleAuto00
  10586. static int tolua_UI_UIElement_SetStyleAuto00(lua_State* tolua_S)
  10587. {
  10588. #ifndef TOLUA_RELEASE
  10589. tolua_Error tolua_err;
  10590. if (
  10591. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10592. !tolua_isusertype(tolua_S,2,"XMLFile",1,&tolua_err) ||
  10593. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10594. )
  10595. goto tolua_lerror;
  10596. else
  10597. #endif
  10598. {
  10599. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10600. XMLFile* file = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10601. #ifndef TOLUA_RELEASE
  10602. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetStyleAuto'", NULL);
  10603. #endif
  10604. {
  10605. bool tolua_ret = (bool) self->SetStyleAuto(file);
  10606. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  10607. }
  10608. }
  10609. return 1;
  10610. #ifndef TOLUA_RELEASE
  10611. tolua_lerror:
  10612. tolua_error(tolua_S,"#ferror in function 'SetStyleAuto'.",&tolua_err);
  10613. return 0;
  10614. #endif
  10615. }
  10616. #endif //#ifndef TOLUA_DISABLE
  10617. /* method: SetDefaultStyle of class UIElement */
  10618. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetDefaultStyle00
  10619. static int tolua_UI_UIElement_SetDefaultStyle00(lua_State* tolua_S)
  10620. {
  10621. #ifndef TOLUA_RELEASE
  10622. tolua_Error tolua_err;
  10623. if (
  10624. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10625. !tolua_isusertype(tolua_S,2,"XMLFile",0,&tolua_err) ||
  10626. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10627. )
  10628. goto tolua_lerror;
  10629. else
  10630. #endif
  10631. {
  10632. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10633. XMLFile* style = ((XMLFile*) tolua_tousertype(tolua_S,2,0));
  10634. #ifndef TOLUA_RELEASE
  10635. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetDefaultStyle'", NULL);
  10636. #endif
  10637. {
  10638. self->SetDefaultStyle(style);
  10639. }
  10640. }
  10641. return 0;
  10642. #ifndef TOLUA_RELEASE
  10643. tolua_lerror:
  10644. tolua_error(tolua_S,"#ferror in function 'SetDefaultStyle'.",&tolua_err);
  10645. return 0;
  10646. #endif
  10647. }
  10648. #endif //#ifndef TOLUA_DISABLE
  10649. /* method: SetLayout of class UIElement */
  10650. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayout00
  10651. static int tolua_UI_UIElement_SetLayout00(lua_State* tolua_S)
  10652. {
  10653. #ifndef TOLUA_RELEASE
  10654. tolua_Error tolua_err;
  10655. if (
  10656. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10657. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10658. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  10659. !tolua_isnoobj(tolua_S,4,&tolua_err)
  10660. )
  10661. goto tolua_lerror;
  10662. else
  10663. #endif
  10664. {
  10665. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10666. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10667. int spacing = ((int) tolua_tonumber(tolua_S,3,0));
  10668. #ifndef TOLUA_RELEASE
  10669. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayout'", NULL);
  10670. #endif
  10671. {
  10672. self->SetLayout(mode,spacing);
  10673. }
  10674. }
  10675. return 0;
  10676. #ifndef TOLUA_RELEASE
  10677. tolua_lerror:
  10678. tolua_error(tolua_S,"#ferror in function 'SetLayout'.",&tolua_err);
  10679. return 0;
  10680. #endif
  10681. }
  10682. #endif //#ifndef TOLUA_DISABLE
  10683. /* method: SetLayout of class UIElement */
  10684. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayout01
  10685. static int tolua_UI_UIElement_SetLayout01(lua_State* tolua_S)
  10686. {
  10687. tolua_Error tolua_err;
  10688. if (
  10689. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10690. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10691. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  10692. (tolua_isvaluenil(tolua_S,4,&tolua_err) || !tolua_isusertype(tolua_S,4,"const IntRect",0,&tolua_err)) ||
  10693. !tolua_isnoobj(tolua_S,5,&tolua_err)
  10694. )
  10695. goto tolua_lerror;
  10696. else
  10697. {
  10698. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10699. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10700. int spacing = ((int) tolua_tonumber(tolua_S,3,0));
  10701. const IntRect* border = ((const IntRect*) tolua_tousertype(tolua_S,4,0));
  10702. #ifndef TOLUA_RELEASE
  10703. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayout'", NULL);
  10704. #endif
  10705. {
  10706. self->SetLayout(mode,spacing,*border);
  10707. }
  10708. }
  10709. return 0;
  10710. tolua_lerror:
  10711. return tolua_UI_UIElement_SetLayout00(tolua_S);
  10712. }
  10713. #endif //#ifndef TOLUA_DISABLE
  10714. /* method: SetLayoutMode of class UIElement */
  10715. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutMode00
  10716. static int tolua_UI_UIElement_SetLayoutMode00(lua_State* tolua_S)
  10717. {
  10718. #ifndef TOLUA_RELEASE
  10719. tolua_Error tolua_err;
  10720. if (
  10721. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10722. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10723. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10724. )
  10725. goto tolua_lerror;
  10726. else
  10727. #endif
  10728. {
  10729. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10730. LayoutMode mode = ((LayoutMode) (int) tolua_tonumber(tolua_S,2,0));
  10731. #ifndef TOLUA_RELEASE
  10732. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutMode'", NULL);
  10733. #endif
  10734. {
  10735. self->SetLayoutMode(mode);
  10736. }
  10737. }
  10738. return 0;
  10739. #ifndef TOLUA_RELEASE
  10740. tolua_lerror:
  10741. tolua_error(tolua_S,"#ferror in function 'SetLayoutMode'.",&tolua_err);
  10742. return 0;
  10743. #endif
  10744. }
  10745. #endif //#ifndef TOLUA_DISABLE
  10746. /* method: SetLayoutSpacing of class UIElement */
  10747. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutSpacing00
  10748. static int tolua_UI_UIElement_SetLayoutSpacing00(lua_State* tolua_S)
  10749. {
  10750. #ifndef TOLUA_RELEASE
  10751. tolua_Error tolua_err;
  10752. if (
  10753. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10754. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10755. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10756. )
  10757. goto tolua_lerror;
  10758. else
  10759. #endif
  10760. {
  10761. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10762. int spacing = ((int) tolua_tonumber(tolua_S,2,0));
  10763. #ifndef TOLUA_RELEASE
  10764. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutSpacing'", NULL);
  10765. #endif
  10766. {
  10767. self->SetLayoutSpacing(spacing);
  10768. }
  10769. }
  10770. return 0;
  10771. #ifndef TOLUA_RELEASE
  10772. tolua_lerror:
  10773. tolua_error(tolua_S,"#ferror in function 'SetLayoutSpacing'.",&tolua_err);
  10774. return 0;
  10775. #endif
  10776. }
  10777. #endif //#ifndef TOLUA_DISABLE
  10778. /* method: SetLayoutBorder of class UIElement */
  10779. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetLayoutBorder00
  10780. static int tolua_UI_UIElement_SetLayoutBorder00(lua_State* tolua_S)
  10781. {
  10782. #ifndef TOLUA_RELEASE
  10783. tolua_Error tolua_err;
  10784. if (
  10785. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10786. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  10787. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10788. )
  10789. goto tolua_lerror;
  10790. else
  10791. #endif
  10792. {
  10793. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10794. const IntRect* border = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  10795. #ifndef TOLUA_RELEASE
  10796. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetLayoutBorder'", NULL);
  10797. #endif
  10798. {
  10799. self->SetLayoutBorder(*border);
  10800. }
  10801. }
  10802. return 0;
  10803. #ifndef TOLUA_RELEASE
  10804. tolua_lerror:
  10805. tolua_error(tolua_S,"#ferror in function 'SetLayoutBorder'.",&tolua_err);
  10806. return 0;
  10807. #endif
  10808. }
  10809. #endif //#ifndef TOLUA_DISABLE
  10810. /* method: SetIndent of class UIElement */
  10811. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetIndent00
  10812. static int tolua_UI_UIElement_SetIndent00(lua_State* tolua_S)
  10813. {
  10814. #ifndef TOLUA_RELEASE
  10815. tolua_Error tolua_err;
  10816. if (
  10817. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10818. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10819. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10820. )
  10821. goto tolua_lerror;
  10822. else
  10823. #endif
  10824. {
  10825. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10826. int indent = ((int) tolua_tonumber(tolua_S,2,0));
  10827. #ifndef TOLUA_RELEASE
  10828. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIndent'", NULL);
  10829. #endif
  10830. {
  10831. self->SetIndent(indent);
  10832. }
  10833. }
  10834. return 0;
  10835. #ifndef TOLUA_RELEASE
  10836. tolua_lerror:
  10837. tolua_error(tolua_S,"#ferror in function 'SetIndent'.",&tolua_err);
  10838. return 0;
  10839. #endif
  10840. }
  10841. #endif //#ifndef TOLUA_DISABLE
  10842. /* method: SetIndentSpacing of class UIElement */
  10843. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetIndentSpacing00
  10844. static int tolua_UI_UIElement_SetIndentSpacing00(lua_State* tolua_S)
  10845. {
  10846. #ifndef TOLUA_RELEASE
  10847. tolua_Error tolua_err;
  10848. if (
  10849. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10850. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  10851. !tolua_isnoobj(tolua_S,3,&tolua_err)
  10852. )
  10853. goto tolua_lerror;
  10854. else
  10855. #endif
  10856. {
  10857. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10858. int indentSpacing = ((int) tolua_tonumber(tolua_S,2,0));
  10859. #ifndef TOLUA_RELEASE
  10860. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetIndentSpacing'", NULL);
  10861. #endif
  10862. {
  10863. self->SetIndentSpacing(indentSpacing);
  10864. }
  10865. }
  10866. return 0;
  10867. #ifndef TOLUA_RELEASE
  10868. tolua_lerror:
  10869. tolua_error(tolua_S,"#ferror in function 'SetIndentSpacing'.",&tolua_err);
  10870. return 0;
  10871. #endif
  10872. }
  10873. #endif //#ifndef TOLUA_DISABLE
  10874. /* method: UpdateLayout of class UIElement */
  10875. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_UpdateLayout00
  10876. static int tolua_UI_UIElement_UpdateLayout00(lua_State* tolua_S)
  10877. {
  10878. #ifndef TOLUA_RELEASE
  10879. tolua_Error tolua_err;
  10880. if (
  10881. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10882. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10883. )
  10884. goto tolua_lerror;
  10885. else
  10886. #endif
  10887. {
  10888. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10889. #ifndef TOLUA_RELEASE
  10890. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'UpdateLayout'", NULL);
  10891. #endif
  10892. {
  10893. self->UpdateLayout();
  10894. }
  10895. }
  10896. return 0;
  10897. #ifndef TOLUA_RELEASE
  10898. tolua_lerror:
  10899. tolua_error(tolua_S,"#ferror in function 'UpdateLayout'.",&tolua_err);
  10900. return 0;
  10901. #endif
  10902. }
  10903. #endif //#ifndef TOLUA_DISABLE
  10904. /* method: DisableLayoutUpdate of class UIElement */
  10905. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_DisableLayoutUpdate00
  10906. static int tolua_UI_UIElement_DisableLayoutUpdate00(lua_State* tolua_S)
  10907. {
  10908. #ifndef TOLUA_RELEASE
  10909. tolua_Error tolua_err;
  10910. if (
  10911. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10912. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10913. )
  10914. goto tolua_lerror;
  10915. else
  10916. #endif
  10917. {
  10918. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10919. #ifndef TOLUA_RELEASE
  10920. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'DisableLayoutUpdate'", NULL);
  10921. #endif
  10922. {
  10923. self->DisableLayoutUpdate();
  10924. }
  10925. }
  10926. return 0;
  10927. #ifndef TOLUA_RELEASE
  10928. tolua_lerror:
  10929. tolua_error(tolua_S,"#ferror in function 'DisableLayoutUpdate'.",&tolua_err);
  10930. return 0;
  10931. #endif
  10932. }
  10933. #endif //#ifndef TOLUA_DISABLE
  10934. /* method: EnableLayoutUpdate of class UIElement */
  10935. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_EnableLayoutUpdate00
  10936. static int tolua_UI_UIElement_EnableLayoutUpdate00(lua_State* tolua_S)
  10937. {
  10938. #ifndef TOLUA_RELEASE
  10939. tolua_Error tolua_err;
  10940. if (
  10941. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10942. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10943. )
  10944. goto tolua_lerror;
  10945. else
  10946. #endif
  10947. {
  10948. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10949. #ifndef TOLUA_RELEASE
  10950. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'EnableLayoutUpdate'", NULL);
  10951. #endif
  10952. {
  10953. self->EnableLayoutUpdate();
  10954. }
  10955. }
  10956. return 0;
  10957. #ifndef TOLUA_RELEASE
  10958. tolua_lerror:
  10959. tolua_error(tolua_S,"#ferror in function 'EnableLayoutUpdate'.",&tolua_err);
  10960. return 0;
  10961. #endif
  10962. }
  10963. #endif //#ifndef TOLUA_DISABLE
  10964. /* method: BringToFront of class UIElement */
  10965. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_BringToFront00
  10966. static int tolua_UI_UIElement_BringToFront00(lua_State* tolua_S)
  10967. {
  10968. #ifndef TOLUA_RELEASE
  10969. tolua_Error tolua_err;
  10970. if (
  10971. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  10972. !tolua_isnoobj(tolua_S,2,&tolua_err)
  10973. )
  10974. goto tolua_lerror;
  10975. else
  10976. #endif
  10977. {
  10978. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  10979. #ifndef TOLUA_RELEASE
  10980. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'BringToFront'", NULL);
  10981. #endif
  10982. {
  10983. self->BringToFront();
  10984. }
  10985. }
  10986. return 0;
  10987. #ifndef TOLUA_RELEASE
  10988. tolua_lerror:
  10989. tolua_error(tolua_S,"#ferror in function 'BringToFront'.",&tolua_err);
  10990. return 0;
  10991. #endif
  10992. }
  10993. #endif //#ifndef TOLUA_DISABLE
  10994. /* method: CreateChild of class UIElement */
  10995. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_CreateChild00
  10996. static int tolua_UI_UIElement_CreateChild00(lua_State* tolua_S)
  10997. {
  10998. #ifndef TOLUA_RELEASE
  10999. tolua_Error tolua_err;
  11000. if (
  11001. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11002. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  11003. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11004. )
  11005. goto tolua_lerror;
  11006. else
  11007. #endif
  11008. {
  11009. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11010. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  11011. #ifndef TOLUA_RELEASE
  11012. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  11013. #endif
  11014. {
  11015. UIElement* tolua_ret = (UIElement*) self->CreateChild(type);
  11016. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  11017. }
  11018. }
  11019. return 1;
  11020. #ifndef TOLUA_RELEASE
  11021. tolua_lerror:
  11022. tolua_error(tolua_S,"#ferror in function 'CreateChild'.",&tolua_err);
  11023. return 0;
  11024. #endif
  11025. }
  11026. #endif //#ifndef TOLUA_DISABLE
  11027. /* method: CreateChild of class UIElement */
  11028. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_CreateChild01
  11029. static int tolua_UI_UIElement_CreateChild01(lua_State* tolua_S)
  11030. {
  11031. tolua_Error tolua_err;
  11032. if (
  11033. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11034. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  11035. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const String",0,&tolua_err)) ||
  11036. !tolua_isnumber(tolua_S,4,1,&tolua_err) ||
  11037. !tolua_isnoobj(tolua_S,5,&tolua_err)
  11038. )
  11039. goto tolua_lerror;
  11040. else
  11041. {
  11042. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11043. ShortStringHash type = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  11044. const String* name = ((const String*) tolua_tousertype(tolua_S,3,0));
  11045. unsigned index = ((unsigned) tolua_tonumber(tolua_S,4,M_MAX_UNSIGNED));
  11046. #ifndef TOLUA_RELEASE
  11047. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'CreateChild'", NULL);
  11048. #endif
  11049. {
  11050. UIElement* tolua_ret = (UIElement*) self->CreateChild(type,*name,index);
  11051. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  11052. }
  11053. }
  11054. return 1;
  11055. tolua_lerror:
  11056. return tolua_UI_UIElement_CreateChild00(tolua_S);
  11057. }
  11058. #endif //#ifndef TOLUA_DISABLE
  11059. /* method: AddChild of class UIElement */
  11060. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_AddChild00
  11061. static int tolua_UI_UIElement_AddChild00(lua_State* tolua_S)
  11062. {
  11063. #ifndef TOLUA_RELEASE
  11064. tolua_Error tolua_err;
  11065. if (
  11066. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11067. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  11068. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11069. )
  11070. goto tolua_lerror;
  11071. else
  11072. #endif
  11073. {
  11074. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11075. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  11076. #ifndef TOLUA_RELEASE
  11077. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AddChild'", NULL);
  11078. #endif
  11079. {
  11080. self->AddChild(element);
  11081. }
  11082. }
  11083. return 0;
  11084. #ifndef TOLUA_RELEASE
  11085. tolua_lerror:
  11086. tolua_error(tolua_S,"#ferror in function 'AddChild'.",&tolua_err);
  11087. return 0;
  11088. #endif
  11089. }
  11090. #endif //#ifndef TOLUA_DISABLE
  11091. /* method: InsertChild of class UIElement */
  11092. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_InsertChild00
  11093. static int tolua_UI_UIElement_InsertChild00(lua_State* tolua_S)
  11094. {
  11095. #ifndef TOLUA_RELEASE
  11096. tolua_Error tolua_err;
  11097. if (
  11098. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11099. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11100. !tolua_isusertype(tolua_S,3,"UIElement",0,&tolua_err) ||
  11101. !tolua_isnoobj(tolua_S,4,&tolua_err)
  11102. )
  11103. goto tolua_lerror;
  11104. else
  11105. #endif
  11106. {
  11107. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11108. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11109. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,3,0));
  11110. #ifndef TOLUA_RELEASE
  11111. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'InsertChild'", NULL);
  11112. #endif
  11113. {
  11114. self->InsertChild(index,element);
  11115. }
  11116. }
  11117. return 0;
  11118. #ifndef TOLUA_RELEASE
  11119. tolua_lerror:
  11120. tolua_error(tolua_S,"#ferror in function 'InsertChild'.",&tolua_err);
  11121. return 0;
  11122. #endif
  11123. }
  11124. #endif //#ifndef TOLUA_DISABLE
  11125. /* method: RemoveChild of class UIElement */
  11126. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveChild00
  11127. static int tolua_UI_UIElement_RemoveChild00(lua_State* tolua_S)
  11128. {
  11129. #ifndef TOLUA_RELEASE
  11130. tolua_Error tolua_err;
  11131. if (
  11132. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11133. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  11134. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  11135. !tolua_isnoobj(tolua_S,4,&tolua_err)
  11136. )
  11137. goto tolua_lerror;
  11138. else
  11139. #endif
  11140. {
  11141. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11142. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  11143. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,0));
  11144. #ifndef TOLUA_RELEASE
  11145. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveChild'", NULL);
  11146. #endif
  11147. {
  11148. self->RemoveChild(element,index);
  11149. }
  11150. }
  11151. return 0;
  11152. #ifndef TOLUA_RELEASE
  11153. tolua_lerror:
  11154. tolua_error(tolua_S,"#ferror in function 'RemoveChild'.",&tolua_err);
  11155. return 0;
  11156. #endif
  11157. }
  11158. #endif //#ifndef TOLUA_DISABLE
  11159. /* method: RemoveChildAtIndex of class UIElement */
  11160. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveChildAtIndex00
  11161. static int tolua_UI_UIElement_RemoveChildAtIndex00(lua_State* tolua_S)
  11162. {
  11163. #ifndef TOLUA_RELEASE
  11164. tolua_Error tolua_err;
  11165. if (
  11166. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11167. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11168. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11169. )
  11170. goto tolua_lerror;
  11171. else
  11172. #endif
  11173. {
  11174. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11175. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  11176. #ifndef TOLUA_RELEASE
  11177. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveChildAtIndex'", NULL);
  11178. #endif
  11179. {
  11180. self->RemoveChildAtIndex(index);
  11181. }
  11182. }
  11183. return 0;
  11184. #ifndef TOLUA_RELEASE
  11185. tolua_lerror:
  11186. tolua_error(tolua_S,"#ferror in function 'RemoveChildAtIndex'.",&tolua_err);
  11187. return 0;
  11188. #endif
  11189. }
  11190. #endif //#ifndef TOLUA_DISABLE
  11191. /* method: RemoveAllChildren of class UIElement */
  11192. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_RemoveAllChildren00
  11193. static int tolua_UI_UIElement_RemoveAllChildren00(lua_State* tolua_S)
  11194. {
  11195. #ifndef TOLUA_RELEASE
  11196. tolua_Error tolua_err;
  11197. if (
  11198. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11199. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11200. )
  11201. goto tolua_lerror;
  11202. else
  11203. #endif
  11204. {
  11205. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11206. #ifndef TOLUA_RELEASE
  11207. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'RemoveAllChildren'", NULL);
  11208. #endif
  11209. {
  11210. self->RemoveAllChildren();
  11211. }
  11212. }
  11213. return 0;
  11214. #ifndef TOLUA_RELEASE
  11215. tolua_lerror:
  11216. tolua_error(tolua_S,"#ferror in function 'RemoveAllChildren'.",&tolua_err);
  11217. return 0;
  11218. #endif
  11219. }
  11220. #endif //#ifndef TOLUA_DISABLE
  11221. /* method: Remove of class UIElement */
  11222. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_Remove00
  11223. static int tolua_UI_UIElement_Remove00(lua_State* tolua_S)
  11224. {
  11225. #ifndef TOLUA_RELEASE
  11226. tolua_Error tolua_err;
  11227. if (
  11228. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11229. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11230. )
  11231. goto tolua_lerror;
  11232. else
  11233. #endif
  11234. {
  11235. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11236. #ifndef TOLUA_RELEASE
  11237. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'Remove'", NULL);
  11238. #endif
  11239. {
  11240. self->Remove();
  11241. }
  11242. }
  11243. return 0;
  11244. #ifndef TOLUA_RELEASE
  11245. tolua_lerror:
  11246. tolua_error(tolua_S,"#ferror in function 'Remove'.",&tolua_err);
  11247. return 0;
  11248. #endif
  11249. }
  11250. #endif //#ifndef TOLUA_DISABLE
  11251. /* method: FindChild of class UIElement */
  11252. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_FindChild00
  11253. static int tolua_UI_UIElement_FindChild00(lua_State* tolua_S)
  11254. {
  11255. #ifndef TOLUA_RELEASE
  11256. tolua_Error tolua_err;
  11257. if (
  11258. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11259. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  11260. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11261. )
  11262. goto tolua_lerror;
  11263. else
  11264. #endif
  11265. {
  11266. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11267. UIElement* element = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  11268. #ifndef TOLUA_RELEASE
  11269. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'FindChild'", NULL);
  11270. #endif
  11271. {
  11272. unsigned tolua_ret = (unsigned) self->FindChild(element);
  11273. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11274. }
  11275. }
  11276. return 1;
  11277. #ifndef TOLUA_RELEASE
  11278. tolua_lerror:
  11279. tolua_error(tolua_S,"#ferror in function 'FindChild'.",&tolua_err);
  11280. return 0;
  11281. #endif
  11282. }
  11283. #endif //#ifndef TOLUA_DISABLE
  11284. /* method: SetParent of class UIElement */
  11285. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetParent00
  11286. static int tolua_UI_UIElement_SetParent00(lua_State* tolua_S)
  11287. {
  11288. #ifndef TOLUA_RELEASE
  11289. tolua_Error tolua_err;
  11290. if (
  11291. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11292. !tolua_isusertype(tolua_S,2,"UIElement",0,&tolua_err) ||
  11293. !tolua_isnumber(tolua_S,3,1,&tolua_err) ||
  11294. !tolua_isnoobj(tolua_S,4,&tolua_err)
  11295. )
  11296. goto tolua_lerror;
  11297. else
  11298. #endif
  11299. {
  11300. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11301. UIElement* parent = ((UIElement*) tolua_tousertype(tolua_S,2,0));
  11302. unsigned index = ((unsigned) tolua_tonumber(tolua_S,3,M_MAX_UNSIGNED));
  11303. #ifndef TOLUA_RELEASE
  11304. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetParent'", NULL);
  11305. #endif
  11306. {
  11307. self->SetParent(parent,index);
  11308. }
  11309. }
  11310. return 0;
  11311. #ifndef TOLUA_RELEASE
  11312. tolua_lerror:
  11313. tolua_error(tolua_S,"#ferror in function 'SetParent'.",&tolua_err);
  11314. return 0;
  11315. #endif
  11316. }
  11317. #endif //#ifndef TOLUA_DISABLE
  11318. /* method: SetVar of class UIElement */
  11319. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetVar00
  11320. static int tolua_UI_UIElement_SetVar00(lua_State* tolua_S)
  11321. {
  11322. #ifndef TOLUA_RELEASE
  11323. tolua_Error tolua_err;
  11324. if (
  11325. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11326. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"ShortStringHash",0,&tolua_err)) ||
  11327. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  11328. !tolua_isnoobj(tolua_S,4,&tolua_err)
  11329. )
  11330. goto tolua_lerror;
  11331. else
  11332. #endif
  11333. {
  11334. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11335. ShortStringHash key = *((ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  11336. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  11337. #ifndef TOLUA_RELEASE
  11338. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetVar'", NULL);
  11339. #endif
  11340. {
  11341. self->SetVar(key,*value);
  11342. }
  11343. }
  11344. return 0;
  11345. #ifndef TOLUA_RELEASE
  11346. tolua_lerror:
  11347. tolua_error(tolua_S,"#ferror in function 'SetVar'.",&tolua_err);
  11348. return 0;
  11349. #endif
  11350. }
  11351. #endif //#ifndef TOLUA_DISABLE
  11352. /* method: SetInternal of class UIElement */
  11353. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetInternal00
  11354. static int tolua_UI_UIElement_SetInternal00(lua_State* tolua_S)
  11355. {
  11356. #ifndef TOLUA_RELEASE
  11357. tolua_Error tolua_err;
  11358. if (
  11359. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11360. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  11361. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11362. )
  11363. goto tolua_lerror;
  11364. else
  11365. #endif
  11366. {
  11367. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11368. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  11369. #ifndef TOLUA_RELEASE
  11370. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetInternal'", NULL);
  11371. #endif
  11372. {
  11373. self->SetInternal(enable);
  11374. }
  11375. }
  11376. return 0;
  11377. #ifndef TOLUA_RELEASE
  11378. tolua_lerror:
  11379. tolua_error(tolua_S,"#ferror in function 'SetInternal'.",&tolua_err);
  11380. return 0;
  11381. #endif
  11382. }
  11383. #endif //#ifndef TOLUA_DISABLE
  11384. /* method: SetTraversalMode of class UIElement */
  11385. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetTraversalMode00
  11386. static int tolua_UI_UIElement_SetTraversalMode00(lua_State* tolua_S)
  11387. {
  11388. #ifndef TOLUA_RELEASE
  11389. tolua_Error tolua_err;
  11390. if (
  11391. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11392. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  11393. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11394. )
  11395. goto tolua_lerror;
  11396. else
  11397. #endif
  11398. {
  11399. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11400. TraversalMode traversalMode = ((TraversalMode) (int) tolua_tonumber(tolua_S,2,0));
  11401. #ifndef TOLUA_RELEASE
  11402. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTraversalMode'", NULL);
  11403. #endif
  11404. {
  11405. self->SetTraversalMode(traversalMode);
  11406. }
  11407. }
  11408. return 0;
  11409. #ifndef TOLUA_RELEASE
  11410. tolua_lerror:
  11411. tolua_error(tolua_S,"#ferror in function 'SetTraversalMode'.",&tolua_err);
  11412. return 0;
  11413. #endif
  11414. }
  11415. #endif //#ifndef TOLUA_DISABLE
  11416. /* method: SetElementEventSender of class UIElement */
  11417. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetElementEventSender00
  11418. static int tolua_UI_UIElement_SetElementEventSender00(lua_State* tolua_S)
  11419. {
  11420. #ifndef TOLUA_RELEASE
  11421. tolua_Error tolua_err;
  11422. if (
  11423. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  11424. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  11425. !tolua_isnoobj(tolua_S,3,&tolua_err)
  11426. )
  11427. goto tolua_lerror;
  11428. else
  11429. #endif
  11430. {
  11431. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  11432. bool flag = ((bool) tolua_toboolean(tolua_S,2,0));
  11433. #ifndef TOLUA_RELEASE
  11434. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetElementEventSender'", NULL);
  11435. #endif
  11436. {
  11437. self->SetElementEventSender(flag);
  11438. }
  11439. }
  11440. return 0;
  11441. #ifndef TOLUA_RELEASE
  11442. tolua_lerror:
  11443. tolua_error(tolua_S,"#ferror in function 'SetElementEventSender'.",&tolua_err);
  11444. return 0;
  11445. #endif
  11446. }
  11447. #endif //#ifndef TOLUA_DISABLE
  11448. /* method: GetName of class UIElement */
  11449. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetName00
  11450. static int tolua_UI_UIElement_GetName00(lua_State* tolua_S)
  11451. {
  11452. #ifndef TOLUA_RELEASE
  11453. tolua_Error tolua_err;
  11454. if (
  11455. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11456. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11457. )
  11458. goto tolua_lerror;
  11459. else
  11460. #endif
  11461. {
  11462. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11463. #ifndef TOLUA_RELEASE
  11464. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetName'", NULL);
  11465. #endif
  11466. {
  11467. const String& tolua_ret = (const String&) self->GetName();
  11468. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  11469. }
  11470. }
  11471. return 1;
  11472. #ifndef TOLUA_RELEASE
  11473. tolua_lerror:
  11474. tolua_error(tolua_S,"#ferror in function 'GetName'.",&tolua_err);
  11475. return 0;
  11476. #endif
  11477. }
  11478. #endif //#ifndef TOLUA_DISABLE
  11479. /* method: GetPosition of class UIElement */
  11480. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetPosition00
  11481. static int tolua_UI_UIElement_GetPosition00(lua_State* tolua_S)
  11482. {
  11483. #ifndef TOLUA_RELEASE
  11484. tolua_Error tolua_err;
  11485. if (
  11486. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11487. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11488. )
  11489. goto tolua_lerror;
  11490. else
  11491. #endif
  11492. {
  11493. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11494. #ifndef TOLUA_RELEASE
  11495. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPosition'", NULL);
  11496. #endif
  11497. {
  11498. const IntVector2& tolua_ret = (const IntVector2&) self->GetPosition();
  11499. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11500. }
  11501. }
  11502. return 1;
  11503. #ifndef TOLUA_RELEASE
  11504. tolua_lerror:
  11505. tolua_error(tolua_S,"#ferror in function 'GetPosition'.",&tolua_err);
  11506. return 0;
  11507. #endif
  11508. }
  11509. #endif //#ifndef TOLUA_DISABLE
  11510. /* method: GetSize of class UIElement */
  11511. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetSize00
  11512. static int tolua_UI_UIElement_GetSize00(lua_State* tolua_S)
  11513. {
  11514. #ifndef TOLUA_RELEASE
  11515. tolua_Error tolua_err;
  11516. if (
  11517. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11518. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11519. )
  11520. goto tolua_lerror;
  11521. else
  11522. #endif
  11523. {
  11524. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11525. #ifndef TOLUA_RELEASE
  11526. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSize'", NULL);
  11527. #endif
  11528. {
  11529. const IntVector2& tolua_ret = (const IntVector2&) self->GetSize();
  11530. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11531. }
  11532. }
  11533. return 1;
  11534. #ifndef TOLUA_RELEASE
  11535. tolua_lerror:
  11536. tolua_error(tolua_S,"#ferror in function 'GetSize'.",&tolua_err);
  11537. return 0;
  11538. #endif
  11539. }
  11540. #endif //#ifndef TOLUA_DISABLE
  11541. /* method: GetWidth of class UIElement */
  11542. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetWidth00
  11543. static int tolua_UI_UIElement_GetWidth00(lua_State* tolua_S)
  11544. {
  11545. #ifndef TOLUA_RELEASE
  11546. tolua_Error tolua_err;
  11547. if (
  11548. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11549. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11550. )
  11551. goto tolua_lerror;
  11552. else
  11553. #endif
  11554. {
  11555. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11556. #ifndef TOLUA_RELEASE
  11557. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWidth'", NULL);
  11558. #endif
  11559. {
  11560. int tolua_ret = (int) self->GetWidth();
  11561. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11562. }
  11563. }
  11564. return 1;
  11565. #ifndef TOLUA_RELEASE
  11566. tolua_lerror:
  11567. tolua_error(tolua_S,"#ferror in function 'GetWidth'.",&tolua_err);
  11568. return 0;
  11569. #endif
  11570. }
  11571. #endif //#ifndef TOLUA_DISABLE
  11572. /* method: GetHeight of class UIElement */
  11573. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetHeight00
  11574. static int tolua_UI_UIElement_GetHeight00(lua_State* tolua_S)
  11575. {
  11576. #ifndef TOLUA_RELEASE
  11577. tolua_Error tolua_err;
  11578. if (
  11579. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11580. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11581. )
  11582. goto tolua_lerror;
  11583. else
  11584. #endif
  11585. {
  11586. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11587. #ifndef TOLUA_RELEASE
  11588. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHeight'", NULL);
  11589. #endif
  11590. {
  11591. int tolua_ret = (int) self->GetHeight();
  11592. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11593. }
  11594. }
  11595. return 1;
  11596. #ifndef TOLUA_RELEASE
  11597. tolua_lerror:
  11598. tolua_error(tolua_S,"#ferror in function 'GetHeight'.",&tolua_err);
  11599. return 0;
  11600. #endif
  11601. }
  11602. #endif //#ifndef TOLUA_DISABLE
  11603. /* method: GetMinSize of class UIElement */
  11604. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinSize00
  11605. static int tolua_UI_UIElement_GetMinSize00(lua_State* tolua_S)
  11606. {
  11607. #ifndef TOLUA_RELEASE
  11608. tolua_Error tolua_err;
  11609. if (
  11610. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11611. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11612. )
  11613. goto tolua_lerror;
  11614. else
  11615. #endif
  11616. {
  11617. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11618. #ifndef TOLUA_RELEASE
  11619. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinSize'", NULL);
  11620. #endif
  11621. {
  11622. const IntVector2& tolua_ret = (const IntVector2&) self->GetMinSize();
  11623. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11624. }
  11625. }
  11626. return 1;
  11627. #ifndef TOLUA_RELEASE
  11628. tolua_lerror:
  11629. tolua_error(tolua_S,"#ferror in function 'GetMinSize'.",&tolua_err);
  11630. return 0;
  11631. #endif
  11632. }
  11633. #endif //#ifndef TOLUA_DISABLE
  11634. /* method: GetMinWidth of class UIElement */
  11635. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinWidth00
  11636. static int tolua_UI_UIElement_GetMinWidth00(lua_State* tolua_S)
  11637. {
  11638. #ifndef TOLUA_RELEASE
  11639. tolua_Error tolua_err;
  11640. if (
  11641. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11642. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11643. )
  11644. goto tolua_lerror;
  11645. else
  11646. #endif
  11647. {
  11648. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11649. #ifndef TOLUA_RELEASE
  11650. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinWidth'", NULL);
  11651. #endif
  11652. {
  11653. int tolua_ret = (int) self->GetMinWidth();
  11654. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11655. }
  11656. }
  11657. return 1;
  11658. #ifndef TOLUA_RELEASE
  11659. tolua_lerror:
  11660. tolua_error(tolua_S,"#ferror in function 'GetMinWidth'.",&tolua_err);
  11661. return 0;
  11662. #endif
  11663. }
  11664. #endif //#ifndef TOLUA_DISABLE
  11665. /* method: GetMinHeight of class UIElement */
  11666. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMinHeight00
  11667. static int tolua_UI_UIElement_GetMinHeight00(lua_State* tolua_S)
  11668. {
  11669. #ifndef TOLUA_RELEASE
  11670. tolua_Error tolua_err;
  11671. if (
  11672. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11673. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11674. )
  11675. goto tolua_lerror;
  11676. else
  11677. #endif
  11678. {
  11679. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11680. #ifndef TOLUA_RELEASE
  11681. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMinHeight'", NULL);
  11682. #endif
  11683. {
  11684. int tolua_ret = (int) self->GetMinHeight();
  11685. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11686. }
  11687. }
  11688. return 1;
  11689. #ifndef TOLUA_RELEASE
  11690. tolua_lerror:
  11691. tolua_error(tolua_S,"#ferror in function 'GetMinHeight'.",&tolua_err);
  11692. return 0;
  11693. #endif
  11694. }
  11695. #endif //#ifndef TOLUA_DISABLE
  11696. /* method: GetMaxSize of class UIElement */
  11697. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxSize00
  11698. static int tolua_UI_UIElement_GetMaxSize00(lua_State* tolua_S)
  11699. {
  11700. #ifndef TOLUA_RELEASE
  11701. tolua_Error tolua_err;
  11702. if (
  11703. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11704. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11705. )
  11706. goto tolua_lerror;
  11707. else
  11708. #endif
  11709. {
  11710. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11711. #ifndef TOLUA_RELEASE
  11712. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxSize'", NULL);
  11713. #endif
  11714. {
  11715. const IntVector2& tolua_ret = (const IntVector2&) self->GetMaxSize();
  11716. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11717. }
  11718. }
  11719. return 1;
  11720. #ifndef TOLUA_RELEASE
  11721. tolua_lerror:
  11722. tolua_error(tolua_S,"#ferror in function 'GetMaxSize'.",&tolua_err);
  11723. return 0;
  11724. #endif
  11725. }
  11726. #endif //#ifndef TOLUA_DISABLE
  11727. /* method: GetMaxWidth of class UIElement */
  11728. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxWidth00
  11729. static int tolua_UI_UIElement_GetMaxWidth00(lua_State* tolua_S)
  11730. {
  11731. #ifndef TOLUA_RELEASE
  11732. tolua_Error tolua_err;
  11733. if (
  11734. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11735. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11736. )
  11737. goto tolua_lerror;
  11738. else
  11739. #endif
  11740. {
  11741. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11742. #ifndef TOLUA_RELEASE
  11743. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxWidth'", NULL);
  11744. #endif
  11745. {
  11746. int tolua_ret = (int) self->GetMaxWidth();
  11747. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11748. }
  11749. }
  11750. return 1;
  11751. #ifndef TOLUA_RELEASE
  11752. tolua_lerror:
  11753. tolua_error(tolua_S,"#ferror in function 'GetMaxWidth'.",&tolua_err);
  11754. return 0;
  11755. #endif
  11756. }
  11757. #endif //#ifndef TOLUA_DISABLE
  11758. /* method: GetMaxHeight of class UIElement */
  11759. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetMaxHeight00
  11760. static int tolua_UI_UIElement_GetMaxHeight00(lua_State* tolua_S)
  11761. {
  11762. #ifndef TOLUA_RELEASE
  11763. tolua_Error tolua_err;
  11764. if (
  11765. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11766. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11767. )
  11768. goto tolua_lerror;
  11769. else
  11770. #endif
  11771. {
  11772. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11773. #ifndef TOLUA_RELEASE
  11774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetMaxHeight'", NULL);
  11775. #endif
  11776. {
  11777. int tolua_ret = (int) self->GetMaxHeight();
  11778. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11779. }
  11780. }
  11781. return 1;
  11782. #ifndef TOLUA_RELEASE
  11783. tolua_lerror:
  11784. tolua_error(tolua_S,"#ferror in function 'GetMaxHeight'.",&tolua_err);
  11785. return 0;
  11786. #endif
  11787. }
  11788. #endif //#ifndef TOLUA_DISABLE
  11789. /* method: IsFixedSize of class UIElement */
  11790. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedSize00
  11791. static int tolua_UI_UIElement_IsFixedSize00(lua_State* tolua_S)
  11792. {
  11793. #ifndef TOLUA_RELEASE
  11794. tolua_Error tolua_err;
  11795. if (
  11796. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11797. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11798. )
  11799. goto tolua_lerror;
  11800. else
  11801. #endif
  11802. {
  11803. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11804. #ifndef TOLUA_RELEASE
  11805. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedSize'", NULL);
  11806. #endif
  11807. {
  11808. bool tolua_ret = (bool) self->IsFixedSize();
  11809. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11810. }
  11811. }
  11812. return 1;
  11813. #ifndef TOLUA_RELEASE
  11814. tolua_lerror:
  11815. tolua_error(tolua_S,"#ferror in function 'IsFixedSize'.",&tolua_err);
  11816. return 0;
  11817. #endif
  11818. }
  11819. #endif //#ifndef TOLUA_DISABLE
  11820. /* method: IsFixedWidth of class UIElement */
  11821. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedWidth00
  11822. static int tolua_UI_UIElement_IsFixedWidth00(lua_State* tolua_S)
  11823. {
  11824. #ifndef TOLUA_RELEASE
  11825. tolua_Error tolua_err;
  11826. if (
  11827. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11828. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11829. )
  11830. goto tolua_lerror;
  11831. else
  11832. #endif
  11833. {
  11834. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11835. #ifndef TOLUA_RELEASE
  11836. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedWidth'", NULL);
  11837. #endif
  11838. {
  11839. bool tolua_ret = (bool) self->IsFixedWidth();
  11840. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11841. }
  11842. }
  11843. return 1;
  11844. #ifndef TOLUA_RELEASE
  11845. tolua_lerror:
  11846. tolua_error(tolua_S,"#ferror in function 'IsFixedWidth'.",&tolua_err);
  11847. return 0;
  11848. #endif
  11849. }
  11850. #endif //#ifndef TOLUA_DISABLE
  11851. /* method: IsFixedHeight of class UIElement */
  11852. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsFixedHeight00
  11853. static int tolua_UI_UIElement_IsFixedHeight00(lua_State* tolua_S)
  11854. {
  11855. #ifndef TOLUA_RELEASE
  11856. tolua_Error tolua_err;
  11857. if (
  11858. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11859. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11860. )
  11861. goto tolua_lerror;
  11862. else
  11863. #endif
  11864. {
  11865. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11866. #ifndef TOLUA_RELEASE
  11867. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsFixedHeight'", NULL);
  11868. #endif
  11869. {
  11870. bool tolua_ret = (bool) self->IsFixedHeight();
  11871. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  11872. }
  11873. }
  11874. return 1;
  11875. #ifndef TOLUA_RELEASE
  11876. tolua_lerror:
  11877. tolua_error(tolua_S,"#ferror in function 'IsFixedHeight'.",&tolua_err);
  11878. return 0;
  11879. #endif
  11880. }
  11881. #endif //#ifndef TOLUA_DISABLE
  11882. /* method: GetChildOffset of class UIElement */
  11883. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChildOffset00
  11884. static int tolua_UI_UIElement_GetChildOffset00(lua_State* tolua_S)
  11885. {
  11886. #ifndef TOLUA_RELEASE
  11887. tolua_Error tolua_err;
  11888. if (
  11889. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11890. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11891. )
  11892. goto tolua_lerror;
  11893. else
  11894. #endif
  11895. {
  11896. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11897. #ifndef TOLUA_RELEASE
  11898. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChildOffset'", NULL);
  11899. #endif
  11900. {
  11901. const IntVector2& tolua_ret = (const IntVector2&) self->GetChildOffset();
  11902. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  11903. }
  11904. }
  11905. return 1;
  11906. #ifndef TOLUA_RELEASE
  11907. tolua_lerror:
  11908. tolua_error(tolua_S,"#ferror in function 'GetChildOffset'.",&tolua_err);
  11909. return 0;
  11910. #endif
  11911. }
  11912. #endif //#ifndef TOLUA_DISABLE
  11913. /* method: GetHorizontalAlignment of class UIElement */
  11914. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetHorizontalAlignment00
  11915. static int tolua_UI_UIElement_GetHorizontalAlignment00(lua_State* tolua_S)
  11916. {
  11917. #ifndef TOLUA_RELEASE
  11918. tolua_Error tolua_err;
  11919. if (
  11920. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11921. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11922. )
  11923. goto tolua_lerror;
  11924. else
  11925. #endif
  11926. {
  11927. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11928. #ifndef TOLUA_RELEASE
  11929. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetHorizontalAlignment'", NULL);
  11930. #endif
  11931. {
  11932. HorizontalAlignment tolua_ret = (HorizontalAlignment) self->GetHorizontalAlignment();
  11933. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11934. }
  11935. }
  11936. return 1;
  11937. #ifndef TOLUA_RELEASE
  11938. tolua_lerror:
  11939. tolua_error(tolua_S,"#ferror in function 'GetHorizontalAlignment'.",&tolua_err);
  11940. return 0;
  11941. #endif
  11942. }
  11943. #endif //#ifndef TOLUA_DISABLE
  11944. /* method: GetVerticalAlignment of class UIElement */
  11945. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetVerticalAlignment00
  11946. static int tolua_UI_UIElement_GetVerticalAlignment00(lua_State* tolua_S)
  11947. {
  11948. #ifndef TOLUA_RELEASE
  11949. tolua_Error tolua_err;
  11950. if (
  11951. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11952. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11953. )
  11954. goto tolua_lerror;
  11955. else
  11956. #endif
  11957. {
  11958. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11959. #ifndef TOLUA_RELEASE
  11960. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetVerticalAlignment'", NULL);
  11961. #endif
  11962. {
  11963. VerticalAlignment tolua_ret = (VerticalAlignment) self->GetVerticalAlignment();
  11964. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  11965. }
  11966. }
  11967. return 1;
  11968. #ifndef TOLUA_RELEASE
  11969. tolua_lerror:
  11970. tolua_error(tolua_S,"#ferror in function 'GetVerticalAlignment'.",&tolua_err);
  11971. return 0;
  11972. #endif
  11973. }
  11974. #endif //#ifndef TOLUA_DISABLE
  11975. /* method: GetClipBorder of class UIElement */
  11976. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetClipBorder00
  11977. static int tolua_UI_UIElement_GetClipBorder00(lua_State* tolua_S)
  11978. {
  11979. #ifndef TOLUA_RELEASE
  11980. tolua_Error tolua_err;
  11981. if (
  11982. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  11983. !tolua_isnoobj(tolua_S,2,&tolua_err)
  11984. )
  11985. goto tolua_lerror;
  11986. else
  11987. #endif
  11988. {
  11989. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  11990. #ifndef TOLUA_RELEASE
  11991. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipBorder'", NULL);
  11992. #endif
  11993. {
  11994. const IntRect& tolua_ret = (const IntRect&) self->GetClipBorder();
  11995. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  11996. }
  11997. }
  11998. return 1;
  11999. #ifndef TOLUA_RELEASE
  12000. tolua_lerror:
  12001. tolua_error(tolua_S,"#ferror in function 'GetClipBorder'.",&tolua_err);
  12002. return 0;
  12003. #endif
  12004. }
  12005. #endif //#ifndef TOLUA_DISABLE
  12006. /* method: GetColor of class UIElement */
  12007. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetColor00
  12008. static int tolua_UI_UIElement_GetColor00(lua_State* tolua_S)
  12009. {
  12010. #ifndef TOLUA_RELEASE
  12011. tolua_Error tolua_err;
  12012. if (
  12013. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12014. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12015. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12016. )
  12017. goto tolua_lerror;
  12018. else
  12019. #endif
  12020. {
  12021. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12022. Corner corner = ((Corner) (int) tolua_tonumber(tolua_S,2,0));
  12023. #ifndef TOLUA_RELEASE
  12024. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColor'", NULL);
  12025. #endif
  12026. {
  12027. const Color& tolua_ret = (const Color&) self->GetColor(corner);
  12028. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  12029. }
  12030. }
  12031. return 1;
  12032. #ifndef TOLUA_RELEASE
  12033. tolua_lerror:
  12034. tolua_error(tolua_S,"#ferror in function 'GetColor'.",&tolua_err);
  12035. return 0;
  12036. #endif
  12037. }
  12038. #endif //#ifndef TOLUA_DISABLE
  12039. /* method: GetPriority of class UIElement */
  12040. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetPriority00
  12041. static int tolua_UI_UIElement_GetPriority00(lua_State* tolua_S)
  12042. {
  12043. #ifndef TOLUA_RELEASE
  12044. tolua_Error tolua_err;
  12045. if (
  12046. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12047. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12048. )
  12049. goto tolua_lerror;
  12050. else
  12051. #endif
  12052. {
  12053. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12054. #ifndef TOLUA_RELEASE
  12055. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetPriority'", NULL);
  12056. #endif
  12057. {
  12058. int tolua_ret = (int) self->GetPriority();
  12059. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12060. }
  12061. }
  12062. return 1;
  12063. #ifndef TOLUA_RELEASE
  12064. tolua_lerror:
  12065. tolua_error(tolua_S,"#ferror in function 'GetPriority'.",&tolua_err);
  12066. return 0;
  12067. #endif
  12068. }
  12069. #endif //#ifndef TOLUA_DISABLE
  12070. /* method: GetOpacity of class UIElement */
  12071. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetOpacity00
  12072. static int tolua_UI_UIElement_GetOpacity00(lua_State* tolua_S)
  12073. {
  12074. #ifndef TOLUA_RELEASE
  12075. tolua_Error tolua_err;
  12076. if (
  12077. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12078. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12079. )
  12080. goto tolua_lerror;
  12081. else
  12082. #endif
  12083. {
  12084. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12085. #ifndef TOLUA_RELEASE
  12086. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetOpacity'", NULL);
  12087. #endif
  12088. {
  12089. float tolua_ret = (float) self->GetOpacity();
  12090. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12091. }
  12092. }
  12093. return 1;
  12094. #ifndef TOLUA_RELEASE
  12095. tolua_lerror:
  12096. tolua_error(tolua_S,"#ferror in function 'GetOpacity'.",&tolua_err);
  12097. return 0;
  12098. #endif
  12099. }
  12100. #endif //#ifndef TOLUA_DISABLE
  12101. /* method: GetDerivedOpacity of class UIElement */
  12102. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDerivedOpacity00
  12103. static int tolua_UI_UIElement_GetDerivedOpacity00(lua_State* tolua_S)
  12104. {
  12105. #ifndef TOLUA_RELEASE
  12106. tolua_Error tolua_err;
  12107. if (
  12108. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12109. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12110. )
  12111. goto tolua_lerror;
  12112. else
  12113. #endif
  12114. {
  12115. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12116. #ifndef TOLUA_RELEASE
  12117. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDerivedOpacity'", NULL);
  12118. #endif
  12119. {
  12120. float tolua_ret = (float) self->GetDerivedOpacity();
  12121. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12122. }
  12123. }
  12124. return 1;
  12125. #ifndef TOLUA_RELEASE
  12126. tolua_lerror:
  12127. tolua_error(tolua_S,"#ferror in function 'GetDerivedOpacity'.",&tolua_err);
  12128. return 0;
  12129. #endif
  12130. }
  12131. #endif //#ifndef TOLUA_DISABLE
  12132. /* method: GetBringToFront of class UIElement */
  12133. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetBringToFront00
  12134. static int tolua_UI_UIElement_GetBringToFront00(lua_State* tolua_S)
  12135. {
  12136. #ifndef TOLUA_RELEASE
  12137. tolua_Error tolua_err;
  12138. if (
  12139. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12140. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12141. )
  12142. goto tolua_lerror;
  12143. else
  12144. #endif
  12145. {
  12146. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12147. #ifndef TOLUA_RELEASE
  12148. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBringToFront'", NULL);
  12149. #endif
  12150. {
  12151. bool tolua_ret = (bool) self->GetBringToFront();
  12152. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12153. }
  12154. }
  12155. return 1;
  12156. #ifndef TOLUA_RELEASE
  12157. tolua_lerror:
  12158. tolua_error(tolua_S,"#ferror in function 'GetBringToFront'.",&tolua_err);
  12159. return 0;
  12160. #endif
  12161. }
  12162. #endif //#ifndef TOLUA_DISABLE
  12163. /* method: GetBringToBack of class UIElement */
  12164. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetBringToBack00
  12165. static int tolua_UI_UIElement_GetBringToBack00(lua_State* tolua_S)
  12166. {
  12167. #ifndef TOLUA_RELEASE
  12168. tolua_Error tolua_err;
  12169. if (
  12170. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12171. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12172. )
  12173. goto tolua_lerror;
  12174. else
  12175. #endif
  12176. {
  12177. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12178. #ifndef TOLUA_RELEASE
  12179. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetBringToBack'", NULL);
  12180. #endif
  12181. {
  12182. bool tolua_ret = (bool) self->GetBringToBack();
  12183. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12184. }
  12185. }
  12186. return 1;
  12187. #ifndef TOLUA_RELEASE
  12188. tolua_lerror:
  12189. tolua_error(tolua_S,"#ferror in function 'GetBringToBack'.",&tolua_err);
  12190. return 0;
  12191. #endif
  12192. }
  12193. #endif //#ifndef TOLUA_DISABLE
  12194. /* method: GetClipChildren of class UIElement */
  12195. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetClipChildren00
  12196. static int tolua_UI_UIElement_GetClipChildren00(lua_State* tolua_S)
  12197. {
  12198. #ifndef TOLUA_RELEASE
  12199. tolua_Error tolua_err;
  12200. if (
  12201. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12202. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12203. )
  12204. goto tolua_lerror;
  12205. else
  12206. #endif
  12207. {
  12208. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12209. #ifndef TOLUA_RELEASE
  12210. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetClipChildren'", NULL);
  12211. #endif
  12212. {
  12213. bool tolua_ret = (bool) self->GetClipChildren();
  12214. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12215. }
  12216. }
  12217. return 1;
  12218. #ifndef TOLUA_RELEASE
  12219. tolua_lerror:
  12220. tolua_error(tolua_S,"#ferror in function 'GetClipChildren'.",&tolua_err);
  12221. return 0;
  12222. #endif
  12223. }
  12224. #endif //#ifndef TOLUA_DISABLE
  12225. /* method: GetSortChildren of class UIElement */
  12226. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetSortChildren00
  12227. static int tolua_UI_UIElement_GetSortChildren00(lua_State* tolua_S)
  12228. {
  12229. #ifndef TOLUA_RELEASE
  12230. tolua_Error tolua_err;
  12231. if (
  12232. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12233. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12234. )
  12235. goto tolua_lerror;
  12236. else
  12237. #endif
  12238. {
  12239. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12240. #ifndef TOLUA_RELEASE
  12241. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetSortChildren'", NULL);
  12242. #endif
  12243. {
  12244. bool tolua_ret = (bool) self->GetSortChildren();
  12245. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12246. }
  12247. }
  12248. return 1;
  12249. #ifndef TOLUA_RELEASE
  12250. tolua_lerror:
  12251. tolua_error(tolua_S,"#ferror in function 'GetSortChildren'.",&tolua_err);
  12252. return 0;
  12253. #endif
  12254. }
  12255. #endif //#ifndef TOLUA_DISABLE
  12256. /* method: GetUseDerivedOpacity of class UIElement */
  12257. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetUseDerivedOpacity00
  12258. static int tolua_UI_UIElement_GetUseDerivedOpacity00(lua_State* tolua_S)
  12259. {
  12260. #ifndef TOLUA_RELEASE
  12261. tolua_Error tolua_err;
  12262. if (
  12263. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12264. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12265. )
  12266. goto tolua_lerror;
  12267. else
  12268. #endif
  12269. {
  12270. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12271. #ifndef TOLUA_RELEASE
  12272. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetUseDerivedOpacity'", NULL);
  12273. #endif
  12274. {
  12275. bool tolua_ret = (bool) self->GetUseDerivedOpacity();
  12276. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12277. }
  12278. }
  12279. return 1;
  12280. #ifndef TOLUA_RELEASE
  12281. tolua_lerror:
  12282. tolua_error(tolua_S,"#ferror in function 'GetUseDerivedOpacity'.",&tolua_err);
  12283. return 0;
  12284. #endif
  12285. }
  12286. #endif //#ifndef TOLUA_DISABLE
  12287. /* method: HasFocus of class UIElement */
  12288. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_HasFocus00
  12289. static int tolua_UI_UIElement_HasFocus00(lua_State* tolua_S)
  12290. {
  12291. #ifndef TOLUA_RELEASE
  12292. tolua_Error tolua_err;
  12293. if (
  12294. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12295. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12296. )
  12297. goto tolua_lerror;
  12298. else
  12299. #endif
  12300. {
  12301. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12302. #ifndef TOLUA_RELEASE
  12303. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasFocus'", NULL);
  12304. #endif
  12305. {
  12306. bool tolua_ret = (bool) self->HasFocus();
  12307. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12308. }
  12309. }
  12310. return 1;
  12311. #ifndef TOLUA_RELEASE
  12312. tolua_lerror:
  12313. tolua_error(tolua_S,"#ferror in function 'HasFocus'.",&tolua_err);
  12314. return 0;
  12315. #endif
  12316. }
  12317. #endif //#ifndef TOLUA_DISABLE
  12318. /* method: IsEnabled of class UIElement */
  12319. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsEnabled00
  12320. static int tolua_UI_UIElement_IsEnabled00(lua_State* tolua_S)
  12321. {
  12322. #ifndef TOLUA_RELEASE
  12323. tolua_Error tolua_err;
  12324. if (
  12325. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12326. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12327. )
  12328. goto tolua_lerror;
  12329. else
  12330. #endif
  12331. {
  12332. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12333. #ifndef TOLUA_RELEASE
  12334. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsEnabled'", NULL);
  12335. #endif
  12336. {
  12337. bool tolua_ret = (bool) self->IsEnabled();
  12338. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12339. }
  12340. }
  12341. return 1;
  12342. #ifndef TOLUA_RELEASE
  12343. tolua_lerror:
  12344. tolua_error(tolua_S,"#ferror in function 'IsEnabled'.",&tolua_err);
  12345. return 0;
  12346. #endif
  12347. }
  12348. #endif //#ifndef TOLUA_DISABLE
  12349. /* method: IsSelected of class UIElement */
  12350. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsSelected00
  12351. static int tolua_UI_UIElement_IsSelected00(lua_State* tolua_S)
  12352. {
  12353. #ifndef TOLUA_RELEASE
  12354. tolua_Error tolua_err;
  12355. if (
  12356. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12357. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12358. )
  12359. goto tolua_lerror;
  12360. else
  12361. #endif
  12362. {
  12363. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12364. #ifndef TOLUA_RELEASE
  12365. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsSelected'", NULL);
  12366. #endif
  12367. {
  12368. bool tolua_ret = (bool) self->IsSelected();
  12369. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12370. }
  12371. }
  12372. return 1;
  12373. #ifndef TOLUA_RELEASE
  12374. tolua_lerror:
  12375. tolua_error(tolua_S,"#ferror in function 'IsSelected'.",&tolua_err);
  12376. return 0;
  12377. #endif
  12378. }
  12379. #endif //#ifndef TOLUA_DISABLE
  12380. /* method: IsVisible of class UIElement */
  12381. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsVisible00
  12382. static int tolua_UI_UIElement_IsVisible00(lua_State* tolua_S)
  12383. {
  12384. #ifndef TOLUA_RELEASE
  12385. tolua_Error tolua_err;
  12386. if (
  12387. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12388. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12389. )
  12390. goto tolua_lerror;
  12391. else
  12392. #endif
  12393. {
  12394. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12395. #ifndef TOLUA_RELEASE
  12396. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsVisible'", NULL);
  12397. #endif
  12398. {
  12399. bool tolua_ret = (bool) self->IsVisible();
  12400. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12401. }
  12402. }
  12403. return 1;
  12404. #ifndef TOLUA_RELEASE
  12405. tolua_lerror:
  12406. tolua_error(tolua_S,"#ferror in function 'IsVisible'.",&tolua_err);
  12407. return 0;
  12408. #endif
  12409. }
  12410. #endif //#ifndef TOLUA_DISABLE
  12411. /* method: IsHovering of class UIElement */
  12412. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsHovering00
  12413. static int tolua_UI_UIElement_IsHovering00(lua_State* tolua_S)
  12414. {
  12415. #ifndef TOLUA_RELEASE
  12416. tolua_Error tolua_err;
  12417. if (
  12418. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12419. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12420. )
  12421. goto tolua_lerror;
  12422. else
  12423. #endif
  12424. {
  12425. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12426. #ifndef TOLUA_RELEASE
  12427. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsHovering'", NULL);
  12428. #endif
  12429. {
  12430. bool tolua_ret = (bool) self->IsHovering();
  12431. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12432. }
  12433. }
  12434. return 1;
  12435. #ifndef TOLUA_RELEASE
  12436. tolua_lerror:
  12437. tolua_error(tolua_S,"#ferror in function 'IsHovering'.",&tolua_err);
  12438. return 0;
  12439. #endif
  12440. }
  12441. #endif //#ifndef TOLUA_DISABLE
  12442. /* method: IsInternal of class UIElement */
  12443. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInternal00
  12444. static int tolua_UI_UIElement_IsInternal00(lua_State* tolua_S)
  12445. {
  12446. #ifndef TOLUA_RELEASE
  12447. tolua_Error tolua_err;
  12448. if (
  12449. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12450. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12451. )
  12452. goto tolua_lerror;
  12453. else
  12454. #endif
  12455. {
  12456. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12457. #ifndef TOLUA_RELEASE
  12458. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInternal'", NULL);
  12459. #endif
  12460. {
  12461. bool tolua_ret = (bool) self->IsInternal();
  12462. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12463. }
  12464. }
  12465. return 1;
  12466. #ifndef TOLUA_RELEASE
  12467. tolua_lerror:
  12468. tolua_error(tolua_S,"#ferror in function 'IsInternal'.",&tolua_err);
  12469. return 0;
  12470. #endif
  12471. }
  12472. #endif //#ifndef TOLUA_DISABLE
  12473. /* method: HasColorGradient of class UIElement */
  12474. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_HasColorGradient00
  12475. static int tolua_UI_UIElement_HasColorGradient00(lua_State* tolua_S)
  12476. {
  12477. #ifndef TOLUA_RELEASE
  12478. tolua_Error tolua_err;
  12479. if (
  12480. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12481. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12482. )
  12483. goto tolua_lerror;
  12484. else
  12485. #endif
  12486. {
  12487. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12488. #ifndef TOLUA_RELEASE
  12489. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'HasColorGradient'", NULL);
  12490. #endif
  12491. {
  12492. bool tolua_ret = (bool) self->HasColorGradient();
  12493. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  12494. }
  12495. }
  12496. return 1;
  12497. #ifndef TOLUA_RELEASE
  12498. tolua_lerror:
  12499. tolua_error(tolua_S,"#ferror in function 'HasColorGradient'.",&tolua_err);
  12500. return 0;
  12501. #endif
  12502. }
  12503. #endif //#ifndef TOLUA_DISABLE
  12504. /* method: GetFocusMode of class UIElement */
  12505. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetFocusMode00
  12506. static int tolua_UI_UIElement_GetFocusMode00(lua_State* tolua_S)
  12507. {
  12508. #ifndef TOLUA_RELEASE
  12509. tolua_Error tolua_err;
  12510. if (
  12511. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12512. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12513. )
  12514. goto tolua_lerror;
  12515. else
  12516. #endif
  12517. {
  12518. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12519. #ifndef TOLUA_RELEASE
  12520. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetFocusMode'", NULL);
  12521. #endif
  12522. {
  12523. FocusMode tolua_ret = (FocusMode) self->GetFocusMode();
  12524. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12525. }
  12526. }
  12527. return 1;
  12528. #ifndef TOLUA_RELEASE
  12529. tolua_lerror:
  12530. tolua_error(tolua_S,"#ferror in function 'GetFocusMode'.",&tolua_err);
  12531. return 0;
  12532. #endif
  12533. }
  12534. #endif //#ifndef TOLUA_DISABLE
  12535. /* method: GetDragDropMode of class UIElement */
  12536. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDragDropMode00
  12537. static int tolua_UI_UIElement_GetDragDropMode00(lua_State* tolua_S)
  12538. {
  12539. #ifndef TOLUA_RELEASE
  12540. tolua_Error tolua_err;
  12541. if (
  12542. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12543. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12544. )
  12545. goto tolua_lerror;
  12546. else
  12547. #endif
  12548. {
  12549. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12550. #ifndef TOLUA_RELEASE
  12551. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDragDropMode'", NULL);
  12552. #endif
  12553. {
  12554. unsigned tolua_ret = (unsigned) self->GetDragDropMode();
  12555. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12556. }
  12557. }
  12558. return 1;
  12559. #ifndef TOLUA_RELEASE
  12560. tolua_lerror:
  12561. tolua_error(tolua_S,"#ferror in function 'GetDragDropMode'.",&tolua_err);
  12562. return 0;
  12563. #endif
  12564. }
  12565. #endif //#ifndef TOLUA_DISABLE
  12566. /* method: GetAppliedStyle of class UIElement */
  12567. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetAppliedStyle00
  12568. static int tolua_UI_UIElement_GetAppliedStyle00(lua_State* tolua_S)
  12569. {
  12570. #ifndef TOLUA_RELEASE
  12571. tolua_Error tolua_err;
  12572. if (
  12573. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12574. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12575. )
  12576. goto tolua_lerror;
  12577. else
  12578. #endif
  12579. {
  12580. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12581. #ifndef TOLUA_RELEASE
  12582. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetAppliedStyle'", NULL);
  12583. #endif
  12584. {
  12585. const String& tolua_ret = (const String&) self->GetAppliedStyle();
  12586. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const String");
  12587. }
  12588. }
  12589. return 1;
  12590. #ifndef TOLUA_RELEASE
  12591. tolua_lerror:
  12592. tolua_error(tolua_S,"#ferror in function 'GetAppliedStyle'.",&tolua_err);
  12593. return 0;
  12594. #endif
  12595. }
  12596. #endif //#ifndef TOLUA_DISABLE
  12597. /* method: GetDefaultStyle of class UIElement */
  12598. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDefaultStyle00
  12599. static int tolua_UI_UIElement_GetDefaultStyle00(lua_State* tolua_S)
  12600. {
  12601. #ifndef TOLUA_RELEASE
  12602. tolua_Error tolua_err;
  12603. if (
  12604. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12605. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  12606. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12607. )
  12608. goto tolua_lerror;
  12609. else
  12610. #endif
  12611. {
  12612. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12613. bool recursiveUp = ((bool) tolua_toboolean(tolua_S,2,true));
  12614. #ifndef TOLUA_RELEASE
  12615. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDefaultStyle'", NULL);
  12616. #endif
  12617. {
  12618. XMLFile* tolua_ret = (XMLFile*) self->GetDefaultStyle(recursiveUp);
  12619. tolua_pushusertype(tolua_S,(void*)tolua_ret,"XMLFile");
  12620. }
  12621. }
  12622. return 1;
  12623. #ifndef TOLUA_RELEASE
  12624. tolua_lerror:
  12625. tolua_error(tolua_S,"#ferror in function 'GetDefaultStyle'.",&tolua_err);
  12626. return 0;
  12627. #endif
  12628. }
  12629. #endif //#ifndef TOLUA_DISABLE
  12630. /* method: GetLayoutMode of class UIElement */
  12631. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutMode00
  12632. static int tolua_UI_UIElement_GetLayoutMode00(lua_State* tolua_S)
  12633. {
  12634. #ifndef TOLUA_RELEASE
  12635. tolua_Error tolua_err;
  12636. if (
  12637. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12638. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12639. )
  12640. goto tolua_lerror;
  12641. else
  12642. #endif
  12643. {
  12644. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12645. #ifndef TOLUA_RELEASE
  12646. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutMode'", NULL);
  12647. #endif
  12648. {
  12649. LayoutMode tolua_ret = (LayoutMode) self->GetLayoutMode();
  12650. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12651. }
  12652. }
  12653. return 1;
  12654. #ifndef TOLUA_RELEASE
  12655. tolua_lerror:
  12656. tolua_error(tolua_S,"#ferror in function 'GetLayoutMode'.",&tolua_err);
  12657. return 0;
  12658. #endif
  12659. }
  12660. #endif //#ifndef TOLUA_DISABLE
  12661. /* method: GetLayoutSpacing of class UIElement */
  12662. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutSpacing00
  12663. static int tolua_UI_UIElement_GetLayoutSpacing00(lua_State* tolua_S)
  12664. {
  12665. #ifndef TOLUA_RELEASE
  12666. tolua_Error tolua_err;
  12667. if (
  12668. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12669. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12670. )
  12671. goto tolua_lerror;
  12672. else
  12673. #endif
  12674. {
  12675. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12676. #ifndef TOLUA_RELEASE
  12677. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutSpacing'", NULL);
  12678. #endif
  12679. {
  12680. int tolua_ret = (int) self->GetLayoutSpacing();
  12681. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12682. }
  12683. }
  12684. return 1;
  12685. #ifndef TOLUA_RELEASE
  12686. tolua_lerror:
  12687. tolua_error(tolua_S,"#ferror in function 'GetLayoutSpacing'.",&tolua_err);
  12688. return 0;
  12689. #endif
  12690. }
  12691. #endif //#ifndef TOLUA_DISABLE
  12692. /* method: GetLayoutBorder of class UIElement */
  12693. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutBorder00
  12694. static int tolua_UI_UIElement_GetLayoutBorder00(lua_State* tolua_S)
  12695. {
  12696. #ifndef TOLUA_RELEASE
  12697. tolua_Error tolua_err;
  12698. if (
  12699. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12700. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12701. )
  12702. goto tolua_lerror;
  12703. else
  12704. #endif
  12705. {
  12706. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12707. #ifndef TOLUA_RELEASE
  12708. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutBorder'", NULL);
  12709. #endif
  12710. {
  12711. const IntRect& tolua_ret = (const IntRect&) self->GetLayoutBorder();
  12712. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  12713. }
  12714. }
  12715. return 1;
  12716. #ifndef TOLUA_RELEASE
  12717. tolua_lerror:
  12718. tolua_error(tolua_S,"#ferror in function 'GetLayoutBorder'.",&tolua_err);
  12719. return 0;
  12720. #endif
  12721. }
  12722. #endif //#ifndef TOLUA_DISABLE
  12723. /* method: GetNumChildren of class UIElement */
  12724. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetNumChildren00
  12725. static int tolua_UI_UIElement_GetNumChildren00(lua_State* tolua_S)
  12726. {
  12727. #ifndef TOLUA_RELEASE
  12728. tolua_Error tolua_err;
  12729. if (
  12730. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12731. !tolua_isboolean(tolua_S,2,1,&tolua_err) ||
  12732. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12733. )
  12734. goto tolua_lerror;
  12735. else
  12736. #endif
  12737. {
  12738. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12739. bool recursive = ((bool) tolua_toboolean(tolua_S,2,false));
  12740. #ifndef TOLUA_RELEASE
  12741. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetNumChildren'", NULL);
  12742. #endif
  12743. {
  12744. unsigned tolua_ret = (unsigned) self->GetNumChildren(recursive);
  12745. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  12746. }
  12747. }
  12748. return 1;
  12749. #ifndef TOLUA_RELEASE
  12750. tolua_lerror:
  12751. tolua_error(tolua_S,"#ferror in function 'GetNumChildren'.",&tolua_err);
  12752. return 0;
  12753. #endif
  12754. }
  12755. #endif //#ifndef TOLUA_DISABLE
  12756. /* method: GetChild of class UIElement */
  12757. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild00
  12758. static int tolua_UI_UIElement_GetChild00(lua_State* tolua_S)
  12759. {
  12760. #ifndef TOLUA_RELEASE
  12761. tolua_Error tolua_err;
  12762. if (
  12763. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12764. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  12765. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12766. )
  12767. goto tolua_lerror;
  12768. else
  12769. #endif
  12770. {
  12771. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12772. unsigned index = ((unsigned) tolua_tonumber(tolua_S,2,0));
  12773. #ifndef TOLUA_RELEASE
  12774. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12775. #endif
  12776. {
  12777. UIElement* tolua_ret = (UIElement*) self->GetChild(index);
  12778. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12779. }
  12780. }
  12781. return 1;
  12782. #ifndef TOLUA_RELEASE
  12783. tolua_lerror:
  12784. tolua_error(tolua_S,"#ferror in function 'GetChild'.",&tolua_err);
  12785. return 0;
  12786. #endif
  12787. }
  12788. #endif //#ifndef TOLUA_DISABLE
  12789. /* method: GetChild of class UIElement */
  12790. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild01
  12791. static int tolua_UI_UIElement_GetChild01(lua_State* tolua_S)
  12792. {
  12793. tolua_Error tolua_err;
  12794. if (
  12795. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12796. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const String",0,&tolua_err)) ||
  12797. !tolua_isboolean(tolua_S,3,1,&tolua_err) ||
  12798. !tolua_isnoobj(tolua_S,4,&tolua_err)
  12799. )
  12800. goto tolua_lerror;
  12801. else
  12802. {
  12803. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12804. const String* name = ((const String*) tolua_tousertype(tolua_S,2,0));
  12805. bool recursive = ((bool) tolua_toboolean(tolua_S,3,false));
  12806. #ifndef TOLUA_RELEASE
  12807. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12808. #endif
  12809. {
  12810. UIElement* tolua_ret = (UIElement*) self->GetChild(*name,recursive);
  12811. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12812. }
  12813. }
  12814. return 1;
  12815. tolua_lerror:
  12816. return tolua_UI_UIElement_GetChild00(tolua_S);
  12817. }
  12818. #endif //#ifndef TOLUA_DISABLE
  12819. /* method: GetChild of class UIElement */
  12820. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild02
  12821. static int tolua_UI_UIElement_GetChild02(lua_State* tolua_S)
  12822. {
  12823. tolua_Error tolua_err;
  12824. if (
  12825. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12826. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  12827. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12828. )
  12829. goto tolua_lerror;
  12830. else
  12831. {
  12832. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12833. const ShortStringHash* key = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  12834. #ifndef TOLUA_RELEASE
  12835. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12836. #endif
  12837. {
  12838. UIElement* tolua_ret = (UIElement*) self->GetChild(*key);
  12839. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12840. }
  12841. }
  12842. return 1;
  12843. tolua_lerror:
  12844. return tolua_UI_UIElement_GetChild01(tolua_S);
  12845. }
  12846. #endif //#ifndef TOLUA_DISABLE
  12847. /* method: GetChild of class UIElement */
  12848. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetChild03
  12849. static int tolua_UI_UIElement_GetChild03(lua_State* tolua_S)
  12850. {
  12851. tolua_Error tolua_err;
  12852. if (
  12853. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12854. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const ShortStringHash",0,&tolua_err)) ||
  12855. (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"const Variant",0,&tolua_err)) ||
  12856. !tolua_isboolean(tolua_S,4,1,&tolua_err) ||
  12857. !tolua_isnoobj(tolua_S,5,&tolua_err)
  12858. )
  12859. goto tolua_lerror;
  12860. else
  12861. {
  12862. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12863. const ShortStringHash* key = ((const ShortStringHash*) tolua_tousertype(tolua_S,2,0));
  12864. const Variant* value = ((const Variant*) tolua_tousertype(tolua_S,3,0));
  12865. bool recursive = ((bool) tolua_toboolean(tolua_S,4,false));
  12866. #ifndef TOLUA_RELEASE
  12867. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetChild'", NULL);
  12868. #endif
  12869. {
  12870. UIElement* tolua_ret = (UIElement*) self->GetChild(*key,*value,recursive);
  12871. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12872. }
  12873. }
  12874. return 1;
  12875. tolua_lerror:
  12876. return tolua_UI_UIElement_GetChild02(tolua_S);
  12877. }
  12878. #endif //#ifndef TOLUA_DISABLE
  12879. /* method: GetParent of class UIElement */
  12880. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetParent00
  12881. static int tolua_UI_UIElement_GetParent00(lua_State* tolua_S)
  12882. {
  12883. #ifndef TOLUA_RELEASE
  12884. tolua_Error tolua_err;
  12885. if (
  12886. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12887. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12888. )
  12889. goto tolua_lerror;
  12890. else
  12891. #endif
  12892. {
  12893. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12894. #ifndef TOLUA_RELEASE
  12895. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetParent'", NULL);
  12896. #endif
  12897. {
  12898. UIElement* tolua_ret = (UIElement*) self->GetParent();
  12899. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12900. }
  12901. }
  12902. return 1;
  12903. #ifndef TOLUA_RELEASE
  12904. tolua_lerror:
  12905. tolua_error(tolua_S,"#ferror in function 'GetParent'.",&tolua_err);
  12906. return 0;
  12907. #endif
  12908. }
  12909. #endif //#ifndef TOLUA_DISABLE
  12910. /* method: GetRoot of class UIElement */
  12911. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetRoot00
  12912. static int tolua_UI_UIElement_GetRoot00(lua_State* tolua_S)
  12913. {
  12914. #ifndef TOLUA_RELEASE
  12915. tolua_Error tolua_err;
  12916. if (
  12917. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12918. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12919. )
  12920. goto tolua_lerror;
  12921. else
  12922. #endif
  12923. {
  12924. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12925. #ifndef TOLUA_RELEASE
  12926. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetRoot'", NULL);
  12927. #endif
  12928. {
  12929. UIElement* tolua_ret = (UIElement*) self->GetRoot();
  12930. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  12931. }
  12932. }
  12933. return 1;
  12934. #ifndef TOLUA_RELEASE
  12935. tolua_lerror:
  12936. tolua_error(tolua_S,"#ferror in function 'GetRoot'.",&tolua_err);
  12937. return 0;
  12938. #endif
  12939. }
  12940. #endif //#ifndef TOLUA_DISABLE
  12941. /* method: GetDerivedColor of class UIElement */
  12942. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetDerivedColor00
  12943. static int tolua_UI_UIElement_GetDerivedColor00(lua_State* tolua_S)
  12944. {
  12945. #ifndef TOLUA_RELEASE
  12946. tolua_Error tolua_err;
  12947. if (
  12948. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  12949. !tolua_isnoobj(tolua_S,2,&tolua_err)
  12950. )
  12951. goto tolua_lerror;
  12952. else
  12953. #endif
  12954. {
  12955. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  12956. #ifndef TOLUA_RELEASE
  12957. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetDerivedColor'", NULL);
  12958. #endif
  12959. {
  12960. const Color& tolua_ret = (const Color&) self->GetDerivedColor();
  12961. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  12962. }
  12963. }
  12964. return 1;
  12965. #ifndef TOLUA_RELEASE
  12966. tolua_lerror:
  12967. tolua_error(tolua_S,"#ferror in function 'GetDerivedColor'.",&tolua_err);
  12968. return 0;
  12969. #endif
  12970. }
  12971. #endif //#ifndef TOLUA_DISABLE
  12972. /* method: ScreenToElement of class UIElement */
  12973. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_ScreenToElement00
  12974. static int tolua_UI_UIElement_ScreenToElement00(lua_State* tolua_S)
  12975. {
  12976. #ifndef TOLUA_RELEASE
  12977. tolua_Error tolua_err;
  12978. if (
  12979. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  12980. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  12981. !tolua_isnoobj(tolua_S,3,&tolua_err)
  12982. )
  12983. goto tolua_lerror;
  12984. else
  12985. #endif
  12986. {
  12987. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  12988. const IntVector2* screenPosition = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  12989. #ifndef TOLUA_RELEASE
  12990. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ScreenToElement'", NULL);
  12991. #endif
  12992. {
  12993. IntVector2 tolua_ret = (IntVector2) self->ScreenToElement(*screenPosition);
  12994. {
  12995. #ifdef __cplusplus
  12996. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  12997. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  12998. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  12999. #else
  13000. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  13001. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  13002. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  13003. #endif
  13004. }
  13005. }
  13006. }
  13007. return 1;
  13008. #ifndef TOLUA_RELEASE
  13009. tolua_lerror:
  13010. tolua_error(tolua_S,"#ferror in function 'ScreenToElement'.",&tolua_err);
  13011. return 0;
  13012. #endif
  13013. }
  13014. #endif //#ifndef TOLUA_DISABLE
  13015. /* method: ElementToScreen of class UIElement */
  13016. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_ElementToScreen00
  13017. static int tolua_UI_UIElement_ElementToScreen00(lua_State* tolua_S)
  13018. {
  13019. #ifndef TOLUA_RELEASE
  13020. tolua_Error tolua_err;
  13021. if (
  13022. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13023. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  13024. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13025. )
  13026. goto tolua_lerror;
  13027. else
  13028. #endif
  13029. {
  13030. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13031. const IntVector2* position = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  13032. #ifndef TOLUA_RELEASE
  13033. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ElementToScreen'", NULL);
  13034. #endif
  13035. {
  13036. IntVector2 tolua_ret = (IntVector2) self->ElementToScreen(*position);
  13037. {
  13038. #ifdef __cplusplus
  13039. void* tolua_obj = Mtolua_new((IntVector2)(tolua_ret));
  13040. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  13041. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  13042. #else
  13043. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntVector2));
  13044. tolua_pushusertype(tolua_S,tolua_obj,"IntVector2");
  13045. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  13046. #endif
  13047. }
  13048. }
  13049. }
  13050. return 1;
  13051. #ifndef TOLUA_RELEASE
  13052. tolua_lerror:
  13053. tolua_error(tolua_S,"#ferror in function 'ElementToScreen'.",&tolua_err);
  13054. return 0;
  13055. #endif
  13056. }
  13057. #endif //#ifndef TOLUA_DISABLE
  13058. /* method: IsInside of class UIElement */
  13059. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInside00
  13060. static int tolua_UI_UIElement_IsInside00(lua_State* tolua_S)
  13061. {
  13062. #ifndef TOLUA_RELEASE
  13063. tolua_Error tolua_err;
  13064. if (
  13065. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13066. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)) ||
  13067. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  13068. !tolua_isnoobj(tolua_S,4,&tolua_err)
  13069. )
  13070. goto tolua_lerror;
  13071. else
  13072. #endif
  13073. {
  13074. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13075. IntVector2 position = *((IntVector2*) tolua_tousertype(tolua_S,2,0));
  13076. bool isScreen = ((bool) tolua_toboolean(tolua_S,3,0));
  13077. #ifndef TOLUA_RELEASE
  13078. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInside'", NULL);
  13079. #endif
  13080. {
  13081. bool tolua_ret = (bool) self->IsInside(position,isScreen);
  13082. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13083. }
  13084. }
  13085. return 1;
  13086. #ifndef TOLUA_RELEASE
  13087. tolua_lerror:
  13088. tolua_error(tolua_S,"#ferror in function 'IsInside'.",&tolua_err);
  13089. return 0;
  13090. #endif
  13091. }
  13092. #endif //#ifndef TOLUA_DISABLE
  13093. /* method: IsInsideCombined of class UIElement */
  13094. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsInsideCombined00
  13095. static int tolua_UI_UIElement_IsInsideCombined00(lua_State* tolua_S)
  13096. {
  13097. #ifndef TOLUA_RELEASE
  13098. tolua_Error tolua_err;
  13099. if (
  13100. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13101. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntVector2",0,&tolua_err)) ||
  13102. !tolua_isboolean(tolua_S,3,0,&tolua_err) ||
  13103. !tolua_isnoobj(tolua_S,4,&tolua_err)
  13104. )
  13105. goto tolua_lerror;
  13106. else
  13107. #endif
  13108. {
  13109. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13110. IntVector2 position = *((IntVector2*) tolua_tousertype(tolua_S,2,0));
  13111. bool isScreen = ((bool) tolua_toboolean(tolua_S,3,0));
  13112. #ifndef TOLUA_RELEASE
  13113. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsInsideCombined'", NULL);
  13114. #endif
  13115. {
  13116. bool tolua_ret = (bool) self->IsInsideCombined(position,isScreen);
  13117. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13118. }
  13119. }
  13120. return 1;
  13121. #ifndef TOLUA_RELEASE
  13122. tolua_lerror:
  13123. tolua_error(tolua_S,"#ferror in function 'IsInsideCombined'.",&tolua_err);
  13124. return 0;
  13125. #endif
  13126. }
  13127. #endif //#ifndef TOLUA_DISABLE
  13128. /* method: GetCombinedScreenRect of class UIElement */
  13129. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetCombinedScreenRect00
  13130. static int tolua_UI_UIElement_GetCombinedScreenRect00(lua_State* tolua_S)
  13131. {
  13132. #ifndef TOLUA_RELEASE
  13133. tolua_Error tolua_err;
  13134. if (
  13135. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13136. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13137. )
  13138. goto tolua_lerror;
  13139. else
  13140. #endif
  13141. {
  13142. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13143. #ifndef TOLUA_RELEASE
  13144. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetCombinedScreenRect'", NULL);
  13145. #endif
  13146. {
  13147. IntRect tolua_ret = (IntRect) self->GetCombinedScreenRect();
  13148. {
  13149. #ifdef __cplusplus
  13150. void* tolua_obj = Mtolua_new((IntRect)(tolua_ret));
  13151. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  13152. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  13153. #else
  13154. void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(IntRect));
  13155. tolua_pushusertype(tolua_S,tolua_obj,"IntRect");
  13156. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  13157. #endif
  13158. }
  13159. }
  13160. }
  13161. return 1;
  13162. #ifndef TOLUA_RELEASE
  13163. tolua_lerror:
  13164. tolua_error(tolua_S,"#ferror in function 'GetCombinedScreenRect'.",&tolua_err);
  13165. return 0;
  13166. #endif
  13167. }
  13168. #endif //#ifndef TOLUA_DISABLE
  13169. /* method: SortChildren of class UIElement */
  13170. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SortChildren00
  13171. static int tolua_UI_UIElement_SortChildren00(lua_State* tolua_S)
  13172. {
  13173. #ifndef TOLUA_RELEASE
  13174. tolua_Error tolua_err;
  13175. if (
  13176. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13177. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13178. )
  13179. goto tolua_lerror;
  13180. else
  13181. #endif
  13182. {
  13183. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13184. #ifndef TOLUA_RELEASE
  13185. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SortChildren'", NULL);
  13186. #endif
  13187. {
  13188. self->SortChildren();
  13189. }
  13190. }
  13191. return 0;
  13192. #ifndef TOLUA_RELEASE
  13193. tolua_lerror:
  13194. tolua_error(tolua_S,"#ferror in function 'SortChildren'.",&tolua_err);
  13195. return 0;
  13196. #endif
  13197. }
  13198. #endif //#ifndef TOLUA_DISABLE
  13199. /* method: GetLayoutMinSize of class UIElement */
  13200. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetLayoutMinSize00
  13201. static int tolua_UI_UIElement_GetLayoutMinSize00(lua_State* tolua_S)
  13202. {
  13203. #ifndef TOLUA_RELEASE
  13204. tolua_Error tolua_err;
  13205. if (
  13206. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13207. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13208. )
  13209. goto tolua_lerror;
  13210. else
  13211. #endif
  13212. {
  13213. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13214. #ifndef TOLUA_RELEASE
  13215. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetLayoutMinSize'", NULL);
  13216. #endif
  13217. {
  13218. int tolua_ret = (int) self->GetLayoutMinSize();
  13219. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13220. }
  13221. }
  13222. return 1;
  13223. #ifndef TOLUA_RELEASE
  13224. tolua_lerror:
  13225. tolua_error(tolua_S,"#ferror in function 'GetLayoutMinSize'.",&tolua_err);
  13226. return 0;
  13227. #endif
  13228. }
  13229. #endif //#ifndef TOLUA_DISABLE
  13230. /* method: GetIndent of class UIElement */
  13231. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndent00
  13232. static int tolua_UI_UIElement_GetIndent00(lua_State* tolua_S)
  13233. {
  13234. #ifndef TOLUA_RELEASE
  13235. tolua_Error tolua_err;
  13236. if (
  13237. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13238. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13239. )
  13240. goto tolua_lerror;
  13241. else
  13242. #endif
  13243. {
  13244. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13245. #ifndef TOLUA_RELEASE
  13246. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndent'", NULL);
  13247. #endif
  13248. {
  13249. int tolua_ret = (int) self->GetIndent();
  13250. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13251. }
  13252. }
  13253. return 1;
  13254. #ifndef TOLUA_RELEASE
  13255. tolua_lerror:
  13256. tolua_error(tolua_S,"#ferror in function 'GetIndent'.",&tolua_err);
  13257. return 0;
  13258. #endif
  13259. }
  13260. #endif //#ifndef TOLUA_DISABLE
  13261. /* method: GetIndentSpacing of class UIElement */
  13262. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndentSpacing00
  13263. static int tolua_UI_UIElement_GetIndentSpacing00(lua_State* tolua_S)
  13264. {
  13265. #ifndef TOLUA_RELEASE
  13266. tolua_Error tolua_err;
  13267. if (
  13268. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13269. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13270. )
  13271. goto tolua_lerror;
  13272. else
  13273. #endif
  13274. {
  13275. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13276. #ifndef TOLUA_RELEASE
  13277. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndentSpacing'", NULL);
  13278. #endif
  13279. {
  13280. int tolua_ret = (int) self->GetIndentSpacing();
  13281. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13282. }
  13283. }
  13284. return 1;
  13285. #ifndef TOLUA_RELEASE
  13286. tolua_lerror:
  13287. tolua_error(tolua_S,"#ferror in function 'GetIndentSpacing'.",&tolua_err);
  13288. return 0;
  13289. #endif
  13290. }
  13291. #endif //#ifndef TOLUA_DISABLE
  13292. /* method: GetIndentWidth of class UIElement */
  13293. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetIndentWidth00
  13294. static int tolua_UI_UIElement_GetIndentWidth00(lua_State* tolua_S)
  13295. {
  13296. #ifndef TOLUA_RELEASE
  13297. tolua_Error tolua_err;
  13298. if (
  13299. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13300. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13301. )
  13302. goto tolua_lerror;
  13303. else
  13304. #endif
  13305. {
  13306. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13307. #ifndef TOLUA_RELEASE
  13308. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetIndentWidth'", NULL);
  13309. #endif
  13310. {
  13311. int tolua_ret = (int) self->GetIndentWidth();
  13312. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13313. }
  13314. }
  13315. return 1;
  13316. #ifndef TOLUA_RELEASE
  13317. tolua_lerror:
  13318. tolua_error(tolua_S,"#ferror in function 'GetIndentWidth'.",&tolua_err);
  13319. return 0;
  13320. #endif
  13321. }
  13322. #endif //#ifndef TOLUA_DISABLE
  13323. /* method: SetChildOffset of class UIElement */
  13324. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetChildOffset00
  13325. static int tolua_UI_UIElement_SetChildOffset00(lua_State* tolua_S)
  13326. {
  13327. #ifndef TOLUA_RELEASE
  13328. tolua_Error tolua_err;
  13329. if (
  13330. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13331. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  13332. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13333. )
  13334. goto tolua_lerror;
  13335. else
  13336. #endif
  13337. {
  13338. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13339. const IntVector2* offset = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  13340. #ifndef TOLUA_RELEASE
  13341. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetChildOffset'", NULL);
  13342. #endif
  13343. {
  13344. self->SetChildOffset(*offset);
  13345. }
  13346. }
  13347. return 0;
  13348. #ifndef TOLUA_RELEASE
  13349. tolua_lerror:
  13350. tolua_error(tolua_S,"#ferror in function 'SetChildOffset'.",&tolua_err);
  13351. return 0;
  13352. #endif
  13353. }
  13354. #endif //#ifndef TOLUA_DISABLE
  13355. /* method: SetHovering of class UIElement */
  13356. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetHovering00
  13357. static int tolua_UI_UIElement_SetHovering00(lua_State* tolua_S)
  13358. {
  13359. #ifndef TOLUA_RELEASE
  13360. tolua_Error tolua_err;
  13361. if (
  13362. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13363. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13364. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13365. )
  13366. goto tolua_lerror;
  13367. else
  13368. #endif
  13369. {
  13370. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13371. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13372. #ifndef TOLUA_RELEASE
  13373. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetHovering'", NULL);
  13374. #endif
  13375. {
  13376. self->SetHovering(enable);
  13377. }
  13378. }
  13379. return 0;
  13380. #ifndef TOLUA_RELEASE
  13381. tolua_lerror:
  13382. tolua_error(tolua_S,"#ferror in function 'SetHovering'.",&tolua_err);
  13383. return 0;
  13384. #endif
  13385. }
  13386. #endif //#ifndef TOLUA_DISABLE
  13387. /* method: SetTempVisible of class UIElement */
  13388. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_SetTempVisible00
  13389. static int tolua_UI_UIElement_SetTempVisible00(lua_State* tolua_S)
  13390. {
  13391. #ifndef TOLUA_RELEASE
  13392. tolua_Error tolua_err;
  13393. if (
  13394. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13395. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13396. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13397. )
  13398. goto tolua_lerror;
  13399. else
  13400. #endif
  13401. {
  13402. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13403. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13404. #ifndef TOLUA_RELEASE
  13405. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetTempVisible'", NULL);
  13406. #endif
  13407. {
  13408. self->SetTempVisible(enable);
  13409. }
  13410. }
  13411. return 0;
  13412. #ifndef TOLUA_RELEASE
  13413. tolua_lerror:
  13414. tolua_error(tolua_S,"#ferror in function 'SetTempVisible'.",&tolua_err);
  13415. return 0;
  13416. #endif
  13417. }
  13418. #endif //#ifndef TOLUA_DISABLE
  13419. /* method: AdjustScissor of class UIElement */
  13420. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_AdjustScissor00
  13421. static int tolua_UI_UIElement_AdjustScissor00(lua_State* tolua_S)
  13422. {
  13423. #ifndef TOLUA_RELEASE
  13424. tolua_Error tolua_err;
  13425. if (
  13426. !tolua_isusertype(tolua_S,1,"UIElement",0,&tolua_err) ||
  13427. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"IntRect",0,&tolua_err)) ||
  13428. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13429. )
  13430. goto tolua_lerror;
  13431. else
  13432. #endif
  13433. {
  13434. UIElement* self = (UIElement*) tolua_tousertype(tolua_S,1,0);
  13435. IntRect* currentScissor = ((IntRect*) tolua_tousertype(tolua_S,2,0));
  13436. #ifndef TOLUA_RELEASE
  13437. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'AdjustScissor'", NULL);
  13438. #endif
  13439. {
  13440. self->AdjustScissor(*currentScissor);
  13441. }
  13442. }
  13443. return 0;
  13444. #ifndef TOLUA_RELEASE
  13445. tolua_lerror:
  13446. tolua_error(tolua_S,"#ferror in function 'AdjustScissor'.",&tolua_err);
  13447. return 0;
  13448. #endif
  13449. }
  13450. #endif //#ifndef TOLUA_DISABLE
  13451. /* method: GetColorAttr of class UIElement */
  13452. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetColorAttr00
  13453. static int tolua_UI_UIElement_GetColorAttr00(lua_State* tolua_S)
  13454. {
  13455. #ifndef TOLUA_RELEASE
  13456. tolua_Error tolua_err;
  13457. if (
  13458. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13459. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13460. )
  13461. goto tolua_lerror;
  13462. else
  13463. #endif
  13464. {
  13465. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13466. #ifndef TOLUA_RELEASE
  13467. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetColorAttr'", NULL);
  13468. #endif
  13469. {
  13470. const Color& tolua_ret = (const Color&) self->GetColorAttr();
  13471. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  13472. }
  13473. }
  13474. return 1;
  13475. #ifndef TOLUA_RELEASE
  13476. tolua_lerror:
  13477. tolua_error(tolua_S,"#ferror in function 'GetColorAttr'.",&tolua_err);
  13478. return 0;
  13479. #endif
  13480. }
  13481. #endif //#ifndef TOLUA_DISABLE
  13482. /* method: GetTraversalMode of class UIElement */
  13483. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetTraversalMode00
  13484. static int tolua_UI_UIElement_GetTraversalMode00(lua_State* tolua_S)
  13485. {
  13486. #ifndef TOLUA_RELEASE
  13487. tolua_Error tolua_err;
  13488. if (
  13489. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13490. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13491. )
  13492. goto tolua_lerror;
  13493. else
  13494. #endif
  13495. {
  13496. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13497. #ifndef TOLUA_RELEASE
  13498. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetTraversalMode'", NULL);
  13499. #endif
  13500. {
  13501. TraversalMode tolua_ret = (TraversalMode) self->GetTraversalMode();
  13502. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  13503. }
  13504. }
  13505. return 1;
  13506. #ifndef TOLUA_RELEASE
  13507. tolua_lerror:
  13508. tolua_error(tolua_S,"#ferror in function 'GetTraversalMode'.",&tolua_err);
  13509. return 0;
  13510. #endif
  13511. }
  13512. #endif //#ifndef TOLUA_DISABLE
  13513. /* method: IsElementEventSender of class UIElement */
  13514. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_IsElementEventSender00
  13515. static int tolua_UI_UIElement_IsElementEventSender00(lua_State* tolua_S)
  13516. {
  13517. #ifndef TOLUA_RELEASE
  13518. tolua_Error tolua_err;
  13519. if (
  13520. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13521. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13522. )
  13523. goto tolua_lerror;
  13524. else
  13525. #endif
  13526. {
  13527. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13528. #ifndef TOLUA_RELEASE
  13529. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsElementEventSender'", NULL);
  13530. #endif
  13531. {
  13532. bool tolua_ret = (bool) self->IsElementEventSender();
  13533. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13534. }
  13535. }
  13536. return 1;
  13537. #ifndef TOLUA_RELEASE
  13538. tolua_lerror:
  13539. tolua_error(tolua_S,"#ferror in function 'IsElementEventSender'.",&tolua_err);
  13540. return 0;
  13541. #endif
  13542. }
  13543. #endif //#ifndef TOLUA_DISABLE
  13544. /* method: GetElementEventSender of class UIElement */
  13545. #ifndef TOLUA_DISABLE_tolua_UI_UIElement_GetElementEventSender00
  13546. static int tolua_UI_UIElement_GetElementEventSender00(lua_State* tolua_S)
  13547. {
  13548. #ifndef TOLUA_RELEASE
  13549. tolua_Error tolua_err;
  13550. if (
  13551. !tolua_isusertype(tolua_S,1,"const UIElement",0,&tolua_err) ||
  13552. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13553. )
  13554. goto tolua_lerror;
  13555. else
  13556. #endif
  13557. {
  13558. const UIElement* self = (const UIElement*) tolua_tousertype(tolua_S,1,0);
  13559. #ifndef TOLUA_RELEASE
  13560. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetElementEventSender'", NULL);
  13561. #endif
  13562. {
  13563. UIElement* tolua_ret = (UIElement*) self->GetElementEventSender();
  13564. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  13565. }
  13566. }
  13567. return 1;
  13568. #ifndef TOLUA_RELEASE
  13569. tolua_lerror:
  13570. tolua_error(tolua_S,"#ferror in function 'GetElementEventSender'.",&tolua_err);
  13571. return 0;
  13572. #endif
  13573. }
  13574. #endif //#ifndef TOLUA_DISABLE
  13575. /* function: NewUIElement */
  13576. #ifndef TOLUA_DISABLE_tolua_UI_UIElement00
  13577. static int tolua_UI_UIElement00(lua_State* tolua_S)
  13578. {
  13579. #ifndef TOLUA_RELEASE
  13580. tolua_Error tolua_err;
  13581. if (
  13582. !tolua_isnoobj(tolua_S,1,&tolua_err)
  13583. )
  13584. goto tolua_lerror;
  13585. else
  13586. #endif
  13587. {
  13588. {
  13589. UIElement* tolua_ret = (UIElement*) NewUIElement();
  13590. tolua_pushusertype(tolua_S,(void*)tolua_ret,"UIElement");
  13591. }
  13592. }
  13593. return 1;
  13594. #ifndef TOLUA_RELEASE
  13595. tolua_lerror:
  13596. tolua_error(tolua_S,"#ferror in function 'UIElement'.",&tolua_err);
  13597. return 0;
  13598. #endif
  13599. }
  13600. #endif //#ifndef TOLUA_DISABLE
  13601. /* method: SetMovable of class Window */
  13602. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetMovable00
  13603. static int tolua_UI_Window_SetMovable00(lua_State* tolua_S)
  13604. {
  13605. #ifndef TOLUA_RELEASE
  13606. tolua_Error tolua_err;
  13607. if (
  13608. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13609. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13610. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13611. )
  13612. goto tolua_lerror;
  13613. else
  13614. #endif
  13615. {
  13616. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13617. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13618. #ifndef TOLUA_RELEASE
  13619. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetMovable'", NULL);
  13620. #endif
  13621. {
  13622. self->SetMovable(enable);
  13623. }
  13624. }
  13625. return 0;
  13626. #ifndef TOLUA_RELEASE
  13627. tolua_lerror:
  13628. tolua_error(tolua_S,"#ferror in function 'SetMovable'.",&tolua_err);
  13629. return 0;
  13630. #endif
  13631. }
  13632. #endif //#ifndef TOLUA_DISABLE
  13633. /* method: SetResizable of class Window */
  13634. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetResizable00
  13635. static int tolua_UI_Window_SetResizable00(lua_State* tolua_S)
  13636. {
  13637. #ifndef TOLUA_RELEASE
  13638. tolua_Error tolua_err;
  13639. if (
  13640. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13641. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13642. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13643. )
  13644. goto tolua_lerror;
  13645. else
  13646. #endif
  13647. {
  13648. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13649. bool enable = ((bool) tolua_toboolean(tolua_S,2,0));
  13650. #ifndef TOLUA_RELEASE
  13651. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizable'", NULL);
  13652. #endif
  13653. {
  13654. self->SetResizable(enable);
  13655. }
  13656. }
  13657. return 0;
  13658. #ifndef TOLUA_RELEASE
  13659. tolua_lerror:
  13660. tolua_error(tolua_S,"#ferror in function 'SetResizable'.",&tolua_err);
  13661. return 0;
  13662. #endif
  13663. }
  13664. #endif //#ifndef TOLUA_DISABLE
  13665. /* method: SetResizeBorder of class Window */
  13666. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetResizeBorder00
  13667. static int tolua_UI_Window_SetResizeBorder00(lua_State* tolua_S)
  13668. {
  13669. #ifndef TOLUA_RELEASE
  13670. tolua_Error tolua_err;
  13671. if (
  13672. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13673. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntRect",0,&tolua_err)) ||
  13674. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13675. )
  13676. goto tolua_lerror;
  13677. else
  13678. #endif
  13679. {
  13680. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13681. const IntRect* rect = ((const IntRect*) tolua_tousertype(tolua_S,2,0));
  13682. #ifndef TOLUA_RELEASE
  13683. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetResizeBorder'", NULL);
  13684. #endif
  13685. {
  13686. self->SetResizeBorder(*rect);
  13687. }
  13688. }
  13689. return 0;
  13690. #ifndef TOLUA_RELEASE
  13691. tolua_lerror:
  13692. tolua_error(tolua_S,"#ferror in function 'SetResizeBorder'.",&tolua_err);
  13693. return 0;
  13694. #endif
  13695. }
  13696. #endif //#ifndef TOLUA_DISABLE
  13697. /* method: SetModal of class Window */
  13698. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModal00
  13699. static int tolua_UI_Window_SetModal00(lua_State* tolua_S)
  13700. {
  13701. #ifndef TOLUA_RELEASE
  13702. tolua_Error tolua_err;
  13703. if (
  13704. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13705. !tolua_isboolean(tolua_S,2,0,&tolua_err) ||
  13706. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13707. )
  13708. goto tolua_lerror;
  13709. else
  13710. #endif
  13711. {
  13712. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13713. bool modal = ((bool) tolua_toboolean(tolua_S,2,0));
  13714. #ifndef TOLUA_RELEASE
  13715. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModal'", NULL);
  13716. #endif
  13717. {
  13718. self->SetModal(modal);
  13719. }
  13720. }
  13721. return 0;
  13722. #ifndef TOLUA_RELEASE
  13723. tolua_lerror:
  13724. tolua_error(tolua_S,"#ferror in function 'SetModal'.",&tolua_err);
  13725. return 0;
  13726. #endif
  13727. }
  13728. #endif //#ifndef TOLUA_DISABLE
  13729. /* method: SetModalShadeColor of class Window */
  13730. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalShadeColor00
  13731. static int tolua_UI_Window_SetModalShadeColor00(lua_State* tolua_S)
  13732. {
  13733. #ifndef TOLUA_RELEASE
  13734. tolua_Error tolua_err;
  13735. if (
  13736. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13737. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  13738. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13739. )
  13740. goto tolua_lerror;
  13741. else
  13742. #endif
  13743. {
  13744. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13745. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  13746. #ifndef TOLUA_RELEASE
  13747. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalShadeColor'", NULL);
  13748. #endif
  13749. {
  13750. self->SetModalShadeColor(*color);
  13751. }
  13752. }
  13753. return 0;
  13754. #ifndef TOLUA_RELEASE
  13755. tolua_lerror:
  13756. tolua_error(tolua_S,"#ferror in function 'SetModalShadeColor'.",&tolua_err);
  13757. return 0;
  13758. #endif
  13759. }
  13760. #endif //#ifndef TOLUA_DISABLE
  13761. /* method: SetModalFrameColor of class Window */
  13762. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalFrameColor00
  13763. static int tolua_UI_Window_SetModalFrameColor00(lua_State* tolua_S)
  13764. {
  13765. #ifndef TOLUA_RELEASE
  13766. tolua_Error tolua_err;
  13767. if (
  13768. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13769. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Color",0,&tolua_err)) ||
  13770. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13771. )
  13772. goto tolua_lerror;
  13773. else
  13774. #endif
  13775. {
  13776. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13777. const Color* color = ((const Color*) tolua_tousertype(tolua_S,2,0));
  13778. #ifndef TOLUA_RELEASE
  13779. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalFrameColor'", NULL);
  13780. #endif
  13781. {
  13782. self->SetModalFrameColor(*color);
  13783. }
  13784. }
  13785. return 0;
  13786. #ifndef TOLUA_RELEASE
  13787. tolua_lerror:
  13788. tolua_error(tolua_S,"#ferror in function 'SetModalFrameColor'.",&tolua_err);
  13789. return 0;
  13790. #endif
  13791. }
  13792. #endif //#ifndef TOLUA_DISABLE
  13793. /* method: SetModalFrameSize of class Window */
  13794. #ifndef TOLUA_DISABLE_tolua_UI_Window_SetModalFrameSize00
  13795. static int tolua_UI_Window_SetModalFrameSize00(lua_State* tolua_S)
  13796. {
  13797. #ifndef TOLUA_RELEASE
  13798. tolua_Error tolua_err;
  13799. if (
  13800. !tolua_isusertype(tolua_S,1,"Window",0,&tolua_err) ||
  13801. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const IntVector2",0,&tolua_err)) ||
  13802. !tolua_isnoobj(tolua_S,3,&tolua_err)
  13803. )
  13804. goto tolua_lerror;
  13805. else
  13806. #endif
  13807. {
  13808. Window* self = (Window*) tolua_tousertype(tolua_S,1,0);
  13809. const IntVector2* size = ((const IntVector2*) tolua_tousertype(tolua_S,2,0));
  13810. #ifndef TOLUA_RELEASE
  13811. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetModalFrameSize'", NULL);
  13812. #endif
  13813. {
  13814. self->SetModalFrameSize(*size);
  13815. }
  13816. }
  13817. return 0;
  13818. #ifndef TOLUA_RELEASE
  13819. tolua_lerror:
  13820. tolua_error(tolua_S,"#ferror in function 'SetModalFrameSize'.",&tolua_err);
  13821. return 0;
  13822. #endif
  13823. }
  13824. #endif //#ifndef TOLUA_DISABLE
  13825. /* method: IsMovable of class Window */
  13826. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsMovable00
  13827. static int tolua_UI_Window_IsMovable00(lua_State* tolua_S)
  13828. {
  13829. #ifndef TOLUA_RELEASE
  13830. tolua_Error tolua_err;
  13831. if (
  13832. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13833. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13834. )
  13835. goto tolua_lerror;
  13836. else
  13837. #endif
  13838. {
  13839. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13840. #ifndef TOLUA_RELEASE
  13841. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsMovable'", NULL);
  13842. #endif
  13843. {
  13844. bool tolua_ret = (bool) self->IsMovable();
  13845. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13846. }
  13847. }
  13848. return 1;
  13849. #ifndef TOLUA_RELEASE
  13850. tolua_lerror:
  13851. tolua_error(tolua_S,"#ferror in function 'IsMovable'.",&tolua_err);
  13852. return 0;
  13853. #endif
  13854. }
  13855. #endif //#ifndef TOLUA_DISABLE
  13856. /* method: IsResizable of class Window */
  13857. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsResizable00
  13858. static int tolua_UI_Window_IsResizable00(lua_State* tolua_S)
  13859. {
  13860. #ifndef TOLUA_RELEASE
  13861. tolua_Error tolua_err;
  13862. if (
  13863. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13864. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13865. )
  13866. goto tolua_lerror;
  13867. else
  13868. #endif
  13869. {
  13870. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13871. #ifndef TOLUA_RELEASE
  13872. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsResizable'", NULL);
  13873. #endif
  13874. {
  13875. bool tolua_ret = (bool) self->IsResizable();
  13876. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13877. }
  13878. }
  13879. return 1;
  13880. #ifndef TOLUA_RELEASE
  13881. tolua_lerror:
  13882. tolua_error(tolua_S,"#ferror in function 'IsResizable'.",&tolua_err);
  13883. return 0;
  13884. #endif
  13885. }
  13886. #endif //#ifndef TOLUA_DISABLE
  13887. /* method: GetResizeBorder of class Window */
  13888. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetResizeBorder00
  13889. static int tolua_UI_Window_GetResizeBorder00(lua_State* tolua_S)
  13890. {
  13891. #ifndef TOLUA_RELEASE
  13892. tolua_Error tolua_err;
  13893. if (
  13894. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13895. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13896. )
  13897. goto tolua_lerror;
  13898. else
  13899. #endif
  13900. {
  13901. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13902. #ifndef TOLUA_RELEASE
  13903. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetResizeBorder'", NULL);
  13904. #endif
  13905. {
  13906. const IntRect& tolua_ret = (const IntRect&) self->GetResizeBorder();
  13907. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntRect");
  13908. }
  13909. }
  13910. return 1;
  13911. #ifndef TOLUA_RELEASE
  13912. tolua_lerror:
  13913. tolua_error(tolua_S,"#ferror in function 'GetResizeBorder'.",&tolua_err);
  13914. return 0;
  13915. #endif
  13916. }
  13917. #endif //#ifndef TOLUA_DISABLE
  13918. /* method: IsModal of class Window */
  13919. #ifndef TOLUA_DISABLE_tolua_UI_Window_IsModal00
  13920. static int tolua_UI_Window_IsModal00(lua_State* tolua_S)
  13921. {
  13922. #ifndef TOLUA_RELEASE
  13923. tolua_Error tolua_err;
  13924. if (
  13925. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13926. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13927. )
  13928. goto tolua_lerror;
  13929. else
  13930. #endif
  13931. {
  13932. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13933. #ifndef TOLUA_RELEASE
  13934. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsModal'", NULL);
  13935. #endif
  13936. {
  13937. bool tolua_ret = (bool) self->IsModal();
  13938. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  13939. }
  13940. }
  13941. return 1;
  13942. #ifndef TOLUA_RELEASE
  13943. tolua_lerror:
  13944. tolua_error(tolua_S,"#ferror in function 'IsModal'.",&tolua_err);
  13945. return 0;
  13946. #endif
  13947. }
  13948. #endif //#ifndef TOLUA_DISABLE
  13949. /* method: GetModalShadeColor of class Window */
  13950. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalShadeColor00
  13951. static int tolua_UI_Window_GetModalShadeColor00(lua_State* tolua_S)
  13952. {
  13953. #ifndef TOLUA_RELEASE
  13954. tolua_Error tolua_err;
  13955. if (
  13956. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13957. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13958. )
  13959. goto tolua_lerror;
  13960. else
  13961. #endif
  13962. {
  13963. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13964. #ifndef TOLUA_RELEASE
  13965. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalShadeColor'", NULL);
  13966. #endif
  13967. {
  13968. const Color& tolua_ret = (const Color&) self->GetModalShadeColor();
  13969. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  13970. }
  13971. }
  13972. return 1;
  13973. #ifndef TOLUA_RELEASE
  13974. tolua_lerror:
  13975. tolua_error(tolua_S,"#ferror in function 'GetModalShadeColor'.",&tolua_err);
  13976. return 0;
  13977. #endif
  13978. }
  13979. #endif //#ifndef TOLUA_DISABLE
  13980. /* method: GetModalFrameColor of class Window */
  13981. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalFrameColor00
  13982. static int tolua_UI_Window_GetModalFrameColor00(lua_State* tolua_S)
  13983. {
  13984. #ifndef TOLUA_RELEASE
  13985. tolua_Error tolua_err;
  13986. if (
  13987. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  13988. !tolua_isnoobj(tolua_S,2,&tolua_err)
  13989. )
  13990. goto tolua_lerror;
  13991. else
  13992. #endif
  13993. {
  13994. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  13995. #ifndef TOLUA_RELEASE
  13996. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalFrameColor'", NULL);
  13997. #endif
  13998. {
  13999. const Color& tolua_ret = (const Color&) self->GetModalFrameColor();
  14000. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Color");
  14001. }
  14002. }
  14003. return 1;
  14004. #ifndef TOLUA_RELEASE
  14005. tolua_lerror:
  14006. tolua_error(tolua_S,"#ferror in function 'GetModalFrameColor'.",&tolua_err);
  14007. return 0;
  14008. #endif
  14009. }
  14010. #endif //#ifndef TOLUA_DISABLE
  14011. /* method: GetModalFrameSize of class Window */
  14012. #ifndef TOLUA_DISABLE_tolua_UI_Window_GetModalFrameSize00
  14013. static int tolua_UI_Window_GetModalFrameSize00(lua_State* tolua_S)
  14014. {
  14015. #ifndef TOLUA_RELEASE
  14016. tolua_Error tolua_err;
  14017. if (
  14018. !tolua_isusertype(tolua_S,1,"const Window",0,&tolua_err) ||
  14019. !tolua_isnoobj(tolua_S,2,&tolua_err)
  14020. )
  14021. goto tolua_lerror;
  14022. else
  14023. #endif
  14024. {
  14025. const Window* self = (const Window*) tolua_tousertype(tolua_S,1,0);
  14026. #ifndef TOLUA_RELEASE
  14027. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetModalFrameSize'", NULL);
  14028. #endif
  14029. {
  14030. const IntVector2& tolua_ret = (const IntVector2&) self->GetModalFrameSize();
  14031. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const IntVector2");
  14032. }
  14033. }
  14034. return 1;
  14035. #ifndef TOLUA_RELEASE
  14036. tolua_lerror:
  14037. tolua_error(tolua_S,"#ferror in function 'GetModalFrameSize'.",&tolua_err);
  14038. return 0;
  14039. #endif
  14040. }
  14041. #endif //#ifndef TOLUA_DISABLE
  14042. /* function: NewWindow */
  14043. #ifndef TOLUA_DISABLE_tolua_UI_Window00
  14044. static int tolua_UI_Window00(lua_State* tolua_S)
  14045. {
  14046. #ifndef TOLUA_RELEASE
  14047. tolua_Error tolua_err;
  14048. if (
  14049. !tolua_isnoobj(tolua_S,1,&tolua_err)
  14050. )
  14051. goto tolua_lerror;
  14052. else
  14053. #endif
  14054. {
  14055. {
  14056. Window* tolua_ret = (Window*) NewWindow();
  14057. tolua_pushusertype(tolua_S,(void*)tolua_ret,"Window");
  14058. }
  14059. }
  14060. return 1;
  14061. #ifndef TOLUA_RELEASE
  14062. tolua_lerror:
  14063. tolua_error(tolua_S,"#ferror in function 'Window'.",&tolua_err);
  14064. return 0;
  14065. #endif
  14066. }
  14067. #endif //#ifndef TOLUA_DISABLE
  14068. /* Open function */
  14069. TOLUA_API int tolua_UI_open (lua_State* tolua_S)
  14070. {
  14071. tolua_open(tolua_S);
  14072. tolua_reg_types(tolua_S);
  14073. tolua_module(tolua_S,NULL,1);
  14074. tolua_beginmodule(tolua_S,NULL);
  14075. tolua_cclass(tolua_S,"BorderImage","BorderImage","UIElement",NULL);
  14076. tolua_beginmodule(tolua_S,"BorderImage");
  14077. tolua_function(tolua_S,"SetTexture",tolua_UI_BorderImage_SetTexture00);
  14078. tolua_function(tolua_S,"SetImageRect",tolua_UI_BorderImage_SetImageRect00);
  14079. tolua_function(tolua_S,"SetFullImageRect",tolua_UI_BorderImage_SetFullImageRect00);
  14080. tolua_function(tolua_S,"SetBorder",tolua_UI_BorderImage_SetBorder00);
  14081. tolua_function(tolua_S,"SetHoverOffset",tolua_UI_BorderImage_SetHoverOffset00);
  14082. tolua_function(tolua_S,"SetHoverOffset",tolua_UI_BorderImage_SetHoverOffset01);
  14083. tolua_function(tolua_S,"SetBlendMode",tolua_UI_BorderImage_SetBlendMode00);
  14084. tolua_function(tolua_S,"SetTiled",tolua_UI_BorderImage_SetTiled00);
  14085. tolua_function(tolua_S,"GetTexture",tolua_UI_BorderImage_GetTexture00);
  14086. tolua_function(tolua_S,"GetImageRect",tolua_UI_BorderImage_GetImageRect00);
  14087. tolua_function(tolua_S,"GetBorder",tolua_UI_BorderImage_GetBorder00);
  14088. tolua_function(tolua_S,"GetHoverOffset",tolua_UI_BorderImage_GetHoverOffset00);
  14089. tolua_function(tolua_S,"GetBlendMode",tolua_UI_BorderImage_GetBlendMode00);
  14090. tolua_function(tolua_S,"IsTiled",tolua_UI_BorderImage_IsTiled00);
  14091. tolua_endmodule(tolua_S);
  14092. tolua_function(tolua_S,"BorderImage",tolua_UI_BorderImage00);
  14093. tolua_cclass(tolua_S,"Button","Button","BorderImage",NULL);
  14094. tolua_beginmodule(tolua_S,"Button");
  14095. tolua_function(tolua_S,"SetPressedOffset",tolua_UI_Button_SetPressedOffset00);
  14096. tolua_function(tolua_S,"SetPressedOffset",tolua_UI_Button_SetPressedOffset01);
  14097. tolua_function(tolua_S,"SetLabelOffset",tolua_UI_Button_SetLabelOffset00);
  14098. tolua_function(tolua_S,"SetLabelOffset",tolua_UI_Button_SetLabelOffset01);
  14099. tolua_function(tolua_S,"SetRepeat",tolua_UI_Button_SetRepeat00);
  14100. tolua_function(tolua_S,"SetRepeatDelay",tolua_UI_Button_SetRepeatDelay00);
  14101. tolua_function(tolua_S,"SetRepeatRate",tolua_UI_Button_SetRepeatRate00);
  14102. tolua_function(tolua_S,"GetPressedOffset",tolua_UI_Button_GetPressedOffset00);
  14103. tolua_function(tolua_S,"GetLabelOffset",tolua_UI_Button_GetLabelOffset00);
  14104. tolua_function(tolua_S,"GetRepeatDelay",tolua_UI_Button_GetRepeatDelay00);
  14105. tolua_function(tolua_S,"GetRepeatRate",tolua_UI_Button_GetRepeatRate00);
  14106. tolua_endmodule(tolua_S);
  14107. tolua_function(tolua_S,"Button",tolua_UI_Button00);
  14108. tolua_cclass(tolua_S,"CheckBox","CheckBox","BorderImage",NULL);
  14109. tolua_beginmodule(tolua_S,"CheckBox");
  14110. tolua_function(tolua_S,"SetChecked",tolua_UI_CheckBox_SetChecked00);
  14111. tolua_function(tolua_S,"SetCheckedOffset",tolua_UI_CheckBox_SetCheckedOffset00);
  14112. tolua_function(tolua_S,"SetCheckedOffset",tolua_UI_CheckBox_SetCheckedOffset01);
  14113. tolua_function(tolua_S,"IsChecked",tolua_UI_CheckBox_IsChecked00);
  14114. tolua_function(tolua_S,"GetCheckedOffset",tolua_UI_CheckBox_GetCheckedOffset00);
  14115. tolua_endmodule(tolua_S);
  14116. tolua_function(tolua_S,"CheckBox",tolua_UI_CheckBox00);
  14117. tolua_constant(tolua_S,"CS_NORMAL",CS_NORMAL);
  14118. tolua_constant(tolua_S,"CS_RESIZEVERTICAL",CS_RESIZEVERTICAL);
  14119. tolua_constant(tolua_S,"CS_RESIZEDIAGONAL_TOPRIGHT",CS_RESIZEDIAGONAL_TOPRIGHT);
  14120. tolua_constant(tolua_S,"CS_RESIZEHORIZONTAL",CS_RESIZEHORIZONTAL);
  14121. tolua_constant(tolua_S,"CS_RESIZEDIAGONAL_TOPLEFT",CS_RESIZEDIAGONAL_TOPLEFT);
  14122. tolua_constant(tolua_S,"CS_ACCEPTDROP",CS_ACCEPTDROP);
  14123. tolua_constant(tolua_S,"CS_REJECTDROP",CS_REJECTDROP);
  14124. tolua_constant(tolua_S,"CS_BUSY",CS_BUSY);
  14125. tolua_constant(tolua_S,"CS_MAX_SHAPES",CS_MAX_SHAPES);
  14126. tolua_cclass(tolua_S,"Cursor","Cursor","BorderImage",NULL);
  14127. tolua_beginmodule(tolua_S,"Cursor");
  14128. tolua_function(tolua_S,"DefineShape",tolua_UI_Cursor_DefineShape00);
  14129. tolua_function(tolua_S,"SetShape",tolua_UI_Cursor_SetShape00);
  14130. tolua_function(tolua_S,"GetShape",tolua_UI_Cursor_GetShape00);
  14131. tolua_endmodule(tolua_S);
  14132. tolua_function(tolua_S,"Cursor",tolua_UI_Cursor00);
  14133. tolua_cclass(tolua_S,"DropDownList","DropDownList","Menu",NULL);
  14134. tolua_beginmodule(tolua_S,"DropDownList");
  14135. tolua_function(tolua_S,"AddItem",tolua_UI_DropDownList_AddItem00);
  14136. tolua_function(tolua_S,"InsertItem",tolua_UI_DropDownList_InsertItem00);
  14137. tolua_function(tolua_S,"RemoveItem",tolua_UI_DropDownList_RemoveItem00);
  14138. tolua_function(tolua_S,"RemoveItem",tolua_UI_DropDownList_RemoveItem01);
  14139. tolua_function(tolua_S,"RemoveAllItems",tolua_UI_DropDownList_RemoveAllItems00);
  14140. tolua_function(tolua_S,"SetSelection",tolua_UI_DropDownList_SetSelection00);
  14141. tolua_function(tolua_S,"SetPlaceholderText",tolua_UI_DropDownList_SetPlaceholderText00);
  14142. tolua_function(tolua_S,"SetResizePopup",tolua_UI_DropDownList_SetResizePopup00);
  14143. tolua_function(tolua_S,"GetNumItems",tolua_UI_DropDownList_GetNumItems00);
  14144. tolua_function(tolua_S,"GetItem",tolua_UI_DropDownList_GetItem00);
  14145. tolua_function(tolua_S,"GetSelection",tolua_UI_DropDownList_GetSelection00);
  14146. tolua_function(tolua_S,"GetSelectedItem",tolua_UI_DropDownList_GetSelectedItem00);
  14147. tolua_function(tolua_S,"GetListView",tolua_UI_DropDownList_GetListView00);
  14148. tolua_function(tolua_S,"GetPlaceholder",tolua_UI_DropDownList_GetPlaceholder00);
  14149. tolua_function(tolua_S,"GetPlaceholderText",tolua_UI_DropDownList_GetPlaceholderText00);
  14150. tolua_function(tolua_S,"GetResizePopup",tolua_UI_DropDownList_GetResizePopup00);
  14151. tolua_endmodule(tolua_S);
  14152. tolua_function(tolua_S,"DropDownList",tolua_UI_DropDownList00);
  14153. tolua_cclass(tolua_S,"FileSelectorEntry","FileSelectorEntry","",NULL);
  14154. tolua_beginmodule(tolua_S,"FileSelectorEntry");
  14155. tolua_variable(tolua_S,"name_",tolua_get_FileSelectorEntry_name_,tolua_set_FileSelectorEntry_name_);
  14156. tolua_variable(tolua_S,"directory_",tolua_get_FileSelectorEntry_directory_,tolua_set_FileSelectorEntry_directory_);
  14157. tolua_endmodule(tolua_S);
  14158. tolua_cclass(tolua_S,"FileSelector","FileSelector","Object",NULL);
  14159. tolua_beginmodule(tolua_S,"FileSelector");
  14160. tolua_function(tolua_S,"SetDefaultStyle",tolua_UI_FileSelector_SetDefaultStyle00);
  14161. tolua_function(tolua_S,"SetTitle",tolua_UI_FileSelector_SetTitle00);
  14162. tolua_function(tolua_S,"SetButtonTexts",tolua_UI_FileSelector_SetButtonTexts00);
  14163. tolua_function(tolua_S,"SetPath",tolua_UI_FileSelector_SetPath00);
  14164. tolua_function(tolua_S,"SetFileName",tolua_UI_FileSelector_SetFileName00);
  14165. tolua_function(tolua_S,"SetFilters",tolua_UI_FileSelector_SetFilters00);
  14166. tolua_function(tolua_S,"SetDirectoryMode",tolua_UI_FileSelector_SetDirectoryMode00);
  14167. tolua_function(tolua_S,"UpdateElements",tolua_UI_FileSelector_UpdateElements00);
  14168. tolua_function(tolua_S,"GetDefaultStyle",tolua_UI_FileSelector_GetDefaultStyle00);
  14169. tolua_function(tolua_S,"GetWindow",tolua_UI_FileSelector_GetWindow00);
  14170. tolua_function(tolua_S,"GetTitleText",tolua_UI_FileSelector_GetTitleText00);
  14171. tolua_function(tolua_S,"GetFileList",tolua_UI_FileSelector_GetFileList00);
  14172. tolua_function(tolua_S,"GetPathEdit",tolua_UI_FileSelector_GetPathEdit00);
  14173. tolua_function(tolua_S,"GetFileNameEdit",tolua_UI_FileSelector_GetFileNameEdit00);
  14174. tolua_function(tolua_S,"GetFilterList",tolua_UI_FileSelector_GetFilterList00);
  14175. tolua_function(tolua_S,"GetOKButton",tolua_UI_FileSelector_GetOKButton00);
  14176. tolua_function(tolua_S,"GetCancelButton",tolua_UI_FileSelector_GetCancelButton00);
  14177. tolua_function(tolua_S,"GetCloseButton",tolua_UI_FileSelector_GetCloseButton00);
  14178. tolua_function(tolua_S,"GetTitle",tolua_UI_FileSelector_GetTitle00);
  14179. tolua_function(tolua_S,"GetPath",tolua_UI_FileSelector_GetPath00);
  14180. tolua_function(tolua_S,"GetFileName",tolua_UI_FileSelector_GetFileName00);
  14181. tolua_function(tolua_S,"GetFilter",tolua_UI_FileSelector_GetFilter00);
  14182. tolua_function(tolua_S,"GetFilterIndex",tolua_UI_FileSelector_GetFilterIndex00);
  14183. tolua_function(tolua_S,"GetDirectoryMode",tolua_UI_FileSelector_GetDirectoryMode00);
  14184. tolua_endmodule(tolua_S);
  14185. tolua_function(tolua_S,"FileSelector",tolua_UI_FileSelector00);
  14186. tolua_cclass(tolua_S,"Font","Font","Resource",NULL);
  14187. tolua_beginmodule(tolua_S,"Font");
  14188. tolua_endmodule(tolua_S);
  14189. tolua_function(tolua_S,"Font",tolua_UI_Font00);
  14190. tolua_cclass(tolua_S,"LineEdit","LineEdit","BorderImage",NULL);
  14191. tolua_beginmodule(tolua_S,"LineEdit");
  14192. tolua_function(tolua_S,"SetText",tolua_UI_LineEdit_SetText00);
  14193. tolua_function(tolua_S,"SetCursorPosition",tolua_UI_LineEdit_SetCursorPosition00);
  14194. tolua_function(tolua_S,"SetCursorBlinkRate",tolua_UI_LineEdit_SetCursorBlinkRate00);
  14195. tolua_function(tolua_S,"SetMaxLength",tolua_UI_LineEdit_SetMaxLength00);
  14196. tolua_function(tolua_S,"SetEchoCharacter",tolua_UI_LineEdit_SetEchoCharacter00);
  14197. tolua_function(tolua_S,"SetCursorMovable",tolua_UI_LineEdit_SetCursorMovable00);
  14198. tolua_function(tolua_S,"SetTextSelectable",tolua_UI_LineEdit_SetTextSelectable00);
  14199. tolua_function(tolua_S,"SetTextCopyable",tolua_UI_LineEdit_SetTextCopyable00);
  14200. tolua_function(tolua_S,"SetDoubleClickInterval",tolua_UI_LineEdit_SetDoubleClickInterval00);
  14201. tolua_function(tolua_S,"GetText",tolua_UI_LineEdit_GetText00);
  14202. tolua_function(tolua_S,"GetCursorPosition",tolua_UI_LineEdit_GetCursorPosition00);
  14203. tolua_function(tolua_S,"GetCursorBlinkRate",tolua_UI_LineEdit_GetCursorBlinkRate00);
  14204. tolua_function(tolua_S,"GetMaxLength",tolua_UI_LineEdit_GetMaxLength00);
  14205. tolua_function(tolua_S,"GetEchoCharacter",tolua_UI_LineEdit_GetEchoCharacter00);
  14206. tolua_function(tolua_S,"IsCursorMovable",tolua_UI_LineEdit_IsCursorMovable00);
  14207. tolua_function(tolua_S,"IsTextSelectable",tolua_UI_LineEdit_IsTextSelectable00);
  14208. tolua_function(tolua_S,"IsTextCopyable",tolua_UI_LineEdit_IsTextCopyable00);
  14209. tolua_function(tolua_S,"GetTextElement",tolua_UI_LineEdit_GetTextElement00);
  14210. tolua_function(tolua_S,"GetCursor",tolua_UI_LineEdit_GetCursor00);
  14211. tolua_function(tolua_S,"GetDoubleClickInterval",tolua_UI_LineEdit_GetDoubleClickInterval00);
  14212. tolua_endmodule(tolua_S);
  14213. tolua_function(tolua_S,"LineEdit",tolua_UI_LineEdit00);
  14214. tolua_constant(tolua_S,"HM_NEVER",HM_NEVER);
  14215. tolua_constant(tolua_S,"HM_FOCUS",HM_FOCUS);
  14216. tolua_constant(tolua_S,"HM_ALWAYS",HM_ALWAYS);
  14217. tolua_cclass(tolua_S,"ListView","ListView","ScrollView",NULL);
  14218. tolua_beginmodule(tolua_S,"ListView");
  14219. tolua_function(tolua_S,"AddItem",tolua_UI_ListView_AddItem00);
  14220. tolua_function(tolua_S,"InsertItem",tolua_UI_ListView_InsertItem00);
  14221. tolua_function(tolua_S,"RemoveItem",tolua_UI_ListView_RemoveItem00);
  14222. tolua_function(tolua_S,"RemoveItem",tolua_UI_ListView_RemoveItem01);
  14223. tolua_function(tolua_S,"RemoveAllItems",tolua_UI_ListView_RemoveAllItems00);
  14224. tolua_function(tolua_S,"SetSelection",tolua_UI_ListView_SetSelection00);
  14225. tolua_function(tolua_S,"AddSelection",tolua_UI_ListView_AddSelection00);
  14226. tolua_function(tolua_S,"RemoveSelection",tolua_UI_ListView_RemoveSelection00);
  14227. tolua_function(tolua_S,"ToggleSelection",tolua_UI_ListView_ToggleSelection00);
  14228. tolua_function(tolua_S,"ChangeSelection",tolua_UI_ListView_ChangeSelection00);
  14229. tolua_function(tolua_S,"ClearSelection",tolua_UI_ListView_ClearSelection00);
  14230. tolua_function(tolua_S,"SetHighlightMode",tolua_UI_ListView_SetHighlightMode00);
  14231. tolua_function(tolua_S,"SetMultiselect",tolua_UI_ListView_SetMultiselect00);
  14232. tolua_function(tolua_S,"SetHierarchyMode",tolua_UI_ListView_SetHierarchyMode00);
  14233. tolua_function(tolua_S,"SetBaseIndent",tolua_UI_ListView_SetBaseIndent00);
  14234. tolua_function(tolua_S,"SetClearSelectionOnDefocus",tolua_UI_ListView_SetClearSelectionOnDefocus00);
  14235. tolua_function(tolua_S,"SetDoubleClickInterval",tolua_UI_ListView_SetDoubleClickInterval00);
  14236. tolua_function(tolua_S,"Expand",tolua_UI_ListView_Expand00);
  14237. tolua_function(tolua_S,"ToggleExpand",tolua_UI_ListView_ToggleExpand00);
  14238. tolua_function(tolua_S,"GetNumItems",tolua_UI_ListView_GetNumItems00);
  14239. tolua_function(tolua_S,"GetItem",tolua_UI_ListView_GetItem00);
  14240. tolua_function(tolua_S,"FindItem",tolua_UI_ListView_FindItem00);
  14241. tolua_function(tolua_S,"GetSelection",tolua_UI_ListView_GetSelection00);
  14242. tolua_function(tolua_S,"GetSelectedItem",tolua_UI_ListView_GetSelectedItem00);
  14243. tolua_function(tolua_S,"IsSelected",tolua_UI_ListView_IsSelected00);
  14244. tolua_function(tolua_S,"IsExpanded",tolua_UI_ListView_IsExpanded00);
  14245. tolua_function(tolua_S,"GetHighlightMode",tolua_UI_ListView_GetHighlightMode00);
  14246. tolua_function(tolua_S,"GetMultiselect",tolua_UI_ListView_GetMultiselect00);
  14247. tolua_function(tolua_S,"GetClearSelectionOnDefocus",tolua_UI_ListView_GetClearSelectionOnDefocus00);
  14248. tolua_function(tolua_S,"GetHierarchyMode",tolua_UI_ListView_GetHierarchyMode00);
  14249. tolua_function(tolua_S,"GetBaseIndent",tolua_UI_ListView_GetBaseIndent00);
  14250. tolua_function(tolua_S,"GetDoubleClickInterval",tolua_UI_ListView_GetDoubleClickInterval00);
  14251. tolua_endmodule(tolua_S);
  14252. tolua_function(tolua_S,"ListView",tolua_UI_ListView00);
  14253. tolua_cclass(tolua_S,"Menu","Menu","Button",NULL);
  14254. tolua_beginmodule(tolua_S,"Menu");
  14255. tolua_function(tolua_S,"SetPopup",tolua_UI_Menu_SetPopup00);
  14256. tolua_function(tolua_S,"SetPopupOffset",tolua_UI_Menu_SetPopupOffset00);
  14257. tolua_function(tolua_S,"SetPopupOffset",tolua_UI_Menu_SetPopupOffset01);
  14258. tolua_function(tolua_S,"ShowPopup",tolua_UI_Menu_ShowPopup00);
  14259. tolua_function(tolua_S,"SetAccelerator",tolua_UI_Menu_SetAccelerator00);
  14260. tolua_function(tolua_S,"GetPopup",tolua_UI_Menu_GetPopup00);
  14261. tolua_function(tolua_S,"GetPopupOffset",tolua_UI_Menu_GetPopupOffset00);
  14262. tolua_function(tolua_S,"GetShowPopup",tolua_UI_Menu_GetShowPopup00);
  14263. tolua_function(tolua_S,"GetAcceleratorKey",tolua_UI_Menu_GetAcceleratorKey00);
  14264. tolua_function(tolua_S,"GetAcceleratorQualifiers",tolua_UI_Menu_GetAcceleratorQualifiers00);
  14265. tolua_function(tolua_S,"GetAcceleratorQualifiers",tolua_UI_Menu_GetAcceleratorQualifiers01);
  14266. tolua_endmodule(tolua_S);
  14267. tolua_function(tolua_S,"Menu",tolua_UI_Menu00);
  14268. tolua_cclass(tolua_S,"ScrollBar","ScrollBar","UIElement",NULL);
  14269. tolua_beginmodule(tolua_S,"ScrollBar");
  14270. tolua_function(tolua_S,"SetOrientation",tolua_UI_ScrollBar_SetOrientation00);
  14271. tolua_function(tolua_S,"SetRange",tolua_UI_ScrollBar_SetRange00);
  14272. tolua_function(tolua_S,"SetValue",tolua_UI_ScrollBar_SetValue00);
  14273. tolua_function(tolua_S,"ChangeValue",tolua_UI_ScrollBar_ChangeValue00);
  14274. tolua_function(tolua_S,"SetScrollStep",tolua_UI_ScrollBar_SetScrollStep00);
  14275. tolua_function(tolua_S,"SetStepFactor",tolua_UI_ScrollBar_SetStepFactor00);
  14276. tolua_function(tolua_S,"StepBack",tolua_UI_ScrollBar_StepBack00);
  14277. tolua_function(tolua_S,"StepForward",tolua_UI_ScrollBar_StepForward00);
  14278. tolua_function(tolua_S,"GetOrientation",tolua_UI_ScrollBar_GetOrientation00);
  14279. tolua_function(tolua_S,"GetRange",tolua_UI_ScrollBar_GetRange00);
  14280. tolua_function(tolua_S,"GetValue",tolua_UI_ScrollBar_GetValue00);
  14281. tolua_function(tolua_S,"GetScrollStep",tolua_UI_ScrollBar_GetScrollStep00);
  14282. tolua_function(tolua_S,"GetStepFactor",tolua_UI_ScrollBar_GetStepFactor00);
  14283. tolua_function(tolua_S,"GetEffectiveScrollStep",tolua_UI_ScrollBar_GetEffectiveScrollStep00);
  14284. tolua_function(tolua_S,"GetBackButton",tolua_UI_ScrollBar_GetBackButton00);
  14285. tolua_function(tolua_S,"GetForwardButton",tolua_UI_ScrollBar_GetForwardButton00);
  14286. tolua_function(tolua_S,"GetSlider",tolua_UI_ScrollBar_GetSlider00);
  14287. tolua_endmodule(tolua_S);
  14288. tolua_function(tolua_S,"ScrollBar",tolua_UI_ScrollBar00);
  14289. tolua_cclass(tolua_S,"ScrollView","ScrollView","UIElement",NULL);
  14290. tolua_beginmodule(tolua_S,"ScrollView");
  14291. tolua_function(tolua_S,"SetContentElement",tolua_UI_ScrollView_SetContentElement00);
  14292. tolua_function(tolua_S,"SetViewPosition",tolua_UI_ScrollView_SetViewPosition00);
  14293. tolua_function(tolua_S,"SetViewPosition",tolua_UI_ScrollView_SetViewPosition01);
  14294. tolua_function(tolua_S,"SetScrollBarsVisible",tolua_UI_ScrollView_SetScrollBarsVisible00);
  14295. tolua_function(tolua_S,"SetScrollBarsAutoVisible",tolua_UI_ScrollView_SetScrollBarsAutoVisible00);
  14296. tolua_function(tolua_S,"SetScrollStep",tolua_UI_ScrollView_SetScrollStep00);
  14297. tolua_function(tolua_S,"SetPageStep",tolua_UI_ScrollView_SetPageStep00);
  14298. tolua_function(tolua_S,"GetViewPosition",tolua_UI_ScrollView_GetViewPosition00);
  14299. tolua_function(tolua_S,"GetContentElement",tolua_UI_ScrollView_GetContentElement00);
  14300. tolua_function(tolua_S,"GetHorizontalScrollBar",tolua_UI_ScrollView_GetHorizontalScrollBar00);
  14301. tolua_function(tolua_S,"GetVerticalScrollBar",tolua_UI_ScrollView_GetVerticalScrollBar00);
  14302. tolua_function(tolua_S,"GetScrollPanel",tolua_UI_ScrollView_GetScrollPanel00);
  14303. tolua_function(tolua_S,"GetScrollBarsAutoVisible",tolua_UI_ScrollView_GetScrollBarsAutoVisible00);
  14304. tolua_function(tolua_S,"GetScrollStep",tolua_UI_ScrollView_GetScrollStep00);
  14305. tolua_function(tolua_S,"GetPageStep",tolua_UI_ScrollView_GetPageStep00);
  14306. tolua_function(tolua_S,"SetViewPositionAttr",tolua_UI_ScrollView_SetViewPositionAttr00);
  14307. tolua_endmodule(tolua_S);
  14308. tolua_function(tolua_S,"ScrollView",tolua_UI_ScrollView00);
  14309. tolua_cclass(tolua_S,"Slider","Slider","BorderImage",NULL);
  14310. tolua_beginmodule(tolua_S,"Slider");
  14311. tolua_function(tolua_S,"SetOrientation",tolua_UI_Slider_SetOrientation00);
  14312. tolua_function(tolua_S,"SetRange",tolua_UI_Slider_SetRange00);
  14313. tolua_function(tolua_S,"SetValue",tolua_UI_Slider_SetValue00);
  14314. tolua_function(tolua_S,"ChangeValue",tolua_UI_Slider_ChangeValue00);
  14315. tolua_function(tolua_S,"SetRepeatRate",tolua_UI_Slider_SetRepeatRate00);
  14316. tolua_function(tolua_S,"GetOrientation",tolua_UI_Slider_GetOrientation00);
  14317. tolua_function(tolua_S,"GetRange",tolua_UI_Slider_GetRange00);
  14318. tolua_function(tolua_S,"GetValue",tolua_UI_Slider_GetValue00);
  14319. tolua_function(tolua_S,"GetKnob",tolua_UI_Slider_GetKnob00);
  14320. tolua_function(tolua_S,"GetRepeatRate",tolua_UI_Slider_GetRepeatRate00);
  14321. tolua_endmodule(tolua_S);
  14322. tolua_function(tolua_S,"Slider",tolua_UI_Slider00);
  14323. tolua_cclass(tolua_S,"Sprite","Sprite","UIElement",NULL);
  14324. tolua_beginmodule(tolua_S,"Sprite");
  14325. tolua_function(tolua_S,"SetPosition",tolua_UI_Sprite_SetPosition00);
  14326. tolua_function(tolua_S,"SetPosition",tolua_UI_Sprite_SetPosition01);
  14327. tolua_function(tolua_S,"SetHotSpot",tolua_UI_Sprite_SetHotSpot00);
  14328. tolua_function(tolua_S,"SetHotSpot",tolua_UI_Sprite_SetHotSpot01);
  14329. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale00);
  14330. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale01);
  14331. tolua_function(tolua_S,"SetScale",tolua_UI_Sprite_SetScale02);
  14332. tolua_function(tolua_S,"SetRotation",tolua_UI_Sprite_SetRotation00);
  14333. tolua_function(tolua_S,"SetTexture",tolua_UI_Sprite_SetTexture00);
  14334. tolua_function(tolua_S,"SetImageRect",tolua_UI_Sprite_SetImageRect00);
  14335. tolua_function(tolua_S,"SetFullImageRect",tolua_UI_Sprite_SetFullImageRect00);
  14336. tolua_function(tolua_S,"SetBlendMode",tolua_UI_Sprite_SetBlendMode00);
  14337. tolua_function(tolua_S,"GetPosition",tolua_UI_Sprite_GetPosition00);
  14338. tolua_function(tolua_S,"GetHotSpot",tolua_UI_Sprite_GetHotSpot00);
  14339. tolua_function(tolua_S,"GetScale",tolua_UI_Sprite_GetScale00);
  14340. tolua_function(tolua_S,"GetRotation",tolua_UI_Sprite_GetRotation00);
  14341. tolua_function(tolua_S,"GetTexture",tolua_UI_Sprite_GetTexture00);
  14342. tolua_function(tolua_S,"GetImageRect",tolua_UI_Sprite_GetImageRect00);
  14343. tolua_function(tolua_S,"GetBlendMode",tolua_UI_Sprite_GetBlendMode00);
  14344. tolua_function(tolua_S,"SetTextureAttr",tolua_UI_Sprite_SetTextureAttr00);
  14345. tolua_function(tolua_S,"GetTextureAttr",tolua_UI_Sprite_GetTextureAttr00);
  14346. tolua_function(tolua_S,"GetTransform",tolua_UI_Sprite_GetTransform00);
  14347. tolua_endmodule(tolua_S);
  14348. tolua_function(tolua_S,"Sprite",tolua_UI_Sprite00);
  14349. tolua_cclass(tolua_S,"Text","Text","UIElement",NULL);
  14350. tolua_beginmodule(tolua_S,"Text");
  14351. tolua_function(tolua_S,"SetFont",tolua_UI_Text_SetFont00);
  14352. tolua_function(tolua_S,"SetFont",tolua_UI_Text_SetFont01);
  14353. tolua_function(tolua_S,"SetText",tolua_UI_Text_SetText00);
  14354. tolua_function(tolua_S,"SetTextAlignment",tolua_UI_Text_SetTextAlignment00);
  14355. tolua_function(tolua_S,"SetRowSpacing",tolua_UI_Text_SetRowSpacing00);
  14356. tolua_function(tolua_S,"SetWordwrap",tolua_UI_Text_SetWordwrap00);
  14357. tolua_function(tolua_S,"SetSelection",tolua_UI_Text_SetSelection00);
  14358. tolua_function(tolua_S,"ClearSelection",tolua_UI_Text_ClearSelection00);
  14359. tolua_function(tolua_S,"SetSelectionColor",tolua_UI_Text_SetSelectionColor00);
  14360. tolua_function(tolua_S,"SetHoverColor",tolua_UI_Text_SetHoverColor00);
  14361. tolua_function(tolua_S,"GetFont",tolua_UI_Text_GetFont00);
  14362. tolua_function(tolua_S,"GetFontSize",tolua_UI_Text_GetFontSize00);
  14363. tolua_function(tolua_S,"GetText",tolua_UI_Text_GetText00);
  14364. tolua_function(tolua_S,"GetTextAlignment",tolua_UI_Text_GetTextAlignment00);
  14365. tolua_function(tolua_S,"GetRowSpacing",tolua_UI_Text_GetRowSpacing00);
  14366. tolua_function(tolua_S,"GetWordwrap",tolua_UI_Text_GetWordwrap00);
  14367. tolua_function(tolua_S,"GetSelectionStart",tolua_UI_Text_GetSelectionStart00);
  14368. tolua_function(tolua_S,"GetSelectionLength",tolua_UI_Text_GetSelectionLength00);
  14369. tolua_function(tolua_S,"GetSelectionColor",tolua_UI_Text_GetSelectionColor00);
  14370. tolua_function(tolua_S,"GetHoverColor",tolua_UI_Text_GetHoverColor00);
  14371. tolua_function(tolua_S,"GetRowHeight",tolua_UI_Text_GetRowHeight00);
  14372. tolua_function(tolua_S,"GetNumRows",tolua_UI_Text_GetNumRows00);
  14373. tolua_endmodule(tolua_S);
  14374. tolua_function(tolua_S,"Text",tolua_UI_Text00);
  14375. tolua_cclass(tolua_S,"Text3D","Text3D","Drawable",NULL);
  14376. tolua_beginmodule(tolua_S,"Text3D");
  14377. tolua_function(tolua_S,"SetFont",tolua_UI_Text3D_SetFont00);
  14378. tolua_function(tolua_S,"SetFont",tolua_UI_Text3D_SetFont01);
  14379. tolua_function(tolua_S,"SetMaterial",tolua_UI_Text3D_SetMaterial00);
  14380. tolua_function(tolua_S,"SetText",tolua_UI_Text3D_SetText00);
  14381. tolua_function(tolua_S,"SetAlignment",tolua_UI_Text3D_SetAlignment00);
  14382. tolua_function(tolua_S,"SetHorizontalAlignment",tolua_UI_Text3D_SetHorizontalAlignment00);
  14383. tolua_function(tolua_S,"SetVerticalAlignment",tolua_UI_Text3D_SetVerticalAlignment00);
  14384. tolua_function(tolua_S,"SetTextAlignment",tolua_UI_Text3D_SetTextAlignment00);
  14385. tolua_function(tolua_S,"SetRowSpacing",tolua_UI_Text3D_SetRowSpacing00);
  14386. tolua_function(tolua_S,"SetWordwrap",tolua_UI_Text3D_SetWordwrap00);
  14387. tolua_function(tolua_S,"SetWidth",tolua_UI_Text3D_SetWidth00);
  14388. tolua_function(tolua_S,"SetColor",tolua_UI_Text3D_SetColor00);
  14389. tolua_function(tolua_S,"SetColor",tolua_UI_Text3D_SetColor01);
  14390. tolua_function(tolua_S,"SetOpacity",tolua_UI_Text3D_SetOpacity00);
  14391. tolua_function(tolua_S,"SetFaceCamera",tolua_UI_Text3D_SetFaceCamera00);
  14392. tolua_function(tolua_S,"GetFont",tolua_UI_Text3D_GetFont00);
  14393. tolua_function(tolua_S,"GetMaterial",tolua_UI_Text3D_GetMaterial00);
  14394. tolua_function(tolua_S,"GetFontSize",tolua_UI_Text3D_GetFontSize00);
  14395. tolua_function(tolua_S,"GetText",tolua_UI_Text3D_GetText00);
  14396. tolua_function(tolua_S,"GetTextAlignment",tolua_UI_Text3D_GetTextAlignment00);
  14397. tolua_function(tolua_S,"GetHorizontalAlignment",tolua_UI_Text3D_GetHorizontalAlignment00);
  14398. tolua_function(tolua_S,"GetVerticalAlignment",tolua_UI_Text3D_GetVerticalAlignment00);
  14399. tolua_function(tolua_S,"GetRowSpacing",tolua_UI_Text3D_GetRowSpacing00);
  14400. tolua_function(tolua_S,"GetWordwrap",tolua_UI_Text3D_GetWordwrap00);
  14401. tolua_function(tolua_S,"GetWidth",tolua_UI_Text3D_GetWidth00);
  14402. tolua_function(tolua_S,"GetRowHeight",tolua_UI_Text3D_GetRowHeight00);
  14403. tolua_function(tolua_S,"GetNumRows",tolua_UI_Text3D_GetNumRows00);
  14404. tolua_function(tolua_S,"GetColor",tolua_UI_Text3D_GetColor00);
  14405. tolua_function(tolua_S,"GetOpacity",tolua_UI_Text3D_GetOpacity00);
  14406. tolua_function(tolua_S,"GetFaceCamera",tolua_UI_Text3D_GetFaceCamera00);
  14407. tolua_endmodule(tolua_S);
  14408. tolua_function(tolua_S,"Text3D",tolua_UI_Text3D00);
  14409. tolua_cclass(tolua_S,"UI","UI","Object",NULL);
  14410. tolua_beginmodule(tolua_S,"UI");
  14411. tolua_function(tolua_S,"SetCursor",tolua_UI_UI_SetCursor00);
  14412. tolua_function(tolua_S,"SetFocusElement",tolua_UI_UI_SetFocusElement00);
  14413. tolua_function(tolua_S,"SetModalElement",tolua_UI_UI_SetModalElement00);
  14414. tolua_function(tolua_S,"Clear",tolua_UI_UI_Clear00);
  14415. tolua_function(tolua_S,"Update",tolua_UI_UI_Update00);
  14416. tolua_function(tolua_S,"RenderUpdate",tolua_UI_UI_RenderUpdate00);
  14417. tolua_function(tolua_S,"Render",tolua_UI_UI_Render00);
  14418. tolua_function(tolua_S,"DebugDraw",tolua_UI_UI_DebugDraw00);
  14419. tolua_function(tolua_S,"SaveLayout",tolua_UI_UI_SaveLayout00);
  14420. tolua_function(tolua_S,"SetClipBoardText",tolua_UI_UI_SetClipBoardText00);
  14421. tolua_function(tolua_S,"SetNonFocusedMouseWheel",tolua_UI_UI_SetNonFocusedMouseWheel00);
  14422. tolua_function(tolua_S,"GetRoot",tolua_UI_UI_GetRoot00);
  14423. tolua_function(tolua_S,"GetRootModalElement",tolua_UI_UI_GetRootModalElement00);
  14424. tolua_function(tolua_S,"GetCursor",tolua_UI_UI_GetCursor00);
  14425. tolua_function(tolua_S,"GetElementAt",tolua_UI_UI_GetElementAt00);
  14426. tolua_function(tolua_S,"GetElementAt",tolua_UI_UI_GetElementAt01);
  14427. tolua_function(tolua_S,"GetFocusElement",tolua_UI_UI_GetFocusElement00);
  14428. tolua_function(tolua_S,"GetFrontElement",tolua_UI_UI_GetFrontElement00);
  14429. tolua_function(tolua_S,"GetCursorPosition",tolua_UI_UI_GetCursorPosition00);
  14430. tolua_function(tolua_S,"GetClipBoardText",tolua_UI_UI_GetClipBoardText00);
  14431. tolua_function(tolua_S,"IsNonFocusedMouseWheel",tolua_UI_UI_IsNonFocusedMouseWheel00);
  14432. tolua_function(tolua_S,"HasModalElement",tolua_UI_UI_HasModalElement00);
  14433. tolua_endmodule(tolua_S);
  14434. tolua_function(tolua_S,"GetUI",tolua_UI_GetUI00);
  14435. tolua_constant(tolua_S,"HA_LEFT",HA_LEFT);
  14436. tolua_constant(tolua_S,"HA_CENTER",HA_CENTER);
  14437. tolua_constant(tolua_S,"HA_RIGHT",HA_RIGHT);
  14438. tolua_constant(tolua_S,"VA_TOP",VA_TOP);
  14439. tolua_constant(tolua_S,"VA_CENTER",VA_CENTER);
  14440. tolua_constant(tolua_S,"VA_BOTTOM",VA_BOTTOM);
  14441. tolua_constant(tolua_S,"C_TOPLEFT",C_TOPLEFT);
  14442. tolua_constant(tolua_S,"C_TOPRIGHT",C_TOPRIGHT);
  14443. tolua_constant(tolua_S,"C_BOTTOMLEFT",C_BOTTOMLEFT);
  14444. tolua_constant(tolua_S,"C_BOTTOMRIGHT",C_BOTTOMRIGHT);
  14445. tolua_constant(tolua_S,"MAX_UIELEMENT_CORNERS",MAX_UIELEMENT_CORNERS);
  14446. tolua_constant(tolua_S,"O_HORIZONTAL",O_HORIZONTAL);
  14447. tolua_constant(tolua_S,"O_VERTICAL",O_VERTICAL);
  14448. tolua_constant(tolua_S,"FM_NOTFOCUSABLE",FM_NOTFOCUSABLE);
  14449. tolua_constant(tolua_S,"FM_RESETFOCUS",FM_RESETFOCUS);
  14450. tolua_constant(tolua_S,"FM_FOCUSABLE",FM_FOCUSABLE);
  14451. tolua_constant(tolua_S,"FM_FOCUSABLE_DEFOCUSABLE",FM_FOCUSABLE_DEFOCUSABLE);
  14452. tolua_constant(tolua_S,"LM_FREE",LM_FREE);
  14453. tolua_constant(tolua_S,"LM_HORIZONTAL",LM_HORIZONTAL);
  14454. tolua_constant(tolua_S,"LM_VERTICAL",LM_VERTICAL);
  14455. tolua_constant(tolua_S,"TM_BREADTH_FIRST",TM_BREADTH_FIRST);
  14456. tolua_constant(tolua_S,"TM_DEPTH_FIRST",TM_DEPTH_FIRST);
  14457. tolua_variable(tolua_S,"DD_DISABLED",tolua_get_DD_DISABLED,NULL);
  14458. tolua_variable(tolua_S,"DD_SOURCE",tolua_get_DD_SOURCE,NULL);
  14459. tolua_variable(tolua_S,"DD_TARGET",tolua_get_DD_TARGET,NULL);
  14460. tolua_variable(tolua_S,"DD_SOURCE_AND_TARGET",tolua_get_DD_SOURCE_AND_TARGET,NULL);
  14461. tolua_cclass(tolua_S,"UIElement","UIElement","Serializable",NULL);
  14462. tolua_beginmodule(tolua_S,"UIElement");
  14463. tolua_function(tolua_S,"SetName",tolua_UI_UIElement_SetName00);
  14464. tolua_function(tolua_S,"SetPosition",tolua_UI_UIElement_SetPosition00);
  14465. tolua_function(tolua_S,"SetPosition",tolua_UI_UIElement_SetPosition01);
  14466. tolua_function(tolua_S,"SetSize",tolua_UI_UIElement_SetSize00);
  14467. tolua_function(tolua_S,"SetSize",tolua_UI_UIElement_SetSize01);
  14468. tolua_function(tolua_S,"SetWidth",tolua_UI_UIElement_SetWidth00);
  14469. tolua_function(tolua_S,"SetHeight",tolua_UI_UIElement_SetHeight00);
  14470. tolua_function(tolua_S,"SetMinSize",tolua_UI_UIElement_SetMinSize00);
  14471. tolua_function(tolua_S,"SetMinSize",tolua_UI_UIElement_SetMinSize01);
  14472. tolua_function(tolua_S,"SetMinWidth",tolua_UI_UIElement_SetMinWidth00);
  14473. tolua_function(tolua_S,"SetMinHeight",tolua_UI_UIElement_SetMinHeight00);
  14474. tolua_function(tolua_S,"SetMaxSize",tolua_UI_UIElement_SetMaxSize00);
  14475. tolua_function(tolua_S,"SetMaxSize",tolua_UI_UIElement_SetMaxSize01);
  14476. tolua_function(tolua_S,"SetMaxWidth",tolua_UI_UIElement_SetMaxWidth00);
  14477. tolua_function(tolua_S,"SetMaxHeight",tolua_UI_UIElement_SetMaxHeight00);
  14478. tolua_function(tolua_S,"SetFixedSize",tolua_UI_UIElement_SetFixedSize00);
  14479. tolua_function(tolua_S,"SetFixedSize",tolua_UI_UIElement_SetFixedSize01);
  14480. tolua_function(tolua_S,"SetFixedWidth",tolua_UI_UIElement_SetFixedWidth00);
  14481. tolua_function(tolua_S,"SetFixedHeight",tolua_UI_UIElement_SetFixedHeight00);
  14482. tolua_function(tolua_S,"SetAlignment",tolua_UI_UIElement_SetAlignment00);
  14483. tolua_function(tolua_S,"SetHorizontalAlignment",tolua_UI_UIElement_SetHorizontalAlignment00);
  14484. tolua_function(tolua_S,"SetVerticalAlignment",tolua_UI_UIElement_SetVerticalAlignment00);
  14485. tolua_function(tolua_S,"SetClipBorder",tolua_UI_UIElement_SetClipBorder00);
  14486. tolua_function(tolua_S,"SetColor",tolua_UI_UIElement_SetColor00);
  14487. tolua_function(tolua_S,"SetColor",tolua_UI_UIElement_SetColor01);
  14488. tolua_function(tolua_S,"SetPriority",tolua_UI_UIElement_SetPriority00);
  14489. tolua_function(tolua_S,"SetOpacity",tolua_UI_UIElement_SetOpacity00);
  14490. tolua_function(tolua_S,"SetBringToFront",tolua_UI_UIElement_SetBringToFront00);
  14491. tolua_function(tolua_S,"SetBringToBack",tolua_UI_UIElement_SetBringToBack00);
  14492. tolua_function(tolua_S,"SetClipChildren",tolua_UI_UIElement_SetClipChildren00);
  14493. tolua_function(tolua_S,"SetSortChildren",tolua_UI_UIElement_SetSortChildren00);
  14494. tolua_function(tolua_S,"SetUseDerivedOpacity",tolua_UI_UIElement_SetUseDerivedOpacity00);
  14495. tolua_function(tolua_S,"SetEnabled",tolua_UI_UIElement_SetEnabled00);
  14496. tolua_function(tolua_S,"SetFocus",tolua_UI_UIElement_SetFocus00);
  14497. tolua_function(tolua_S,"SetSelected",tolua_UI_UIElement_SetSelected00);
  14498. tolua_function(tolua_S,"SetVisible",tolua_UI_UIElement_SetVisible00);
  14499. tolua_function(tolua_S,"SetFocusMode",tolua_UI_UIElement_SetFocusMode00);
  14500. tolua_function(tolua_S,"SetDragDropMode",tolua_UI_UIElement_SetDragDropMode00);
  14501. tolua_function(tolua_S,"SetStyle",tolua_UI_UIElement_SetStyle00);
  14502. tolua_function(tolua_S,"SetStyle",tolua_UI_UIElement_SetStyle01);
  14503. tolua_function(tolua_S,"SetStyleAuto",tolua_UI_UIElement_SetStyleAuto00);
  14504. tolua_function(tolua_S,"SetDefaultStyle",tolua_UI_UIElement_SetDefaultStyle00);
  14505. tolua_function(tolua_S,"SetLayout",tolua_UI_UIElement_SetLayout00);
  14506. tolua_function(tolua_S,"SetLayout",tolua_UI_UIElement_SetLayout01);
  14507. tolua_function(tolua_S,"SetLayoutMode",tolua_UI_UIElement_SetLayoutMode00);
  14508. tolua_function(tolua_S,"SetLayoutSpacing",tolua_UI_UIElement_SetLayoutSpacing00);
  14509. tolua_function(tolua_S,"SetLayoutBorder",tolua_UI_UIElement_SetLayoutBorder00);
  14510. tolua_function(tolua_S,"SetIndent",tolua_UI_UIElement_SetIndent00);
  14511. tolua_function(tolua_S,"SetIndentSpacing",tolua_UI_UIElement_SetIndentSpacing00);
  14512. tolua_function(tolua_S,"UpdateLayout",tolua_UI_UIElement_UpdateLayout00);
  14513. tolua_function(tolua_S,"DisableLayoutUpdate",tolua_UI_UIElement_DisableLayoutUpdate00);
  14514. tolua_function(tolua_S,"EnableLayoutUpdate",tolua_UI_UIElement_EnableLayoutUpdate00);
  14515. tolua_function(tolua_S,"BringToFront",tolua_UI_UIElement_BringToFront00);
  14516. tolua_function(tolua_S,"CreateChild",tolua_UI_UIElement_CreateChild00);
  14517. tolua_function(tolua_S,"CreateChild",tolua_UI_UIElement_CreateChild01);
  14518. tolua_function(tolua_S,"AddChild",tolua_UI_UIElement_AddChild00);
  14519. tolua_function(tolua_S,"InsertChild",tolua_UI_UIElement_InsertChild00);
  14520. tolua_function(tolua_S,"RemoveChild",tolua_UI_UIElement_RemoveChild00);
  14521. tolua_function(tolua_S,"RemoveChildAtIndex",tolua_UI_UIElement_RemoveChildAtIndex00);
  14522. tolua_function(tolua_S,"RemoveAllChildren",tolua_UI_UIElement_RemoveAllChildren00);
  14523. tolua_function(tolua_S,"Remove",tolua_UI_UIElement_Remove00);
  14524. tolua_function(tolua_S,"FindChild",tolua_UI_UIElement_FindChild00);
  14525. tolua_function(tolua_S,"SetParent",tolua_UI_UIElement_SetParent00);
  14526. tolua_function(tolua_S,"SetVar",tolua_UI_UIElement_SetVar00);
  14527. tolua_function(tolua_S,"SetInternal",tolua_UI_UIElement_SetInternal00);
  14528. tolua_function(tolua_S,"SetTraversalMode",tolua_UI_UIElement_SetTraversalMode00);
  14529. tolua_function(tolua_S,"SetElementEventSender",tolua_UI_UIElement_SetElementEventSender00);
  14530. tolua_function(tolua_S,"GetName",tolua_UI_UIElement_GetName00);
  14531. tolua_function(tolua_S,"GetPosition",tolua_UI_UIElement_GetPosition00);
  14532. tolua_function(tolua_S,"GetSize",tolua_UI_UIElement_GetSize00);
  14533. tolua_function(tolua_S,"GetWidth",tolua_UI_UIElement_GetWidth00);
  14534. tolua_function(tolua_S,"GetHeight",tolua_UI_UIElement_GetHeight00);
  14535. tolua_function(tolua_S,"GetMinSize",tolua_UI_UIElement_GetMinSize00);
  14536. tolua_function(tolua_S,"GetMinWidth",tolua_UI_UIElement_GetMinWidth00);
  14537. tolua_function(tolua_S,"GetMinHeight",tolua_UI_UIElement_GetMinHeight00);
  14538. tolua_function(tolua_S,"GetMaxSize",tolua_UI_UIElement_GetMaxSize00);
  14539. tolua_function(tolua_S,"GetMaxWidth",tolua_UI_UIElement_GetMaxWidth00);
  14540. tolua_function(tolua_S,"GetMaxHeight",tolua_UI_UIElement_GetMaxHeight00);
  14541. tolua_function(tolua_S,"IsFixedSize",tolua_UI_UIElement_IsFixedSize00);
  14542. tolua_function(tolua_S,"IsFixedWidth",tolua_UI_UIElement_IsFixedWidth00);
  14543. tolua_function(tolua_S,"IsFixedHeight",tolua_UI_UIElement_IsFixedHeight00);
  14544. tolua_function(tolua_S,"GetChildOffset",tolua_UI_UIElement_GetChildOffset00);
  14545. tolua_function(tolua_S,"GetHorizontalAlignment",tolua_UI_UIElement_GetHorizontalAlignment00);
  14546. tolua_function(tolua_S,"GetVerticalAlignment",tolua_UI_UIElement_GetVerticalAlignment00);
  14547. tolua_function(tolua_S,"GetClipBorder",tolua_UI_UIElement_GetClipBorder00);
  14548. tolua_function(tolua_S,"GetColor",tolua_UI_UIElement_GetColor00);
  14549. tolua_function(tolua_S,"GetPriority",tolua_UI_UIElement_GetPriority00);
  14550. tolua_function(tolua_S,"GetOpacity",tolua_UI_UIElement_GetOpacity00);
  14551. tolua_function(tolua_S,"GetDerivedOpacity",tolua_UI_UIElement_GetDerivedOpacity00);
  14552. tolua_function(tolua_S,"GetBringToFront",tolua_UI_UIElement_GetBringToFront00);
  14553. tolua_function(tolua_S,"GetBringToBack",tolua_UI_UIElement_GetBringToBack00);
  14554. tolua_function(tolua_S,"GetClipChildren",tolua_UI_UIElement_GetClipChildren00);
  14555. tolua_function(tolua_S,"GetSortChildren",tolua_UI_UIElement_GetSortChildren00);
  14556. tolua_function(tolua_S,"GetUseDerivedOpacity",tolua_UI_UIElement_GetUseDerivedOpacity00);
  14557. tolua_function(tolua_S,"HasFocus",tolua_UI_UIElement_HasFocus00);
  14558. tolua_function(tolua_S,"IsEnabled",tolua_UI_UIElement_IsEnabled00);
  14559. tolua_function(tolua_S,"IsSelected",tolua_UI_UIElement_IsSelected00);
  14560. tolua_function(tolua_S,"IsVisible",tolua_UI_UIElement_IsVisible00);
  14561. tolua_function(tolua_S,"IsHovering",tolua_UI_UIElement_IsHovering00);
  14562. tolua_function(tolua_S,"IsInternal",tolua_UI_UIElement_IsInternal00);
  14563. tolua_function(tolua_S,"HasColorGradient",tolua_UI_UIElement_HasColorGradient00);
  14564. tolua_function(tolua_S,"GetFocusMode",tolua_UI_UIElement_GetFocusMode00);
  14565. tolua_function(tolua_S,"GetDragDropMode",tolua_UI_UIElement_GetDragDropMode00);
  14566. tolua_function(tolua_S,"GetAppliedStyle",tolua_UI_UIElement_GetAppliedStyle00);
  14567. tolua_function(tolua_S,"GetDefaultStyle",tolua_UI_UIElement_GetDefaultStyle00);
  14568. tolua_function(tolua_S,"GetLayoutMode",tolua_UI_UIElement_GetLayoutMode00);
  14569. tolua_function(tolua_S,"GetLayoutSpacing",tolua_UI_UIElement_GetLayoutSpacing00);
  14570. tolua_function(tolua_S,"GetLayoutBorder",tolua_UI_UIElement_GetLayoutBorder00);
  14571. tolua_function(tolua_S,"GetNumChildren",tolua_UI_UIElement_GetNumChildren00);
  14572. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild00);
  14573. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild01);
  14574. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild02);
  14575. tolua_function(tolua_S,"GetChild",tolua_UI_UIElement_GetChild03);
  14576. tolua_function(tolua_S,"GetParent",tolua_UI_UIElement_GetParent00);
  14577. tolua_function(tolua_S,"GetRoot",tolua_UI_UIElement_GetRoot00);
  14578. tolua_function(tolua_S,"GetDerivedColor",tolua_UI_UIElement_GetDerivedColor00);
  14579. tolua_function(tolua_S,"ScreenToElement",tolua_UI_UIElement_ScreenToElement00);
  14580. tolua_function(tolua_S,"ElementToScreen",tolua_UI_UIElement_ElementToScreen00);
  14581. tolua_function(tolua_S,"IsInside",tolua_UI_UIElement_IsInside00);
  14582. tolua_function(tolua_S,"IsInsideCombined",tolua_UI_UIElement_IsInsideCombined00);
  14583. tolua_function(tolua_S,"GetCombinedScreenRect",tolua_UI_UIElement_GetCombinedScreenRect00);
  14584. tolua_function(tolua_S,"SortChildren",tolua_UI_UIElement_SortChildren00);
  14585. tolua_function(tolua_S,"GetLayoutMinSize",tolua_UI_UIElement_GetLayoutMinSize00);
  14586. tolua_function(tolua_S,"GetIndent",tolua_UI_UIElement_GetIndent00);
  14587. tolua_function(tolua_S,"GetIndentSpacing",tolua_UI_UIElement_GetIndentSpacing00);
  14588. tolua_function(tolua_S,"GetIndentWidth",tolua_UI_UIElement_GetIndentWidth00);
  14589. tolua_function(tolua_S,"SetChildOffset",tolua_UI_UIElement_SetChildOffset00);
  14590. tolua_function(tolua_S,"SetHovering",tolua_UI_UIElement_SetHovering00);
  14591. tolua_function(tolua_S,"SetTempVisible",tolua_UI_UIElement_SetTempVisible00);
  14592. tolua_function(tolua_S,"AdjustScissor",tolua_UI_UIElement_AdjustScissor00);
  14593. tolua_function(tolua_S,"GetColorAttr",tolua_UI_UIElement_GetColorAttr00);
  14594. tolua_function(tolua_S,"GetTraversalMode",tolua_UI_UIElement_GetTraversalMode00);
  14595. tolua_function(tolua_S,"IsElementEventSender",tolua_UI_UIElement_IsElementEventSender00);
  14596. tolua_function(tolua_S,"GetElementEventSender",tolua_UI_UIElement_GetElementEventSender00);
  14597. tolua_endmodule(tolua_S);
  14598. tolua_function(tolua_S,"UIElement",tolua_UI_UIElement00);
  14599. tolua_constant(tolua_S,"DRAG_NONE",DRAG_NONE);
  14600. tolua_constant(tolua_S,"DRAG_MOVE",DRAG_MOVE);
  14601. tolua_constant(tolua_S,"DRAG_RESIZE_TOPLEFT",DRAG_RESIZE_TOPLEFT);
  14602. tolua_constant(tolua_S,"DRAG_RESIZE_TOP",DRAG_RESIZE_TOP);
  14603. tolua_constant(tolua_S,"DRAG_RESIZE_TOPRIGHT",DRAG_RESIZE_TOPRIGHT);
  14604. tolua_constant(tolua_S,"DRAG_RESIZE_RIGHT",DRAG_RESIZE_RIGHT);
  14605. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOMRIGHT",DRAG_RESIZE_BOTTOMRIGHT);
  14606. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOM",DRAG_RESIZE_BOTTOM);
  14607. tolua_constant(tolua_S,"DRAG_RESIZE_BOTTOMLEFT",DRAG_RESIZE_BOTTOMLEFT);
  14608. tolua_constant(tolua_S,"DRAG_RESIZE_LEFT",DRAG_RESIZE_LEFT);
  14609. tolua_cclass(tolua_S,"Window","Window","BorderImage",NULL);
  14610. tolua_beginmodule(tolua_S,"Window");
  14611. tolua_function(tolua_S,"SetMovable",tolua_UI_Window_SetMovable00);
  14612. tolua_function(tolua_S,"SetResizable",tolua_UI_Window_SetResizable00);
  14613. tolua_function(tolua_S,"SetResizeBorder",tolua_UI_Window_SetResizeBorder00);
  14614. tolua_function(tolua_S,"SetModal",tolua_UI_Window_SetModal00);
  14615. tolua_function(tolua_S,"SetModalShadeColor",tolua_UI_Window_SetModalShadeColor00);
  14616. tolua_function(tolua_S,"SetModalFrameColor",tolua_UI_Window_SetModalFrameColor00);
  14617. tolua_function(tolua_S,"SetModalFrameSize",tolua_UI_Window_SetModalFrameSize00);
  14618. tolua_function(tolua_S,"IsMovable",tolua_UI_Window_IsMovable00);
  14619. tolua_function(tolua_S,"IsResizable",tolua_UI_Window_IsResizable00);
  14620. tolua_function(tolua_S,"GetResizeBorder",tolua_UI_Window_GetResizeBorder00);
  14621. tolua_function(tolua_S,"IsModal",tolua_UI_Window_IsModal00);
  14622. tolua_function(tolua_S,"GetModalShadeColor",tolua_UI_Window_GetModalShadeColor00);
  14623. tolua_function(tolua_S,"GetModalFrameColor",tolua_UI_Window_GetModalFrameColor00);
  14624. tolua_function(tolua_S,"GetModalFrameSize",tolua_UI_Window_GetModalFrameSize00);
  14625. tolua_endmodule(tolua_S);
  14626. tolua_function(tolua_S,"Window",tolua_UI_Window00);
  14627. tolua_endmodule(tolua_S);
  14628. return 1;
  14629. }
  14630. #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
  14631. TOLUA_API int luaopen_UI (lua_State* tolua_S) {
  14632. return tolua_UI_open(tolua_S);
  14633. };
  14634. #endif